/* Zigarthanda — cream paper, frost and slate blue. After the cover of Ru. All Garamond. */

:root {
  --paper: #FAF8F3;       /* page: soft paper, off-white */
  --paper-deep: #F0EBE1;  /* Verandah door, image placeholders */
  --frost: #D5DEE6;       /* the Now band */
  --frost-line: #B4C2CE;  /* lines inside the band */
  --ink: #1E2430;         /* text */
  --ink-soft: #3A4250;    /* secondary text */
  --ink-faint: #5C6370;   /* captions */
  --blue: #23476A;        /* titles, buttons, links */
  --blue-deep: #17324D;   /* hover */
  --plum: #6B3346;        /* your name, numerals */
  --red: #B82C47;         /* the umbrella: small labels only */
  --hair: #E6E0D5;        /* hairlines */

  --display: 'Cormorant Garamond', Garamond, Georgia, serif;
  --label: 'EB Garamond', Garamond, Georgia, serif;
  --serif: 'EB Garamond', Garamond, Georgia, serif;   /* reading text */

  --measure: 640px;
  --wide: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

h1, h2, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }

/* ---------- Header ---------- */
.site-header {
  max-width: var(--wide); margin: 0 auto; padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px;
}
.mark { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--blue); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-family: var(--label); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: 12px 0; }
.nav a:hover { color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--measure); margin: 0 auto;
  padding: 12vh 20px 40px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(58px, 15vw, 120px); line-height: 0.95; color: var(--blue);
}
.byline { margin-top: 22px; font-family: var(--label); font-style: italic; font-size: 19px; letter-spacing: 0.3em; color: var(--ink-soft); }
.author { margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 5vw, 30px); letter-spacing: 0.4em; text-transform: uppercase; color: var(--plum); padding-left: 0.4em; }
.genres { margin-top: 18px; font-family: var(--label); font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink); }
.g-matinee, .nav .nav-matinee { color: var(--blue); }
.g-verandah, .nav .nav-verandah { color: var(--plum); }
.tagline { margin-top: 26px; max-width: 32ch; font-style: italic; font-size: clamp(19px, 2.8vw, 22px); line-height: 1.55; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px;
  font-family: var(--label); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--blue); color: var(--paper); border: 1px solid var(--blue); }
.btn-solid:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--paper); }
.btn-quiet { color: var(--blue); border: 1px solid var(--blue); }
.btn-quiet:hover { background: var(--blue); color: var(--paper); }
.btn-matinee { min-width: 168px; background: var(--blue); color: var(--paper); border: 1px solid var(--blue); }
.btn-matinee:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--paper); }
.btn-verandah { min-width: 168px; background: var(--plum); color: var(--paper); border: 1px solid var(--plum); }
.btn-verandah:hover { background: #55283A; border-color: #55283A; color: var(--paper); }

/* ---------- Chapters ---------- */
.chapter {
  max-width: var(--measure); margin: 0 auto;
  padding: 72px 20px;
  border-top: 1px solid var(--hair);
}
.numeral { font-family: var(--label); font-style: italic; font-size: 22px; color: var(--plum); line-height: 1; margin-bottom: 8px; }
.chapter h2 { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 7vw, 48px); line-height: 1.1; color: var(--blue); }
.chapter-lead { margin-top: 10px; color: var(--ink-soft); font-style: italic; }

/* Now: a full-width frost band */
#now {
  background: var(--frost); border-top: 0;
  box-shadow: 0 0 0 100vmax var(--frost); clip-path: inset(0 -100vmax);
}
#now + .chapter { border-top: 0; }
.now { margin-top: 28px; display: flex; flex-direction: column; }
.now-item { display: flex; flex-wrap: wrap; gap: 2px 24px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--frost-line); }
.now-item:first-child { border-top: 1px solid var(--frost-line); }
.now dt { flex: 0 0 110px; font-family: var(--label); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: #3D4F61; }
.now dd { flex: 1 1 240px; font-size: 21px; }
.updated { margin-top: 12px; font-family: var(--label); font-style: italic; font-size: 15px; color: #3D4F61; }

/* ---------- Matinee & Verandah: two doors ---------- */
.doors { max-width: var(--wide); margin: 0 auto; padding: 32px 20px 80px; display: flex; flex-wrap: wrap; gap: 24px; }
.door {
  flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column;
  padding: 40px 32px 30px; color: var(--ink); text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease;
}
.door:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(30,36,48,.45); }
.door-matinee { background: var(--frost); --door: var(--blue); }
.door-verandah { background: var(--paper-deep); --door: var(--plum); }
.door-kicker { display: flex; align-items: center; gap: 10px; font-family: var(--label); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--door); }
.door-mark { flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.door-mark * { vector-effect: non-scaling-stroke; }
.door-name { margin-top: 8px; font-family: var(--display); font-weight: 600; font-size: clamp(42px, 7vw, 56px); line-height: 1; color: var(--door); }
.door-desc { margin-top: 10px; max-width: 32ch; font-style: italic; color: var(--ink-soft); }
.door-topics { margin-top: 12px; font-family: var(--label); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); }
.door { position: relative; }
.door-latest { position: relative; z-index: 1; display: block; margin-top: 24px; padding-top: 14px; border-top: 1px solid rgba(30,36,48,.15); color: var(--ink); text-decoration: none; }
.door-latest:hover strong { color: var(--door); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.door-latest small { display: block; font-family: var(--label); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--door); }
.door-latest strong { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.2; }
.door-enter { margin-top: auto; padding-top: 22px; font-family: var(--label); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--door); text-decoration: none; }
.door-enter::after { content: ""; position: absolute; inset: 0; } /* the whole card opens the room; "Latest" opens the piece */
.door-enter:focus-visible { outline: none; }
.door:focus-within { outline: 2px solid var(--door); outline-offset: 3px; }

/* About */
.about { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.portrait { flex: 0 0 160px; aspect-ratio: 4 / 5; background: var(--paper-deep); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-text { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.about-text p:first-child { font-size: 22px; line-height: 1.5; }
.elsewhere { color: var(--ink-soft); font-size: 18px; }

/* Subscribe */
.subscribe { text-align: center; }
.subscribe .chapter-lead { max-width: 34ch; margin-left: auto; margin-right: auto; }
.embed { margin-top: 28px; display: flex; justify-content: center; }
.embed iframe { width: 100%; max-width: 480px; height: 150px; border: 0; background: transparent; }

/* Box office: the Substack sign-up inside a ticket-window arch */
.box-office { max-width: 620px; margin: 0 auto; }
.bo-arch { padding: 46px 40px 26px; border: 1.5px solid var(--v, var(--blue)); border-bottom: 0; border-radius: 50% 50% 0 0 / 120px 120px 0 0; background: #FFFFFF; }
.bo-kicker { font-family: var(--label); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--v, var(--blue)); }
.box-office .embed { margin-top: 14px; }
.bo-ledge { height: 10px; background: var(--v, var(--blue)); border-radius: 0 0 4px 4px; }
@media (max-width: 540px) { .bo-arch { padding: 40px 16px 18px; border-radius: 50% 50% 0 0 / 90px 90px 0 0; } }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hair);
  padding: 44px 20px 52px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.footer-mark { font-family: var(--display); font-weight: 600; font-size: 28px; color: var(--blue); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; font-family: var(--label); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }
.footer-links a { padding: 12px 0; color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
.copy { font-family: var(--label); font-size: 14px; color: var(--ink-faint); }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  body { font-size: 20px; }
  .site-header { padding: 26px 32px; }
  .chapter { padding: 96px 32px; }
  .portrait { flex-basis: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .door { transition: none; }
  .door:hover { transform: none; }
}

/* ---------- Hero: latest piece and reading cue ---------- */
.latest { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--hair); width: min(100%, 460px); display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.latest-tag { font-family: var(--label); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--red); }
.latest-title { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.2; }
.latest:hover .latest-title { color: var(--blue); }
.cue { margin-top: 36px; padding: 12px 0; font-family: var(--label); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }
.cue:hover { color: var(--blue); }

/* =========================================================
   Vertical pages: Matinee & Verandah (matinee.html, verandah.html)
   ========================================================= */
.page-matinee  { --v: var(--blue); --v-bg: var(--frost);      --v-line: var(--frost-line); }
.page-verandah { --v: var(--plum); --v-bg: var(--paper-deep); --v-line: #D3C6AC; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }

/* Intro */
.v-intro { max-width: var(--measure); margin: 0 auto; padding: 9vh 20px 56px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.v-mark { width: 72px; height: 43px; fill: none; stroke: var(--v); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.v-mark * { vector-effect: non-scaling-stroke; }
.v-kicker { margin-top: 18px; font-family: var(--label); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--v); }
.v-title { margin-top: 6px; font-family: var(--display); font-weight: 500; font-size: clamp(56px, 13vw, 104px); line-height: 0.95; color: var(--v); }
.v-lead { margin-top: 22px; max-width: 36ch; font-style: italic; font-size: clamp(19px, 2.8vw, 22px); line-height: 1.55; color: var(--ink-soft); }
.v-topics { margin-top: 16px; font-family: var(--label); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); }

.v-wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px 24px; }
.meta { display: block; font-family: var(--label); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--v); }
.subject { display: block; margin-top: 6px; font-family: var(--label); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.summary { display: block; margin-top: 8px; color: var(--ink-soft); }

/* Featured piece */
.featured { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; padding: 28px; background: var(--v-bg); color: var(--ink); text-decoration: none; }
.featured:hover { color: var(--ink); }
.featured-cover { flex: 1 1 360px; aspect-ratio: 16 / 9; background: rgba(255,255,255,.45); overflow: hidden; }
.featured-cover img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { flex: 1 1 300px; min-width: 0; }
.featured-label { display: block; margin-bottom: 10px; font-family: var(--label); font-style: italic; font-size: 16px; color: var(--ink-soft); }
.featured-title { display: block; margin-top: 8px; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.5vw, 40px); line-height: 1.1; }
.featured:hover .featured-title { color: var(--v); }
.read { display: inline-block; margin-top: 16px; font-family: var(--label); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--v); }

/* Filters */
.filters { margin-top: 56px; padding: 18px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 6px 14px; border: 1px solid var(--hair); background: transparent; color: var(--ink-soft); font-family: var(--label); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; }
.chip:hover { border-color: var(--v); color: var(--v); }
.chip[aria-pressed="true"] { background: var(--v); border-color: var(--v); color: var(--paper); }
.filters select, .filters input { min-height: 40px; padding: 6px 12px; border: 1px solid var(--hair); background: #FBF8F1; color: var(--ink); font-family: var(--serif); font-size: 17px; }
.filters input[type="search"] { flex: 1 1 200px; min-width: 0; }
.filters select:focus, .filters input:focus, .chip:focus-visible { outline: 2px solid var(--v); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.count { margin-top: 14px; font-style: italic; font-size: 16px; color: var(--ink-faint); }

/* List of pieces */
/* Each piece is a ticket: notched sides, and a torn-off stub with its seat number
   (the stub is added by filters.js, so the list HTML stays the same) */
.pieces-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.piece-row a { position: relative; display: flex; align-items: stretch; background: var(--v-bg); color: var(--ink); text-decoration: none; transition: transform .2s ease; }
.piece-row a::before, .piece-row a::after { content: ""; position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--paper); }
.piece-row a::before { left: -9px; }
.piece-row a::after { right: -9px; }
.piece-row a:hover { transform: translateY(-2px); }
.piece-row .thumb { flex: 0 0 140px; aspect-ratio: 3 / 2; align-self: center; margin: 20px 0 20px 24px; background: rgba(250,248,243,.55); overflow: hidden; }
.piece-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-body { flex: 1 1 auto; min-width: 0; padding: 20px 22px; }
.row-title { display: block; margin-top: 4px; font-family: var(--display); font-weight: 600; font-size: 27px; line-height: 1.15; }
.piece-row a:hover .row-title { color: var(--v); }
.stub { flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 16px 8px; border-left: 2px dashed var(--v-line); color: var(--v); text-align: center; }
.stub-label { font-family: var(--label); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; }
.stub-no { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1; }
.empty { padding: 28px 0; font-style: italic; color: var(--ink-soft); }
@media (max-width: 540px) {
  .piece-row .thumb { display: none; }
  .row-body { padding: 18px 16px 18px 20px; }
  .row-title { font-size: 23px; }
  .summary { font-size: 17px; }
  .stub { flex-basis: 70px; }
  .stub-no { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .piece-row a { transition: none; } .piece-row a:hover { transform: none; } }

/* Extras */
.extras { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 24px; }
.extra { flex: 1 1 300px; padding: 28px; border: 1px solid var(--v-line); }
.extra h2 { font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1.1; color: var(--v); }
.extra p { margin-top: 8px; color: var(--ink-soft); }
.extra .read { margin-top: 14px; }
.shelf { list-style: none; margin: 14px 0 0; padding: 0; }
.shelf li { padding: 10px 0; border-top: 1px solid var(--hair); font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; }
.shelf li span { display: block; margin-top: 2px; font-family: var(--label); font-weight: 400; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }

/* Next door */
.next-door { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: var(--wide); margin: 0 auto; padding: 36px 32px; text-decoration: none; }
.next-door.to-verandah { background: var(--paper-deep); --nd: var(--plum); }
.next-door.to-matinee { background: var(--frost); --nd: var(--blue); }
.next-door .nd-kicker { display: flex; align-items: center; gap: 10px; font-family: var(--label); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--nd); }
.next-door .nd-name { display: block; margin-top: 4px; font-family: var(--display); font-weight: 600; font-size: clamp(34px, 6vw, 46px); line-height: 1; color: var(--nd); }
.next-door .nd-go { font-family: var(--label); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--nd); }
.next-door:hover .nd-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.v-subscribe { border-top: 0; }

/* ---------- Landing: emblem, greeting, rotating quotes ---------- */
.emblem { display: flex; justify-content: center; gap: 14px; margin-bottom: 28px; }
.emblem-mark { width: 58px; height: 35px; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.emblem-mark * { vector-effect: non-scaling-stroke; }
.emblem-matinee { stroke: var(--blue); }
.emblem-verandah { stroke: var(--plum); }
.greeting { margin-top: 26px; max-width: 34ch; font-style: italic; font-size: clamp(20px, 3vw, 23px); line-height: 1.55; color: var(--ink-soft); }
.byline-line { margin-top: 14px; font-family: var(--label); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); }
.quote { margin: 48px auto 0; max-width: 32ch; min-height: 7.5em; transition: opacity .6s ease; }
.quote.is-fading { opacity: 0; }
.quote-text { margin: 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(24px, 3.4vw, 30px); line-height: 1.35; color: var(--ink); }
.quote-source { margin-top: 12px; font-family: var(--label); font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; }
.quote-film .quote-source { color: var(--blue); }
.quote-book .quote-source { color: var(--plum); }
@media (prefers-reduced-motion: reduce) { .quote { transition: none; } }

/* ---------- Homepage: double bill, pull a ticket, your turn ---------- */
.bill-section { max-width: var(--wide); margin: 0 auto; padding: 16px 20px 72px; text-align: center; }
.bill-kicker, .turn-kicker { font-family: var(--label); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); }
.bill-title { margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: clamp(32px, 5.5vw, 44px); line-height: 1.1; color: var(--ink); }
.bill { display: flex; flex-wrap: wrap; align-items: stretch; margin-top: 28px; text-align: left; }
.bill-card { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 28px; color: var(--ink); text-decoration: none; }
.bill-card:hover { color: var(--ink); }
.bill-matinee { background: var(--frost); --door: var(--blue); }
.bill-verandah { background: var(--paper-deep); --door: var(--plum); }
.bill-label { display: flex; align-items: center; gap: 8px; font-family: var(--label); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--door); }
.bill-name { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.15; }
.bill-card:hover .bill-name { color: var(--door); }
.bill-sub { font-family: var(--label); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.bill-amp { flex: 0 0 64px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-style: italic; font-size: 44px; color: var(--ink-faint); }
@media (max-width: 640px) { .bill-amp { flex-basis: 100%; height: 48px; } }

/* Pick a seat: every piece is a seat in the hall; seats a reader has read fill in */
.hall-section { max-width: var(--measure); margin: 0 auto; padding: 64px 20px 80px; border-top: 1px solid var(--hair); text-align: center; }
.hall-title { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 5.5vw, 44px); line-height: 1.1; color: var(--ink); }
.hall-lead { margin-top: 8px; font-style: italic; color: var(--ink-soft); }
.hall-screen { margin-top: 34px; font-family: var(--label); font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-faint); }
.hall-screen::after { content: ""; display: block; width: 70%; height: 6px; margin: 8px auto 28px; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: var(--blue); opacity: .5; }
.seats { display: inline-grid; grid-template-columns: repeat(10, 28px); gap: 9px; }
.seat { width: 28px; height: 24px; padding: 0; border: 1.5px solid var(--hair); border-radius: 7px 7px 3px 3px; background: transparent; }
.seat-m { border-color: var(--blue); background: var(--frost); cursor: pointer; }
.seat-v { border-color: var(--plum); background: var(--paper-deep); cursor: pointer; }
.seat-m.is-read { background: var(--blue); }
.seat-v.is-read { background: var(--plum); }
.seat-m:hover, .seat-v:hover, .seat[aria-pressed="true"] { transform: translateY(-2px); box-shadow: 0 3px 0 rgba(30,36,48,.15); }
.seat:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hall-key { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 15px; color: var(--ink-faint); }
.hall-key i { display: inline-block; width: 13px; height: 11px; margin-right: 6px; border: 1.5px solid; border-radius: 4px 4px 2px 2px; vertical-align: -1px; }
.key-m { border-color: var(--blue); background: var(--frost); }
.key-v { border-color: var(--plum); background: var(--paper-deep); }
.key-read { border-color: var(--ink-soft); background: var(--ink-soft); }
.seat-info { display: block; min-height: 96px; margin: 26px auto 0; max-width: 34ch; text-decoration: none; color: var(--ink); }
.seat-info-label { display: block; font-family: var(--label); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.seat-info.is-m .seat-info-label { color: var(--blue); }
.seat-info.is-v .seat-info-label { color: var(--plum); }
.seat-info-title { display: block; margin-top: 4px; font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.2; }
.seat-info-go { display: block; margin-top: 6px; font-style: italic; color: var(--ink-soft); }
a.seat-info:hover .seat-info-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
@media (max-width: 400px) { .seats { grid-template-columns: repeat(10, 24px); gap: 6px; } .seat { width: 24px; height: 21px; } }
@media (prefers-reduced-motion: reduce) { .seat:hover, .seat[aria-pressed="true"] { transform: none; } }

.your-turn { display: flex; flex-wrap: wrap; max-width: var(--wide); margin: 0 auto 24px; }
.turn { flex: 1 1 340px; min-width: 0; padding: 44px 36px; }
.turn-suggest { background: var(--paper-deep); --t: var(--plum); }
.turn-club { background: var(--frost); --t: var(--blue); }
.turn-kicker { color: var(--t); }
.turn-title { margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.5vw, 38px); line-height: 1.1; color: var(--t); }
.turn-lead { margin-top: 10px; font-style: italic; color: var(--ink-soft); }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.inline-form input[type="text"], .inline-form input[type="email"] { flex: 1 1 220px; min-width: 0; min-height: 46px; padding: 8px 14px; border: 1px solid rgba(30,36,48,.2); background: #FBF8F1; color: var(--ink); font-family: var(--serif); font-size: 18px; }
.inline-form input:focus { outline: 2px solid var(--t); outline-offset: 2px; }
.inline-form button { min-height: 46px; padding: 0 22px; border: 0; background: var(--t); color: var(--paper); font-family: var(--label); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; }
.inline-form button:hover { filter: brightness(0.88); }
.form-thanks { margin-top: 22px; font-style: italic; font-size: 20px; color: var(--t); }

/* Anything marked hidden stays hidden, whatever its layout */
[hidden] { display: none !important; }

/* ---------- Header logo: ticket with a sky-window stub ---------- */
.mark { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { flex: none; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.logo-mark * { vector-effect: non-scaling-stroke; }
.logo-ticket { stroke: var(--blue); }
.logo-stub { stroke: var(--plum); }

/* ---------- Landing fits one screen; "Begin reading" pinned to its bottom edge ---------- */
.hero {
  min-height: calc(100vh - 97px);            /* fallback for older browsers */
  min-height: calc(100svh - 97px);           /* screen height minus the header */
  justify-content: center;
  padding-top: 28px; padding-bottom: 12px;
}
.hero .emblem { margin-top: auto; }          /* with the cue below, keeps the content centred */
.hero .cue { margin-top: auto; padding: 18px 0 14px; }
.hero .quote { margin-top: 36px; min-height: 0; }

@media (max-width: 600px) {
  .site-header { padding: 14px 16px; gap: 2px 16px; }
  .nav { gap: 0 14px; font-size: 12px; letter-spacing: 0.16em; }
  .hero { min-height: calc(100vh - 120px); min-height: calc(100svh - 120px); padding-top: 16px; }
  .hero .emblem { margin-bottom: 18px; }
  .hero .greeting { margin-top: 18px; font-size: 19px; }
  .hero .quote { margin-top: 26px; }
  .quote-text { font-size: 23px; }
}

/* ---------- Landing: quote as a corner epigraph; the doors peek in below ---------- */
.hero { position: relative; min-height: calc(100vh - 170px); min-height: calc(100svh - 170px); }
.hero .byline-line { margin-bottom: auto; }
.hero .quote { align-self: flex-start; margin: 28px 0 0; max-width: 30ch; min-height: 0; padding-left: 14px; border-left: 1px solid var(--hair); text-align: left; }
.hero .quote-text { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
.hero .quote-source { margin-top: 6px; font-size: 11px; }
.doors { padding-top: 24px; }
@media (min-width: 900px) and (min-height: 620px) {
  .hero .quote { position: absolute; bottom: 24px; left: calc(50% - min(50vw, 520px) + 32px); margin: 0; max-width: 28ch; }
}
@media (max-width: 600px) {
  .hero { min-height: calc(100vh - 186px); min-height: calc(100svh - 186px); }
  .hero .quote-text { font-size: 16px; }
}

/* Homepage: box office sits close under Pick a seat */
.hall-section + .subscribe { padding-top: 16px; }

/* ---------- A single piece: minimal reading page (matinee/… and verandah/…) ---------- */
.room-matinee  { --v: var(--blue); --v-bg: var(--frost);      --v-line: var(--frost-line); }
.room-verandah { --v: var(--plum); --v-bg: var(--paper-deep); --v-line: #D3C6AC; }
.post-head { max-width: var(--measure); margin: 0 auto; padding: 64px 20px 0; }
.post-label { font-family: var(--label); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--v); text-decoration: none; }
.post-label:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-title { margin-top: 12px; font-family: var(--display); font-weight: 600; font-size: clamp(40px, 7vw, 56px); line-height: 1.05; color: var(--ink); }
.post-meta { margin-top: 14px; font-size: 16px; color: var(--ink-faint); }
.post-body { max-width: var(--measure); margin: 0 auto; padding: 40px 20px 64px; font-size: 20px; line-height: 1.75; color: var(--ink); }
.post-body p + p { margin-top: 1.1em; }
.post-body h2 { margin: 1.8em 0 .4em; font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.2; color: var(--ink); }
.post-body blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 2px solid var(--v); font-style: italic; color: var(--ink-soft); }
.post-body hr { border: 0; margin: 2em 0; text-align: center; color: var(--ink-faint); letter-spacing: 0.6em; }
.post-body hr::before { content: "· · ·"; }
@media (max-width: 540px) { .post-body { font-size: 19px; } }
.post-more { max-width: var(--measure); margin: 0 auto; padding: 40px 20px 8px; border-top: 1px solid var(--hair); }
.post-more-label { font-family: var(--label); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); text-align: center; }
.post-more .pieces-list { margin-top: 18px; }
.stub svg { width: 34px; height: 20px; fill: none; stroke: var(--v); stroke-width: 1.5; }
.stub svg * { vector-effect: non-scaling-stroke; }

/* ---------- 404: wrong screen ---------- */
.lost { max-width: var(--measure); margin: 0 auto; padding: 12vh 20px 14vh; text-align: center; display: flex; flex-direction: column; align-items: center; }
.lost-mark { width: 64px; height: 38px; fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lost-mark * { vector-effect: non-scaling-stroke; }
.lost-kicker { margin-top: 18px; font-family: var(--label); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); }
.lost-title { margin-top: 6px; font-family: var(--display); font-weight: 500; font-size: clamp(52px, 11vw, 88px); line-height: 1; color: var(--blue); }
.lost-lead { margin-top: 16px; max-width: 32ch; font-style: italic; font-size: 21px; line-height: 1.5; color: var(--ink-soft); }
.lost-doors { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.lost-door { min-width: 170px; padding: 16px 24px; font-family: var(--display); font-weight: 600; font-size: 24px; text-decoration: none; }
.lost-matinee { background: var(--frost); color: var(--blue); }
.lost-verandah { background: var(--paper-deep); color: var(--plum); }
.lost-door:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.lost-home { margin-top: 26px; font-family: var(--label); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }

/* Your turn: the suggestion takes the full row, name and email share the next */
.inline-form input.field-full { flex: 1 1 100%; }

/* ---------- Light and dark ---------- */
/* The switch at the end of the menu (its icon is drawn by theme.js) */
.nav { align-items: center; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--hair); border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer; transition: color .2s, border-color .2s; }
.theme-toggle:hover { color: var(--blue); border-color: var(--blue); }
.theme-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.theme-toggle:empty { visibility: hidden; }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Cinema dark: a warm near-black, like a hall with the lights down */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #17140F;
  --paper-deep: #241E17;
  --frost: #1B2532;
  --frost-line: #34465C;
  --ink: #EDE6DA;
  --ink-soft: #C9C1B4;
  --ink-faint: #9A9286;
  --blue: #93B4D6;
  --blue-deep: #B5CDE6;
  --plum: #D99CB0;
  --red: #E58A9C;
  --hair: #2F2A23;
}
:root[data-theme="dark"] .page-verandah,
:root[data-theme="dark"] .room-verandah { --v-line: #4A3F33; }
:root[data-theme="dark"] .door-latest { border-top-color: rgba(237,230,218,.15); }
:root[data-theme="dark"] .featured-cover,
:root[data-theme="dark"] .piece-row .thumb { background: rgba(255,255,255,.06); }
:root[data-theme="dark"] .filters select,
:root[data-theme="dark"] .filters input,
:root[data-theme="dark"] .inline-form input[type="text"],
:root[data-theme="dark"] .inline-form input[type="email"] { background: #1F1A14; border-color: rgba(237,230,218,.2); color: var(--ink); }
:root[data-theme="dark"] .door:hover { box-shadow: 0 14px 30px -18px rgba(0,0,0,.8); }
/* The box office stays lit: Substack's sign-up box is always light */
:root[data-theme="dark"] .bo-kicker { color: #23476A; }
:root[data-theme="dark"] .page-verandah .bo-kicker { color: #6B3346; }
body { transition: background-color .3s ease, color .3s ease; }
@media (prefers-reduced-motion: reduce) { body { transition: none; } }
