:root {
  --ink: oklch(0.17 0 0);
  --ink-2: oklch(0.4 0 0);
  --rule: oklch(0.86 0 0);
  --ground: oklch(1 0 0);
  --wash: oklch(0.97 0 0);
  --red: oklch(0.55 0.215 27);
  --red-fill: oklch(0.55 0.215 27);
  --on-red: oklch(1 0 0);
  --shot-rule: oklch(0.86 0 0);
  color-scheme: light;
  --sans: "Google Sans Flex", "Google Sans", "Public Sans", system-ui, sans-serif;
  --measure: 46rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-sticky: 20;
  --z-skip: 30;
  --z-modal: 40;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --ink: oklch(0.95 0 0);
  --ink-2: oklch(0.78 0 0);
  --rule: oklch(0.34 0 0);
  --ground: oklch(0.13 0 0);
  --wash: oklch(0.2 0 0);
  --red: oklch(0.7 0.18 27);
  --red-fill: oklch(0.55 0.215 27);
  --on-red: oklch(1 0 0);
  --shot-rule: oklch(0.42 0 0);
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: oklch(0.95 0 0);
  --ink-2: oklch(0.78 0 0);
  --rule: oklch(0.34 0 0);
  --ground: oklch(0.13 0 0);
  --wash: oklch(0.2 0 0);
  --red: oklch(0.7 0.18 27);
  --red-fill: oklch(0.55 0.215 27);
  --on-red: oklch(1 0 0);
  --shot-rule: oklch(0.42 0 0);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--sans);
  font-optical-sizing: auto;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
code { font: 0.9em/1 ui-monospace, "SF Mono", Menlo, monospace; }
strong, b { font-weight: 700; }

.skip { position: absolute; left: -999px; top: 0.5rem; z-index: var(--z-skip); background: var(--ink); color: var(--ground); padding: 0.6rem 1rem; }
.skip:focus { left: 1rem; }

.wrap { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2 {
  font-family: var(--sans);
  font-weight: 900;
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1.5rem; }
h3 { font: 700 1.25rem/1.3 var(--sans); margin: 3.5rem 0 0.75rem; text-wrap: balance; }
p { margin: 0 0 1.25rem; text-wrap: pretty; }

/* site header */
.site { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--ground); border-bottom: 1px solid var(--ink); }
.site-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0.25rem 1rem; padding-block: 0.6rem; }
.mark { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 0.95rem; text-decoration: none; min-height: 44px; }
.glyph { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; background: var(--red-fill); color: var(--on-red); font: 900 0.85rem/1 var(--sans); font-stretch: 75%; }
.site nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; font-size: 0.95rem; }
.site nav a { display: inline-block; padding-block: 0.65rem; text-decoration: none; }
.site nav a:hover, .site nav a[aria-current="page"] { text-decoration: underline; }
.nav-letter { color: var(--red); font-weight: 700; }

/* banner */
.banner { margin-block: 0; max-width: calc(var(--measure) + 8rem + 2 * var(--gutter)); padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.banner-shot { display: block; width: 100%; padding: 0; border: 1px solid var(--shot-rule); background: oklch(1 0 0); cursor: zoom-in; }
.banner-shot:hover { border-color: var(--ink); }
.banner-shot img { width: 100%; }
.banner figcaption { font-size: 0.9rem; }

/* hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); }
.dateline { font-size: 1rem; color: var(--ink-2); margin-bottom: 1rem; }
h1 { font-size: clamp(3rem, 10vw, 5.75rem); line-height: 0.92; }
.thesis { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.5; margin: 1.75rem 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (prefers-reduced-motion: no-preference) {
  .js h1 { animation: rise 0.9s var(--ease) both; }
  .js .thesis, .js .hero-cta { animation: rise 0.9s 0.1s var(--ease) both; }
}
@keyframes rise { from { transform: translateY(0.75rem); opacity: 0; } }

/* film */
.film { margin-bottom: clamp(3rem, 7vw, 5rem); }
.film video { width: 100%; aspect-ratio: 16 / 9; background: var(--ink); }

/* key numbers */
.figures {
  list-style: none;
  margin-top: 0;
  margin-bottom: clamp(3.5rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}
.figures li { border-top: 2px solid var(--ink); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.figures b {
  font: 900 clamp(2.25rem, 5vw, 3.25rem)/1 var(--sans);
  font-stretch: 75%;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.figures i { font-style: normal; font-weight: 500; color: var(--ink-2); font-size: 0.55em; }
.figures span { font-size: 0.95rem; line-height: 1.45; color: var(--ink-2); max-width: 28ch; }
.red { color: var(--red); }

/* story */
.story h2 { max-width: 20ch; }
.lede { font-size: 1.3rem; line-height: 1.55; }
sup.fn { font-size: 0.7em; line-height: 0; vertical-align: super; margin-left: 0.1em; }
sup.fn a { color: var(--red); font-weight: 700; text-decoration: none; padding: 0 0.15em; }
sup.fn a:hover { text-decoration: underline; }

/* exhibits: one measure, figures equal the text column */
.exhibit { margin: 2.25rem 0 2.75rem; }
.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--shot-rule);
  background: var(--ground);
  cursor: zoom-in;
}
.shot img { width: 100%; height: auto; }
.shot:hover { border-color: var(--ink); }
figcaption { font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); margin-top: 0.75rem; }
figcaption b { color: var(--red); }

/* bands */
.band { border-top: 2px solid var(--ink); padding-block: clamp(3.5rem, 8vw, 5.5rem); }
#timeline.band { margin-top: clamp(2rem, 5vw, 3rem); }
.sub { color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 1.5rem 0 0.25rem; }
.toggle {
  font: 600 1rem/1.5 var(--sans);
  color: var(--ink-2);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 0;
  min-height: 44px;
  cursor: pointer;
}
.toggle:hover { color: var(--ink); }
.toggle[aria-pressed="true"] { color: var(--ink); border-color: var(--red); }
.count { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 1.5rem; }
.tl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.tl li {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.tl li[data-nov="true"] time { color: var(--red); }
.tl time { font-weight: 600; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.tl p { margin: 0; }
.tl .meta { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.25rem; }
.flag { font-style: italic; color: var(--ink-2); }

/* tax */
.bars { margin: 2.5rem 0; }
.bars dt { font-size: 0.95rem; color: var(--ink-2); margin-top: 1.25rem; }
.bars dd { margin: 0.35rem 0 0; display: flex; align-items: center; gap: 1rem; }
.bar {
  height: 1.25rem;
  flex: 0 0 auto;
  width: calc(var(--w) * 0.62);
  background: var(--ink);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.bar.red { background: var(--red-fill); }
.bar.quiet { background: var(--rule); }
.bars.pre .bar { transform: scaleX(0); }
.val { font: 900 1.5rem/1 var(--sans); font-stretch: 75%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.val small { font: 400 0.85rem var(--sans); color: var(--ink-2); margin-left: 0.25rem; }
.note { font-size: 0.9rem; color: var(--ink-2); }
.pull { margin: 3rem 0 0; }
.pull p {
  font: 900 clamp(2rem, 5vw, 3.25rem)/1 var(--sans);
  font-stretch: 75%;
  text-transform: uppercase;
  color: var(--red);
  text-wrap: balance;
  margin: 0;
}

/* plans */
.voice { border-top: 1px solid var(--rule); }
.voice h3 { margin-top: 2rem; }
.voice .exhibit { margin: 1.25rem 0 0.5rem; }
.src { font-size: 0.9rem; color: var(--ink-2); }
.tbl-h { margin-top: 4rem; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--rule); }
thead th { font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
tbody th { font-weight: 700; white-space: nowrap; }

/* close */
.closing { border-top: 6px solid var(--red-fill); padding-block: clamp(3.5rem, 9vw, 6rem); }
.demands { list-style: none; counter-reset: d; margin: 2rem 0 0; padding: 0; }
.demands li {
  counter-increment: d;
  position: relative;
  padding: 1.5rem 0 1.5rem 3.25rem;
  border-bottom: 1px solid var(--rule);
}
.demands li::before { content: counter(d); position: absolute; left: 0; top: 1.4rem; font: 900 3rem/0.9 var(--sans); font-stretch: 75%; color: var(--red); }
.demands strong { display: block; font: 900 1.6rem/1.1 var(--sans); font-stretch: 75%; text-transform: uppercase; margin-bottom: 0.4rem; }
.demands strong code { font-size: 0.75em; text-transform: none; }
.closer {
  font: 900 clamp(2.25rem, 6vw, 3.75rem)/0.98 var(--sans);
  font-stretch: 75%;
  text-transform: uppercase;
  margin: 3.5rem 0 2.25rem;
  text-wrap: balance;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 700 1rem/1 var(--sans);
  padding: 0.9rem 1.4rem;
  border: 2px solid var(--red-fill);
  background: var(--red-fill);
  color: var(--on-red);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.btn-line { background: var(--ground); color: var(--ink); border-color: var(--ink); }
.copied { font-size: 0.9rem; color: var(--ink-2); }

/* notes and sources */
.notes-sec { padding-block: clamp(3rem, 7vw, 4.5rem) 4rem; }
.notes-sec h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
.notes { margin: 0; padding-left: 1.75rem; font-size: 0.95rem; line-height: 1.5; }
.notes li { margin-bottom: 0.6rem; padding-left: 0.25rem; }
.notes li::marker { color: var(--red); font-weight: 700; }
.notes li:target { background: var(--wash); outline: 1px solid var(--rule); }
.back { font-size: 0.85rem; color: var(--ink-2); margin-left: 0.25rem; }
.sources { margin-top: 3rem; }
summary { font-weight: 700; cursor: pointer; border-top: 1px solid var(--ink); padding-block: 1.25rem 0.25rem; min-height: 44px; }
.src-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 2rem; }
.src-cols h3 { margin-top: 1.75rem; font-size: 1rem; }
.src-cols ul { padding-left: 1.1rem; margin: 0; font-size: 0.92rem; line-height: 1.5; }
.src-cols li { margin-bottom: 0.4rem; }
.fine { font-size: 0.85rem; color: var(--ink-2); margin-top: 2.5rem; }

/* footer */
.site-foot { border-top: 1px solid var(--ink); padding-block: 1.5rem; font-size: 0.95rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 2rem; }
.foot-row p { margin: 0; }

/* letter page */
.letter-page { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(3rem, 8vw, 5rem); }
.letter-head { border-bottom: 2px solid var(--ink); padding-bottom: 1.5rem; margin-bottom: 2.5rem; }
.letter-head h1 { font-size: clamp(2.75rem, 8vw, 4.5rem); margin-bottom: 1.25rem; }
.letter-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 2rem; font-size: 1rem; color: var(--ink-2); margin: 0; }
.letter-body { font-size: 1.1875rem; line-height: 1.7; }
.salutation { font-weight: 700; margin-bottom: 1.75rem; }
.letter-body h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin: 3rem 0 1rem; }
.asks { margin: 1.25rem 0 2rem; padding-left: 1.75rem; }
.asks li { margin-bottom: 0.9rem; padding-left: 0.25rem; }
.asks li::marker { color: var(--red); font-weight: 900; }
.sign-line {
  font: 900 clamp(1.75rem, 4.5vw, 2.75rem)/1 var(--sans);
  font-stretch: 75%;
  text-transform: uppercase;
  color: var(--red);
  text-wrap: balance;
  margin: 2.5rem 0;
}
.signature { border-top: 1px solid var(--ink); padding-top: 1.5rem; margin-top: 2.5rem; font-style: normal; }
.signature .closing-word { margin-bottom: 0.5rem; }
.signature .name { font: 900 2rem/1 var(--sans); font-stretch: 75%; text-transform: uppercase; margin: 0 0 0.5rem; }
.signature p { margin-bottom: 0.25rem; }

/* 404 */
.lost { padding-block: clamp(4rem, 12vw, 8rem); min-height: 60vh; }
.lost h1 { font-size: clamp(4rem, 16vw, 6rem); color: var(--red); margin-bottom: 1rem; }

/* lightbox */
dialog { padding: 0; border: 0; max-width: 96vw; max-height: 94vh; background: var(--ground); z-index: var(--z-modal); overflow: auto; }
dialog::backdrop { background: oklch(0.17 0 0 / 0.88); }
dialog img { max-height: none; width: min(1280px, 94vw); margin: 0 auto; }
.lb-close {
  position: sticky; top: 0; float: right;
  font: 700 0.95rem/1 var(--sans); padding: 0.9rem 1.1rem; min-height: 44px;
  background: var(--ink); color: var(--ground); border: 0; cursor: pointer;
}

@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .tl li { grid-template-columns: 1fr; }
  .figures { gap: 1.5rem 1.25rem; }
  .figures b { font-size: 1.9rem; }
  .demands li { padding-left: 2.5rem; }
  .bar { width: calc(var(--w) * 0.45); }
  .site nav ul { gap: 0 1rem; }
  .letter-body { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar { transition: none; }
}
.letter-cta { margin-top: 3rem; }

.views { font-variant-numeric: tabular-nums; }
.film video { background: oklch(0.17 0 0); }
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  color: var(--ink); background: none; border: 1px solid transparent; cursor: pointer;
}
.theme-toggle:hover { color: var(--red); border-color: var(--rule); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle.is-dark .i-sun { display: block; }
.theme-toggle.is-dark .i-moon { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
    transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out !important;
  }
}
@media (max-width: 40rem) {
  .theme-toggle { order: 2; margin-left: auto; }
  .site nav { order: 3; width: 100%; }
}
.site nav { margin-left: auto; }
@media (max-width: 40rem) { .site nav { margin-left: 0; } }
.banner-shot picture { display: block; }
@media (max-width: 40rem) {
  .banner-shot { width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); border-inline: 0; }
}


pre.rca { margin: 1.25rem 0; padding: 1rem 1.25rem; overflow-x: auto; border: 1px solid var(--rule); font-size: 0.9rem; line-height: 1.55; }
.tbl-wrap + .note, pre.rca + p { margin-top: 1rem; }
pre.rca code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* tl;dr and wall of shame */
.tldr { margin: 0 0 1rem; }
.tw { margin: 0; padding: 1.25rem; border: 1px solid var(--rule); background: var(--ground); font-size: 1rem; line-height: 1.55; }
.tw-feature { border: 2px solid var(--ink); font-size: 1.2rem; }
.tw-feature .shot { margin: 1.25rem auto 0; max-width: 30rem; }
.tw-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; line-height: 1.3; }
.tw-head img { width: 2.5rem; height: 2.5rem; border-radius: 50%; flex: none; }
.tw-handle { color: var(--ink-2); font-size: 0.9em; }
.tw-body p { margin: 0 0 0.6rem; }
.tw-note { font-size: 0.85rem; font-style: italic; color: var(--ink-2); margin: 0.5rem 0 0; }
.tw-meta { font-size: 0.85rem; color: var(--ink-2); margin: 0.75rem 0 0; }
.wall { list-style: none; margin: 1.5rem 0; padding: 0; columns: 2 20rem; column-gap: 1rem; }
.wall li { break-inside: avoid; margin-bottom: 1rem; }
.wall-count { font-size: 0.9rem; color: var(--ink-2); }
.wall-more > summary { margin-bottom: 1rem; }
.wall-more[open] > summary { margin-bottom: 1.5rem; }
.tw-noav { width: 2.5rem; height: 2.5rem; border-radius: 50%; flex: none; background: var(--wash); }
