@font-face { font-family: "Archivo"; src: url("archivo-var-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("geist-mono-var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0e0f0c; --ink-2: #17180f; --ink-3: #22231a; --ink-4: #2c2d24;
  --paper: #f2efe6; --paper-2: #e7e3d6;
  --lime: #b3fe01; --red: #e8342a;
  --muted: #b4b1a6; --muted-p: #4e4d45;
  --rule: rgba(242, 239, 230, 0.16); --rule-p: rgba(14, 15, 12, 0.16);
  --move: cubic-bezier(0.65, 0.05, 0, 1); --settle: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Archivo", "Arial Narrow", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 2.6vw, 40px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 17px/1.5 var(--sans); font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: clip; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.poster { font-stretch: 125%; font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -0.015em; }
.illus { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* top bar */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 var(--gut); background: var(--ink); border-bottom: 1px solid var(--rule); }
.top .mk { height: 20px; width: auto; flex: none; }
.top .ep { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.top .ep b { font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 16px; white-space: nowrap; }
.top .ep span { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs { display: flex; margin-left: auto; height: 100%; }
.tabs button { height: 100%; padding: 0 16px; background: none; border: 0; border-bottom: 3px solid transparent; font-weight: 700; font-size: 16px; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.tabs button[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--lime); }
.tabs .n { font-family: var(--mono); font-size: 13px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; background: var(--ink-3); color: var(--paper); }
.tabs .n.full { background: var(--lime); color: var(--ink); }
@media (max-width: 760px) {
  .top { gap: 10px; }
  .top .ep span { display: none; }
  .tabs button { padding: 0 9px; font-size: 15px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 0; background: var(--ink-3); color: var(--paper); font-weight: 700; font-size: 16px; font-stretch: 108%; cursor: pointer; text-decoration: none; transition: background 100ms, color 100ms; }
.btn:hover { background: var(--ink-4); }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.lime:hover { background: var(--paper); }
.btn.paper { background: var(--paper); color: var(--ink); }
.btn.line { background: transparent; box-shadow: inset 0 0 0 2px var(--rule); }
.btn.line:hover { box-shadow: inset 0 0 0 2px var(--paper); }
.btn kbd { font: 500 12px var(--mono); padding: 2px 6px; box-shadow: inset 0 0 0 1px currentColor; opacity: .7; }
.btn:active { transform: translateY(1px); }

/* checks: readable labels, mono values */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.checks li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
.checks li b { font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--lime); white-space: nowrap; }
.checks li.warn b { color: var(--red); }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; } }

/* timeline (from kerf-core) */
.kt { position: relative; user-select: none; }
.kt-ruler { position: relative; height: 22px; border-bottom: 1px solid var(--rule); }
.kt-ruler span { position: absolute; top: 2px; transform: translateX(-50%); font: 400 13px var(--mono); color: var(--muted); }
.kt-lanes { display: grid; gap: 4px; margin-top: 10px; }
.kt-lane { display: grid; grid-template-columns: 56px 1fr; align-items: center; }
.kt-name { font-size: 14px; font-weight: 700; color: var(--muted); }
.kt-lane[data-who="G"] .kt-name { color: var(--paper); }
.kt-track { position: relative; height: 12px; background: var(--ink-2); }
.kt-track i { position: absolute; top: 0; bottom: 0; background: var(--ink-4); }
.kt-lane[data-who="G"] .kt-track i { background: var(--paper); }
.kt-wave { margin: 8px 0 0 56px; height: 72px; }
.kt-wave svg { width: 100%; height: 100%; display: block; }
.kt-wave rect { fill: #55564b; }
.kt-wave rect.on { fill: var(--paper); }
.kt-wave rect.on.h { fill: #8f8d84; }
.kt-over { position: absolute; left: 56px; right: 0; top: 22px; bottom: 0; }
.kt-dim { position: absolute; top: 0; bottom: 0; background: rgba(14, 15, 12, 0.55); pointer-events: none; }
.kt-sel { position: absolute; top: 0; bottom: 0; box-shadow: inset 0 0 0 2px var(--lime); pointer-events: none; }
.kt-mark { position: absolute; top: -6px; bottom: -6px; width: 22px; margin-left: -11px; background: none; border: 0; cursor: ew-resize; padding: 0; touch-action: none; }
.kt-mark::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 4px; background: var(--lime); }
.kt-mark span { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 500 13px var(--mono); color: var(--lime); }
.kt-mark[data-kind="in"] span { left: 0; transform: none; }
.kt-mark[data-kind="out"] span { left: auto; right: 0; transform: none; }
.kt-head { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--paper); pointer-events: none; }

/* transcript (from kerf-core) */
.ktx-turn { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 10px 0; }
.ktx-meta { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }
.ktx-who { font-size: 15px; font-weight: 700; }
.ktx-turn[data-who="H"] .ktx-who { color: var(--muted); }
.ktx-tc { font: 400 13px var(--mono); color: var(--muted); }
.ktx-p { font-size: 19px; line-height: 1.55; color: var(--muted); }
.ktx-turn[data-who="G"] .ktx-p { color: var(--paper); }
.ktx-w { cursor: pointer; }
.ktx-w.in { background: rgba(179, 254, 1, 0.14); color: var(--paper); }
.ktx-w.first, .ktx-w.last { background: var(--lime); color: var(--ink); }
.ktx-w.cur { box-shadow: inset 0 -3px 0 var(--paper); }
.ktx-gap { padding: 8px 0 8px 92px; font: 400 13px var(--mono); color: var(--muted); }
.ktx.excerpt .ktx-turn:not(.has):not(.near), .ktx.excerpt .ktx-gap { display: none; }

/* overview (from kerf-core) */
.kov { position: relative; padding-bottom: 22px; }
.kov-lanes { display: grid; gap: 3px; }
.kov-lane { position: relative; height: 12px; }
.kov-lane i { position: absolute; top: 0; bottom: 0; background: var(--paper); }
.kov-marks { position: absolute; inset: 0 0 22px; }
.kov-clip { position: absolute; top: -6px; bottom: -6px; min-width: 6px; background: none; border: 2px solid var(--muted); padding: 0; cursor: pointer; }
.kov-clip span { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font: 500 12px var(--mono); color: var(--muted); }
.kov-clip[data-verdict="select"] { border-color: var(--lime); }
.kov-clip[data-verdict="select"] span { color: var(--lime); }
.kov-clip.on { background: var(--lime); }
.kov-ruler { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; }
.kov-ruler span { position: absolute; font: 400 12px var(--mono); color: var(--muted); }

/* phone */
.phone { position: relative; border-radius: 30px; background: #000; padding: 7px; box-shadow: 0 0 0 1px var(--rule); }
.phone .kp { border-radius: 24px; }

/* hard cut flash */
.flash { position: fixed; inset: 0; z-index: 99; background: var(--lime); pointer-events: none; opacity: 0; }
.flash.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; } }
