/* VidoGrid — Proof Sheet. Paper, rebate black, amber edge print, two china markers. */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Martian Mono';
  src: url('/fonts/martian-mono.woff2') format('woff2');
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

:root {
  --paper: #f6f6f3;
  --ink: #121212;
  --print: #eceae4;
  --amber: #c98a2b;
  --red: #d8232a;
  /* Marker red darkened for text on the print window (4.9:1 on #eceae4); strokes keep --red. */
  --red-text: #c41e25;
  --yellow: #f2b705;
  --gutter: clamp(16px, 3.4vw, 48px);
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Sprocket holes: rounded slots punched in the rebate, one every 24px. */
  --sprockets: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16'%3E%3Crect x='8' y='4' width='8' height='8' rx='1.6' fill='%23f6f6f3'/%3E%3C/svg%3E");
  --sprockets-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='24'%3E%3Crect x='4' y='8' width='8' height='8' rx='1.6' fill='%23f6f6f3'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  caret-color: var(--red);
}
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: var(--mono); font-stretch: 87.5%; font-size: 12px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--yellow); padding: 6px 10px; z-index: 10; }

/* ---------- masthead ---------- */
.mast {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: 18px var(--gutter); border-bottom: 2px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand b { font: 800 30px/1 var(--sans); font-stretch: 62%; text-transform: uppercase; letter-spacing: 0.01em; }
.nav { display: flex; gap: clamp(14px, 2vw, 28px); font: 600 15px/1 var(--sans); }
.nav a { text-decoration: none; padding: 8px 0 10px; white-space: nowrap; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.nav a[aria-current] {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5.5 C 20 2.5, 45 6.5, 70 3.8 S 92 4.6, 98 3' fill='none' stroke='%23d8232a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") bottom / 100% 8px no-repeat;
}
.search { margin-left: auto; display: flex; }
.search input {
  font: 400 15px var(--sans); color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 0; padding: 8px 12px; width: clamp(160px, 20vw, 280px);
}
.search input::placeholder { color: var(--ink); opacity: 0.62; }
.menu { display: none; }

/* ---------- sheet label (page title) ---------- */
.label { padding: clamp(18px, 2.6vw, 30px) var(--gutter) 16px; display: grid; gap: 8px; }
.label h1 {
  font: 800 clamp(34px, 4.6vw, 62px)/0.95 var(--sans); font-stretch: 62%;
  text-transform: uppercase; letter-spacing: -0.005em;
}
.label p.lede { max-width: 68ch; font-size: 17px; }
.stats { display: flex; flex-wrap: wrap; gap: 6px 22px; font: 600 15px/1.3 var(--sans); font-stretch: 80%; text-transform: uppercase; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
.stats .circled { color: var(--red-text); font-weight: 700; }

/* ---------- film strips: each row of five frames is its own strip, laid on the paper ---------- */
.sheet { margin: 0 0 18px; display: grid; gap: 10px; }
.strip {
  position: relative; background: var(--ink); color: var(--paper);
  padding: 18px var(--gutter) 20px;
  background-image: var(--sprockets), var(--sprockets);
  background-repeat: repeat-x; background-position: 0 0, 0 100%;
}
.strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 4px 0 6px; color: var(--amber); }
.strip-head h2 { font: 700 15px/1 var(--sans); font-stretch: 75%; letter-spacing: 0.12em; text-transform: uppercase; }
.strip-head span { font: 600 14px/1 var(--sans); font-stretch: 80%; }
.strip-foot { display: flex; justify-content: flex-end; padding: 10px 0 0; }
.strip-foot a { color: var(--amber); font: 650 15px/1 var(--sans); font-stretch: 85%; text-decoration-thickness: 1px; }
.strip-foot a:hover { color: var(--paper); text-decoration-color: var(--yellow); }
.frames { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 8px; }
.frames > li { position: relative; display: grid; grid-template-rows: auto 1fr; }
.edge { display: flex; align-items: center; gap: 6px; color: var(--amber); padding: 0 0 6px 2px; }
.edge svg { width: 7px; height: 8px; fill: var(--amber); }
.edge .new { display: none; }
.is-new .edge .new { display: inline; color: var(--ink); background: var(--yellow); padding: 1px 6px; font: 700 13px/1.2 var(--sans); font-stretch: 80%; letter-spacing: 0.06em; }

.frame {
  position: relative; display: flex; flex-direction: column; gap: 7px;
  min-height: 158px; padding: 13px 15px 12px; background: var(--print); color: var(--ink);
  text-decoration: none; transition: background-color 0.25s var(--ease);
}
.frame:hover { background: #fbfbf8; }
.frame:hover .ft { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.frame .src { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.frame .ft { display: block; font: 650 17px/1.22 var(--sans); font-stretch: 86%; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.frame .sum { font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.frame .meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 4px; font-size: 15px; line-height: 1.3; }
.frame .meta .mono { font-size: 13px; }
.frame .meta .ow { display: inline-flex; align-items: center; gap: 4px; color: var(--red-text); font-weight: 600; }
.frame .meta .ow svg { width: 14px; height: 12px; }
.frame .meta .off { color: var(--red-text); font-weight: 600; }
.ring { position: absolute; top: -12px; left: -12px; width: calc(100% + 24px); height: calc(100% + 24px); pointer-events: none; overflow: visible; z-index: 1; }
.ring path { fill: none; stroke: var(--red); stroke-width: 3.2px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* The one authored moment: china-marker loops draw themselves once as their strip comes into view. */
.js .ring path { stroke-dasharray: 1800px; stroke-dashoffset: 1800px; }
.js .drawn .ring path { animation: draw 1.1s var(--ease) 0.15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Nothing printed yet today: the first slot holds an unexposed frame that says so. */
.frames .blank .frame { font-size: 15px; line-height: 1.45; justify-content: center; }
/* "You stopped here": the strip ends at the last new frame and a yellow marker line runs across the
   paper before the frames you have already seen. */
.stop { position: relative; height: 26px; display: flex; align-items: center; padding: 0 var(--gutter); }
.stop::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 5px; background: var(--yellow); transform: rotate(-0.2deg); }
.stop span { position: relative; margin-left: auto; background: var(--yellow); color: var(--ink); padding: 4px 10px; font: 700 14px/1.2 var(--sans); font-stretch: 80%; letter-spacing: 0.06em; }

.more { display: flex; justify-content: flex-end; padding: 6px 0 4px; }
.more a, .btn {
  display: inline-flex; align-items: center; gap: 8px; font: 650 15px/1 var(--sans); font-stretch: 90%;
  border: 2px solid var(--ink); padding: 11px 16px; text-decoration: none; background: var(--paper);
}
.more a:hover, .btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- page body ---------- */
.wrap { padding: 0 var(--gutter); }
.section { padding-block: 26px 34px; }
.section > h2, .h2 {
  font: 800 24px/1.05 var(--sans); font-stretch: 70%; text-transform: uppercase; letter-spacing: 0.01em;
  padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 14px;
}
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.cols h2 { font-size: 19px; }
.prose { max-width: 68ch; font-size: 17px; line-height: 1.62; }
.prose p + p { margin-top: 0.9em; }
.prose-sm { font-size: 15px; }
.prose h2 { font: 800 24px/1.1 var(--sans); font-stretch: 70%; text-transform: uppercase; margin: 1.6em 0 0.5em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.35em; }

/* rows: simple ledgers used in side columns */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--ink); }
.ledger a { text-decoration: none; font-weight: 600; }
.ledger a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.ledger .tag { white-space: nowrap; font: 600 14px/1.2 var(--sans); font-stretch: 80%; letter-spacing: 0.03em; text-transform: uppercase; }

/* tables */
.table-scroll { overflow-x: auto; border-bottom: 2px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 0 0 8px; }
th { font: 700 14px/1.2 var(--sans); font-stretch: 78%; letter-spacing: 0.04em; text-transform: uppercase; text-align: left; vertical-align: bottom; padding: 10px 12px 8px 0; border-bottom: 2px solid var(--ink); white-space: nowrap; }
th a { text-decoration: none; }
th a[aria-current] { color: var(--red-text); }
td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.num { font-family: var(--mono); font-stretch: 87.5%; font-size: 13px; }
td .name { font-weight: 650; text-decoration: none; }
td .name:hover { text-decoration: underline; text-decoration-color: var(--red); }
td .sub { display: block; font-size: 14px; margin-top: 1px; }
td.num .sub { font-family: var(--mono); font-size: 12px; }
tbody tr:hover td { background: var(--print); }
.yes { color: var(--red-text); font-weight: 600; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px 6px; padding: 0 var(--gutter) 18px; }
.filters a { font: 600 14px/1 var(--sans); text-decoration: none; padding: 9px 12px; border: 2px solid var(--ink); }
.filters a[aria-current] { background: var(--ink); color: var(--paper); }
.filters a:hover:not([aria-current]) { background: var(--print); }
.filters .sep { width: 18px; }

.empty { padding: 26px 0; font-size: 17px; }

/* model page */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.facts div { padding: 12px 14px 12px 0; }
.facts div + div { border-left: 1px solid var(--ink); padding-left: 14px; }
.facts dt { font: 700 14px/1.2 var(--sans); font-stretch: 78%; text-transform: uppercase; letter-spacing: 0.04em; }
.facts dd { margin: 6px 0 0; font: 700 20px/1.2 var(--sans); font-stretch: 80%; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- footer (a final strip) ---------- */
.foot {
  margin-top: 30px; background: var(--ink); color: var(--paper);
  background-image: var(--sprockets); background-repeat: repeat-x; background-position: 0 0;
  padding: 34px var(--gutter) 30px;
}
.foot .edge-print { max-width: none; color: var(--amber); margin-bottom: 18px; font: 700 15px/1 var(--sans); font-stretch: 75%; letter-spacing: 0.12em; text-transform: uppercase; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.foot p { max-width: 62ch; font-size: 15px; }
.foot nav { display: grid; gap: 8px; align-content: start; font-size: 15px; }
.foot a { color: var(--paper); }
.foot a:hover { text-decoration-color: var(--yellow); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .strip { overflow-x: auto; scrollbar-color: var(--amber) var(--ink); }
  .frames { grid-template-columns: repeat(5, 210px); }
  .cols { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(n + 3) { border-top: 1px solid var(--ink); }
}
@media (max-width: 860px) {
  .mast { flex-wrap: wrap; row-gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .search input { width: clamp(150px, 38vw, 260px); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  /* The strip turns and runs down the screen: sprockets move to the sides. */
  .strip {
    padding: 12px 30px; background-image: var(--sprockets-v), var(--sprockets-v);
    background-repeat: repeat-y; background-position: 0 0, 100% 0;
  }
  .strip { overflow-x: visible; }
  .frames { grid-template-columns: 1fr; gap: 14px; }
  .table-scroll table { min-width: 760px; }
  .frame { min-height: 0; }
  .cols { grid-template-columns: 1fr; }
  .brand b { font-size: 26px; }
  .search { margin-left: auto; }
  .search input { width: 44vw; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .js .ring path, .js .drawn .ring path { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* prompt guides */
.guide section + section { margin-top: 0.4em; }
.guide .prompt { margin: 1em 0 0.4em; background: var(--print); padding: 14px 18px 16px; }
.guide .prompt figcaption { font: 700 14px/1.2 var(--sans); font-stretch: 78%; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.guide .prompt blockquote { margin: 0; font-size: 16px; line-height: 1.55; }
.note { margin-top: 10px; font-size: 15px; }

/* table glyphs */
.yes-tick, .no-dash { width: 16px; height: 14px; display: inline-block; vertical-align: -2px; }
.yes-tick { color: var(--red-text); }
.ratios { display: inline-flex; flex-wrap: wrap; gap: 3px; max-width: 120px; vertical-align: middle; }
.ratios svg { display: inline-block; }
.frame-ctl { color: var(--ink); vertical-align: middle; }
.table-scroll .note { position: sticky; left: 0; padding: 8px 0 10px; }
.faq dt { font-weight: 700; margin-top: 1em; }
.faq dd { margin: 0.3em 0 0; }
