/*
 * Doc Society Screenings — "V1 — Phosphor" (Paper, Nov 2026).
 *
 * Duotone: lime #c6f432 and charcoal #333, cream as the third colour, and
 * the film posters as the only full colour on the page. Flat, hard-edged
 * boxes: ruled outlines, no shadows, no rounded section edges. Every label,
 * button and sub-heading is DM Sans at its natural case and tracking —
 * nothing is set in mono caps any more. Geist Mono survives only for data
 * (runtimes, years, row numbers).
 *
 * Mobile first: every layout rule starts at 390px and widens at 720px /
 * 1100px. The home page, the films index and a playlist page share the film
 * rows; the film page, the host flow and the host pages share the chrome
 * and the tokens.
 *
 * `--bg`, `--text` and `--accent` stay overridable from the site's published
 * `design_*` tokens (see views/layout.ts); the duotone itself is fixed.
 */

:root {
  /* Brand, fixed. */
  --lime: #c6f432;
  --char: #333333;
  --cream: #f7f0e3;
  --deep: #0b0d0a;
  --ink: #16211c;
  --white: #ffffff;
  --purple: #806abf;
  --sage: #edf2e4;
  --olive: #5a8a2a;
  /* On the charcoal band. */
  --paper: #f2f3ee;
  --paper-muted: #8a8f84;
  --paper-soft: #c9ccc3;
  /* On the lime band. */
  --lime-muted: #3d4335;

  /* Themeable, defaulting to the brand. */
  --bg: var(--cream);
  --text: var(--ink);
  --accent: var(--lime);

  --font-heading: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: var(--font-heading);
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --muted: color-mix(in srgb, var(--text) 62%, transparent);
  --hairline: color-mix(in srgb, var(--text) 16%, transparent);
  --surface: color-mix(in srgb, var(--text) 6%, transparent);
  --rule: 1.5px solid var(--char);
  --gutter: 20px;
  --measure: 34rem;
  --column: 1312px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.45rem, 4.4vw, 2.1rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.05rem; margin: 0.6rem 0 0.2rem; }

/* A band of colour that reaches the viewport edge while its content stays on
   the same column as everything else. */
.band {
  margin-inline: calc(50% - 50vw);
  padding-inline: max(var(--gutter), calc(50vw - var(--column) / 2));
}

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; display: block; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: var(--gutter);
  top: var(--gutter);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  z-index: 10;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- the one label style ----------------------------------------------- */

/* Every small label on the site: DM Sans 14/18 medium, natural case, no
   tracking. Section numbers, nav items, metadata, the price beside an
   action. Colour comes from the band it sits on. */
.label, .eyebrow, .site-nav a, .wordmark-name, .account span, .footer-nav a, .footer-line,
.film-kicker, .film-credits dt, .badge, table.rsvps th, .hint, .film-row-licence,
.flow-crumb, .optional, .card-price {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0;
  text-transform: none;
}
.label { margin: 0 0 20px; }
.eyebrow { margin: 0 0 8px; color: var(--muted); }
.muted, .hint { color: var(--muted); }
.optional { color: var(--muted); font-weight: 400; }
.empty { color: var(--muted); }
.standfirst { font-size: 1.15rem; color: var(--muted); max-width: var(--measure); }

/* The one data style: runtimes, years, row numbers. */
.mono { font-family: var(--font-mono); font-weight: 400; }

/* ---- actions ----------------------------------------------------------- */

/* Square boxes. The hero's is white with charcoal type; the footer's is
   lime; the solid one is charcoal with lime type. All hard-edged. */
.box-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  line-height: 28px;
  letter-spacing: -1px;
  text-decoration: none;
}
.box-button.white { background: var(--white); color: var(--char); }
.box-button.solid { background: var(--char); color: var(--lime); }
.box-button.lime {
  background: var(--lime);
  color: var(--deep);
  padding: 22px 32px;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0;
}
.box-button.outline { border: 2px solid currentColor; }
.box-button:hover { filter: brightness(0.96); }
.arrow { flex: 0 0 auto; }

/* A bold text link with an arrow: the row's "Host this film →", the band's
   "Host all as a season →". */
.row-link, .text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none;
  color: var(--lime);
}
.row-link:hover, .text-link:hover { text-decoration: underline; text-decoration-color: currentColor; }

/* The generic button and the pill, used by the film page and the host
   pages: a charcoal box with lime type. The ghost is an outline. */
.button, button, .pill {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  background: var(--char);
  color: var(--lime);
  border: 0;
  border-radius: 0;
  padding: 14px 24px;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.button:hover, button:hover, .pill:hover { filter: brightness(1.15); }
.button.ghost { background: transparent; color: currentColor; border: var(--rule); border-color: currentColor; }
button[disabled] { opacity: 0.6; cursor: progress; }

/* ---- chrome ------------------------------------------------------------ */

/* The header is lime on every page. One ruled box holds the mark, the
   wordmark and the nav in a row; a second holds the account link. */
.site-header { background: var(--lime); color: var(--char); padding: 24px var(--gutter); }
.header-bar {
  max-width: var(--column);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.brand-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--char);
}
.site-header .wordmark {
  display: inline-flex;
  align-items: stretch;
  color: var(--char);
  text-decoration: none;
  border-right: 1px solid var(--char);
}
.wordmark-mark {
  display: grid;
  place-items: center;
  width: 44px;
  background: var(--char);
  color: var(--lime);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
}
.wordmark-name { padding: 8px 12px; }
.site-nav { display: flex; flex-wrap: wrap; }
.site-nav a {
  padding: 8px 12px;
  border-right: 1px solid var(--char);
  color: var(--char);
  text-decoration: none;
}
.site-nav a:last-child { border-right: 0; }
.site-nav a:hover { background: color-mix(in srgb, var(--char) 10%, transparent); }
.site-nav a[aria-current="page"] { background: var(--char); color: var(--lime); }

.account {
  display: inline-flex;
  align-items: stretch;
  flex: 0 0 auto;
  border: 1px solid var(--char);
  color: var(--char);
  text-decoration: none;
}
.account span:first-child { padding: 8px 14px; }
.account-arrow { display: grid; place-items: center; width: 40px; background: var(--char); color: var(--lime); }
.account:hover span:first-child { background: color-mix(in srgb, var(--char) 10%, transparent); }

main { padding: 0; max-width: none; margin: 0; }
/* Anything not inside a band keeps the centred column. */
main > *:not(.band) {
  max-width: var(--column);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Charcoal: the request button, a hairline, then the line and the links. */
.site-footer {
  background: var(--char);
  color: var(--paper-muted);
  padding: 96px max(var(--gutter), calc(50vw - var(--column) / 2)) 48px;
}
.footer-inner { max-width: var(--column); margin: 0 auto; }
.footer-cta { margin: 0 0 56px; }
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
}
.footer-line { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.footer-nav a { color: var(--paper-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--paper); }
@media (min-width: 720px) { .site-footer { padding-top: 140px; } }

/* ---- hero -------------------------------------------------------------- */

.hero {
  background: var(--lime);
  color: var(--char);
  padding-block: 56px 80px;
  position: relative;
  overflow: hidden;
}
.hero-inner { position: relative; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; max-width: 860px; }
.hero h1 {
  margin: 0;
  font-size: clamp(3.25rem, 11vw, 8.5rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: var(--char);
}
.hero.long h1 { font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: 0.92; }
.hero-standfirst { margin: 0; max-width: 620px; font-size: 1.15rem; line-height: 1.5; color: var(--deep); }
.hero-cta { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.hero-link {
  font-size: 22px;
  font-weight: 800;
  line-height: 28px;
  letter-spacing: -1px;
  text-decoration: none;
}
.hero-link:hover { text-decoration: underline; text-decoration-color: currentColor; }
.crumb { margin: 0 0 16px; font-size: 14px; font-weight: 500; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.hero-sticker {
  position: absolute;
  right: 0;
  bottom: -60px;
  width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--char);
  color: var(--lime);
  display: grid;
  place-items: center;
  rotate: -14deg;
}
.sticker-ring { position: absolute; inset: 7%; animation: spin 22s linear infinite; }
.sticker-ring text { fill: currentColor; font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; }
.sticker-arrow { width: 34%; }
@media (min-width: 720px) {
  .hero { padding-block: 96px 80px; }
  .hero-standfirst { font-size: 22px; line-height: 32px; }
  .hero-sticker { width: 176px; right: 24px; bottom: auto; top: 20%; }
}
@keyframes spin { to { rotate: 360deg; } }

.hero.compact { padding-block: 44px 48px; }
.hero.compact h1 {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.hero.compact h1 + * { margin-top: 20px; }
.hero.compact .standfirst { color: var(--deep); max-width: 36rem; }
.hero.compact .hero-cta { margin-top: 28px; }

/* ---- the slate: film rows on charcoal ---------------------------------- */

.slate {
  background: var(--char);
  color: var(--paper);
  padding-block: 64px 0;
  /* The rows bleed to the viewport edge; only the head keeps the column. */
  padding-inline: 0;
}
.slate .empty { color: var(--paper-muted); padding: 0 var(--gutter) 64px; }
.slate-head {
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 var(--gutter) 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--lime);
}
.slate-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; color: var(--paper); }
.slate-head .row-link { font-size: 14px; font-weight: 500; line-height: 18px; color: var(--paper-muted); margin-bottom: 6px; }
.slate-head .row-link:hover { color: var(--lime); }
.playlist-block + .playlist-block { padding-top: 64px; }

.film-rows { list-style: none; margin: 0; padding: 0; }

.film-row {
  position: relative;
  overflow: clip;
  border-top: 1px solid color-mix(in srgb, var(--paper) 8%, transparent);
}
.film-row:last-child { border-bottom: 1px solid color-mix(in srgb, var(--paper) 8%, transparent); }
/* The still, blurred and bled past the edges so the blur has no soft border,
   then a darken that runs left to right so the copy sits on solid ground
   while the colour lives behind the poster. */
.film-row-still {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: 50% 40%;
  filter: blur(36px);
  opacity: 0.6;
  pointer-events: none;
}
.film-row-darken {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--char) 35%, transparent) 0%, color-mix(in srgb, var(--char) 80%, transparent) 45%, color-mix(in srgb, var(--char) 97%, transparent) 100%);
  pointer-events: none;
}
.film-row-inner {
  position: relative;
  max-width: var(--column);
  margin: 0 auto;
  padding: 48px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.film-row-poster { display: block; width: min(200px, 60%); flex: 0 0 auto; }
.film-row-poster img, .film-row-poster .poster-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: color-mix(in srgb, var(--paper) 8%, transparent);
}
.film-row-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.film-row-number { margin: 0; font-family: var(--font-mono); font-size: 14px; line-height: 18px; color: var(--lime); }
.film-row-copy h3 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--paper);
  overflow-wrap: anywhere;
}
.film-row-copy h3 a { text-decoration: none; }
.film-row-copy h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.film-row-meta { margin: 0; font-size: 15px; font-weight: 500; line-height: 20px; color: var(--paper-muted); }
.film-row-synopsis { max-width: 760px; font-size: 1.15rem; line-height: 1.55; color: var(--paper-soft); }
.film-row-synopsis p { margin: 0; }
.film-row-synopsis p + p { margin-top: 0.8em; }
.film-row-actions { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.film-row-licence { color: var(--paper-muted); }

@media (min-width: 720px) {
  .film-row-inner { flex-direction: row; align-items: flex-start; gap: 48px; padding-block: 64px; }
  .film-row-poster { width: 240px; }
  .film-row-copy { padding-top: 8px; gap: 20px; }
}
@media (min-width: 1100px) {
  .film-row-inner { gap: 80px; padding-block: 88px; }
  .film-row-poster { width: 280px; }
  .film-row-copy { padding-top: 16px; gap: 24px; }
  .film-row-synopsis { font-size: 22px; line-height: 34px; }
}

/* ---- how it works ------------------------------------------------------ */

/* Lime. The steps down the left, the includes column on the right; on a
   phone the column follows the steps. Everything that was lime on charcoal
   is charcoal here. */
.steps-section {
  background: var(--lime);
  color: var(--char);
  padding-block: 88px 96px;
}
.steps-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; }
.steps-intro { margin: 0 0 40px; font-size: clamp(1.25rem, 2.4vw, 26px); line-height: 1.3; max-width: 800px; }
.steps-list { list-style: none; margin: 0; padding: 0; }
.step-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-block: 28px;
  border-top: 1px solid color-mix(in srgb, var(--deep) 25%, transparent);
}
.step-row:last-child { border-bottom: 1px solid color-mix(in srgb, var(--deep) 25%, transparent); }
.step-number {
  flex: 0 0 auto;
  min-width: 96px;
  font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--char);
}
.step-row > div { padding-top: 6px; }
.step-row h3 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--deep); }
.step-row p { margin: 8px 0 0; max-width: 520px; font-size: 17px; line-height: 26px; color: var(--lime-muted); }

.includes-h {
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--char);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0;
  color: var(--lime-muted);
}
.includes ul { list-style: none; margin: 0; padding: 0; }
.includes li { padding: 24px 0; border-bottom: 1px solid color-mix(in srgb, var(--deep) 25%, transparent); }
.includes h3 { margin: 0; font-size: 24px; font-weight: 700; line-height: 30px; letter-spacing: -0.02em; color: var(--deep); }
.includes p { margin: 6px 0 0; font-size: 15px; line-height: 22px; color: var(--lime-muted); }

@media (min-width: 1100px) {
  .steps-section { padding-block: 120px; }
  .steps-cols { grid-template-columns: minmax(0, 800px) 432px; justify-content: space-between; gap: 80px; }
  .step-row { gap: 40px; }
  .step-number { min-width: 160px; }
  .includes { padding-top: 68px; }
}

/* ---- the closing band -------------------------------------------------- */

.comes-with { background: var(--cream); color: var(--char); padding-block: 88px 104px; }
.closing-h {
  margin: 0 0 48px;
  max-width: 20ch;
  font-size: clamp(2.25rem, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--char);
}
.comes-with ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.comes-with li {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 32px 12px 12px;
  border-radius: 999px;
  background: var(--char);
  color: var(--cream);
  font-size: clamp(1.35rem, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.comes-with .letter {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--char);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

/* ---- the admin's pages ------------------------------------------------- */

.page-hero { background: var(--lime); color: var(--char); padding-block: 48px 64px; }
.page-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}
.page-body { background: var(--cream); color: var(--char); padding-block: 64px 96px; --box-line: var(--char); --box-ink: var(--lime); }
.page-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 32px; }
.page-row + .page-row { margin-top: 56px; }
@media (min-width: 900px) {
  .page-row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .page-col { grid-column: span var(--span, 12); }
}
.page-col > * + * { margin-top: 28px; }
.page-col h2.boxed { margin: 0; }
.page-display { margin: 0; font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.05em; }
.page-heading { margin: 0; max-width: 22ch; font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; color: var(--char); }
.page-subhead { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.prose { max-width: 40rem; font-size: 1.1rem; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose a { text-decoration-color: var(--char); text-decoration-thickness: 1.5px; }
.prose blockquote { margin: 0; padding-left: 20px; border-left: 3px solid var(--char); font-size: 1.3rem; }
.align-center { text-align: center; margin-inline: auto; }
.align-right { text-align: right; margin-left: auto; }
.boxed-wrap.align-center h2.boxed { justify-content: center; }
.boxed-wrap.align-right h2.boxed { justify-content: flex-end; }
.page-button { margin: 0; }
.page-gallery .stills-grid img { border-radius: 0; border: 0; }
.page-gallery h2.boxed { margin-bottom: 32px; }

/* A heading set as a row of ruled boxes, the last filled — the admin's
   pages still use it. */
h2.boxed {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 48px;
  padding-left: 2px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--box-line, var(--char));
}
h2.boxed span { border: 2px solid var(--box-line, var(--char)); margin-left: -2px; margin-top: -2px; padding: 4px 12px 6px; }
h2.boxed .fill { background: var(--box-line, var(--char)); color: var(--box-ink, var(--lime)); }

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

@keyframes rise { from { opacity: 0; transform: translateY(45%); } }
.js .hero h1 { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.js .hero-cta, .js .hero-standfirst, .js .hero-sticker {
  animation: rise 0.8s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Below the fold, each row slides up as it scrolls in. Gated on .motion,
   which app.js sets only once it can reveal them again. */
.motion .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.motion .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .motion .reveal { opacity: 1; transform: none; }
  .sticker-ring { animation: none; }
}

/* ---- films: the film page and the "more from" row ---------------------- */

/* The tier price on a seat-band chip (#14). */
/* `.chip span` styles the pill itself; this span sits inside it. */
.chip span.chip-detail { display: block; border: 0; padding: 0; margin-top: 2px; background: none; font-size: 0.8rem; color: var(--muted); font-weight: 400; }
/* A secondary submit that reads as a link ("The date isn't fixed yet"). */
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--text); text-decoration: underline; cursor: pointer; }

.film-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .film-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .film-grid { grid-template-columns: repeat(3, 1fr); } }

.film-card {
  background: var(--char);
  color: var(--paper);
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.film-card a { text-decoration: none; display: block; color: inherit; }
.film-card img, .poster-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--deep);
  display: block;
}
.film-card .kind { margin: 0; font-size: 14px; font-weight: 500; color: var(--paper-muted); }
.film-card h3 { margin: 0; color: var(--paper); font-size: 1.25rem; letter-spacing: -0.01em; }
.film-card .director { margin: 0; font-weight: 500; }
.film-card .facts { margin: 0; font-size: 0.85rem; color: var(--paper-muted); }
.film-card .blurb { margin: 4px 0 0; font-size: 0.95rem; color: var(--paper-soft); }
.film-card .card-foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.film-card .pill { background: var(--lime); color: var(--char); padding: 10px 18px; font-size: 0.95rem; }
.film-card .licence { color: var(--paper-muted); font-size: 0.85rem; margin: 0; font-weight: 500; }
.film-card .credits { color: var(--muted); font-size: 0.85rem; margin: 6px 0 0; }

/* ---- playlists index ---------------------------------------------------- */

.playlists { padding-block: 48px 64px; }
.playlist-grid { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .playlist-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.playlist-card a { display: block; text-decoration: none; padding: 18px; border: var(--rule); background: transparent; }
.playlist-card h3 { margin: 14px 0 0; font-size: 1.5rem; }
.playlist-card .blurb { margin: 6px 0 0; color: var(--muted); max-width: var(--measure); }
.playlist-card .count { margin: 10px 0 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.playlist-posters { display: flex; overflow: hidden; }
.playlist-posters img { width: 72px; aspect-ratio: 2 / 3; object-fit: cover; background: var(--bg); box-shadow: 0 0 0 2px var(--bg); flex: 0 0 auto; }
.playlist-posters img + img { margin-left: -18px; }

/* ---- screenings -------------------------------------------------------- */

.screening-list { list-style: none; margin: 0; padding: 0; }
.screening-list li { border-bottom: 1px solid var(--hairline); }
.screening-list a { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; text-decoration: none; }
.screening-list .when { color: var(--muted); font-variant-numeric: tabular-nums; }
.screening-list .what { font-weight: 600; }
.screening-list .where { grid-column: 2; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 640px) {
  .screening-list a { grid-template-columns: 1fr; }
  .screening-list .where { grid-column: 1; }
}

.screening { max-width: var(--measure); padding: 48px 0 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 24px 0; }
.facts dt { color: var(--muted); font-size: 14px; font-weight: 500; }
.facts dd { margin: 0; }
.notes { white-space: pre-wrap; }

.callout { border: var(--rule); background: transparent; padding: 20px; margin: 28px 0; }
.callout h2 { margin-top: 0; }
.callout.success { border-color: var(--olive); }
.callout.warn { border-color: var(--purple); }

.error { color: #b2412c; border-left: 3px solid #b2412c; padding-left: 12px; }

/* ---- forms ------------------------------------------------------------- */

/* Square fields with a charcoal rule, on the page's own colour. */
form { max-width: var(--measure); }
form.rsvp { margin-top: 32px; }
label { display: block; margin: 0 0 18px; font-size: 14px; font-weight: 500; color: var(--text); }
label input, label textarea, label select {
  display: block;
  width: 100%;
  margin-top: 6px;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: var(--rule);
  border-radius: 0;
  padding: 12px 14px;
}
label textarea { resize: vertical; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 1rem; }
label.check input { width: auto; margin-top: 4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

form.danger { margin-top: 40px; }
form.danger button { background: transparent; color: var(--char); border: var(--rule); }

.narrow { max-width: var(--measure); padding: 48px 0 0; }
.narrow.wide { max-width: 52rem; }

.steps { color: var(--muted); max-width: var(--measure); }
.steps strong { color: var(--text); }

.film-picker, .host-screenings { list-style: none; margin: 0; padding: 0; }
.film-picker li, .host-screenings li { border-bottom: 1px solid var(--hairline); }
.film-picker a, .host-screenings a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; text-decoration: none; }
.film-picker .licence { color: var(--muted); font-size: 14px; font-weight: 500; }
.host-screenings li { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.host-screenings a { flex-direction: column; gap: 2px; flex: 1 1 18rem; }
.host-screenings .when { color: var(--muted); font-size: 0.88rem; }

.badge { display: inline-block; border: 1px solid var(--hairline); padding: 3px 10px; color: var(--muted); white-space: nowrap; }
.badge.ok { color: var(--text); border-color: var(--text); }
.badge.warn { color: var(--purple); border-color: var(--purple); }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }

table.rsvps { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 0.92rem; }
table.rsvps th, table.rsvps td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--hairline); }
table.rsvps th { color: var(--muted); }
table.rsvps form { margin: 0; }

/* Visually hidden, still announced. Scoped under body: ScrollReveal, which
   a site's head code can load, puts its own `sr` class on <html>. */
body .sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The honeypot the RSVP form carries. Off-screen rather than display:none. */
.hp { position: absolute; left: -9999px; top: 0; height: 0; overflow: hidden; }

button.quiet { background: transparent; color: var(--char); border: 1px solid var(--hairline); padding: 7px 14px; font-size: 0.85rem; }

.terms { margin: 16px 0; color: var(--muted); }
.terms summary { cursor: pointer; }
.terms p { white-space: pre-wrap; }

form.acquire { margin-top: 28px; }

/* ---- the host question flow -------------------------------------------- */

/* One column, one question, one button. */
.flow { max-width: var(--measure); margin: 0 auto; padding: 20px 0 48px; }
.flow-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 28px; }
.flow-crumb { margin: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-progress { display: flex; gap: 6px; flex: 0 0 auto; }
.flow-progress .seg { width: 18px; height: 3px; background: var(--hairline); }
.flow-progress .seg.on { background: var(--char); }

.flow h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); margin: 0 0 0.5rem; letter-spacing: -0.03em; }
.flow .standfirst { font-size: 1rem; margin: 0 0 28px; }
.flow form { max-width: none; }

/* The button is the full width of the column: a charcoal box, lime type. */
.flow-cta {
  display: block;
  width: 100%;
  margin-top: 32px;
  padding: 18px 24px;
  border-radius: 0;
  background: var(--char);
  color: var(--lime);
  font-size: 18px;
  font-weight: 700;
}
.flow-cta.accent { background: var(--lime); color: var(--char); }
.flow-cta[disabled] { background: var(--hairline); color: var(--muted); cursor: not-allowed; }

/* ---- choice cards (step 1) --------------------------------------------- */

.cards { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.cards .card { display: block; margin: 0; cursor: pointer; }
.cards .card input { position: absolute; opacity: 0; width: 0; height: 0; }
.card-body { display: block; border: var(--rule); border-color: var(--hairline); padding: 16px 18px; background: var(--white); }
.cards .card input:checked + .card-body { border-color: var(--char); background: var(--sage); }
/* A multi-pick card (#16) says whether it is in. */
.cards .card input[type="checkbox"] + .card-body .card-title::after { content: " +"; color: var(--muted); }
.cards .card input[type="checkbox"]:checked + .card-body .card-title::after { content: " ✓"; }
.cards .card input:focus-visible + .card-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-title { display: block; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.card-desc { display: block; margin-top: 4px; color: var(--muted); font-size: 0.92rem; }
.card-price { display: block; margin-top: 8px; color: var(--olive); }

/* ---- chips (steps 4 and 5) --------------------------------------------- */

.chips { border: 0; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { color: var(--muted); font-size: 14px; font-weight: 500; padding: 0 0 10px; }
.chip { display: inline-flex; align-items: center; margin: 0; cursor: pointer; }
.chip input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span { display: inline-block; border: var(--rule); border-color: var(--hairline); padding: 9px 16px; color: var(--muted); font-size: 0.95rem; font-weight: 500; background: var(--white); }
.chip input:checked + span { border-color: var(--char); background: var(--char); color: var(--lime); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.other { gap: 8px; }
.chip.other span { border-style: dashed; }
.chip.other input[type="number"] { width: 6.5rem; margin: 0; padding: 8px 12px; }

/* ---- address search (step 2) ------------------------------------------- */

.address-search { position: relative; margin-bottom: 8px; }
.address-search input[type="search"] { margin-top: 0; }
.address-results { list-style: none; margin: 8px 0 0; padding: 0; border: var(--rule); overflow: hidden; background: var(--white); }
.address-results li + li { border-top: 1px solid var(--hairline); }
.address-result { display: block; width: 100%; text-align: left; background: transparent; color: var(--text); border: 0; border-radius: 0; padding: 12px 14px; font: inherit; font-weight: 400; }
.address-result:hover, .address-result:focus-visible { background: var(--sage); }
.address-result .name { display: block; font-weight: 600; font-size: 0.95rem; }
.address-result .detail { display: block; color: var(--muted); font-size: 0.85rem; }
.address-search .picked { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }

/* ---- country picker ------------------------------------------------------ */

/* `label select` sets display:block, which would beat the hidden attribute. */
.country-picker select[hidden] { display: none; }
.country-combo { position: relative; }
.country-results {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 100%;
  max-height: 280px;
  overflow-y: auto;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--text) 12%, transparent);
}
.country-results li {
  padding: 11px 12px;
  color: var(--text);
  cursor: pointer;
}
.country-results li + li { border-top: 1px solid var(--hairline); }
.country-results li[aria-selected="true"], .country-results li:hover { background: var(--surface); }
.country-results li.none { color: var(--muted); cursor: default; }

/* ---- screening help (#14) ----------------------------------------------- */

.help-box {
  margin: 32px 0 0;
  padding: 18px;
  border: var(--card-border, 1px solid var(--hairline));
  border-radius: var(--card-radius, var(--radius));
  background: var(--surface);
  max-width: var(--measure);
}
.help-box h2 { font-size: 1.05rem; margin: 0 0 12px; }
.help-box label { margin-bottom: 10px; }
.help-answer { margin-top: 14px; }
.help-answer p { margin: 0 0 10px; color: var(--text); }
.help-answer p.hint { color: var(--muted); }
.offer-price { font-size: 1.4rem; }

/* ---- when (step 3) ------------------------------------------------------ */

.when-row { align-items: end; }
.when-row .zone { margin: 0 0 18px; padding: 12px 14px; border: var(--rule); border-color: var(--hairline); background: var(--white); color: var(--muted); font-size: 0.95rem; }

/* ---- summary (step 5 and the submit screen) ----------------------------- */

.flow-summary { margin: 28px 0 0; padding: 16px 0 0; border-top: var(--rule); font-size: 0.92rem; color: var(--muted); }
.flow-summary p { margin: 0 0 4px; }
.flow-summary strong { color: var(--text); }

@media (min-width: 640px) { .flow { padding-top: 40px; } }

/* ---- notice pages ------------------------------------------------------ */

body.notice main { display: grid; place-content: center; min-height: 100vh; text-align: center; max-width: var(--measure); }

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

/* ---- the film page (#7) ------------------------------------------------- */

.film-hero.band { background: var(--char); color: var(--paper); padding-inline: 0; }
.film-hero-still { margin: 0; position: relative; }
.film-hero-still img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.film-hero-text { padding: 28px max(var(--gutter), calc(50vw - var(--column) / 2)) 40px; }
.film-hero h1 {
  color: var(--paper);
  font-size: clamp(2.5rem, 9vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 16ch;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}
.film-kicker { margin: 0 0 12px; color: var(--lime); }
.film-kicker a { text-decoration: none; }
.film-kicker a:hover { text-decoration: underline; }
.film-facts { margin: 0 0 22px; font-weight: 500; color: var(--paper-muted); }
.film-actions { margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.film-hero .button { background: var(--lime); color: var(--char); }
.film-hero .button.ghost { background: transparent; color: var(--paper); border-color: var(--paper); }

@media (min-width: 900px) {
  .film-hero.has-still { display: grid; grid-template-areas: "stack"; min-height: clamp(520px, 74vh, 760px); }
  .film-hero.has-still > * { grid-area: stack; }
  .film-hero.has-still .film-hero-still img { height: 100%; aspect-ratio: auto; }
  .film-hero.has-still .film-hero-still::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to top, color-mix(in srgb, var(--char) 92%, transparent) 0%, transparent 62%),
      linear-gradient(to right, color-mix(in srgb, var(--char) 70%, transparent) 0%, transparent 60%);
  }
  .film-hero.has-still .film-hero-text { position: relative; align-self: end; padding-bottom: 64px; }
  .film-hero-text { padding-top: 64px; }
}

.film-about, .film-trailer, .film-stills, .film-people { padding-block: 56px 0; }
.film-about h2, .film-trailer h2, .film-stills h2, .film-people h2 { color: var(--char); }

.film-about-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.film-poster { width: min(220px, 60%); }
.film-synopsis p { font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 400; line-height: 1.5; margin: 0 0 1em; max-width: 38rem; }
.film-credits { margin: 8px 0 18px; display: grid; gap: 10px 28px; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); max-width: 38rem; }
.film-credits div { border-top: var(--rule); padding-top: 8px; }
.film-credits dt { color: var(--muted); }
.film-credits dd { margin: 2px 0 0; font-weight: 500; }

@media (min-width: 720px) {
  .film-about-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
  .film-about-grid.no-poster { grid-template-columns: minmax(0, 1fr); }
  .film-poster { width: 100%; }
}

/* Click-to-load: a frame, a lime play button, and no iframe until asked. */
.trailer-player { position: relative; aspect-ratio: 16 / 9; background: var(--deep); overflow: hidden; }
.trailer-launch { position: absolute; inset: 0; display: block; color: var(--ink); }
.trailer-launch img { width: 100%; height: 100%; object-fit: cover; }
.trailer-play { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 76px; height: 76px; border-radius: 999px; background: var(--lime); display: grid; place-items: center; }
.trailer-launch:hover .trailer-play { filter: brightness(1.06); scale: 1.04; }
.trailer-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.stills-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .stills-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.stills-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--deep); }

.people-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px 16px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.portrait { width: 84px; height: 84px; border-radius: 999px; object-fit: cover; background: var(--sage); margin-bottom: 6px; }
.portrait.initials { display: grid; place-items: center; color: var(--char); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.02em; }
.person-name { font-weight: 700; font-size: 0.95rem; line-height: 1.25; }
.person-role { color: var(--muted); font-size: 0.85rem; line-height: 1.3; }
@media (min-width: 720px) {
  .people-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .portrait { width: 104px; height: 104px; }
  .portrait.initials { font-size: 1.8rem; }
}

.film-screen { background: var(--lime); color: var(--char); padding-block: 56px 64px; margin-top: 64px; }
.film-screen h2 { color: var(--char); }
.film-pitch { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 500; margin: 0 0 24px; }
.screen-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 720px) { .screen-cards { grid-template-columns: repeat(2, 1fr); } }
.screen-card { background: var(--char); color: var(--paper); padding: 22px 22px 26px; }
.screen-card h3 { margin: 0 0 6px; font-size: 1.3rem; color: var(--lime); }
.screen-card p { margin: 0 0 18px; color: var(--paper-soft); }
.screen-card .pill { background: var(--lime); color: var(--char); }

.film-more { background: var(--cream); padding-block: 56px 64px; }
.film-more h2 { color: var(--char); }
.film-grid.film-scroll { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.film-grid.film-scroll > li { scroll-snap-align: start; }
@media (min-width: 1100px) {
  .film-grid.film-scroll { grid-template-columns: repeat(4, 1fr); grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
}

/* Mobile only: the action, always within reach. */
.film-sticky.band {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--char);
  color: var(--paper);
  border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
  padding-block: 12px calc(12px + env(safe-area-inset-bottom));
}
.film-sticky p { margin: 0; font-weight: 500; font-size: 0.92rem; line-height: 1.3; }
.film-sticky .pill { background: var(--lime); color: var(--char); padding: 10px 18px; }
@media (min-width: 900px) { .film-sticky.band { display: none; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
