/* Layout concept: a theatre programme. A dark ink banner and masthead, then pages that read
   like programme sections: running orders, cast lists with dotted leaders, billing by date. */
:root {
  --paper: #f6f5f7;
  --surface: #ffffff;
  --ink: #1e1b24;
  --muted: #5e5968;
  --rule: #d9d5de;
  --heart: #c4122f;
  --heart-ink: #ffffff;
  --band: #1e1b24;
  --band-ink: #f1eff4;
  --todo-bg: #fff3b0;
  --todo-ink: #5a4500;
  --display: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --body: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --measure: 66ch;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15131a; --surface: #1d1a23; --ink: #ecebf0; --muted: #a8a2b3; --rule: #36313f;
    --heart: #ff5d73; --heart-ink: #1a0a0e; --band: #0d0b10; --band-ink: #ecebf0;
    --todo-bg: #4a3d00; --todo-ink: #ffe58a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15131a; --surface: #1d1a23; --ink: #ecebf0; --muted: #a8a2b3; --rule: #36313f;
  --heart: #ff5d73; --heart-ink: #1a0a0e; --band: #0d0b10; --band-ink: #ecebf0;
  --todo-bg: #4a3d00; --todo-ink: #ffe58a; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--heart); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--heart); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; text-wrap: balance; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* banner + masthead */
.banner { background: var(--heart); color: var(--heart-ink); font-size: 0.95rem; }
.banner .wrap { padding-block: 0.55rem; }
.banner a { color: inherit; font-weight: 600; }
.masthead { background: var(--band); color: var(--band-ink); }
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.brand strong { display: block; font: 700 1.35rem/1.1 var(--display); }
.brand small { display: block; color: var(--band-ink); opacity: 0.75; font-size: 0.85rem; letter-spacing: 0.04em; }
.masthead nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.masthead nav a { color: var(--band-ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding-block: 4px; border-bottom: 2px solid transparent; }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { border-bottom-color: var(--heart); }

main.wrap { padding-block: 40px 64px; display: flex; flex-direction: column; gap: 56px; }
main > section, main > div, main > article { min-width: 0; }

.kicker { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--heart); margin: 0 0 0.5rem; }
.pagehead { max-width: var(--measure); }
.lede { font-size: 1.25rem; line-height: 1.5; color: var(--muted); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.note { color: var(--muted); font-size: 0.95rem; }
.meta { color: var(--muted); font-size: 0.92rem; letter-spacing: 0.02em; margin-top: -0.3em; }
.credit { color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--rule); padding-top: 0.6em; }
.section-h { margin-bottom: -24px; padding-bottom: 8px; border-bottom: 3px double var(--rule); }
.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 0 0.25em; border-radius: 3px; font-style: italic; }

figure { margin: 0; }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.pull { margin: 1.6em 0; padding: 0 0 0 1.1em; border-left: 4px solid var(--heart); font: 500 1.3rem/1.4 var(--display); }
.pull p { margin: 0 0 0.4em; }
.pull cite { display: block; font: italic 0.92rem/1.4 var(--body); color: var(--muted); }

/* home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.hero-text p { max-width: 60ch; }
.hero-text p:first-of-type:not(.kicker) { font-size: 1.15rem; }
.hero-img img { border-radius: 4px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-top: 18px; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
.strip .gallery { margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); counter-reset: none; }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 6px 24px; padding: 14px 0; text-decoration: none; color: var(--ink); }
.toc .t { font: 700 1.25rem/1.25 var(--display); color: var(--heart); }
.toc .d { color: var(--muted); align-self: center; }
.toc a:hover .t { text-decoration: underline; }
.closing { max-width: var(--measure); background: var(--surface); border: 1px solid var(--rule); padding: 28px 32px; border-radius: 4px; }
.closing .sig { color: var(--muted); font-style: italic; margin: 0; }

/* about */
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.side img { border-radius: 4px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; margin-top: 20px; }
.person { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: start; font-size: 0.98rem; }
.person img { width: 120px; height: 150px; object-fit: cover; border-radius: 3px; }
.person h3 { margin: 0; font-weight: 700; }
.person .role { color: var(--heart); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; margin: 0.15em 0 0.6em; }
.credits-h { margin-top: 36px; }
.credits { max-width: 40rem; margin: 0; }
.credits div { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; }
.credits dt { font-weight: 600; white-space: nowrap; }
.credits dd { margin: 0; color: var(--muted); text-align: right; }
.credits div::after { content: none; }
.credits dt::after { content: ""; }
.credits div { display: grid; grid-template-columns: auto minmax(1rem, 1fr) auto; }
.credits div::before { content: ""; grid-column: 2; grid-row: 1; border-bottom: 2px dotted var(--rule); align-self: end; margin-bottom: 0.4em; }
.credits dt { grid-column: 1; grid-row: 1; }
.credits dd { grid-column: 3; grid-row: 1; }

/* shows */
.night { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 8px; }
.night-imgs { display: grid; gap: 12px; }
.night-imgs img { border-radius: 3px; }
.night-imgs figure:only-child img { max-width: 320px; }
.format { border-top: 1px solid var(--rule); padding-top: 24px; display: grid; gap: 4px; }
.format header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.format header h3 { font-size: 1.6rem; font-weight: 700; margin: 0; }
.format header .meta { margin: 0; }

/* courses */
.tablewrap { overflow-x: auto; }
.schedule { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
.schedule caption { text-align: left; font: 700 1.3rem var(--display); margin-bottom: 10px; }
.schedule th { text-align: left; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); padding: 6px 12px 6px 0; }
.schedule td { border-bottom: 1px solid var(--rule); padding: 9px 12px 9px 0; vertical-align: top; }
.schedule td.d { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px 40px; }
.course h3 { font-weight: 700; margin-bottom: 0.2em; }
.also ul { padding-left: 1.2em; }

/* guests */
.guests { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.guest { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 8px 28px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.g-date { font: 700 1.05rem/1.3 var(--display); color: var(--heart); font-variant-numeric: tabular-nums; }
.g-body h3 { margin: 0 0 0.2em; font-weight: 700; }
.g-who { margin-bottom: 0.4em; }
.g-body p:last-child { margin: 0; color: var(--muted); max-width: 60ch; }
.g-imgs { display: flex; gap: 8px; }
.g-imgs img { width: 96px; height: 120px; object-fit: cover; border-radius: 3px; }

/* testimonials */
.press { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: var(--measure); }
.press li { display: grid; gap: 2px; }
.press a { font-weight: 600; font-size: 1.08rem; }
.press .src { color: var(--muted); font-size: 0.92rem; }
.press q { font-family: var(--display); font-size: 1.1rem; }
.testimonials { columns: 2 360px; column-gap: 48px; }
.testimonials > h2 { column-span: all; }
.tgroup { break-inside: avoid-column; margin-bottom: 28px; }
.tgroup h3 { font-weight: 700; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.tgroup blockquote { margin: 0 0 16px; break-inside: avoid; }
.tgroup blockquote p { margin: 0; }
.tgroup blockquote p::before { content: "“"; } .tgroup blockquote p::after { content: "”"; }
.tgroup cite { display: block; color: var(--muted); font-size: 0.9rem; font-style: normal; margin-top: 2px; }
.tgroup cite::before { content: "— "; }

/* writing */
.posts { list-style: none; padding: 0; margin: 0; max-width: var(--measure); display: grid; gap: 24px; }
.posts a { font: 700 1.35rem/1.25 var(--display); }
.posts .d { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.posts p { margin: 0.3em 0 0; }
.interview blockquote { margin: 0 0 1em; padding-left: 1em; border-left: 3px solid var(--rule); }
.post .prose h3, .post .prose h4 { font-family: var(--display); margin-top: 1.4em; }
.postnote { color: var(--muted); font-size: 0.92rem; border-top: 1px solid var(--rule); padding-top: 12px; max-width: var(--measure); }

/* heart still beating */
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.entry { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--heart); padding: 20px 22px; border-radius: 3px; }
.entry h2 { font-size: 1.35rem; }
.entry p { margin: 0; }

.foot { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.92rem; }
.foot .wrap { padding-block: 24px 32px; }
.foot p { margin: 0 0 0.4em; }

@media (max-width: 820px) {
  .hero, .cols, .night { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .strip .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc a { grid-template-columns: minmax(0, 1fr); }
  .guest { grid-template-columns: minmax(0, 1fr); }
  .closing { padding: 22px 20px; }
}
@media (max-width: 480px) {
  .person { grid-template-columns: 88px minmax(0, 1fr); }
  .person img { width: 88px; height: 110px; }
  .credits div { grid-template-columns: minmax(0, 1fr); }
  .credits div::before { display: none; }
  .credits dd { grid-column: 1; grid-row: 2; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.entry p + p { margin-top: 0.8em; }
.entry .find { color: var(--muted); font-size: 0.95rem; }
.entries { align-items: start; }
