@font-face {
  font-family: 'Switzer';
  src: url('../assets/fonts/switzer-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../assets/fonts/switzer-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../assets/fonts/switzer-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; }
h1 { font-size: clamp(3rem, 12vw, 12rem); line-height: 1.0; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.07; }
h3 { font-size: var(--step-1); line-height: 1.25; }

img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 3px;
  border-radius: 4px;
}

main { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
section { padding-block: var(--space-xl); }
/* Full-bleed hero: no section padding, and html clips the 100vw break-out so a
   scrollbar cannot produce horizontal scroll. */
#hero { padding-block: 0; }
/* The hero must touch the top of the viewport. main's padding and the first
   section's margin both push it down and leave a strip of page background. */
main > #hero:first-child { margin-top: 0; }
main { padding-top: 0; }
html { overflow-x: hidden; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: var(--space-xs) var(--space-md);
  background: var(--accent); color: var(--bg);
  z-index: 10; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Give <summary> the site focus ring — it matches none of the
   :where(a, button, [tabindex]) selectors above. */
:where(summary):focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Paper texture. A flat fill reads as unfinished at this scale; a very low
   opacity grain gives the page a surface without becoming a visible pattern.
   feTurbulence is inline so this costs no network request. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Warmth behind the content, strongest near the top where the eye lands. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(80% 55% at 15% 0%, color-mix(in oklab, var(--highlight) 12%, transparent), transparent 70%),
    radial-gradient(70% 50% at 95% 15%, color-mix(in oklab, var(--accent) 9%, transparent), transparent 72%);
}

@media (prefers-reduced-motion: reduce) {
  body::after { opacity: 0.03; }
}
