:root {
  --bg: #ffffff;
  --soft: #fafafa;
  --fg: #0a0a0a;
  --muted: #737373;
  --faint: #a3a3a3;
  --line: #ebebeb;
  --line2: #f2f2f2;
  --green: #16a34a;
  --red: #dc2626;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
body { font-family: var(--sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
::selection { background: var(--fg); color: #fff; }
.muted { color: var(--muted); }

.nav {
  height: 56px; flex: none;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 20px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(1.8) blur(12px);
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 24px; height: 24px; display: block; }
.links { display: flex; gap: 4px; }
.links a { text-decoration: none; color: var(--muted); padding: 6px 12px; border-radius: 999px; font-size: 13.5px; transition: color .15s, background .15s; }
.links a:hover { color: var(--fg); }
.links a.on { color: var(--fg); background: var(--line2); font-weight: 500; }
.nav-right { display: flex; justify-content: flex-end; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.live-pill b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); } }

.foot { flex: none; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }

/* the meme itself (shared by live + archive) */
.mm { position: relative; container-type: inline-size; overflow: hidden; background: #fff; width: 100%; }
.mm-art, .mm-bg, .mm-layers, .mm-over { position: absolute; inset: 0; }
.mm-art { transition: filter .6s; }
.mm-bg { transition: background .6s; }
.mm-tpl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-tpl[hidden] { display: none; }
.mm-layer {
  position: absolute; line-height: 1.05; text-align: center; pointer-events: none;
  transition: left .7s cubic-bezier(.3, 1.2, .5, 1), top .7s cubic-bezier(.3, 1.2, .5, 1), transform .7s cubic-bezier(.3, 1.2, .5, 1), font-size .5s, width .5s, height .5s, color .4s;
  overflow-wrap: break-word;
}
.mm-text { font-weight: 700; }
.mm-text.caps { text-transform: uppercase; font-weight: 400; letter-spacing: .01em; }
.mm-text.outlined { -webkit-text-stroke: .11em #000; paint-order: stroke fill; }
.mm-emoji { white-space: nowrap; line-height: 1; filter: drop-shadow(0 .4cqw .6cqw rgba(0,0,0,.3)); }
.mm-shape { border: .9cqw solid var(--c); }
.mm-shape.filled { background: var(--c); }
.mm-shape[data-shape="ellipse"] { border-radius: 50%; }
.mm-shape[data-shape="rect"] { border-radius: .6cqw; }
.mm-shape[data-shape="line"], .mm-shape[data-shape="arrow"] { border: 0; background: var(--c); border-radius: 1cqw; }
.mm-shape[data-shape="arrow"]::after { content: ""; position: absolute; right: -1.2cqw; top: 50%; transform: translateY(-50%); border: 2.4cqw solid transparent; border-left: 3.4cqw solid var(--c); border-right: 0; }
.mm-layer.enter { animation: enter .55s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes enter { from { opacity: 0; scale: .6; } }
.mm-layer.leave { animation: leave .35s ease both; }
@keyframes leave { to { opacity: 0; scale: .8; } }

/* prose pages */
.page { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 72px 20px 96px; }
.eyebrow { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
.page h1 { font-size: 44px; line-height: 1.08; letter-spacing: -.035em; font-weight: 600; margin-bottom: 16px; }
.page .lede { font-size: 17px; color: var(--muted); max-width: 640px; }
.page h2 { font-size: 22px; letter-spacing: -.02em; font-weight: 600; margin: 56px 0 14px; }
.page p, .page li { color: #404040; margin-bottom: 12px; }
.page ul, .page ol { padding-left: 20px; }
.page code { font-family: var(--mono); font-size: 12.5px; background: var(--line2); padding: 1px 6px; border-radius: 6px; }
.page table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 8px 0 16px; }
.page th, .page td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.page th { font-size: 12px; font-weight: 500; color: var(--muted); }
.page td code { background: none; padding: 0; color: var(--muted); }
.logo-cell { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.lab-logo { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; flex: none; }
.lab-logo img { width: 15px; height: 15px; display: block; }
.card-note { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--soft); font-size: 13.5px; color: #404040; margin: 28px 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 18px 0; }
.kpis div { padding: 14px 16px; border-right: 1px solid var(--line); }
.kpis div:last-child { border-right: 0; }
.kpis span { display: block; font-size: 12px; color: var(--muted); }
.kpis b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 500; text-decoration: none; border: 1px solid var(--line); }
.btn.primary { background: var(--fg); color: #fff; border-color: var(--fg); }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 16px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--fg); }

@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; padding: 0 14px; }
  .links { grid-column: 1 / -1; grid-row: 2; padding-bottom: 10px; }
  .nav { height: auto; padding-top: 10px; row-gap: 8px; }
  .page { padding-top: 44px; }
  .page h1 { font-size: 32px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpis div:nth-child(2) { border-right: 0; }
  .kpis div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.brand img.wordmark { width: auto; height: 22px; }
.nav-right { gap: 8px; align-items: center; }
.ca-pill { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; white-space: nowrap; transition: border-color .15s; }
.ca-pill:hover { border-color: var(--fg); }
.ca-pill span { color: var(--muted); font-weight: 500; }
.ca-pill b { font-family: var(--mono); font-weight: 500; font-size: 12px; }
@media (max-width: 760px) { .nav-right .live-pill { display: none; } }
