
/* ─── Tokens ─── */
:root {
  --ink:      #10263D;
  --sounding: #1B4D7A;
  --vellum:   #EDE8DC;
  --amber:    #C17D2E;
  --amber-lt: #D9953A;
  --tide:     #7A9BB5;
  --white:    #FAFAF8;

  --bg:       #10263D;
  --bg-mid:   #162F4A;
  --fg:       #EDE8DC;
  --fg-muted: #7A9BB5;
  --surface:  rgba(255,255,255,0.04);
  --border:   rgba(193,125,46,0.22);

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body:    Optima, 'Trebuchet MS', 'Segoe UI', sans-serif;
  --font-mono:    'Courier New', Courier, monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg:       #EDE8DC;
  --bg-mid:   #FAFAF8;
  --fg:       #10263D;
  --fg-muted: #4A6C85;
  --surface:  rgba(16,38,61,0.05);
  --border:   rgba(16,38,61,0.14);
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) {
    --bg: #EDE8DC; --bg-mid: #FAFAF8; --fg: #10263D;
    --fg-muted: #4A6C85; --surface: rgba(16,38,61,0.05);
    --border: rgba(16,38,61,0.14);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
img { display: block; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.nav__brand {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
}
.nav__brand:hover { text-decoration: none; }
.nav__links {
  display: flex; gap: 2rem; list-style: none; align-items: center;
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--fg); text-decoration: none; }
.nav__links a.active { color: var(--amber); }
.nav__toggle {
  background: none; border: 1px solid var(--border); color: var(--fg-muted);
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.nav__toggle:hover { color: var(--amber); border-color: var(--amber); }

/* ─── Page body offset ─── */
.page-body { padding-top: 56px; }

/* ─── Layout ─── */
.section { padding: 5.5rem 1.5rem; }
.section--tight { padding: 3.5rem 1.5rem; }
.section--dark { background: var(--ink); color: var(--vellum); }
.section--mid { background: var(--bg-mid); }
.container { max-width: 860px; margin: 0 auto; }
.container--wide { max-width: 1060px; margin: 0 auto; }
.container--narrow { max-width: 620px; margin: 0 auto; }

/* ─── Type ─── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1rem; display: block;
}
.amber-rule { display: block; width: 40px; height: 1px; background: var(--amber); margin-bottom: 2rem; }
.display {
  font-family: var(--font-display);
  font-weight: normal; line-height: 1.1;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: normal; line-height: 1.2;
  color: var(--fg); margin-bottom: 1.5rem;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.9rem 1.8rem; cursor: pointer; border: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: var(--amber-lt); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--fg-muted); border: 1px solid var(--border); }
.btn--ghost:hover { color: var(--fg); border-color: var(--fg-muted); }
.btn--disabled {
  background: transparent; color: var(--fg-muted);
  border: 1px solid var(--border); cursor: default; opacity: 0.5;
}

/* ─── Divider ─── */
hr.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ─── Scroll reveal ─── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.2s; }
.reveal--d3 { transition-delay: 0.3s; }
.reveal--d4 { transition-delay: 0.4s; }

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}
.footer__inner {
  max-width: 860px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer__brand { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-muted); }
.footer__links { display: flex; gap: 1.5rem; list-style: none; }
.footer__links a { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); opacity: 0.6; }
.footer__links a:hover { opacity: 1; }

@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
