/* Inter, the only typeface (design system), served from this site rather than Google Fonts,
   so no page makes a request to Google. Inter v20 variable font from Google Fonts, weights 300–600,
   Latin and Latin Extended subsets. Licence: SIL Open Font License 1.1. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Six Minutes On… — styles shared by every page. Night theme only: a dark screening room.
   Every colour, size and space is a token from the design system's tokens.json. */
:root {
  --surface-000: #03070c; --surface-100: #091a2e; --surface-200: #0d2440; --surface-300: #14304f;
  --ink: #eaebed; --ink-muted: #a3adb8; --ink-faint: #7d8690;
  --brass: #d5a867; --brass-fill: #d5a867; --on-brass: #1a1206; --tide: #86bfdb;
  --rule: #24395a; --rule-strong: #647b98;
  --series-lost-worlds: #a3a873; --series-british-culture: #86bfdb; --series-engineering: #c98a62; --series-technology: #d98f9a;
  --footage-sea: #0c2a48;
  --font-sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-0: 0px; --radius-1: 2px; --radius-full: 9999px;
  --shadow-vignette: inset 0 0 120px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface-000); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1190px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
:focus-visible { outline: 2px solid var(--tide); outline-offset: 2px; }
a { color: var(--tide); }
.eyebrow { margin: 0; font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); }
.small { font-size: 12px; line-height: 1.5; letter-spacing: 0.02em; color: var(--ink-faint); }

/* Masthead: the logo and the site's three pages */
.mast { position: relative; z-index: 2; }
.mast .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); padding-block: var(--space-6); }
.mast-logo { display: block; }
.mast-logo img { display: block; height: 34px; width: auto; }
.nav { display: flex; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.nav a { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); text-decoration: none; padding-block: var(--space-1); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--brass); }
.nav a[aria-current="page"] { color: var(--brass); border-bottom-color: var(--brass); }
@media (max-width: 420px) { .mast-logo img { height: 28px; } .nav { gap: var(--space-4); } .nav a { letter-spacing: 0.16em; } }

/* Programme tags */
.dot { display: inline-block; width: 6px; height: 6px; border-radius: var(--radius-full); margin-right: var(--space-2); vertical-align: middle; background: currentColor; }
.s-lost-worlds { color: var(--series-lost-worlds); }
.s-british-culture { color: var(--series-british-culture); }
.s-engineering { color: var(--series-engineering); }
.s-technology { color: var(--series-technology); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); padding: var(--space-3) var(--space-6); border: 1px solid var(--brass-fill); border-radius: var(--radius-0); background: var(--brass-fill); color: var(--on-brass); font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--surface-000); }
.btn-quiet { margin-top: 0; background: transparent; color: var(--ink-muted); border-color: var(--rule-strong); }
.btn-quiet:hover { background: transparent; color: var(--ink); border-color: var(--brass); }
.btn[aria-disabled="true"], .btn[aria-disabled="true"]:hover { border-color: var(--brass-fill); background: transparent; color: var(--brass-fill); cursor: default; }
.link-quiet { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); text-decoration: none; }
.link-quiet:hover { color: var(--ink); }

/* Player: built by films.js when a film is played */
dialog.player { width: min(1100px, calc(100% - 32px)); max-width: none; padding: 0; border: 1px solid var(--rule); background: var(--surface-000); color: var(--ink); }
dialog.player::backdrop { background: rgba(0, 0, 0, 0.85); }
.player-frame { aspect-ratio: 16 / 9; background: var(--surface-000); }
.player-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--rule); background: var(--surface-100); }
.player-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); }
.player-link { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); text-decoration: none; white-space: nowrap; }
.player-link:hover { color: var(--ink); }
@media (max-width: 520px) { .player-title { display: none; } .player-bar { justify-content: flex-end; gap: var(--space-6); } }

/* Section headings */
.section-head { display: flex; flex-direction: column; gap: var(--space-2); }
.section-head h2, .page-head h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }

/* Inner pages: a heading band, then reading copy */
.page-head { border-bottom: 1px solid var(--rule); }
.page-head .wrap { display: flex; flex-direction: column; gap: var(--space-2); padding-block: var(--space-12) var(--space-8); }
.page-head h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.04; font-weight: 300; letter-spacing: 0.04em; }
.page-head .lede { margin: var(--space-4) 0 0; max-width: 36em; font-size: 18px; line-height: 1.65; color: var(--ink-muted); }
.band { border-bottom: 1px solid var(--rule); }
.band:nth-of-type(even) { background: var(--surface-100); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-8); padding-block: var(--space-16); }
@media (max-width: 860px) { .band .wrap { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-12); } }
.prose { max-width: 40em; }
.prose p, .prose li { font-size: 18px; line-height: 1.65; color: var(--ink-muted); }
.prose p { margin: 0 0 var(--space-4); }
.prose ul { margin: 0 0 var(--space-4); padding-left: 1.2em; }
.prose li { margin-bottom: var(--space-2); }
.prose strong { font-weight: 500; color: var(--ink); }
.prose h3 { margin: var(--space-8) 0 var(--space-3); font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: 0.02em; color: var(--ink); }
.prose h3:first-child { margin-top: 0; }

/* Film cards, as in the design system's FilmCard */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 850px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.fcard { display: flex; flex-direction: column; background: var(--surface-200); border: 1px solid var(--rule); border-radius: var(--radius-0); transition: border-color .25s, transform .25s; }
.fcard:hover { border-color: var(--brass); transform: translateY(-3px); }
.fcard[hidden] { display: none; }
.fcard-meta { display: flex; justify-content: space-between; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--rule); font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.fcard-meta b { font-weight: 500; color: var(--brass); font-variant-numeric: tabular-nums; }
.fcard-art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--footage-sea); }
.fcard-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.fcard:hover .fcard-art img { transform: scale(1.04); }
.fcard-art::after { content: ""; position: absolute; inset: 0; box-shadow: var(--shadow-vignette); pointer-events: none; }
.fcard-body { flex: 1; padding: var(--space-4) var(--space-4) var(--space-6); }
.fcard-body .eyebrow { font-size: 11px; }
.fcard-title { margin: var(--space-2) 0; font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: 0.02em; }
.fcard-sub { margin: 0 0 var(--space-3); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.fcard-desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
.fcard-foot { display: flex; justify-content: flex-end; padding: var(--space-3) var(--space-4); border-top: 1px solid var(--rule); background: var(--surface-100); }
.fcard-foot .btn { margin-top: 0; padding: var(--space-2) var(--space-4); font-size: 11px; }

.archive .wrap { padding-block: var(--space-8) var(--space-16); }

/* Filter chips, as in the design system's FilterChip */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-8); padding: 0; list-style: none; }
.chip { padding: var(--space-2) var(--space-4); background: var(--surface-100); color: var(--ink-muted); border: 1px solid var(--rule-strong); border-radius: var(--radius-0); font: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--brass); border-color: var(--brass); background: var(--surface-200); }

/* Footer */
.foot { border-top: 1px solid var(--rule); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-8); padding-block: var(--space-8); }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.foot-links a { font-size: 12px; letter-spacing: 0.02em; color: var(--ink-muted); text-decoration: none; }
.foot-links a:hover { color: var(--brass); }
.social { display: flex; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink-muted); border: 1px solid var(--rule); transition: color .2s, border-color .2s; }
.social a:hover { color: var(--brass); border-color: var(--brass); }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.foot-credit { flex-basis: 100%; margin: 0; }

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