:root {
  --wall: #e4e6e8;
  --paper: #f2f3f4;
  --ink: #1e2226;
  --quiet: #5d656d;
  --ochre: #a8741a;
  --slate: #3b6584;
  --vermilion: #c0392b;
  --cell: #cfd3d7;
  --serif: "Spectral", Georgia, serif;
  --narrow: "Archivo Narrow", "Arial Narrow", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --wall: #1c1f22;
    --paper: #24282c;
    --ink: #e3e5e7;
    --quiet: #9aa2aa;
    --ochre: #d39a3a;
    --slate: #7aa6c6;
    --vermilion: #e0604f;
    --cell: #33383d;
  }
}
* { box-sizing: border-box; }
html { background: var(--wall); }
body {
  margin: 0 auto;
  max-width: 68rem;
  padding: 2.5rem 1rem 4rem;
  background: var(--wall);
  color: var(--ink);
  font: 1.125rem/1.6 var(--serif);
}
a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2 { font-weight: 600; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; margin-bottom: 1rem; }
section { margin-top: 3.5rem; }
figure { margin: 0; }
figcaption, .legend, .axis, .back, .line, dt {
  font-family: var(--narrow);
  color: var(--quiet);
  font-size: 0.95rem;
}
figcaption { margin-top: 0.4rem; }

/* overview */
.home-head p { max-width: 36rem; margin: 1rem 0 0; }
.runs { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; gap: 2.5rem 1.5rem;
        grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.runs a { display: grid; gap: 0.3rem; text-decoration: none; }
.runs a:hover .name { text-decoration: underline; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 0.5rem; }
.thumbs img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.name { font-size: 1.3rem; font-weight: 600; }
footer { margin-top: 5rem; max-width: 36rem; color: var(--quiet); font-size: 0.95rem; }

/* run page */
.back { margin: 0 0 1.5rem; }
.verdict { font-size: 1.3rem; font-style: italic; margin: 0.75rem 0 0; max-width: 36rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 46rem; }
.pair img { width: 100%; }
.movies { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; }
.movies video { width: 100%; background: #000; }
.story p { max-width: 36rem; margin: 0 0 1rem; }

/* the charts: the one loud thing */
.bars { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 1px;
        align-items: end; height: 11rem; background: var(--paper); padding: 0.5rem; }
.bar { height: var(--h); background: var(--ink); opacity: 0.55; min-height: 1px; }
.bar.tip { background: var(--vermilion); opacity: 1; }
.axis { display: flex; justify-content: space-between; margin-top: 0.3rem; }
.strips { display: grid; gap: 3px; background: var(--paper); padding: 0.75rem 0.5rem; }
.strip { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: 0.5rem; }
.strip span { font-family: var(--narrow); font-size: 0.95rem; text-align: right;
              overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip.gone span { color: var(--ochre); }
.strip.came span { color: var(--slate); }
.cells { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 1px; height: 1.1rem; }
.cells i { background: var(--cell); }
.strip.gone .cells i.on { background: var(--ochre); }
.strip.came .cells i.on { background: var(--slate); }
.cells i.tip { box-shadow: inset 0 0 0 1px var(--vermilion); }
.legend { max-width: 36rem; margin: 0.75rem 0 0; }
.filmstrip div { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem; }
.details dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; margin: 0; }
.details dd { margin: 0; }

@media (max-width: 40rem) {
  body { font-size: 1.05rem; padding-top: 1.5rem; }
  .strip { grid-template-columns: 5rem 1fr; }
  .details dl { grid-template-columns: 1fr; }
  .details dd { margin-bottom: 0.5rem; }
}

/* hover a chart column: that round's picture */
.peek-area { position: relative; touch-action: pan-y; }   /* sideways drags scrub, vertical scrolls */
.peek-line { position: absolute; top: 0; bottom: 0; pointer-events: none;
             background: var(--vermilion); opacity: 0.25; }
.peek { position: fixed; z-index: 10; pointer-events: none; background: var(--paper);
        padding: 4px; box-shadow: 0 2px 10px rgb(0 0 0 / 0.25); }
.peek img { display: block; width: 200px; height: auto; }
.peek span { display: block; font-family: var(--narrow); font-size: 0.9rem;
             color: var(--quiet); padding: 2px 2px 0; }
.peek[hidden], .peek-line[hidden] { display: none; }

/* round by round */
.more { font-family: var(--narrow); font-size: 1.05rem; }
.how p { max-width: 40rem; }
.prompt { margin: 1.25rem 0 0; padding: 1rem 1.25rem; max-width: 44rem; background: var(--paper);
          border-left: 3px solid var(--slate); font-size: 1rem; }
.prompt p { margin: 0 0 0.75rem; }
.prompt p:last-child { margin-bottom: 0; }
.losses { padding-left: 1.2rem; max-width: 44rem; }
.losses li { margin-bottom: 0.4rem; }
.round { display: grid; grid-template-columns: 200px minmax(0, 40rem); gap: 0 1.5rem;
         margin: 0 0 2.5rem; scroll-margin-top: 1rem; }
.round h3 { margin: 0; font-size: 1.15rem; }
.round img { position: sticky; top: 1rem; align-self: start; }
.round p { margin: 0 0 0.8rem; }
.round .legend { margin-bottom: 0.6rem; }
mark { background: color-mix(in srgb, var(--ochre) 30%, transparent); color: inherit; padding: 0 0.1em; }
.lost { margin: 0 0 1.5rem; padding: 0.6rem 1rem; max-width: calc(200px + 1.5rem + 40rem);
        border-left: 3px solid var(--vermilion); background: var(--paper);
        font-family: var(--narrow); font-size: 1.05rem; scroll-margin-top: 1rem; }
.lost.tipped { border-left-color: var(--slate); }
@media (max-width: 40rem) {
  .round { grid-template-columns: 1fr; }
  .round img { position: static; width: 160px; margin-bottom: 0.6rem; }
}

/* same words, painted again */
.repaints .grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.repaints figcaption { text-align: center; margin-top: 0.2rem; }
.pair-prompt { display: grid; grid-template-columns: 220px minmax(0, 44rem); gap: 1.5rem; align-items: start; }
.pair-prompt .prompt { margin: 0; }
@media (max-width: 40rem) { .pair-prompt { grid-template-columns: 1fr; } .original img { width: 200px; } }
