/* Base: reset, typography, grid, focus, utilities */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-md)/1.6 var(--f-sans);
  font-feature-settings: "ss01", "kern";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 1.2s var(--ease);
}
html[data-hour] body { background: var(--light); }
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

h1, h2, h3, .display {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0;
  letter-spacing: -.02em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 em, h2 em, h3 em, .display em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--accent);
  transition: color 1.2s var(--ease);
}
p { text-wrap: pretty; max-width: 62ch; }

.mono, .eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 400;
}
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: var(--t-lg); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--ink-2); }
.tbc {
  font-family: var(--f-mono);
  font-size: .72em;
  letter-spacing: .04em;
  color: var(--coral);
  white-space: nowrap;
}
.tbc::before { content: "· "; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.section { padding-block: var(--space-6); position: relative; }
.section--tight { padding-block: var(--space-5); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; min-height: 44px;
  display: inline-flex; align-items: center; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Pictures fill their frame and never upscale beyond what CSS allows */
.frame { position: relative; overflow: hidden; background: var(--paper-3); }
.frame > picture { display: block; width: 100%; height: 100%; }
.frame > img, .frame > picture > img, .frame > video {
  width: 100%; height: 100%; object-fit: cover;
}
.frame figcaption {
  position: absolute; left: 12px; bottom: 10px; color: #fff;
  font: var(--t-xs)/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

/* Reveals: only when JS is running and motion is allowed */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal="mask"] { opacity: 1; transform: none; }
.js [data-reveal="mask"] > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
.js [data-reveal="mask"].is-in > * { clip-path: inset(0 0 0 0); }
.js [data-reveal].is-in { opacity: 1; transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal="mask"] > * { clip-path: none; }
}
