/* Drama site styles. Native CSS, no framework.
   World: a 1920s picture programme printed in sepia. One hue only (warm brown, ~30deg):
   toned paper, sepia-black ink, rules instead of boxes, plates instead of cards.
   Type: League Gothic (after Alternate Gothic, 1903) for display, Libre Franklin
   (after Franklin Gothic, 1902) for everything else. Corners are square everywhere. */

@font-face {
  font-family: "League Gothic";
  src: url("/assets/fonts/LeagueGothic-var.woff2") format("woff2");
  font-weight: 400;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("/assets/fonts/LibreFranklin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("/assets/fonts/LibreFranklin-italic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #e7dbc4;
  --paper-2: #dccdb2;
  --paper-3: #efe5d3;
  --ink: #1e140c;
  --ink-2: #4a392a;
  --ink-3: #634f3d;
  --rule: #b6a184;
  --act: #1e140c;
  --act-ink: #efe5d3;
  --act-hover: #5c3417;
  --focus: #8a4a1f;
  --flag: #5c3417;
  /* The auditorium: closing band and footer stay dark in both themes. */
  --night: #150f09;
  --night-2: #1f170f;
  --night-ink: #ece1cc;
  --night-ink-2: #c3b197;
  --night-ink-3: #9c8a72;
  --night-rule: #3a2c20;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .08 0 0 0 0 .05 .9 0 0 0 -.32'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  --font-display: "League Gothic", "Arial Narrow", "Libre Franklin", sans-serif;
  --font-body: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1e160e;
    --paper-2: #241b12;
    --paper-3: #2a2016;
    --ink: #ece1cc;
    --ink-2: #c9b89e;
    --ink-3: #9c8a72;
    --rule: #3d2f22;
    --act: #ece1cc;
    --act-ink: #15100a;
    --act-hover: #d6b48a;
    --focus: #d6b48a;
    --flag: #d6b48a;
    --night: #0e0a06;
    --night-2: #150f09;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .87 0 0 0 0 .78 .9 0 0 0 -.36'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1e160e;
  --paper-2: #241b12;
  --paper-3: #2a2016;
  --ink: #ece1cc;
  --ink-2: #c9b89e;
  --ink-3: #9c8a72;
  --rule: #3d2f22;
  --act: #ece1cc;
  --act-ink: #15100a;
  --act-hover: #d6b48a;
  --focus: #d6b48a;
  --flag: #d6b48a;
  --night: #0e0a06;
  --night-2: #150f09;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .87 0 0 0 0 .78 .9 0 0 0 -.36'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: var(--ink-3) var(--paper-2); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  caret-color: var(--focus);
}
::selection { background: var(--ink); color: var(--paper); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.012em; line-height: 0.95; }
h3, h4 { font-family: var(--font-body); font-weight: 700; line-height: 1.25; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
strong { font-weight: 650; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 36px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--act); color: var(--act-ink); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.ic { width: 1.2em; height: 1.2em; flex: none; }

/* Thick-and-thin rule, the programme's section divider. */
.rule2 { height: 6px; background: linear-gradient(var(--ink), var(--ink)) top / 100% 3px no-repeat, linear-gradient(var(--ink), var(--ink)) bottom / 100% 1px no-repeat; }

/* Placard caps: captions, meta, table heads. Never above a heading. */
.caps { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border: 1px solid var(--act); border-radius: 0;
  font-family: var(--font-body); font-weight: 650; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary { background: var(--act); color: var(--act-ink); }
.btn-primary:hover { background: var(--act-hover); border-color: var(--act-hover); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--act); color: var(--act-ink); }
.btn-sm { padding: 11px 16px; font-size: 12.5px; }
.btn-lg { padding: 18px 28px; font-size: 15px; }
.btn .ic { width: 18px; height: 18px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- Masthead ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper) var(--grain); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.site-header .rule2 { margin: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 36px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--ink-2); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.site-nav a:not(.btn):hover { color: var(--ink); border-color: var(--ink); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--ink); color: var(--ink); padding: 9px 14px; font-size: 12.5px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 78px; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper) var(--grain); border-bottom: 1px solid var(--ink); padding: 4px 20px 22px; }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
  .site-nav .btn { margin-top: 18px; }
}

/* ---------- Plates (film stills, mounted like a programme's photogravure) ---------- */
.plate { margin: 0; }
.plate-media { position: relative; overflow: hidden; padding: 5px; border: 1px solid var(--ink); background: #150f09 content-box; }
.plate-media img, .plate-media video { width: 100%; height: 100%; object-fit: cover; background: #150f09; border: 1px solid var(--ink); }
.plate-media::after { content: ""; position: absolute; inset: 6px; pointer-events: none; box-shadow: inset 0 0 60px rgb(21 15 9 / 0.45); }
.plate figcaption { display: flex; gap: 12px; align-items: baseline; margin-top: 14px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5; }
.plate-no { font-family: var(--font-display); font-size: 22px; line-height: 1; color: var(--ink); letter-spacing: 0.04em; text-transform: uppercase; flex: none; }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 0; }
@media (min-width: 980px) { .hero { padding: 56px 0 0; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1fr 1.08fr; gap: 64px; } }
.hero h1 { font-size: clamp(54px, 9.2vw, 96px); max-width: 13ch; }
.hero-sub { margin-top: 26px; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 44ch; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .hero-cta .btn { flex: 1 1 100%; } }
.hero .plate-media { aspect-ratio: 4 / 3; }
.reel-toggle { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgb(236 225 204 / 0.5); background: rgb(21 15 9 / 0.72); color: #ece1cc; font-size: 11.5px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background-color .2s, border-color .2s; }
.reel-toggle:hover { background: rgb(21 15 9 / 0.92); border-color: #ece1cc; }
.reel-toggle .ic { width: 14px; height: 14px; }
.reel-toggle[hidden] { display: none; }

/* The authored moment: the hero plate opens with an iris, as a silent picture would. */
@media (prefers-reduced-motion: no-preference) {
  .hero .plate-media video, .hero .plate-media img { animation: iris 1.6s var(--ease) .15s both; }
  @keyframes iris { from { clip-path: circle(24% at 50% 46%); } to { clip-path: circle(80% at 50% 46%); } }
}

.dateline { margin-top: 56px; }
@media (min-width: 980px) { .dateline { margin-top: 72px; } }
.dateline ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px; padding: 14px 0; border-bottom: 1px solid var(--ink); color: var(--ink-2); }
.dateline li { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
@media (min-width: 768px) { .section { padding: 104px 0; } }
.section-head { display: grid; gap: 18px; padding-top: 22px; margin-bottom: 48px; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 64px; } }
.section-h { font-size: clamp(44px, 6.2vw, 76px); max-width: 16ch; }
.section-sub { color: var(--ink-2); font-size: 18px; max-width: 52ch; }
.band { background: var(--paper-2) var(--grain); }

/* ---------- Public domain ---------- */
.pd-grid { display: grid; gap: 48px; }
@media (min-width: 980px) { .pd-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.pd-grid .plate-media { aspect-ratio: 800 / 588; }
.pd-grid .section-h { margin-top: 0; }
.pd-list { margin-top: 36px; border-top: 1px solid var(--ink); }
.pd-list li { padding: 20px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.pd-list strong { color: var(--ink); font-weight: 750; }

/* ---------- Closing band: the auditorium ---------- */
.closing { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--night-ink); }
.closing-grid { display: grid; min-height: 560px; }
@media (min-width: 900px) { .closing-grid { grid-template-columns: 1fr 1fr; } }
.closing-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 88px 0; }
.closing h2 { font-size: clamp(48px, 6.4vw, 84px); max-width: 11ch; }
.closing p { margin-top: 22px; color: var(--night-ink-2); font-size: 18px; max-width: 42ch; }
.closing .btn { margin-top: 32px; align-self: flex-start; }
.closing .btn-primary { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.closing .btn-primary:hover { background: #d6b48a; border-color: #d6b48a; }
.closing-img { position: absolute; inset: 0 0 0 auto; width: 100%; margin: 0; z-index: -1; }
.closing-img img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.closing-img figcaption { position: absolute; right: 20px; bottom: 16px; color: var(--night-ink-3); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
@media (min-width: 900px) {
  .closing-img { width: 54%; }
  .closing-img img { opacity: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 34%); mask-image: linear-gradient(90deg, transparent, #000 34%); }
  .closing-img figcaption { right: 36px; bottom: 24px; }
}

/* ---------- Footer (end credits) ---------- */
.site-footer { --mark-hole: var(--night-2); background: var(--night-2); color: var(--night-ink-2); padding: 64px 0 36px; font-size: 15px; }
.site-footer a { color: var(--night-ink); }
.site-footer .brand { color: var(--night-ink); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2.4fr 1fr; gap: 36px; } }
.footer-brand p { margin-top: 18px; max-width: 36ch; }
.footer-h { font-family: var(--font-body); font-size: 12.5px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--night-ink); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--night-ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--night-ink); text-decoration: underline; }
.footer-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--night-rule); display: grid; gap: 10px; color: var(--night-ink-3); font-size: 13.5px; }
.footer-legal p { max-width: 110ch; }

/* 404 */
.notfound { padding: 64px 0 120px; }
.notfound-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .notfound-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.notfound h1 { font-size: clamp(64px, 10vw, 96px); max-width: 12ch; }
.notfound p { margin-top: 20px; color: var(--ink-2); font-size: 19px; max-width: 40ch; }
.notfound .btn { margin-top: 30px; }
.notfound .plate-media { aspect-ratio: 800 / 588; }

/* ---------- Watch: shelves on the home page and the film page ---------- */
.watch { padding: 48px 0 96px; }
@media (min-width: 768px) { .watch { padding: 56px 0 120px; } }
.watch [hidden] { display: none !important; }
.watch-status { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; color: var(--ink-2); }

/* Shelves of films, each opened by a heading over a thick-and-thin rule. */
.shelf { margin-top: 56px; }
@media (min-width: 768px) { .shelf { margin-top: 72px; } }
.shelf:first-child { margin-top: 0; }
.shelf-h { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.012em; line-height: 0.95; font-size: clamp(36px, 4.4vw, 48px); display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.shelf-h span { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.film-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
@media (min-width: 640px) { .film-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 22px; } }
@media (min-width: 1000px) { .film-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; } }
.film-card { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
/* Each still is mounted like a programme plate. */
.film-thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; padding: 4px; border: 1px solid var(--ink); background: var(--night) content-box; margin-bottom: 12px; }
/* The still lies over the title card, which shows when the still is missing or fails to load. */
.film-thumb img { position: absolute; top: 4px; left: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: cover; filter: sepia(0.35); transition: filter .4s var(--ease), opacity .3s var(--ease); }
.film-card:hover .film-thumb img { filter: sepia(0); }
.film-name { font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.3; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.film-card:hover .film-name { text-decoration-color: currentColor; }
.film-meta { color: var(--ink-3); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
/* Title card: stands in for a frame we do not show (trademarked characters). */
.film-card-title { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; color: var(--night-ink); background: var(--night); box-shadow: inset 0 0 0 6px var(--night), inset 0 0 0 7px var(--night-rule); }
.film-card-title span { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); text-transform: uppercase; letter-spacing: 0.03em; line-height: 1; max-width: 12ch; }
.film-card-title small { color: var(--night-ink-3); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; }

.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; font-size: 12.5px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.back-link:hover { color: var(--ink); text-decoration: underline; }
.back-link .ic { transform: scaleX(-1); width: 16px; height: 16px; }
.film { margin-top: 24px; }
/* The player keeps the film's own shape and never grows taller than the window. */
.player { --ratio: 1.333; position: relative; aspect-ratio: var(--ratio); width: min(100%, calc((100svh - 200px) * var(--ratio))); min-width: min(100%, 320px); margin: 0 auto; background: #000; border: 1px solid var(--ink); outline: 4px solid var(--night); outline-offset: -5px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--night-ink-2); }
.film-head { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--ink); }
.film-head h1 { font-size: clamp(44px, 6vw, 72px); }
.film-facts { margin-top: 12px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.advisory { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 15px; max-width: 72ch; }
