/* Reset, type scale, containers and section rhythm. Colours come from tokens.css. */
@font-face { font-family: Geist; src: url('/assets/fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 450 16px/1.5 var(--font); font-synthesis: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
em { font-style: normal; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.js-only { display: none; }
.js .js-only { display: block; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200; padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--on-ink); font-weight: 500; transform: translateY(-160%);
  transition: transform var(--base) var(--enter);
}
.skip-link:focus { transform: none; }

/* Type */
h1, h2, h3, h4 { font-weight: 500; text-wrap: balance; }
h1 { font-size: 60px; line-height: 1.04; letter-spacing: -.04em; }
h2 { font-size: 36px; line-height: 1.08; letter-spacing: -.04em; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
h4 { font-size: 16px; line-height: 1.35; letter-spacing: -.01em; }
p { text-wrap: pretty; }
.lead { font-size: 18px; line-height: 1.5; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.caption { font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
@media (max-width: 1100px) { h1 { font-size: 48px; } }
@media (max-width: 767px) { h1 { font-size: 40px; } h2 { font-size: 28px; } .lead { font-size: 17px; } }
@media (max-width: 479px) { h1 { font-size: 34px; } h2 { font-size: 26px; } }

/* Containers and sections */
.wrap { width: min(var(--w-default), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-wide { width: min(var(--w-wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(var(--w-narrow), 100% - 2 * var(--gutter)); margin-inline: auto; }
.block { padding-block: var(--section-y); }
.block-head { display: grid; gap: 16px; justify-items: center; text-align: center; margin: 0 auto 40px; max-width: var(--w-narrow); }
.block-head .lead { max-width: 640px; text-wrap: pretty; }
.br-wide { display: none; }
@media (min-width: 768px) { .br-wide { display: inline; } }
.block-head--left { justify-items: start; text-align: left; margin-inline: 0; }
.block-head--split { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; justify-items: start; text-align: left; gap: 24px 48px; }
@media (max-width: 960px) { .block-head--split { grid-template-columns: 1fr; } }

/* Eyebrow: sentence case, 14px, grey. As a glass pill on gradients. */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.44; font-weight: 500; color: var(--ink-muted); letter-spacing: 0; }
.eyebrow-pill { padding: 6px 14px; border-radius: var(--r-pill); background: var(--glass-strong); border: 1px solid var(--glass-border); color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent); }
.dot--live { position: relative; }
.dot--live::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; animation: dot-pulse 2.4s ease-out infinite; }
@keyframes dot-pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dot--live::after { animation: none; } }
