/* ==========================================================================
   Reset and element defaults. Mobile-first throughout.
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

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

img { height: auto; }

a { color: inherit; text-decoration: none; }

p { margin: 0; text-wrap: pretty; }

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button { background: none; border: 0; cursor: pointer; }

/* --- display type: serif-weight grotesque, large sizes only -------------- */

h1, h2, h3,
.d {
  font-family: var(--display);
  font-weight: 800;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--t-display-l); }
h2 { font-size: var(--t-display-m); }

h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 22px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

h4, h5, h6 {
  font-family: var(--ui);
  font-weight: 600;
  margin: 0;
}

.hl { color: var(--coral); }

/* --- the label system: uppercase UI face, never monospace ---------------- */

.k {
  display: inline-block;
  font-family: var(--ui);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink-2);
}

.k-i { color: rgba(255, 246, 239, .62); }
.k-a { color: var(--coral); }

.lede {
  font-size: var(--t-body-l);
  line-height: 1.42;
  color: var(--ink-2);
  max-width: 38ch;
}

/* --- focus: always visible, never removed -------------------------------- */

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-radius: 1px;
}

/* --- assistive ----------------------------------------------------------- */

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 20px;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* --- reduced motion: gentler, not zero ----------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
