/* ==========================================================================
   Base layer — design tokens, reset, typography, a11y, reveal motion.
   Loaded on every page. Extracted verbatim from the static source's shared
   <style> block (identical across all 12 source pages).
   ========================================================================== */

:root {
  --bg: oklch(97% 0.008 245);
  --ink: oklch(25% 0.05 252);
  --accent: oklch(48% 0.16 255);
  --accent-hover: oklch(42% 0.16 255);
  --asphalt: oklch(50% 0.03 245);
  --sky: oklch(88% 0.04 235);
  --amber: oklch(75% 0.13 75);
  --border: oklch(90% 0.015 245);
  --display: 'Barlow Condensed', sans-serif;
  --body: 'Source Sans 3', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--ink); color: var(--bg); padding: 0.6rem 1.1rem; border-radius: 6px; font-family: var(--body); font-weight: 600; text-decoration: none; transition: top 0.15s ease-out; }
.skip-link:focus { top: 1rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 1.5rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.08; }
.eyebrow { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.mono { font-family: var(--mono); }
.acc { color: var(--accent); }

/* Reveal motion — IntersectionObserver adds .is-in (see assets/js/main.js) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease-out, transform 0.4s ease-out; }
.reveal.is-in { opacity: 1; transform: none; }

/* Film grain — faint, living */
body::after {
  content: ""; position: fixed; inset: -120px; z-index: 9990; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045; animation: grainShift 0.8s steps(8) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); } 25% { transform: translate(-40px, 30px); }
  50% { transform: translate(30px, -50px); } 75% { transform: translate(-30px, -20px); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: opacity 0.3s ease-out; transform: none; }
  body::after { animation: none; }
}
