/* ── base: reset, typography, shared components ───────────────── */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

::selection { background: var(--teal); color: var(--ink-on-hot); }

/* type */
h1, h2, h3 { line-height: 1.08; text-wrap: balance; font-weight: 640; }
p { text-wrap: pretty; }

.h2 {
  font-size: var(--text-h2);
  font-variation-settings: 'wdth' 106;
  letter-spacing: -0.015em;
  max-width: 24ch;
}
.h3 {
  font-size: var(--text-h3);
  font-variation-settings: 'wdth' 104;
  font-weight: 600;
}

.prose {
  max-width: var(--measure);
  color: var(--muted);
  font-size: var(--text-body);
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--teal); text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.01em;
}
.mono-sm {
  font-family: var(--font-mono);
  font-size: var(--text-mono-sm);
  letter-spacing: 0.02em;
}

/* layout */
.container {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--space-section); }

.rule { border: 0; border-top: 1px solid var(--line-soft); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85em 1.4em;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:hover { border-color: var(--teal); color: var(--teal); }
.btn:active { transform: translateY(1px); }

.btn-hot {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--ink-on-hot);
  font-weight: 600;
}
.btn-hot:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ink-on-hot);
}

/* status pills */
.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-mono-sm);
  letter-spacing: 0.04em;
  padding: 0.2em 0.55em;
  border: 1px solid currentColor;
  border-radius: 2px;
  line-height: 1.5;
}
.pill-teal { color: var(--teal); }
.pill-coral { color: var(--coral); }
.pill-muted { color: var(--muted); }

/* a11y */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-skip);
  transform: translateY(-300%);
  background: var(--teal);
  color: var(--ink-on-hot);
  padding: 0.6em 1em;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
