/* ── WHISPERPINCH // JARVIS PROJECT ── */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Barlow+Condensed:wght@300;400;600;700&family=Crimson+Pro:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
  --bg:      #080c10;
  --bg2:     #0d1218;
  --fg:      #dce8f4;
  --muted:   #7a95af;
  --accent:  #4fc3f7;
  --accent2: #00e5a0;
  --warn:    #f4a261;
  --danger:  #e63946;
  --card:    #0f1620;
  --border:  #1a2a3a;
  --border2: #243548;
  --mono:    'Share Tech Mono', ui-monospace, monospace;
  --sans:    'Barlow Condensed', ui-sans-serif, system-ui, sans-serif;
  --serif:   'Crimson Pro', ui-serif, Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.85;
  overflow-x: hidden;
}

/* scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.07) 2px,
    rgba(0,0,0,0.07) 4px
  );
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: #8dd6ff; }

/* ── LAYOUT ── */
.wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 28px 100px;
}

/* ── SITE TITLE ── */
.site-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 52px;
}
.site-title a { color: var(--muted); }
.site-title a:hover { color: var(--accent); text-decoration: none; }

/* ── CHAPTER HEADING ── */
h1 {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--fg);
}

.meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* ── NAV ── */
.nav {
  display: flex;
  gap: 20px;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.nav a {
  color: var(--muted);
  transition: color 0.15s;
}
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav a:first-child { margin-right: auto; }

/* ── PROSE ── */
p {
  margin-bottom: 1.25em;
  color: var(--fg);
}
p:last-of-type { margin-bottom: 0; }

em { font-style: italic; color: #c8dce8; }
strong { font-weight: 600; color: var(--fg); }

/* ── LATTICE BLOCKS ── */
.lattice,
pre.lattice {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(15, 22, 32, 0.85);
  border-left: 3px solid rgba(79, 195, 247, 0.35);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 24px 0;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* ── TELEMETRY TERMINAL (ch12) ── */
.wp-terminal { margin: 3rem 0 2rem; }

.wp-telemetry {
  background: #000;
  color: #00cc55;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 204, 85, 0.25);
  letter-spacing: 0.06em;
  white-space: pre;
  overflow-x: auto;
  text-shadow: 0 0 6px rgba(0, 204, 85, 0.5);
  position: relative;
}
.wp-telemetry::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,255,102,0.03) 0px,
    rgba(0,255,102,0.03) 1px,
    transparent 3px,
    transparent 6px
  );
  mix-blend-mode: screen;
  opacity: 0.35;
}

/* ── DIVIDER ── */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 52px 0 40px;
}

/* ── FOOTER ── */
.footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--border2);
  letter-spacing: 0.12em;
}

/* ── FADE IN ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wrap { animation: fadeUp 0.5s ease both; }

@media (max-width: 600px) {
  .wrap { padding: 32px 18px 80px; }
  h1 { font-size: 1.5rem; }
}
