/* ==========================================================================
   Base — reset, typography, layout primitives
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* stop the sticky header from covering (and swallowing clicks on) anything
     reached via an anchor link or scrollIntoView */
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }

/* Inline icon SVGs ship with only a viewBox and no intrinsic size, so in any
   context that has no sizing rule of its own they stretch to fill their
   container — which rendered a 548px arrow inside a text link. Default them to
   text size. Every component rule below uses a class selector, so it wins. */
svg { width: 1.15em; height: 1.15em; flex: none; }
img, video { height: auto; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-display); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.025em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 1.1em; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: 0.45em; }

strong, b { font-weight: 600; color: var(--cream); }

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

::selection { background: var(--cyan); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------------- layout -- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section {
  padding-block: var(--section-y);
  position: relative;
  /* decorative auras bleed past the edges by design; clip them on the x axis
     only, so they can never widen the document */
  overflow-x: clip;
}
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }

/* light band, for the day/night rhythm through the page */
.section--light {
  background: var(--light-bg);
  color: var(--light-text);
}
.section--light h1, .section--light h2,
.section--light h3, .section--light h4 { color: var(--light-text); }
.section--light .lede,
.section--light .section-head__lede { color: var(--light-muted); }
.section--light .kicker { color: var(--cyan-ink); }

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: var(--z-preloader);
  background: var(--cyan);
  color: var(--ink);
  padding: 0.8rem 1.3rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------ typography -- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: '';
  width: 26px; height: 2px;
  background: currentColor;
  flex: none;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--text-muted);
  max-width: 62ch;
  line-height: 1.62;
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); max-width: 780px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }

/* Outlined "signage" display type — used once per page as a focal object. */
.display-outline {
  -webkit-text-stroke: 1.5px var(--cyan);
  color: transparent;
  paint-order: stroke fill;
}
.display-glow {
  color: var(--cream);
  text-shadow:
    0 0 12px rgba(25, 200, 240, 0.55),
    0 0 40px rgba(25, 200, 240, 0.28),
    0 0 90px rgba(25, 200, 240, 0.16);
}

.text-accent { color: var(--cyan); }

/* --------------------------------------------------------------- helpers -- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* soft radial "light bleed" auras, echoing lit signage */
.aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.aura--cyan { background: radial-gradient(circle, rgba(25,200,240,0.55), transparent 68%); }
.aura--brick { background: radial-gradient(circle, rgba(209,68,38,0.42), transparent 68%); }

.section > .wrap { position: relative; z-index: var(--z-base); }
