/*
  The Luci Tales Show -- structure (Mira's design, SITE.md and mockup/site.css in the
  LuciTalesShow repo; this is that stylesheet with its tokens moved to the studio theme).

  The site is the studio at night. STYLE.md, literally: one 3px black outline on every card,
  button and image frame; flat colour; no gradients, no shadows, no blur. Every size is rem.
*/



* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--navy); color: var(--chalk);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
/* Headings balance their lines, so a wrap never strands one word on a line of its own. */
h1, h2, h3 { text-wrap: balance; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gap); }
.stack > * + * { margin-top: var(--gap); }

/* ---------- Masthead ---------- */
.masthead { background: var(--navy-deep); border-bottom: var(--line); }
.masthead .shell { padding-top: 0.75rem; padding-bottom: 0.75rem; display: grid; gap: 0.625rem; }
.wordmark {
  font-family: var(--font-display); font-size: 1.75rem; line-height: 1; text-decoration: none;
  text-align: center; letter-spacing: 0.02em; white-space: nowrap;
}
.wordmark .w1 { color: var(--red); } .wordmark .w2 { color: var(--mustard); } .wordmark .w3 { color: var(--sky); }
.nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.nav a {
  display: flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.25rem 0.5rem;
  font-family: var(--font-display); font-size: 1.125rem; text-decoration: none; text-align: center;
  color: var(--chalk); background: var(--foam); border: var(--line); border-radius: var(--radius);
}
.nav a[aria-current="page"] { background: var(--cream); color: var(--ink); }

/* ---------- Sections ---------- */
main { padding: var(--gap) 0 1.5rem; }
.section { margin-top: 1.75rem; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.plate {
  font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; line-height: 1.1;
  background: var(--orange); color: var(--ink); border: var(--line); border-radius: 0.625rem;
  padding: 0.375rem 0.75rem;
}
.more { font-weight: 700; color: var(--sky); text-decoration: underline; text-underline-offset: 0.2em; min-height: 3rem; display: inline-flex; align-items: center; }

h1.page-title { font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; line-height: 1.05; color: var(--chalk); }
.lede { color: var(--chalk); max-width: 40rem; }

/* ---------- Frames, cards, buttons ---------- */
.frame { border: var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.frame img { width: 100%; height: auto; }
.card { background: var(--cream); color: var(--ink); border: var(--line); border-radius: var(--radius); padding: var(--gap); }
.card h2, .card h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.25rem;
  padding: 0.5rem 1rem; font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.1;
  text-decoration: none; text-align: center; color: var(--ink); background: var(--mustard);
  border: var(--line); border-radius: var(--radius); cursor: pointer;
}
.btn.second { background: var(--sky); }
.btn.quiet { background: var(--cream); }
.btn:hover { background: var(--cream); }
.btn[disabled] { background: var(--cream-deep); color: var(--ink-soft); cursor: default; }
.btn-row { display: grid; gap: 0.75rem; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.card a:focus-visible, .card input:focus-visible, .card textarea:focus-visible, .card button:focus-visible { outline-color: var(--red); }

.play { width: 0; height: 0; border-left: 0.75rem solid var(--ink); border-top: 0.5rem solid transparent; border-bottom: 0.5rem solid transparent; }

/* ON AIR: the one "latest" mark. Red is used for nothing else. */
.onair {
  display: inline-flex; align-items: center; font-family: var(--font-display); font-size: 1rem; line-height: 1;
  letter-spacing: 0.08em; color: var(--cream); background: var(--red); border: var(--line);
  border-radius: 0.5rem; padding: 0.3125rem 0.625rem; white-space: nowrap;
}

/* Labelled values: every number sits under its own label, never in a sentence. */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border: var(--line); border-radius: 0.625rem; overflow: hidden; background: var(--cream); color: var(--ink); }
.facts > div { padding: 0.375rem 0.625rem; border-left: var(--line); min-width: 0; }
.facts > div:first-child { border-left: 0; }
.facts dt, .label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { font-weight: 700; font-size: 1.0625rem; line-height: 1.25; }
.on-navy .label, .label.on-navy { color: var(--chalk-soft); }

/* ---------- Home: hero ---------- */
.hero { display: grid; gap: var(--gap); }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.1; color: var(--chalk); }
.hero h1 span { display: block; }
.hero h1 .a { color: var(--mustard); } .hero h1 .b { color: var(--sky); } .hero h1 .c { color: var(--chalk); }
.hero .pitch { color: var(--chalk); }

/* ---------- Episodes ---------- */
.home-eps { margin-top: 1.75rem; }
.home-eps .section { margin-top: 0; }
.home-eps .section + .section { margin-top: 1.75rem; }
.latest, .latest .side { display: grid; gap: 0.75rem; }
.latest .top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.latest h3 { font-size: 1.625rem; }
.thumb { position: relative; display: block; }
.thumb .badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 4rem; height: 4rem;
  border-radius: 50%; background: var(--mustard); border: var(--line); display: flex; align-items: center; justify-content: center;
}
.thumb .badge .play { margin-left: 0.25rem; border-left-width: 1.125rem; border-top-width: 0.75rem; border-bottom-width: 0.75rem; }

.ep-list { display: grid; gap: 0.75rem; }
.ep-row {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.75rem; align-items: start;
  background: var(--cream); color: var(--ink); border: var(--line); border-radius: var(--radius);
  padding: 0.625rem; text-decoration: none;
}
.ep-row .frame { border-radius: 0.5rem; }
.ep-row .body { display: grid; gap: 0.375rem; min-width: 0; }
.ep-row .line1 { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ep-row h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.1; }
.ep-row .facts { grid-template-columns: repeat(2, 1fr); grid-column: 1 / -1; }
.latest .btn { width: 100%; }

.empty { display: grid; gap: var(--gap); text-align: center; justify-items: center; }
.empty .frame { width: 100%; }
.empty h2, .empty h1 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }
.empty .btn { width: 100%; }

/* ---------- Episode page ---------- */
.back { display: inline-flex; align-items: center; min-height: 3rem; font-weight: 700; color: var(--sky); }
.ep-head { display: grid; gap: 0.75rem; }
.ep-head .top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.video { position: relative; aspect-ratio: 16 / 9; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; border: var(--line); border-radius: 0.625rem; overflow: hidden; background: var(--cream); color: var(--ink); }
.table th { text-align: left; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); background: var(--cream-deep); padding: 0.375rem 0.75rem; border-bottom: var(--line); }
.table td { padding: 0.625rem 0.75rem; border-top: 2px solid var(--cream-deep); vertical-align: top; }
.table tr:first-child td { border-top: 0; }
.table td.t { width: 5rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td.t a { color: var(--ink); }
.guests { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 0.75rem; }
.guest { display: grid; grid-template-columns: 3.5rem 1fr; gap: 0.625rem; align-items: center; background: var(--cream); color: var(--ink); border: var(--line); border-radius: var(--radius); padding: 0.5rem; text-decoration: none; }
.guest .frame { border-radius: 50%; }
.guest b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.125rem; line-height: 1.1; }
.guest span { font-size: 0.875rem; color: var(--ink-soft); }
.links { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.pager { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.75rem; }
.ep-page > * + * { margin-top: var(--gap); }

/* ---------- Cast ---------- */
/* Each card is only as tall as its own content (align-items: start): a role that wraps to more lines
   lengthens its card downward and never squeezes its portrait, so the four names stay on one line. */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; align-items: start; }
.strip a { text-decoration: none; text-align: center; display: grid; gap: 0.25rem; }
.strip .frame { border-radius: 0.625rem; background: var(--blue); }
.strip b { font-family: var(--font-display); font-weight: 400; font-size: 1.125rem; line-height: 1.1; color: var(--chalk); }
.strip span { font-size: 0.8125rem; line-height: 1.2; color: var(--chalk-soft); }

.cast-grid { display: grid; gap: var(--gap); }
.cast-card { display: grid; gap: 0.75rem; align-content: start; }
.cast-card .frame { background: var(--blue); }
.cast-card .who { display: grid; gap: 0.125rem; }
.cast-card h3 { font-size: 1.75rem; }
.cast-card .role { font-weight: 700; }
.cast-card .want { border-top: var(--line); padding-top: 0.5rem; display: grid; gap: 0.125rem; }
.cast-card.small { grid-template-columns: 7rem 1fr; align-items: start; }
.cast-card.small h3 { font-size: 1.5rem; }
.cast-card.small .text { display: grid; gap: 0.5rem; min-width: 0; }
.sayit { font-size: 0.875rem; color: var(--ink-soft); }
.sheet-art { background: var(--blue); }
.todo { background: #fff; color: #7a1f1f; border: 2px dashed #7a1f1f; border-radius: 0.375rem; padding: 0 0.3125rem; font-size: 0.875rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; text-transform: none; }
.frame.pending { background: var(--blue); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 0.375rem; text-align: center; }

/* ---------- Write in ---------- */
.form { display: grid; gap: var(--gap); }
.field { display: grid; gap: 0.25rem; }
.field label, .field .q { font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.15; }
.hint { font-size: 0.9375rem; color: var(--ink-soft); }
.input, textarea.input {
  width: 100%; font: inherit; color: var(--ink); background: #fffaf0; border: var(--line);
  border-radius: 0.625rem; padding: 0.625rem 0.75rem; min-height: 3.25rem;
}
textarea.input { min-height: 9rem; resize: vertical; }
/* The row is as tall as its box, so the form's gap is the only space around it, as for every other
   row. The tap target is the label stretched over the whole row plus 0.5rem above and below
   (3rem with the 2rem box): a tap anywhere on it toggles the box. */
.check { position: relative; display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; align-items: start; }
.check label::before { content: ""; position: absolute; inset: -0.5rem 0; }
.check input { appearance: none; -webkit-appearance: none; width: 2rem; height: 2rem; margin: 0; background: #fffaf0; border: var(--line); border-radius: 0.375rem; }
.check input:checked { background: var(--mustard) var(--check-image) center / 80% no-repeat; }
.check label { font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.15; padding-top: 0.25rem; }
.turnstile { width: 300px; max-width: 100%; height: 65px; background: #fafafa; border: 1px solid #c8c8c8; display: flex; align-items: center; gap: 0.75rem; padding: 0 0.75rem; font-size: 0.875rem; color: #333; font-family: -apple-system, "Segoe UI", sans-serif; }
.turnstile i { width: 1.5rem; height: 1.5rem; border: 2px solid #777; border-radius: 3px; background: #fff; flex: none; }
.form .btn { width: 100%; }
.error-box { background: #fffaf0; border: var(--line); border-left-width: 0.75rem; border-radius: 0.625rem; padding: 0.625rem 0.75rem; font-weight: 700; }
.field.bad .input { border-style: dashed; }
.field .err { font-weight: 700; }
.sent { text-align: center; display: grid; gap: var(--gap); justify-items: center; }
.sent h2 { font-size: 2rem; }
.sent .btn { width: 100%; }
.plain-line { color: var(--chalk); }
.plain-line a { color: var(--sky); font-weight: 700; }

/* ---------- Plain pages ---------- */
.prose { display: grid; gap: 0.75rem; max-width: 42rem; }
.prose h2 { font-size: 1.375rem; margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); border-top: var(--line); margin-top: 1rem; }
.footer .shell { padding-top: 1.25rem; padding-bottom: 1.5rem; display: grid; gap: 0.75rem; }
.notice { font-size: 0.9375rem; color: var(--chalk); border: 2px solid var(--chalk-soft); border-radius: 0.625rem; padding: 0.625rem 0.75rem; }
.notice b { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chalk-soft); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; align-items: center; justify-content: space-between; }
.foot-links nav { display: flex; gap: 1.25rem; }
.foot-links a { display: inline-flex; align-items: center; min-height: 3rem; font-weight: 700; color: var(--sky); }
.foot-links small { font-size: 0.875rem; color: var(--chalk-soft); }

/* ---------- Wide screens ---------- */
@media (min-width: 56em) {
  .masthead .shell { grid-template-columns: auto 1fr; align-items: center; }
  .wordmark { text-align: left; font-size: 2rem; }
  .nav { justify-self: end; grid-template-columns: repeat(3, 9rem); }
  /* Row 1: picture | hook + buttons, centred on each other; the picture keeps its whole frame.
     Row 2: the pitch under both, in two text columns whose gutter is the grid's own gap, so its
     left edge sits under the picture's and its right edge under the text column's (Mira,
     2026-11-18). Never one full-width paragraph: its lines would run ~150 characters. */
  .hero { grid-template-columns: 1fr 1fr; align-items: center; }
  .hero .pitch { grid-column: 1 / -1; column-count: 2; column-gap: var(--gap); }
  .hero h1 { font-size: 2.375rem; }
  .hero .btn-row { grid-template-columns: 1fr 1fr; }
  .home-eps { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: start; }
  .home-eps .section + .section { margin-top: 0; }
  .ep-list.cols { grid-template-columns: repeat(3, 1fr); }
  .ep-list.cols .ep-row { grid-template-columns: 1fr; }
  .strip { gap: var(--gap); }
  .strip b { font-size: 1.375rem; } .strip span { font-size: 0.9375rem; }
  .cast-grid { grid-template-columns: repeat(3, 1fr); }
  .cast-grid.two { grid-template-columns: repeat(2, 1fr); }
  .cast-card.lead { grid-column: 1 / -1; grid-template-columns: 5fr 7fr; align-items: center; }
  .cast-card.lead h3 { font-size: 2.5rem; }
  .cast-card.wide { grid-column: 1 / -1; grid-template-columns: 5fr 7fr; align-items: center; }
  .writein { grid-template-columns: 7fr 5fr; align-items: center; }
  .narrow { max-width: 42rem; margin-left: auto; margin-right: auto; }
  .ep-page { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: start; }
  .ep-page > .full { grid-column: 1 / -1; }
  .ep-page > * + * { margin-top: 0; }
  .empty .btn, .sent .btn { width: auto; min-width: 16rem; }
  h1.page-title { font-size: 3rem; }
}
.writein { display: grid; gap: var(--gap); }
.writein h3 { font-size: 1.75rem; }

/* ---------- Built-site additions (not in the mockup) ---------- */
picture { display: block; }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: var(--gap); top: var(--gap); z-index: 10; background: var(--cream); color: var(--ink); padding: 0.5rem 0.75rem; border: var(--line); border-radius: 0.5rem; }
.env-badge { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; justify-content: center; padding: 0.25rem var(--gap); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); background: var(--sky); border-bottom: var(--line); }
.env-badge--public { background: var(--red); color: var(--cream); }
/* The video facade: the player replaces the thumbnail only when pressed. */
button.thumb { width: 100%; padding: 0; font: inherit; cursor: pointer; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* A gap a person still has to fill: visible on the tailnet, refused by a production build. */
.unset { background: #fff; color: #7a1f1f; border: 2px dashed #7a1f1f; border-radius: 0.375rem; padding: 0 0.3125rem; font-weight: 700; }
.form[data-state="sent"] .form-fields, .sent[hidden], .error-box[hidden], .err[hidden] { display: none; }
.prose a { color: inherit; font-weight: 700; }
.prose ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 0.25rem; }
/* The fourth recent row shows only on a wide screen, where it sits beside the taller latest card. */
.ep-row.extra { display: none; }
@media (min-width: 56em) { .ep-row.extra { display: grid; } }
