/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  --ink:      #05100b;
  --forest:   #0b1f16;
  --moss:     #2f4a35;
  --jade:     #4a7a5c;
  --amber:    #d9a441;
  --cream:    #efe7d7;
  --cream-dim: rgba(239, 231, 215, 0.62);
  --cream-faint: rgba(239, 231, 215, 0.34);
  --rule:     rgba(239, 231, 215, 0.14);

  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans:  'Work Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* Editorial measure: content never exceeds a comfortable reading column,
     but the page itself is full-bleed. */
  --gutter: clamp(1.5rem, 6vw, 8rem);
  --measure: 34rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slow: 1100ms;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ink);
  /* Lenis drives scrolling; native smooth would fight it. */
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

img, canvas { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--cream-faint);
  transition: border-color 400ms var(--ease), color 400ms var(--ease);
}
a:hover { border-color: var(--amber); color: var(--amber); }

::selection { background: var(--moss); color: var(--cream); }

:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
