/* Reset + base typography */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
html.pref-large { font-size: 118.75%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }
html.pref-calm body { letter-spacing: 0.02em; word-spacing: 0.1em; line-height: 1.9; }
html.pref-calm p, html.pref-calm li, html.pref-calm summary { line-height: 1.9; }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
body.menu-open { overflow: hidden; }
main { display: block; }

:focus-visible { outline: 3px solid var(--red-accessible); outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible, .hero :focus-visible, .moment :focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--ink); color: var(--white); padding: 0.75rem 1.25rem; text-decoration: none; font-weight: 700; }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Type system */
h1, h2, h3, .display { font-family: var(--font-display); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: break-word; }
h1 { font-weight: 700; text-transform: uppercase; line-height: 0.92; letter-spacing: -0.005em; }
h2 { font-weight: 600; line-height: 1; letter-spacing: 0; }
h3 { font-weight: 600; line-height: 1.05; }
.h-xl { font-weight: 700; text-transform: uppercase; line-height: 0.92; font-size: clamp(2.75rem, 1rem + 6.5vw, 8rem); letter-spacing: -0.005em; }
.h-l { font-size: clamp(2.5rem, 1.2rem + 3.4vw, 4.75rem); }
.h-m { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); }
.h-s { font-size: clamp(1.625rem, 1.25rem + 1vw, 2.25rem); }
.lead { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.55; max-width: 36rem; }
.muted { color: var(--grey); }
.on-ink .muted { color: var(--grey-on-ink); }
.prose { max-width: 38rem; }
.prose p + p { margin-top: 1.1em; }

.label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.3;
}

/* Layout */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.on-chalk { background: var(--chalk); }
.on-ink { background: var(--ink); color: var(--white); }
