/* Press clips page (/press/): Cinder material, calm. Neutral states; the action colour only as the
   selected tab's underline, the title ticks and small eyebrows. Every download button, zips included,
   is the same neutral button. No solid accent fills: every state keeps off-white ink on
   a dark ground, or crude ink on the off-white selected block.
   Accent is consumed, never restated: --action is martian red under Cinder (the default), the
   visitor's accent otherwise. Squared radii: 4px containers, 3px controls. */

@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/RobotoCondensed-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/RobotoCondensed-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/RobotoCondensed-latin-600.woff2') format('woff2'); }

:root {
  --bg: #0c0a09;
  --panel: rgba(250, 247, 232, 0.025);
  --well: rgba(0, 0, 0, 0.35);
  --line: rgba(250, 247, 232, 0.1);
  --line-strong: rgba(250, 247, 232, 0.16);
  --hover: rgba(250, 250, 229, 0.07);
  --edge: rgba(250, 250, 229, 0.38);
  --choice: rgba(250, 250, 229, 0.9);
  --choice-ink: #0b0b0b;
  --ink-hi: rgba(250, 250, 229, 0.92);
  --ink: rgba(250, 250, 229, 0.75);
  --ink-2: rgba(250, 250, 229, 0.52);
  --bracket: rgba(250, 250, 229, 0.3);
  --action: var(--accent);
  --action-ink: var(--accent-ink);
  --display: var(--font-display);
}
:root[data-accent='cinder'] {
  --action: #ff4700;
  --action-ink: #0b0b0b;
  --display: 'Roboto Condensed', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--ink-hi); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { color: var(--action); }
:focus-visible { outline: 2px solid rgba(250, 250, 229, 0.75); outline-offset: 2px; }

.top {
  display: flex; align-items: center; gap: 14px;
  max-width: 1160px; margin: 0 auto; padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-hi); text-decoration: none; font-weight: 600; letter-spacing: .04em; }
.brand img { display: block; }
.top-label { color: var(--ink-2); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding-left: 14px; border-left: 1px solid var(--line-strong); }

main { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.intro { padding: 44px 0 24px; }
.eyebrow, .clip-eyebrow {
  margin: 0; color: var(--action); font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
}
h1 { margin: 8px 0 14px; color: var(--ink-hi); font-size: clamp(30px, 5vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: .01em; }
.lead { margin: 0 0 10px; max-width: 46em; color: var(--ink-hi); font-size: 19px; }
.facts { margin: 0; max-width: 52em; color: var(--ink-2); font-size: 15px; }
.updated { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-strong); overflow-x: auto; scrollbar-width: none; }
.tab {
  appearance: none; display: inline-flex; align-items: center; gap: 10px; flex: none;
  margin-bottom: -1px; padding: 12px 18px; border: 0; border-bottom: 2px solid transparent; border-radius: 3px 3px 0 0;
  background: transparent; color: var(--ink-2); font: 600 18px/1.2 var(--display); letter-spacing: .03em; cursor: pointer;
}
.tab:hover { color: var(--ink-hi); background: var(--hover); }
.tab[aria-selected='true'] { color: var(--ink-hi); border-bottom-color: var(--action); }
.tab:focus-visible { outline: 2px solid rgba(250, 250, 229, 0.85); outline-offset: -2px; }
.tab-count { min-width: 22px; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--ink); font: 500 12px/1.2 var(--font-mono); text-align: center; }
.tab[aria-selected='true'] .tab-count { border-color: var(--edge); color: var(--ink-hi); }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px;
  margin: 16px 0 8px; padding: 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel);
}
.toolbar[hidden] { display: none; }
.panel:focus-visible { outline: 2px solid rgba(250, 250, 229, 0.5); outline-offset: 4px; }
.panel-note { margin: 18px 0 16px; color: var(--ink-2); font-size: 14px; }
.panel-note a { font-family: var(--font-mono); font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { color: var(--ink-2); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.zips { display: flex; flex-wrap: wrap; gap: 10px; }

/* Segmented choice: a selected option is an off-white block with crude ink, never a red slab. */
.seg { display: inline-flex; align-self: flex-start; border: 1px solid var(--line-strong); border-radius: 3px; padding: 2px; gap: 2px; background: var(--well); }
.seg button {
  appearance: none; border: 0; border-radius: 2px; background: transparent; color: var(--ink);
  font: 500 14px/1 var(--display); letter-spacing: .03em; padding: 8px 14px; min-height: 34px; cursor: pointer;
}
.seg button:hover { background: var(--hover); color: var(--ink-hi); }
.seg button[aria-pressed='true'], .seg button[aria-pressed='true']:hover { background: var(--choice); color: var(--choice-ink); }
.seg button:active { background: rgba(250, 250, 229, 0.16); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 3px; background: transparent; color: var(--ink-hi);
  font: 500 14px/1.2 var(--display); letter-spacing: .03em; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: rgba(250, 250, 229, 0.55); background: rgba(250, 250, 229, 0.1); color: #fff; }
.btn:active { background: rgba(250, 250, 229, 0.16); }
.btn:focus-visible { outline: 2px solid rgba(250, 250, 229, 0.85); outline-offset: 2px; }
.btn .size { color: var(--ink); font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.btn:hover .size { color: var(--ink-hi); }
.btn svg { width: 16px; height: 16px; flex: none; stroke-linecap: square; stroke-linejoin: miter; }
.btn[data-busy] { cursor: progress; }


.clip {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 0;
  margin-bottom: 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel);
}
/* L-shaped corner marks on a target (design-language section 2), dim: nothing here is "active". */
.clip::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  --fl: 12px; --ft: 2px;
  background-image: linear-gradient(var(--bracket), var(--bracket)), linear-gradient(var(--bracket), var(--bracket)),
    linear-gradient(var(--bracket), var(--bracket)), linear-gradient(var(--bracket), var(--bracket)),
    linear-gradient(var(--bracket), var(--bracket)), linear-gradient(var(--bracket), var(--bracket)),
    linear-gradient(var(--bracket), var(--bracket)), linear-gradient(var(--bracket), var(--bracket));
  background-repeat: no-repeat;
  background-size: var(--fl) var(--ft), var(--ft) var(--fl), var(--fl) var(--ft), var(--ft) var(--fl),
    var(--fl) var(--ft), var(--ft) var(--fl), var(--fl) var(--ft), var(--ft) var(--fl);
  background-position: top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right;
}

.stage { display: flex; align-items: center; justify-content: center; min-width: 0; background: rgba(0, 0, 0, 0.45); border-right: 1px solid var(--line); border-radius: 4px 0 0 4px; overflow: hidden; }
.stage video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.stage[data-shape='4x5'] video { width: auto; max-width: 100%; height: min(70vh, 600px); aspect-ratio: 4 / 5; }

.meta { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 20px; }
.clip-head h3 { position: relative; margin: 6px 0 4px; padding-left: 12px; color: var(--ink-hi); font-size: 22px; font-weight: 600; line-height: 1.2; }
/* The window-title tick. */
.clip-head h3::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 2px; background: var(--action); }
.hook { margin: 0; color: var(--ink); font-size: 15px; }
.mute-hint { color: var(--ink-2); font-size: 12px; }
.mute-hint[hidden] { display: none; }
.dur { color: var(--ink-2); font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.controls { display: flex; flex-wrap: wrap; gap: 14px 20px; }

.label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dl-shape { color: var(--ink-hi); font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.downloads .btn, .zips .btn { justify-content: space-between; width: 100%; min-width: 0; padding: 8px 10px; }
.zips .btn { width: auto; min-width: 170px; gap: 16px; }
.downloads .btn .size, .zips .btn .size { font-size: 11px; white-space: nowrap; }
.downloads .btn[data-current] { border-color: var(--edge); background: var(--hover); }

.caption { border: 1px solid var(--line); border-radius: 3px; background: var(--well); }
.caption-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 0 12px; }
.caption p { margin: 0; padding: 8px 12px 12px; color: var(--ink-hi); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.caption .btn { min-height: 30px; padding: 5px 10px; font-size: 13px; }

.loading { color: var(--ink-2); padding: 40px 0; }

/* Crawlable clip list (generated into the page; press.js replaces it with the cards). */
.static-list { padding: 8px 0 24px; color: var(--ink); }
.static-list h2 { margin: 24px 0 8px; color: var(--ink-hi); font-size: 20px; }
.static-list ul { margin: 0; padding-left: 18px; }
.static-list li { margin: 6px 0; }

/* About & logos tab: the fact sheet and the logo pack, written in the page. */
.about { padding: 8px 0 8px; }
.about[hidden] { display: none; }
.about-title { margin: 24px 0 14px; color: var(--ink-hi); font-size: 22px; font-weight: 600; letter-spacing: .02em; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-card, .logo-tile, .facts-list { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.about-card { padding: 18px 20px; }
.about-card h3 { margin: 6px 0 8px; color: var(--ink-hi); font-size: 19px; font-weight: 600; }
.about-card p { margin: 0; }
.about-card p + p { margin-top: 8px; }
.facts-list { margin-top: 16px; padding: 4px 20px; }
.facts-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts-list > div:first-child { border-top: 0; }
.facts-list dt { color: var(--ink-2); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.facts-list dd { margin: 0; color: var(--ink-hi); }
.logo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.logo-preview { display: flex; align-items: center; justify-content: center; height: 200px; border-bottom: 1px solid var(--line); border-radius: 4px 4px 0 0; }
.logo-preview img { width: 140px; height: 140px; object-fit: contain; }
.logo-preview.on-black { background: #000; }
.logo-preview.on-dark { background: #2a2622; }
.logo-tile figcaption { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.logo-name { color: var(--ink-hi); font-weight: 600; font-size: 16px; }
.logo-note { color: var(--ink-2); font-size: 14px; }
.logo-dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.logo-dl .btn, .logo-all .btn { padding: 8px 10px; gap: 14px; justify-content: space-between; }
.logo-dl .btn .size, .logo-all .btn .size { font-size: 11px; white-space: nowrap; }
.logo-all { margin: 16px 0 0; }

.credits { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.credits p { margin: 0; }
.credits strong { color: var(--ink); font-weight: 500; }
/* The shared static footer (renderStaticFooter), held to the page width. */
body > footer.ef-static-footer { max-width: 1160px; margin: 32px auto 0; padding: 22px 20px 40px; }


@media (max-width: 860px) {
  .about-grid, .logo-grid { grid-template-columns: 1fr; }
  .clip { grid-template-columns: 1fr; }
  .stage { border-right: 0; border-bottom: 1px solid var(--line); border-radius: 4px 4px 0 0; }
  .stage[data-shape='4x5'] video { width: 100%; height: auto; }
}
@media (max-width: 520px) {
  main, .top, body > footer.ef-static-footer { padding-left: 16px; padding-right: 16px; }
  .intro { padding-top: 28px; }
  .lead { font-size: 17px; }
  .meta { padding: 16px; }
  .zips, .zips .btn { width: 100%; }
  .zips .btn { justify-content: space-between; }
  .tab { padding: 12px 12px; font-size: 16px; }
  .facts-list > div { grid-template-columns: 1fr; gap: 4px; }
  .toolbar .field { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
