/* The Motion Library: site styles.
 * Quiet and literate: navy ink, warm parchment and a gold accent. The reels supply the colour.
 * Plain CSS, mobile first. Tokens first, then base, layout, components, and one section per page.
 */

/* ------------------------------------------------------------------ tokens */

:root {
  color-scheme: light;
  --paper: #f3ede1;
  --paper-2: #ebe3d2;
  --card: #f8f4ea;
  --ink: #18213a;
  --ink-2: #4a5470;
  --line: rgba(24, 33, 58, .14);
  --line-2: rgba(24, 33, 58, .26);
  --gold: #b9862a;
  --gold-hi: #d8a93b;
  --gold-ink: #85601a;          /* gold that is legible as text on paper */
  --on-gold: #17130a;
  --focus: #2f6fda;
  --danger: #a8402c;
  --ok: #3f7a4a;
  --shadow-1: 0 1px 2px rgba(24, 33, 58, .07), 0 6px 16px -8px rgba(24, 33, 58, .22);
  --shadow-2: 0 2px 6px rgba(24, 33, 58, .06), 0 24px 48px -20px rgba(24, 33, 58, .38);
  --wash: rgba(24, 33, 58, .045);
  --leader: rgba(24, 33, 58, .5);

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --fs-display: clamp(2.55rem, 1.35rem + 3.9vw, 4.5rem);
  --fs-h2: clamp(1.7rem, 1.2rem + 1.3vw, 2.35rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0e1220;
  --paper-2: #151a2b;
  --card: #1a2033;
  --ink: #ede6d6;
  --ink-2: #a7acbb;
  --line: rgba(237, 230, 214, .14);
  --line-2: rgba(237, 230, 214, .26);
  --gold: #d8a93b;
  --gold-hi: #e7bd5a;
  --gold-ink: #d8a93b;
  --on-gold: #17130a;
  --focus: #7aa7ff;
  --danger: #f08a73;
  --ok: #8fcf98;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 18px -10px rgba(0, 0, 0, .7);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 28px 56px -22px rgba(0, 0, 0, .85);
  --wash: rgba(237, 230, 214, .04);
  --leader: rgba(237, 230, 214, .42);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0e1220;
    --paper-2: #151a2b;
    --card: #1a2033;
    --ink: #ede6d6;
    --ink-2: #a7acbb;
    --line: rgba(237, 230, 214, .14);
    --line-2: rgba(237, 230, 214, .26);
    --gold: #d8a93b;
    --gold-hi: #e7bd5a;
    --gold-ink: #d8a93b;
    --on-gold: #17130a;
    --focus: #7aa7ff;
    --danger: #f08a73;
    --ok: #8fcf98;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 18px -10px rgba(0, 0, 0, .7);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 28px 56px -22px rgba(0, 0, 0, .85);
    --wash: rgba(237, 230, 214, .04);
    --leader: rgba(237, 230, 214, .42);
  }
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main { flex: 1 0 auto; display: block; }
img, svg, canvas, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--gold); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: rgba(216, 169, 59, .42); color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
code, kbd, pre { font-family: var(--f-mono); font-size: .9em; }
kbd { padding: .08em .38em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; font-size: .82em; background: var(--card); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow { max-width: calc(1120px + 2 * var(--gutter)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--paper); font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }

/* labels: the mono small caps used for metadata, timecodes and kickers */
.label, .kicker {
  font: 500 11.5px/1.35 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tc, var(--gold)); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }

/* ------------------------------------------------------------------ header */

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 13px; margin-right: auto; text-decoration: none; color: var(--ink); border-radius: 6px; }
.brand-mark { width: 44px; height: 35px; flex: none; color: var(--gold); }
.brand-text { display: flex; flex-direction: column; }
.brand-kicker { font: 500 10.5px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.brand-name { font: 600 24px/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px 28px; }
.site-nav a { position: relative; padding: 8px 0; font: 500 15px/1.2 var(--f-sans); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.theme-toggle {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--ink-2); background: var(--wash); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
@media (max-width: 719px) {
  .header-inner { gap: 4px 12px; padding-top: 14px; padding-bottom: 6px; }
  .brand-mark { width: 38px; height: 30px; }
  .brand-name { font-size: 21px; }
  .site-nav { order: 3; flex-basis: 100%; gap: 0 22px; margin-top: 4px; }
  .site-nav a { font-size: 14.5px; padding: 10px 0; }
}

/* ------------------------------------------------------------------ footer */

.site-footer { margin-top: 96px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 18px 40px; padding-top: 36px; padding-bottom: 44px; grid-template-columns: 1fr; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 17px/1 var(--f-display); }
.footer-brand svg { width: 30px; height: 24px; color: var(--gold); }
.footer-note { margin: 0; max-width: 34em; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }
.footer-copy { margin: 0; }
.footer-meta { display: grid; gap: 8px; }
@media (min-width: 860px) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------------ buttons, fields, chips */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 11px 20px;
  border: 1px solid transparent; border-radius: 9px;
  font: 500 15.5px/1.2 var(--f-sans); text-decoration: none; text-align: center;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--on-gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(60, 40, 0, .18); }
.btn-primary:hover { background: var(--gold-hi); }
.btn-secondary { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink-2); background: var(--wash); }
.btn-quiet { background: transparent; color: var(--ink); padding-left: 6px; padding-right: 6px; }
.btn-quiet:hover { color: var(--gold-ink); }
.btn-quiet .arrow { transition: transform .25s var(--ease); }
.btn-quiet:hover .arrow { transform: translateX(3px); }
.btn-big { min-height: 58px; padding: 15px 30px; font-size: 17.5px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn-small { min-height: 36px; padding: 7px 13px; font-size: 14px; border-radius: 8px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.is-done { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; color: var(--ink); }
.link-arrow:hover { color: var(--gold-ink); }
.link-arrow .arrow { transition: transform .25s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(3px); }

.field { display: grid; gap: 8px; }
.field + .field { margin-top: 18px; }
.field > label, .field-label { font: 500 14.5px/1.45 var(--f-sans); color: var(--ink); }
.field-hint { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.input, .textarea, .select {
  width: 100%; min-height: 46px; padding: 11px 13px;
  border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--paper); color: var(--ink);
  font: 400 15.5px/1.5 var(--f-sans);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { resize: vertical; min-height: 110px; }
.textarea-code { font: 400 13px/1.55 var(--f-mono); }
.input::placeholder, .textarea::placeholder { color: var(--ink-2); opacity: .72; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-2); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 26%, transparent); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23808799' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink);
  font: 500 14px/1.1 var(--f-sans); white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s;
}
.chip:hover { border-color: var(--ink-2); background: var(--wash); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] .dot { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--paper); }
.chip .count { font: 500 11px/1 var(--f-mono); color: var(--ink-2); }
.chip[aria-pressed="true"] .count { color: inherit; opacity: .7; }

/* ------------------------------------------------------------------ sections */

.section { padding-top: clamp(44px, 6vw, 72px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.section-title { font: 600 var(--fs-h2)/1.08 var(--f-display); letter-spacing: -.015em; }
.section-title em { font-style: italic; font-weight: 500; }
.section-note { margin: 0; }

/* ------------------------------------------------------------------ the library: hero */

.hero { padding-top: clamp(34px, 5.5vw, 76px); padding-bottom: clamp(12px, 2vw, 24px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "copy" "reel" "label"; gap: 0 60px; }
.hero-head { grid-area: head; }
.hero-copy { grid-area: copy; }
.hero .hero-reel { grid-area: reel; margin-top: 34px; }
.hero .placard { grid-area: label; }
.hero .display { font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5.1rem); }
.hero .display em { white-space: nowrap; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); grid-template-rows: auto auto 1fr; grid-template-areas: "head head" "copy reel" "label reel"; }
  .hero-head { margin-bottom: 26px; }
  .hero-copy { padding-top: 6px; }
  .hero .hero-reel { margin-top: 0; }
  .hero .placard { align-self: end; margin-bottom: 12px; }
}
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold); }
.display { font: 600 var(--fs-display)/1.0 var(--f-display); letter-spacing: -.026em; margin: 0 0 24px; text-wrap: balance; }
.display em { font-style: italic; font-weight: 500; letter-spacing: -.02em; }
.lede { max-width: 33em; margin: 0 0 30px; font-size: 18.5px; line-height: 1.62; color: var(--ink-2); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

.mount { margin: 0; }
.mount-frame { padding: 10px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); box-shadow: var(--shadow-2); }
@media (max-width: 600px) { .mount-frame { padding: 6px; border-radius: 13px; } .mount-stage { border-radius: 8px; } }
.mount-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #0d0e11; isolation: isolate; }
.mount-stage .rp { border-radius: 0; }
.mount-poster { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity .7s ease; }
.mount-poster.is-gone { opacity: 0; }
/* the wall label beside the featured reel */
.placard {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0 16px;
  margin-top: 18px; padding: 16px 0 0; border-top: 1px solid var(--line-2);
}
.placard > p { grid-column: 1; margin: 0; }
.placard .icon-btn { grid-column: 2; grid-row: 1 / span 3; margin-top: 2px; }
.placard-label { color: var(--gold-ink); margin-bottom: 7px !important; }
.placard-title { font: italic 500 21px/1.25 var(--f-display); letter-spacing: -.005em; }
.placard-title a { text-decoration: none; }
.placard-title a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .18em; }
.placard-meta { margin-top: 5px !important; font-size: 11px; }
.placard-summary { display: none; grid-column: 1 / -1 !important; margin-top: 9px !important; font-size: 14px; line-height: 1.55; color: var(--ink-2); max-width: 34em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.placard-summary { display: none; }
@media (min-width: 1240px) { .placard-summary { display: -webkit-box; } }
.icon-btn {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--ink-2); background: var(--wash); }
.icon-btn svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ the library: filters and grid */

.filters { display: grid; gap: 14px; margin-bottom: 22px; }
.filter { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: start; gap: 10px; }
.filter .label { padding-top: 11px; }
.filter-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 0 30px; min-height: 36px; }
.filter-status .status-text { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.filter-status .status-text strong { color: var(--ink); font-weight: 600; }
.filter-tools { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 719px) {
  .filter { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .filter .label { padding-top: 0; }
  .filter .chips {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 3px var(--gutter) 6px; scroll-padding: 0 var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
  }
  .filter .chips::-webkit-scrollbar { display: none; }
  .filter-tools { margin-left: 0; }
}

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 28px; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 30px; } }
.grid-empty { grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--ink-2); }
.bench-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin: 72px 0 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.grid[hidden] + .bench-head { margin-top: 8px; }
.bench-title { font: italic 500 26px/1.2 var(--f-display); letter-spacing: -.01em; }

.card { position: relative; display: block; color: inherit; text-decoration: none; border-radius: 12px; }
.card:focus-visible { outline-offset: 6px; }
.card-poster {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  background: var(--paper-2); box-shadow: var(--shadow-1);
  transition: box-shadow .35s var(--ease);
}
.card-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-poster canvas.still { position: absolute; inset: 0; width: 100%; height: 100%; }
a.card:hover .card-poster, a.card:focus-visible .card-poster { box-shadow: var(--shadow-2); }
.card.rp-pv .rp-pv-canvas { inset: 0 0 auto 0; height: auto; aspect-ratio: 16 / 9; z-index: 3; border-radius: var(--radius); }
.card-live {
  position: absolute; z-index: 4; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px 4px 7px; border-radius: 6px; background: rgba(10, 12, 20, .6); color: #f3ede1;
  font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(-3px); transition: opacity .25s, transform .25s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none;
}
.card-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e8574a; }
.card.rp-pv-live .card-live { opacity: 1; transform: none; }
.card-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 14px; align-items: baseline; padding: 15px 2px 0; }
.card-title { font: 600 20.5px/1.22 var(--f-display); letter-spacing: -.008em; text-wrap: balance; }
a.card:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--gold); }
.card-dur, .card-no { font: 500 12px/1 var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-voice { display: inline-block; margin-right: 7px; color: var(--gold-ink); }
.card-voice svg { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; }
.card-meta { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 9px; min-width: 0; margin: 0; font-size: 11px; line-height: 1.45; }
.card-meta .dot { margin-top: .36em; }

/* a reel still in the workshop: a film-leader card */
.card.is-pending .card-title { color: var(--ink-2); }
.leader {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: var(--paper-2);
  background: color-mix(in oklab, var(--tc, var(--gold)) 9%, var(--paper-2));
  color: var(--ink-2);
  color: color-mix(in oklab, var(--tc, var(--gold)) 55%, var(--ink));
}
.leader-art { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--leader); opacity: .5; }
.leader-art * { vector-effect: non-scaling-stroke; }
.leader-medium {
  position: relative; max-width: 80%; padding: 6px 16px 8px; background: inherit;
  font: italic 500 clamp(26px, 1.4rem + 1.3vw, 36px)/1.04 var(--f-display); letter-spacing: -.01em; text-align: center; text-wrap: balance;
}
.leader-tag, .leader-no { position: absolute; top: 13px; font: 500 10px/1 var(--f-mono); letter-spacing: .17em; text-transform: uppercase; }
.leader-tag { left: 14px; display: inline-flex; align-items: center; gap: 7px; }
.leader-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; }
.leader-no { right: 14px; letter-spacing: .08em; }

/* a poster that hasn't been made yet: a quiet frame with the medium named */
.card-poster.no-poster { background: #12151f; }
.card-poster .poster-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 12%; color: #e9e2d2; font: italic 500 26px/1.1 var(--f-display); text-align: center; }

/* ------------------------------------------------------------------ your reels (shelf) */

.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px 22px; }
.shelf-item { position: relative; }
.shelf-item .card-poster { border-radius: 9px; }
.shelf-item .card-title { font-size: 17px; }
.shelf-actions { display: flex; gap: 6px; margin-top: 10px; }
.shelf-empty { color: var(--ink-2); font-size: 15px; }

/* ------------------------------------------------------------------ a reel's page */

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 26px 0 18px; }
.crumbs a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }
.crumbs .sep { opacity: .5; }


.player-shell { position: relative; max-width: 1120px; margin: 0 auto; }
.player-shell .rp { box-shadow: var(--shadow-2); }
.player-shell.is-loading { aspect-ratio: 16 / 9; border-radius: var(--radius); background: #0d0e11; overflow: hidden; }
.player-shell .mount-poster { border-radius: var(--radius); }
.rp .ml-poster { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity .35s ease, visibility .35s; }
.rp.rp-started .ml-poster { opacity: 0; visibility: hidden; }

.piece-head { grid-area: head; display: grid; gap: 12px; align-content: start; }
.piece-title { font: 600 40px/1.1 var(--f-display); letter-spacing: -.018em; text-wrap: balance; }
.piece-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; }
.piece-meta .sep { opacity: .45; }
.piece-summary { max-width: 40em; margin: 6px 0 0; font-size: 19px; line-height: 1.58; text-wrap: pretty; }
.piece-credits { margin: 0; font: italic 400 16.5px/1.5 var(--f-display); color: var(--ink-2); }
.jump-make { display: inline-flex; align-items: center; gap: 8px; width: max-content; margin-top: 6px; font-weight: 500; font-size: 15px; color: var(--ink); text-decoration-color: var(--gold); }
@media (min-width: 1000px) { .jump-make { display: none; } }
@media (max-width: 600px) { .piece-title { font-size: 32px; } .piece-summary { font-size: 17.5px; } }

.piece-body { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "main" "aside"; gap: 44px; margin-top: 32px; }
.piece-main { grid-area: main; }
.piece-aside { grid-area: aside; }
@media (min-width: 1000px) {
  .piece-body { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "head aside" "main aside"; grid-template-rows: auto 1fr; gap: 48px 64px; }
  .piece-aside { position: sticky; top: 24px; align-self: start; }
}
.piece-main > section + section { margin-top: 52px; }
.h-sub { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; font: 600 25px/1.2 var(--f-display); letter-spacing: -.01em; }
.h-sub .label { font-size: 11px; }

.spec { margin: 0; border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 6px 28px; padding: 18px 0 19px; border-bottom: 1px solid var(--line); }
.spec-row dt { padding-top: 4px; }
.spec-row dd { margin: 0; font-size: 17px; line-height: 1.6; text-wrap: pretty; }
@media (max-width: 600px) { .spec-row { grid-template-columns: minmax(0, 1fr); } .spec-row dt { padding-top: 0; } }

.beats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.beat-btn {
  width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; gap: 10px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; background: transparent; text-align: left;
  font: 400 15px/1.35 var(--f-sans); color: var(--ink);
  transition: border-color .2s, background .2s;
}
.beat-btn:hover { border-color: var(--line-2); background: var(--wash); }
.beat-btn time { font: 500 12.5px/1 var(--f-mono); color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.beat-btn[aria-current="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 11%, transparent); }

/* narration: who reads it, then the script, a line at a time (a line seeks the player) */
.narrator { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin: -6px 0 16px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.narrator .sep { opacity: .5; margin-right: 9px; }
.narrator-part { white-space: nowrap; }
.narrator-name { font: italic 500 18px/1.3 var(--f-display); letter-spacing: -.005em; color: var(--ink); }
.script { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.script li { border-bottom: 1px solid var(--line); }
.line-btn {
  width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; gap: 12px;
  margin: 0; padding: 13px 14px 14px; border: 0; border-radius: 0; background: transparent; text-align: left;
  font: 400 16.5px/1.55 var(--f-sans); color: var(--ink); text-wrap: pretty;
  transition: background .2s, box-shadow .2s;
}
.line-btn:hover { background: var(--wash); }
.line-btn time { font: 500 12.5px/1 var(--f-mono); color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.line-btn[aria-current="true"] { background: color-mix(in srgb, var(--gold) 9%, transparent); box-shadow: inset 2px 0 0 var(--gold); }
@media (prefers-reduced-motion: reduce) { .line-btn { transition: none; } }

.facts { list-style: none; margin: 0; padding: 0; counter-reset: fact; border-top: 1px solid var(--line); }
.facts li { counter-increment: fact; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 16px 0 17px; border-bottom: 1px solid var(--line); font-size: 16.5px; line-height: 1.55; }
.facts li::before { content: counter(fact, decimal-leading-zero); padding-top: 3px; font: 500 12px/1.4 var(--f-mono); color: var(--gold-ink); }
.fact-source { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.fact-source a { color: var(--ink-2); text-decoration-color: var(--line-2); overflow-wrap: anywhere; }
.fact-source a:hover { color: var(--ink); text-decoration-color: var(--gold); }
.muted { color: var(--ink-2); }

.panel { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: var(--shadow-1); }
.panel-title { margin: 0 0 6px; font: 600 23px/1.2 var(--f-display); letter-spacing: -.01em; }
.panel-lede { margin: 0 0 18px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.panel .textarea { min-height: 128px; }
.panel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.panel-stack { display: grid; gap: 8px; }
.btn-row { width: 100%; justify-content: flex-start; padding-left: 15px; padding-right: 15px; }
.btn-row .btn-note { margin-left: auto; font: 400 11.5px/1 var(--f-mono); color: var(--ink-2); letter-spacing: .02em; }
.btn-row.is-done .btn-note { color: inherit; opacity: .7; }
.panel .hint { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.panel .hint a { color: var(--ink); text-decoration-color: var(--gold); }
.panel-divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0 18px; }
.panel-sub { margin: 0 0 12px; }
.size-note { font: 400 12px/1 var(--f-mono); color: var(--ink-2); }

.progress { display: grid; gap: 8px; margin-top: 10px; }
.progress-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress-bar > span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .15s linear; }
.progress-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-2); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pager a { display: grid; gap: 7px; padding: 22px 0; text-decoration: none; min-width: 0; }
.pager a:hover .pager-title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .2em; }
.pager .next { text-align: right; justify-items: end; }
.pager-title { font: 600 20px/1.25 var(--f-display); }
.pager-medium { font-size: 11px; }
.more { margin-top: 56px; }
.more .grid { gap: 36px 26px; }

.notice { max-width: 640px; margin: 64px auto; text-align: center; }
.notice h1 { font: 600 clamp(32px, 4vw, 46px)/1.1 var(--f-display); margin: 14px 0 14px; letter-spacing: -.015em; }
.notice p { color: var(--ink-2); font-size: 18px; }
.notice .actions { justify-content: center; margin-top: 26px; }

/* ------------------------------------------------------------------ make one like this */

.make-hero { padding-top: clamp(34px, 5vw, 64px); padding-bottom: 10px; max-width: 820px; }
.make-hero .display { font-size: clamp(2.4rem, 1.3rem + 3.4vw, 4rem); }
.step-index { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 4px 0 0; padding: 0; list-style: none; }
.step-index a { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink-2); text-decoration: none; }
.step-index a:hover { color: var(--ink); }
.step-index b { font: italic 500 17px/1 var(--f-display); letter-spacing: 0; text-transform: none; color: var(--gold-ink); }
fieldset.bare { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.bare > legend { padding: 0; margin-bottom: 6px; }
fieldset.bare > legend + .field-hint { margin: -2px 0 14px; }
.notes summary { cursor: pointer; width: max-content; max-width: 100%; }
.notes .warnings { margin-top: 10px; }
.steps { display: grid; gap: 26px; margin-top: 30px; }
.step {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 22px;
  padding: clamp(20px, 3.2vw, 38px); border: 1px solid var(--line); border-radius: 18px; background: var(--card);
}
.step-no { font: 500 50px/0.9 var(--f-display); font-style: italic; color: var(--gold); letter-spacing: -.03em; }
.step-head { margin-bottom: 20px; }
.step-title { font: 600 27px/1.15 var(--f-display); letter-spacing: -.012em; margin: 2px 0 6px; }
.step-lede { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 40em; }
.step .step-body > * + * { margin-top: 22px; }
@media (max-width: 640px) {
  .step { grid-template-columns: minmax(0, 1fr); border-radius: 15px; }
  .step-no { font-size: 38px; margin-bottom: 10px; }
}

.dropzone {
  position: relative; display: grid; justify-items: center; gap: 10px; padding: 34px 20px; text-align: center;
  border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--paper);
  transition: border-color .2s, background .2s;
}
.dropzone.is-over { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 9%, var(--paper)); }
.dropzone-icon { width: 42px; height: 42px; color: var(--gold); }
.dropzone-title { margin: 0; font: 600 19px/1.3 var(--f-display); }
.dropzone-sub { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.dropzone .btn { margin-top: 6px; }
.tip { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.tip-mark { flex: none; font: 500 10.5px/1.9 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-1); }
.thumb img { width: 100%; height: 100%; object-fit: cover; cursor: grab; }
.thumb-remove {
  position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: rgba(10, 12, 20, .66); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.thumb-remove:hover { background: rgba(10, 12, 20, .85); }
.thumb-remove svg { width: 14px; height: 14px; }
.thumb-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font: 400 11px/1.2 var(--f-mono); color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.links-list { display: grid; gap: 8px; }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

.theme-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; }
.option-card { position: relative; display: block; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card .option-body {
  display: grid; grid-template-columns: 12px minmax(0, 1fr); align-content: start; gap: 3px 11px; height: 100%; padding: 13px 15px 14px;
  border: 1px solid var(--line-2); border-radius: 11px; background: var(--paper);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.option-card .dot { margin-top: 7px; }
.option-name { font: 600 16px/1.35 var(--f-sans); }
.option-blurb { grid-column: 2; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.option-card:hover .option-body { border-color: var(--ink-2); }
.option-card input:checked + .option-body { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--card); }
.option-card input:focus-visible + .option-body { outline: 2px solid var(--focus); outline-offset: 2px; }
.other-topic { margin-top: 12px; }
.two-up { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 760px) { .two-up { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; } }

.ref-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px 14px; }
@media (max-width: 640px) { .ref-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } .ref-label { font-size: 14px; } }
.ref-filter { margin-bottom: 16px; }
.chip-small { min-height: 32px; padding: 5px 12px; font-size: 13px; }
.ref-option[hidden] { display: none; }
.includes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.includes > div { padding: 14px 16px 15px 0; }
.includes dt { margin-bottom: 5px; }
.includes dd { margin: 0; font-size: 15.5px; line-height: 1.45; }
.includes dd.is-empty { opacity: .62; font-style: italic; }
@media (min-width: 900px) {
  .includes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .includes > div + div { padding-left: 18px; border-left: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
}
.ref-option { position: relative; display: block; cursor: pointer; }
.ref-option input { position: absolute; opacity: 0; pointer-events: none; }
.ref-option .ref-poster { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #12151f; box-shadow: var(--shadow-1); transition: box-shadow .2s; }
.ref-option .ref-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ref-option .ref-poster .poster-fallback { font-size: 17px; }
.ref-option .ref-check {
  position: absolute; top: 7px; right: 7px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold); color: var(--on-gold); opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s;
}
.ref-option .ref-check svg { width: 13px; height: 13px; }
.ref-option input:checked ~ .ref-poster { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--gold), var(--shadow-1); }
.ref-option input:checked ~ .ref-poster .ref-check { opacity: 1; transform: none; }
.ref-option input:focus-visible ~ .ref-poster { outline: 2px solid var(--focus); outline-offset: 5px; }
.ref-label { display: block; margin-top: 10px; font: 600 15px/1.3 var(--f-display); }
.ref-meta { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 10.5px; }

.copy-block { display: grid; gap: 20px; padding: clamp(22px, 3.2vw, 38px); border-radius: 18px; background: var(--ink); color: var(--paper); }
.copy-block .step-title { color: var(--paper); }
.copy-block .step-lede { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.copy-block .kicker, .copy-block .includes dt { color: var(--gold-hi); }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.copy-row .size-note { color: color-mix(in srgb, var(--paper) 66%, transparent); }
.checklist { list-style: none; counter-reset: chk; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); }
.checklist > li { counter-increment: chk; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); font-size: 16px; line-height: 1.5; }
.checklist > li::before { content: counter(chk); font: italic 500 22px/1 var(--f-display); color: var(--gold-hi); }
.checklist .btn-small { margin-left: 4px; }
.checklist .btn-secondary { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 30%, transparent); }
.checklist .btn-secondary:hover { border-color: var(--paper); background: rgba(255, 255, 255, .06); }
.checklist .thumbs { grid-column: 2; margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.checklist strong { color: var(--paper); }
.checklist a { color: inherit; }
:root[data-theme="dark"] .copy-block { background: #f3ede1; color: #18213a; }
:root[data-theme="dark"] .copy-block .step-title, :root[data-theme="dark"] .copy-block .checklist strong { color: #18213a; }
:root[data-theme="dark"] .copy-block .step-lede, :root[data-theme="dark"] .copy-block .copy-row .size-note { color: #4a5470; }
:root[data-theme="dark"] .copy-block .kicker, :root[data-theme="dark"] .copy-block .includes dt, :root[data-theme="dark"] .copy-block .checklist > li::before { color: #85601a; }
:root[data-theme="dark"] .copy-block .checklist, :root[data-theme="dark"] .copy-block .checklist > li { border-color: rgba(24, 33, 58, .16); }
:root[data-theme="dark"] .copy-block .checklist .btn-secondary { color: #18213a; border-color: rgba(24, 33, 58, .3); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .copy-block { background: #f3ede1; color: #18213a; }
  :root:not([data-theme="light"]) .copy-block .step-title, :root:not([data-theme="light"]) .copy-block .checklist strong { color: #18213a; }
  :root:not([data-theme="light"]) .copy-block .step-lede, :root:not([data-theme="light"]) .copy-block .copy-row .size-note { color: #4a5470; }
  :root:not([data-theme="light"]) .copy-block .kicker, :root:not([data-theme="light"]) .copy-block .includes dt, :root:not([data-theme="light"]) .copy-block .checklist > li::before { color: #85601a; }
  :root:not([data-theme="light"]) .copy-block .checklist, :root:not([data-theme="light"]) .copy-block .checklist > li { border-color: rgba(24, 33, 58, .16); }
  :root:not([data-theme="light"]) .copy-block .checklist .btn-secondary { color: #18213a; border-color: rgba(24, 33, 58, .3); }
}

.play-area { display: grid; gap: 16px; }
.play-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sandbox-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0d0e11; box-shadow: var(--shadow-2); }
.sandbox-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sandbox-wait { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .7); font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.result-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.result-title { font: 600 24px/1.2 var(--f-display); margin: 0; }
.result-hint { flex-basis: 100%; margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.warnings { margin: 0; padding: 12px 16px 12px 34px; border-radius: 10px; background: var(--wash); color: var(--ink-2); font-size: 14px; }

.error-panel { padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--danger) 7%, var(--card)); }
.error-title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 600 19px/1.3 var(--f-display); color: var(--danger); }
.error-title svg { width: 20px; height: 20px; flex: none; }
.error-message { margin: 0 0 4px; font: 500 14.5px/1.5 var(--f-mono); overflow-wrap: anywhere; }
.error-help { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-2); }
.code-excerpt { margin: 14px 0 0; padding: 10px 0; border-radius: 9px; background: var(--paper); border: 1px solid var(--line); overflow-x: auto; font: 400 12.5px/1.65 var(--f-mono); }
.code-excerpt .ln { display: grid; grid-template-columns: 52px max-content; padding: 0 14px 0 0; white-space: pre; }
.code-excerpt .ln > span:first-child { padding-right: 14px; text-align: right; color: var(--ink-2); opacity: .7; user-select: none; -webkit-user-select: none; }
.code-excerpt .ln.is-error { background: color-mix(in srgb, var(--danger) 16%, transparent); }
.code-excerpt .ln.is-error > span:first-child { color: var(--danger); opacity: 1; font-weight: 600; }

/* ------------------------------------------------------------------ about */

.about-hero { padding-top: clamp(34px, 5vw, 64px); max-width: 860px; }
.prose { max-width: 680px; font-size: 18px; line-height: 1.7; }
.prose h2 { margin: 64px 0 16px; font: 600 clamp(26px, 2vw + 16px, 33px)/1.15 var(--f-display); letter-spacing: -.012em; }
.prose h2 .label { display: block; margin-bottom: 10px; font-size: 11px; }
.prose p { margin: 0 0 1.05em; text-wrap: pretty; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--gold); }
.prose a { text-decoration-color: var(--gold); }
.prose em { font-style: italic; }
.prose .aside { font: italic 400 17.5px/1.6 var(--f-display); color: var(--ink-2); }
.prose .kit-links { list-style: none; padding: 0; margin: 0 0 1em; border-top: 1px solid var(--line); }
.kit-links li { margin: 0; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.kit-links code { font-size: 14px; }
.kit-links a { font-family: var(--f-mono); font-size: 14px; }
@media (max-width: 600px) { .kit-links li { grid-template-columns: minmax(0, 1fr); } }
.placeholder-text { padding: 14px 18px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--wash); }
.prose :not(pre) > code, .demo-note code, .step-lede code { padding: .1em .36em; border-radius: 5px; background: var(--wash); border: 1px solid var(--line); font-size: .84em; white-space: nowrap; }
.kit-links li > span { color: var(--ink-2); }
.code-figure { margin: 6px 0 30px; }
.code-figure pre { margin: 0; padding: 20px 22px; overflow-x: auto; border-radius: 13px; background: #131a2c; color: #e9e2d2; font: 400 13.5px/1.7 var(--f-mono); box-shadow: var(--shadow-1); tab-size: 2; }
.code-figure code { font-size: inherit; }
.code-figure .c { color: #8a93ab; font-style: italic; }
.code-figure .k { color: #e7bd5a; }
.code-figure .n { color: #9fd4c4; }
.code-figure .s { color: #f2a990; }
.code-figure figcaption { margin-top: 12px; }
.demo-note { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.match.is-wait { color: var(--ink-2); }
.match.is-wait svg { opacity: .3; }

.demo { max-width: 960px; margin: 32px 0 40px; padding: clamp(14px, 2vw, 22px); border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-1); }
.demo-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 760px) { .demo-stage { grid-template-columns: minmax(0, 3fr) minmax(0, 1.25fr); align-items: start; } }
.demo-main, .demo-fresh { position: relative; }
.demo canvas { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 9px; background: #0d0e11; }
.demo-cap { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 10.5px; }
.demo-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 16px; }
.demo-time { font: 500 14px/1 var(--f-mono); font-variant-numeric: tabular-nums; min-width: 6.4em; text-align: right; }
.range { width: 100%; height: 30px; margin: 0; background: transparent; accent-color: var(--gold); cursor: pointer; }
.demo-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.hash { font: 500 13px/1 var(--f-mono); padding: 6px 9px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); }
.match { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--ok); }
.match svg { width: 16px; height: 16px; }
.match.is-off { color: var(--danger); }

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 60; max-width: calc(100vw - 32px);
  padding: 11px 18px; border-radius: 10px; background: var(--ink); color: var(--paper);
  font: 500 14.5px/1.4 var(--f-sans); box-shadow: var(--shadow-2);
  opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ 404 */

.lost { padding: clamp(56px, 10vw, 120px) 0 40px; text-align: center; }
.lost-mark { width: 120px; height: 96px; margin: 0 auto 26px; color: var(--gold); }
.lost h1 { font: 600 clamp(34px, 5vw, 56px)/1.05 var(--f-display); letter-spacing: -.02em; margin: 14px 0 16px; }
.lost p { color: var(--ink-2); font-size: 18px; max-width: 30em; margin: 0 auto 26px; }
.lost .actions { justify-content: center; }

/* ------------------------------------------------------------------ motion preferences */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header nav, .theme-toggle, .piece-aside, .site-footer, .filters, .filter-status { display: none; }
}
