/* The festplanner.app web pages (scripts/build-pages.js): the app's paper, ink and prayer-flag
   colours, laid out for reading on any screen. */
@font-face { font-family: 'Jost'; font-weight: 400 800; font-display: swap; src: url(/diff-26/fonts/jost-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: italic; font-weight: 500 700; font-display: swap; src: url(/diff-26/fonts/jost-italic.woff2) format('woff2'); }

:root {
  --bg: #f2ede0; --card: #fffcf5; --ink: #17110b; --ink2: #625749; --ink3: #8a7e6f;
  --line: rgba(23, 17, 11, .12); --fill: rgba(23, 17, 11, .06); --accent: #2f4fb8;
  --primary: #17110b; --on-primary: #f6f1e3; --bar: rgba(242, 237, 224, .84);
  --c-narrative: #2f62d0; --c-doc: #d0432f; --c-shorts: #1d8c52; --c-talk: #a87c00; --c-class: #6a5e51; --c-repeat: #888;
  --display: 'Jost', 'Avenir Next', system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Segoe UI', sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a08; --card: #191512; --ink: #f6f1e3; --ink2: #b5aa98; --ink3: #8a7f70;
    --line: rgba(246, 241, 227, .12); --fill: rgba(246, 241, 227, .075); --accent: #7fa6ff;
    --primary: #f6f1e3; --on-primary: #0c0a08; --bar: rgba(12, 10, 8, .82);
    --c-narrative: #7ea3ff; --c-doc: #ff7d66; --c-shorts: #58d18e; --c-talk: #ffd24d; --c-class: #d8cfbe;
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; background-size: cover; background-position: center; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.08; margin: 0; }
p, ul, ol, dl, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.c-narrative { --c: var(--c-narrative); } .c-doc { --c: var(--c-doc); } .c-shorts { --c: var(--c-shorts); }
.c-talk { --c: var(--c-talk); } .c-class { --c: var(--c-class); } .c-repeat { --c: var(--c-repeat); }

.top { position: sticky; top: 0; z-index: 10; background: var(--bar); -webkit-backdrop-filter: blur(18px) saturate(1.8); backdrop-filter: blur(18px) saturate(1.8); border-bottom: .5px solid var(--line); padding-top: env(safe-area-inset-top); }
.top-in { max-width: 820px; margin: 0 auto; height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 18px; }
.mark { font: 700 19px var(--display); color: var(--ink); letter-spacing: -.01em; }
.mark i { font-style: normal; font-weight: 500; opacity: .55; }
.top nav { display: flex; gap: 16px; margin-right: auto; font-size: 15px; font-weight: 550; }
.top nav a { color: var(--ink2); }
.top-cta { flex: none; height: 36px; padding: 0 16px; border-radius: 18px; background: var(--primary); color: var(--on-primary); font-weight: 650; font-size: 14.5px; display: inline-flex; align-items: center; }
.top-cta:hover { text-decoration: none; opacity: .9; }
@media (max-width: 560px) { .top nav { display: none; } .mark { margin-right: auto; } }

main { max-width: 820px; margin: 0 auto; padding: 18px 16px 60px; }
.crumbs { font-size: 13.5px; color: var(--ink3); display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.crumbs i { font-style: normal; opacity: .6; }
.crumbs a { color: var(--ink2); }
.kicker { font-size: 14px; font-weight: 650; color: var(--c, var(--ink2)); margin-top: 22px; }
.kicker b { color: var(--accent); }
h1 { font-size: clamp(36px, 7vw, 60px); font-weight: 700; letter-spacing: -.03em; margin-top: 6px; text-wrap: balance; }
h1 .alt { display: block; font: italic 500 .42em/1.3 var(--display); color: var(--ink2); letter-spacing: 0; margin-top: 6px; }
h2 { font-size: 25px; font-weight: 650; margin: 40px 0 14px; }
h2 small { font: 400 15px var(--sans); color: var(--ink3); margin-left: 6px; letter-spacing: 0; }
.by { font-size: 18px; color: var(--ink2); margin-top: 10px; }
.by a { color: var(--ink); font-weight: 600; }
.part { margin-top: 10px; color: var(--ink2); }
.lede { font-size: 19px; color: var(--ink2); margin-top: 12px; max-width: 38em; }
.syn { font-size: 19px; line-height: 1.6; margin-top: 28px; max-width: 38em; white-space: pre-line; }
.note { color: var(--ink3); font-size: 14px; margin-top: 10px; }
.phead { margin-bottom: 10px; }

.hero { position: relative; margin: 0 -16px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--fill); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
/* Trailer: a button on the poster; tapped, the hero becomes the player. */
.hero-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px 0 7px; border-radius: 25px; background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; font-weight: 650; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3), 0 8px 24px rgba(0, 0, 0, .25); }
.hero-play:hover { text-decoration: none; background: rgba(0, 0, 0, .55); }
.hero-play i { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #17110b; display: grid; place-items: center; font-style: normal; font-size: 14px; padding-left: 2px; }
.hero.playing { aspect-ratio: auto; overflow: visible; background: none; }
.hero.playing iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.hero figcaption { color: var(--ink3); font-size: 13.5px; margin: 8px 16px 0; }
@media (min-width: 852px) { .hero.playing iframe { border-radius: 26px; } .hero figcaption { margin-left: 0; } }
@media (min-width: 852px) { .hero { margin: 0; border-radius: 26px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border-radius: 26px; font-weight: 650; font-size: 16.5px; background: var(--fill); color: var(--ink); margin-top: 18px; }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.slots { margin-top: 26px; background: var(--card); border-radius: 24px; padding: 6px 18px 20px; }
.slots h2 { font-size: 19px; margin: 14px 0 6px; }
.slot { display: flex; gap: 14px; align-items: center; padding: 10px 0; }
.slot + .slot { border-top: .5px solid var(--line); }
.sd { width: 42px; text-align: center; line-height: 1.05; flex: none; }
.sd small { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #df3a2b; }
.sd b { font: 600 24px var(--display); }
.si b { display: block; font-weight: 650; font-variant-numeric: tabular-nums; }
.si span { color: var(--ink2); font-size: 15px; }
.slots .btn { width: 100%; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 16px; margin-top: 26px; padding: 18px 0; border-top: .5px solid var(--line); border-bottom: .5px solid var(--line); }
.facts dt { font-size: 13px; font-weight: 600; color: var(--ink3); }
.facts dd { margin: 0; font-weight: 600; }
.bio { display: flex; gap: 16px; padding: 14px 0; color: var(--ink); }
.bio + .bio { border-top: .5px solid var(--line); }
.bio:hover { text-decoration: none; }
.bio img, .bio .av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.av { display: grid; place-items: center; background: var(--fill); color: var(--ink2); font-weight: 650; }
.bio b { display: block; font-weight: 650; }
.bio small { display: block; color: var(--ink3); font-size: 14px; }
.bio span span { display: block; color: var(--ink2); font-size: 15.5px; margin-top: 4px; }
.crew { display: grid; gap: 10px; }
.crew { font-size: 16px; }
.crew div { display: grid; grid-template-columns: 9.6em 1fr; gap: 14px; }
.crew dt { overflow-wrap: anywhere; }
.crew dt { color: var(--ink3); }
.crew dd { margin: 0; }
.laurels li { padding: 10px 0; border-bottom: .5px solid var(--line); }
.out { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 34px; font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 16px; }
.fcard { display: block; color: var(--ink); }
.fcard:hover { text-decoration: none; }
.fcard:hover .fc-img { transform: scale(1.02); }
.fc-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; transition: transform .3s; }
.fc-img.ph { background: var(--fill); }
.fc-t { display: block; margin-top: 10px; }
.fc-t small { display: block; font-size: 12.5px; font-weight: 650; color: var(--c); }
.fc-t b { display: block; font-weight: 650; line-height: 1.25; }
.fc-t span { display: block; color: var(--ink2); font-size: 14.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fc-t em { display: block; font-style: normal; color: var(--ink3); font-size: 13.5px; margin-top: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pills a { padding: 7px 15px; border-radius: 18px; background: var(--fill); color: var(--ink); font-weight: 550; font-size: 15px; }
.names li { padding: 8px 0; border-bottom: .5px solid var(--line); }
.names span { color: var(--ink3); font-size: 14.5px; }

.sday h2 { position: sticky; top: calc(env(safe-area-inset-top) + 56px); background: var(--bg); padding: 10px 0; margin-bottom: 4px; z-index: 2; }
.sched li { display: flex; gap: 14px; padding: 12px 0; border-bottom: .5px solid var(--line); }
.sched time { width: 100px; white-space: nowrap; flex: none; font: 600 17px var(--display); font-variant-numeric: tabular-nums; border-left: 3.5px solid var(--c, var(--ink3)); padding-left: 10px; }
.sched a, .sched b { font-weight: 650; color: var(--ink); }
.sched small { display: block; color: var(--ink2); font-size: 14.5px; }
.day-app { margin-top: 14px; font-weight: 650; }

.person .face { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 18px; }
.people a { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: var(--ink); }
.people img, .people .av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.people b { display: block; font-weight: 600; }
.people small { display: block; color: var(--ink3); font-size: 13.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 200px; }
.venues li { padding: 12px 0; border-bottom: .5px solid var(--line); }
.venues b { display: block; }
.venues span { color: var(--ink2); }
details { border-bottom: .5px solid var(--line); padding: 14px 0; }
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--ink2); margin-top: 8px; }

footer { border-top: .5px solid var(--line); padding: 34px 16px calc(env(safe-area-inset-bottom) + 40px); color: var(--ink3); font-size: 14px; }
.foot-in { max-width: 820px; margin: 0 auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0; font-weight: 600; }
footer .flags { display: flex; gap: 6px; }
footer .flags i { width: 14px; height: 20px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
footer .flags i:nth-child(1) { background: #2f62d0; } footer .flags i:nth-child(2) { background: #f4efe2; box-shadow: inset 0 0 0 1px var(--line); }
footer .flags i:nth-child(3) { background: #d8432f; } footer .flags i:nth-child(4) { background: #22955a; } footer .flags i:nth-child(5) { background: #e5b000; }
