/* ============================================================
   base.css — reset, page frame, nav and footer chrome.
   Loaded by every page. Reads only the semantic tokens, so /hermes gets
   its dark treatment for free via :root.theme-ink.
   ============================================================ */

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

body {
  background: var(--surface);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit }
img { max-width: 100% }
code, pre { font-family: var(--mono) }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: var(--lh-heading);
  color: var(--heading-color);
}
h2 { font-size: var(--h2-size); letter-spacing: var(--h2-tracking) }

.section { padding: var(--section-pad) 0; border-top: 1px solid var(--rule) }
.section-head { max-width: var(--section-head-w); margin-bottom: var(--section-head-mb) }
.section-head p { margin-top: var(--section-head-p-mt); color: var(--fg-soft) }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px }

/* ── NAV ───────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  z-index: 50;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px }
.nav-links { display: flex; gap: var(--nav-gap); align-items: center; font-size: var(--nav-fs) }
.nav-links a { text-decoration: none; color: var(--fg-soft) }
.nav-links a:hover { color: var(--fg) }

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
  padding: var(--footer-pad) 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--fg-faint);
}
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px }
footer a { text-decoration: none }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
}
