/* Tokens from the rubeen.dev design system "Lagebild". light-dark() keeps each token on one line. */
:root {
  color-scheme: light dark;
  --paper: light-dark(#f3f4f0, #101315);
  --raised: light-dark(#ffffff, #181c1f);
  --sunken: light-dark(#e8eae4, #0b0d0e);
  --line: light-dark(#d5d9d1, #2c3337);
  --line-strong: light-dark(#7c837b, #5f686d);
  --ink: light-dark(#14171a, #e9ebe6);
  --muted: light-dark(#545b61, #a2aaaf);
  --petrol: light-dark(#0b5b6b, #6cc9d6);
  --petrol-soft: light-dark(#dcebec, #12313a);
  --on-petrol: light-dark(#ffffff, #101315);
  --signal: light-dark(#d4570f, #ff8442);
  --signal-soft: light-dark(#fde4d3, #3d1c0a);
  --signal-ink: light-dark(#8f3507, #ffb48a);
  --moss: light-dark(#3d6b2c, #9ccf83);
  --moss-soft: light-dark(#e2eddb, #18290f);
  --danger-soft: light-dark(#f8dfdb, #36130f);
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 17px/1.55 var(--body); background: var(--paper); color: var(--ink); }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--petrol); text-underline-offset: 3px; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
mark { background: var(--signal-soft); color: var(--signal-ink); font-weight: 700; padding: 0 2px; border-radius: 2px; box-shadow: inset 0 -2px 0 var(--signal); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

main { max-width: 920px; margin-inline: auto; padding: 0 var(--gutter) 48px; }
.head { padding-top: 48px; }
.kicker { font-size: 15px; font-weight: 700; color: var(--muted); }
.head h1 { margin-top: 4px; font: 750 clamp(34px, 6vw, 56px)/1.05 var(--display); letter-spacing: -.03em; }
h2 { font: 700 26px/1.2 var(--display); letter-spacing: -.015em; }
h3 { font: 700 18px/1.3 var(--display); }

/* The copies: one message, four places it ends up */
.copies { margin-top: 40px; }
.message { max-width: 620px; padding: 14px 18px; background: var(--petrol-soft); border-radius: 16px 16px 16px 4px; font-size: 18px; }
.message .who { display: block; font-size: 14px; font-weight: 700; color: var(--muted); }
.fan { margin: 20px 0 10px; color: var(--muted); }
.copy-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.copy { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--raised); border: 1px solid var(--line); border-top: 4px solid var(--line-strong); border-radius: 10px; }
.copy h3 { font-size: 17px; }
.copy .source { align-self: flex-start; padding: 1px 7px; font-size: 13px; font-weight: 700; border-radius: 4px; background: var(--petrol-soft); color: var(--petrol); }
.copy .source.made { background: var(--sunken); color: var(--muted); border: 1px dashed var(--line-strong); }
.copy .what { font-size: 15px; overflow-wrap: anywhere; }
.copy .how { margin-top: auto; font-size: 14px; color: var(--muted); }
.copy.reached { border-top-color: var(--moss); }
.copy.reached .state { color: var(--moss); }
.copy .state { font-size: 14px; font-weight: 700; color: var(--signal-ink); }
.takeaway { margin-top: 20px; font-size: 19px; max-width: 60ch; }

/* The 2×2 */
.grid-box { margin-top: 72px; }
.intro { margin-top: 8px; max-width: 64ch; color: var(--muted); }
.grid { display: grid; grid-template-columns: 9.5em 1fr 1fr; gap: 8px; margin-top: 20px; }
.grid .col, .grid .row { font-weight: 700; font-size: 15px; align-self: end; }
.grid .row { align-self: center; }
.cell { padding: 14px 16px; border-radius: 10px; font-size: 16px; border: 1px solid var(--line); }
.cell strong { display: block; font: 700 17px/1.3 var(--display); margin-bottom: 4px; }
.cell.bad { background: var(--danger-soft); }
.cell.mixed { background: var(--signal-soft); }
.cell.good { background: var(--moss-soft); }
.cases-title { margin-top: 32px; }
.table-scroll { overflow-x: auto; margin-top: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-weight: 700; }
tbody th { font-weight: 400; color: var(--ink); min-width: 13em; }
td.bad { color: var(--signal-ink); }
td.good { color: var(--moss); }

/* Rates */
.rates { margin-top: 72px; }
.rate { margin-top: 24px; }
.rate p { max-width: 64ch; }
.bars { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 19em 1fr 7.5em; gap: 12px; align-items: center; font-size: 15px; }
.track { display: block; height: 14px; background: var(--sunken); border-radius: 7px; overflow: hidden; }
.fill { display: block; height: 100%; background: var(--petrol); border-radius: 7px; }
.bar.leak .fill { background: var(--signal); }
.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.note { font-size: 14px; color: var(--muted); }

.foot { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot p { max-width: 70ch; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }

@media (max-width: 759px) {
  :root { --gutter: 16px; }
  .copy-list { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .grid .corner, .grid .col { display: none; }
  .grid .row { margin-top: 12px; }
  .cell .tag-col { display: block; font-size: 13px; color: var(--muted); }
  .bar { grid-template-columns: 1fr 6.5em; }
  .bar .label { grid-column: 1 / -1; }
}
@media (min-width: 760px) { .cell .tag-col { display: none; } }
