/**
 * Reset, typography, container, vertical rhythm.
 * Dark theme only — colors are hardcoded via tokens, no prefers-color-scheme.
 */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  min-width: 0;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover, a:focus-visible { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
  color: var(--text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  margin: 0 0 var(--space-4);
  color: var(--text);
}
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

button {
  font-family: inherit;
}

/* Container + vertical rhythm */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-space);
}
.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 70ch;
  margin-bottom: var(--space-8);
}

.eyebrow {
  display: block;
  font-size: var(--fs-label);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  margin: 0 0 var(--space-2);
}

.section__intro {
  color: var(--text-muted);
  max-width: 70ch;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-link (and any other .sr-only that becomes focusable) must regain
   normal size and sit above content on keyboard focus — otherwise it's
   "focusable" but visually a 1x1px dead end. */
.sr-only:focus {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  width: auto;
  height: auto;
  padding: var(--space-2) var(--space-4);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: var(--radius-card);
  z-index: var(--z-toast);
}
