/* Element defaults, typography helpers and accessibility utilities. */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.on-accent :focus-visible, .band--ink :focus-visible { outline-color: var(--paper); }

h1, h2, h3, p { margin: 0; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: 15px;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Type helpers */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono--accent { color: var(--accent); }
.mono--ink { color: var(--ink); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.035em;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -.02em;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 620px;
  text-wrap: pretty;
}

.body-copy { color: var(--ink-soft); text-wrap: pretty; }

em, .italic { font-style: italic; }
.accent { color: var(--accent); }

/* Masked line reveal: each .line clips its inner [data-line]. */
.line { display: block; overflow: hidden; padding: .16em .06em .08em 0; margin-top: -.16em; }
.line > span { display: block; }
