/* Hallmark · shape: Stage on chroma key · genre: modern-minimal · theme: custom · job: sign up · idea: "the page is a green screen under a loupe: every mark on it was measured by the tool from a real film" · vibe: "green screen, record red, measured, bright, exact"
 * paper: oklch(97.5% 0.012 135) · accent: oklch(58% 0.22 27) · display: Panchang · body: General Sans · hero: the head on chroma green beside a scrubbable trailer whose ruler, cuts, moves and palette are Frame Lens's own reading · nav: edge-aligned, wordmark, five links, GitHub · footer: ink mast, wordmark over links and credits · imagery: product, trailer frames measured by the tool (CC BY 3.0) · signature: the scrubbable loupe over the real reading
 * axes: light/display-heavy/chromatic-green · posture: full palette (field chroma green, signal record red, ink band, paper) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V5 · weakest: E, many switchers; kept them script-optional with every panel shown in order when JavaScript is off */
/* Hallmark · dismissed 58 · the readings table and the install screen hold measured values and copyable commands, code counted as prose */
/* Hallmark · waive 82 · 24 dots on one plotted curve · each dot is where the measured cubic-bezier puts a real frame, a chart of data not a count */
/* Hallmark · waive 64 · mono only on timecodes, frame counts, curves and commands · the product's whole output is measurements */
/* Hallmark · finish-review: subagent · fix · 8 findings · 7 resolved 1 partial (Rive is listed and ships in the same release as this page) · gap: none */
@import url("./tokens.css");
@import url("./base.css");


.skip { position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-modal); padding: var(--space-sm) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-inner); }
.skip:focus-visible { top: var(--space-md); }

code, .num, .code { font-family: var(--font-outlier); }
code { font-size: 0.92em; }
.num { font-variant-numeric: tabular-nums; }

/* Bands */
.field { background: var(--color-field); color: var(--color-field-ink); --color-focus: var(--color-field-ink); }
.ink { background: var(--color-band); color: var(--color-band-ink); --color-focus: var(--color-field); }
.well { background: var(--color-paper-2); }

/* Nav */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-field); color: var(--color-field-ink); border-bottom: 1px solid var(--color-field-rule); --color-focus: var(--color-field-ink); }
.nav__row { display: flex; align-items: center; gap: var(--space-xl); min-height: 64px; }
.wordmark { font: 700 1.05rem/1 var(--font-display); letter-spacing: 0; text-decoration: none; white-space: nowrap; }
.nav__links { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.nav__links a, .nav__gh { text-decoration: none; font-size: var(--text-sm); font-weight: 600; padding-block: var(--space-xs); }
.nav__links a:hover, .nav__gh:hover { text-decoration: underline; }
.nav__gh { margin-left: auto; }
@media (max-width: 60rem) { .nav__links { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--quiet { background: transparent; color: inherit; border-color: currentColor; }
.btn--quiet:hover { background: color-mix(in oklab, currentColor 10%, transparent); }
.btn--small { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color var(--dur-short) linear; } }

.cmd { --color-focus: var(--color-field); display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-field-ink); color: var(--color-field); max-width: 100%; }
.cmd code { font-size: var(--text-sm); white-space: nowrap; overflow-x: auto; min-width: 0; }
.cmd--wide { background: var(--color-ink); color: var(--color-paper); --color-focus: var(--color-paper); }
.cmd .btn--quiet { color: inherit; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.fine { font-size: var(--text-sm); }

/* Hero */
.hero { padding-block: var(--space-2xl) var(--space-3xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: center; }
.hero h1 { font-size: var(--text-display); line-height: 1.04; letter-spacing: var(--tracking-display); font-weight: 700; max-width: 11ch; }
.lead { margin-top: var(--space-lg); font-size: var(--text-lead); max-width: 30ch; }
.hero .actions { margin-top: var(--space-xl); }
.hero .fine { margin-top: var(--space-md); max-width: 44ch; }

.loupe { margin: 0; padding: var(--space-md); border-radius: var(--radius-card); background: var(--color-band); color: var(--color-band-ink); --color-focus: var(--color-field); }
.loupe__frame { aspect-ratio: 16 / 9; border-radius: var(--radius-inner); background: var(--color-ink-2); }
.loupe__frame > img { border-radius: var(--radius-inner); }
.loupe__ruler { position: relative; height: 56px; margin-top: var(--space-sm); }
.loupe__ruler .shot { position: absolute; top: 0; height: 14px; border-radius: 3px; }
.loupe__ruler .cut { position: absolute; top: -2px; width: 2px; height: 26px; background: var(--color-accent); border-radius: 1px; }
.loupe__ruler .trans { position: absolute; top: 18px; height: 8px; border-radius: 4px; background: var(--color-band-muted); }
.loupe__ruler .trans--black { background: var(--color-band-ink); outline: 1px solid var(--color-band-muted); outline-offset: -1px; }
.loupe__ruler .move { position: absolute; top: 30px; height: 8px; border-radius: 4px; background: var(--color-field); }
.loupe__ruler .tick { white-space: nowrap; position: absolute; top: 42px; font: 400 var(--text-xs)/1 var(--font-outlier); color: var(--color-band-muted); transform: translateX(-50%); }
.loupe__ruler .head { position: absolute; top: -6px; width: 2px; height: 46px; background: var(--color-band-ink); border-radius: 1px; transform: translateX(-1px); }
.loupe__controls { display: flex; align-items: center; gap: var(--space-md); margin-top: var(--space-2xs); }
.loupe__controls input { flex: 1; min-width: 0; accent-color: var(--color-field); height: 40px; }
.readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm) var(--space-lg); margin: var(--space-md) 0 0; }
.readout div { min-width: 0; border-top: 1px solid color-mix(in oklab, var(--color-band-ink) 18%, transparent); padding-top: var(--space-xs); }
.readout dt { font-size: var(--text-xs); color: var(--color-band-muted); }
.readout dd { margin: var(--space-3xs) 0 0; font-size: var(--text-sm); }
.readout div:has([data-r="move"]) { grid-column: 1 / -1; order: 3; }
.readout div:has([data-r="palette"]) { order: 2; }
.readout div:has([data-r="shot"]) { order: 1; }
.sw { display: inline-block; width: 22px; height: 22px; margin-right: var(--space-2xs); border-radius: 6px; background: var(--sw); outline: 1px solid color-mix(in oklab, var(--color-band-ink) 25%, transparent); outline-offset: -1px; vertical-align: middle; }
.loupe figcaption { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-band-muted); text-wrap: balance; }

/* Versus */
.versus { padding-block: var(--section-gap-s); }
.versus h2, .goals h2, .sources h2, .export h2, .accuracy h2, .install h2 { font-size: var(--text-section); line-height: 1.08; letter-spacing: var(--tracking-display); font-weight: 700; max-width: 22ch; }
.versus__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); margin-top: var(--space-2xl); align-items: start; }
.versus__label { font-size: var(--text-sm); color: var(--color-muted); }
.versus__quote { text-wrap: balance; margin-top: var(--space-sm); font: 700 var(--text-2xl)/1.2 var(--font-display); color: var(--color-muted); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--color-accent); }
.versus__measured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-2xl); margin: 0; }
.versus__measured div { border-top: 2px solid var(--color-ink); padding-top: var(--space-sm); min-width: 0; }
.versus__measured dt { font-size: var(--text-sm); color: var(--color-ink-2); }
.versus__measured dd { margin: var(--space-2xs) 0 0; font-size: var(--text-xl); font-weight: 600; overflow-wrap: anywhere; }
.versus__truth { margin-top: var(--space-sm); font-size: var(--text-xl); font-weight: 600; overflow-wrap: anywhere; }
.versus__said .versus__label + .versus__truth + .versus__label { margin-top: var(--space-xs); }
.demo { display: block; width: 100%; height: auto; margin-top: var(--space-2xl); border-radius: var(--radius-card); background: var(--color-band); }
.versus__note { margin-top: var(--space-md); color: var(--color-ink-2); }

/* Switchers */
.goals { padding-block: var(--section-gap-s); }
.goals__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; margin-top: var(--space-xl); }
.goals__grid .switch { margin-top: 0; }
.sheet { margin: 0; padding: var(--space-sm); border-radius: var(--radius-card); background: var(--color-band); color: var(--color-band-muted); }
.sheet__grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--space-2xs); margin: 0; padding: 0; list-style: none; }
.sheet__grid li { position: relative; min-width: 0; }
.sheet__grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.sheet__grid .has-cut::after { content: ""; position: absolute; top: 0; right: -3px; width: 2px; height: 100%; background: var(--color-accent); border-radius: 1px; }
.sheet figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); text-wrap: balance; }
.switch { margin-top: var(--space-xl); }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
@media (max-width: 40rem) { .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: var(--space-2xs); scrollbar-width: thin; } .tabs [role="tab"] { flex-shrink: 0; } }
.tabs [role="tab"] { min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.tabs [role="tab"]:hover { background: var(--color-paper-3); }
.tabs [role="tab"][aria-selected="true"] { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.tabs [role="tab"]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.panel { margin-top: var(--space-lg); }
.ask { font: 700 var(--text-xl)/1.3 var(--font-display); max-width: 34ch; }
.passes { margin: var(--space-lg) 0 0; padding: 0; list-style: none; counter-reset: pass; display: grid; gap: var(--space-xs); max-width: 62ch; }
.passes li { counter-increment: pass; position: relative; padding: var(--space-sm) 0 var(--space-sm) var(--space-xl); border-top: 1px solid var(--color-rule); }
.passes li::before { content: counter(pass); position: absolute; left: 0; top: calc(var(--space-sm) + 0.3em); font: 600 var(--text-sm)/1 var(--font-outlier); color: var(--color-accent); }
.passes code { font-weight: 600; margin-right: var(--space-xs); }

/* Sources */
.sources { padding-block: var(--section-gap-s); }
.readings { width: 100%; margin-top: var(--space-2xl); border-collapse: collapse; }
.readings th, .readings td { text-align: left; vertical-align: top; padding: var(--space-md) var(--space-lg) var(--space-md) 0; border-top: 1px solid color-mix(in oklab, var(--color-band-ink) 18%, transparent); }
.readings thead th { font-size: var(--text-sm); font-weight: 600; color: var(--color-band-muted); white-space: nowrap; border-top: 0; }
.readings tbody th { font-weight: 600; font-size: var(--text-md); width: 32%; }
.readings td { font-size: var(--text-md); color: var(--color-band-muted); }
.readings td.num { color: var(--color-field); font-size: var(--text-lg); width: 44%; }
@media (max-width: 60rem) {
  .readings, .readings tbody { display: block; width: 100%; }
  .readings thead { display: none; }
  .readings tr { display: grid; gap: var(--space-2xs); padding: var(--space-md) 0; border-top: 1px solid color-mix(in oklab, var(--color-band-ink) 18%, transparent); }
  .readings th, .readings td { padding: 0; border: 0; display: block; }
  .readings tbody th, .readings td.num { width: auto; }
}

/* Export */
.export { padding-block: var(--section-gap-s); }
.export__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; margin-top: var(--space-2xl); }
.export__text p { margin-top: 0; }
.code-switch { margin-top: 0; }
.curve { margin: var(--space-xl) 0 0; }
.curve svg { width: 100%; max-width: 420px; height: auto; }
.curve .axis { stroke: var(--color-rule); stroke-width: 1; fill: none; }
.curve .path { stroke: var(--color-ink); stroke-width: 3; fill: none; stroke-linecap: round; }
.curve .handle { stroke: var(--color-accent); stroke-width: 1.5; fill: none; }
.curve .knob { fill: var(--color-accent); }
.curve .dot { fill: var(--color-field-rule); }
.curve figcaption { text-wrap: balance; margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); max-width: 42ch; }
.code { margin: var(--space-lg) 0 0; padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-band); color: var(--color-band-ink); font-size: var(--text-md); line-height: 1.7; overflow-x: auto; min-height: 300px; }
.code .c { color: var(--color-band-muted); }
.code:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.code--light { margin-top: 0; min-height: 0; padding: var(--space-lg); font-size: var(--text-sm); }

/* Accuracy */
.accuracy { padding-block: var(--section-gap-s); }
.figures { margin: var(--space-2xl) 0 0; }
.figures div { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: baseline; gap: var(--space-2xl); padding-block: var(--space-md); border-top: 2px solid var(--color-ink); }
.figures dd { margin: 0; font: 700 clamp(3rem, 5vw + 1rem, 6rem)/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.figures dt { font-size: var(--text-lg); font-weight: 600; max-width: 28ch; }
.accuracy__note { margin-top: var(--space-xl); max-width: 62ch; }

/* Install */
.install { padding-block: var(--section-gap-s); }
.install__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.install .ways > li { border-top-color: var(--color-field-ink); }
.install .ways .fine { color: var(--color-field-ink); }
.install__intro { margin-top: var(--space-lg); max-width: 60ch; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; }
.ways > li { display: flex; flex-direction: column; gap: var(--space-md); padding-top: var(--space-md); border-top: 2px solid var(--color-ink); min-width: 0; }
.ways h3 { font: 600 var(--text-lg)/1.3 var(--font-body); }
.ways .fine { color: var(--color-ink-2); }
.ways .cmd--wide { width: 100%; min-width: 0; justify-content: space-between; border-radius: var(--radius-card); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md); }
.ways .cmd code { white-space: normal; overflow-wrap: anywhere; }
.ways .code--light { margin: 0; }

/* Footer */
.foot { padding-block: var(--space-2xl); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-lg) var(--space-2xl); }
.wordmark--foot { font-size: var(--text-2xl); }
.foot__links { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); align-items: center; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
.foot__fine { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--color-band-muted); }

@media (max-width: 60rem) {
  .hero__grid, .versus__grid, .export__grid, .ways, .goals__grid, .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .figures div { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .sheet__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { padding-block: var(--space-xl) var(--space-2xl); }
}
@media (max-width: 40rem) {
  .readout { grid-template-columns: minmax(0, 1fr); }
  .versus__measured { grid-template-columns: minmax(0, 1fr); }
  .cmd { width: 100%; justify-content: space-between; }
}
