:root {
  --bg: #0a0a0b;
  --bg-elev: #131315;
  --fg: #f2efe8;
  --fg-dim: #8a8780;
  --fg-faint: #4a4845;
  --line: #1f1f22;
  --accent: oklch(0.72 0.18 38);
  --accent-soft: oklch(0.72 0.18 38 / 0.15);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; }

/* film grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* shared atoms */
.mono { font-family: var(--mono); font-feature-settings: "ss01"; letter-spacing: -0.01em; }
.serif { font-family: var(--serif); font-style: italic; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.divider { height: 1px; background: var(--line); width: 100%; }

/* navigation top bar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 32px;
  z-index: 50;
  mix-blend-mode: difference;
  color: #fff;
}
.topbar .logo {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 10px;
}
.topbar .logo .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.topbar .meta {
  font-family: var(--mono);
  font-size: 11px;
  display: flex; gap: 24px;
  color: rgba(255,255,255,0.7);
}

/* shared cursor blink */
@keyframes blink { 50% { opacity: 0; } }
.caret { display: inline-block; width: 0.5ch; background: currentColor; animation: blink 1s steps(1) infinite; }
