:root {
  --paper: #f7f2e8;
  --sand: #eadfc8;
  --ink: #1b1815;
  --soft: #5d554b;
  --line: #d9cdb6;
  --clay: #c2613c;
  --night: #0c0a10;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --measure: 38rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--clay); text-underline-offset: 0.2em; }
a:hover { color: var(--clay); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.005em; }
em { font-style: italic; }

.mark {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.mark span { color: var(--clay); font-weight: 400; }

/* ---------- top bar ---------- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem var(--gutter);
}
.bar a.signin {
  font-size: 0.85rem; text-decoration: none;
  padding: 0.45rem 0.95rem; border: 1px solid var(--ink); border-radius: 999px;
  background: rgba(247, 242, 232, 0.7);
}
.bar a.signin:hover { background: var(--ink); color: var(--paper); }

/* ---------- cover ---------- */
.cover { position: relative; background: var(--sand); }
.cover canvas { display: block; width: 100%; height: min(68vh, 44rem); }
.cover-title {
  background: var(--paper);
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem);
}
.cover-title h1 { font-size: clamp(3rem, 9.5vw, 7.5rem); }
.cover-title h1 em { color: var(--clay); }
.cover-title p { margin-top: 1.1rem; font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--soft); }

/* ---------- sections ---------- */
.band { padding: clamp(3rem, 6vw, 5rem) var(--gutter); border-top: 1px solid var(--line); }
.band > h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 18ch; }
.band > h2 em { color: var(--clay); }
.lede { margin-top: 1.5rem; max-width: var(--measure); font-size: 1.08rem; }
.lede + .lede { margin-top: 1rem; }

.night { background: var(--night); color: #f3ede2; border-top: 0; position: relative; overflow: hidden; padding-top: 0; }
.night canvas { display: block; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); height: clamp(11rem, 30vw, 20rem); }
.night h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); max-width: none; margin-top: 1rem; }
.night h2 em { color: #e58a5f; }
.night .lede { color: #d8d0c2; }
.night .grain { margin-top: 2rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: #e58a5f; max-width: 26ch; line-height: 1.25; }

.acts { list-style: none; padding: 0; margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.acts li { border-top: 1px solid var(--ink); padding-top: 1rem; }
.acts .n { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--clay); }
.acts h3 { font-size: 1.7rem; margin: 0.6rem 0 0.7rem; }
.acts p { color: var(--soft); font-size: 0.97rem; }
.title-note { margin-top: clamp(2.5rem, 5vw, 4rem); border-left: 2px solid var(--clay); padding-left: 1.25rem; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.3; max-width: 34ch; }

.pair { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.pair h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.pair .role { font-family: var(--serif); font-style: italic; color: var(--clay); font-size: 1.2rem; margin-top: 0.2rem; }
.pair p { margin-top: 1rem; max-width: 34rem; }
.pair blockquote { margin-top: 1.25rem; font-family: var(--serif); font-size: 1.75rem; line-height: 1.2; }
.pair .cv { margin-top: 1.25rem; font-size: 0.88rem; color: var(--soft); border-top: 1px solid var(--line); padding-top: 1rem; }

.split { display: grid; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin-top: clamp(2rem, 4vw, 3rem); }
.split .lede { margin-top: 0; }
.topics { list-style: none; padding: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.topics li { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.topics li:last-child { border-bottom: 1px solid var(--line); }

.private { margin-top: clamp(2.5rem, 5vw, 3.5rem); background: var(--sand); padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; align-items: center; justify-content: space-between; }
.private p { max-width: 34rem; }
.btn {
  display: inline-block; font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); text-decoration: none;
}
.btn:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn.quiet { background: transparent; color: var(--ink); }
.btn.quiet:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

footer.foot { padding: 2.5rem var(--gutter) 3rem; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; font-size: 0.88rem; color: var(--soft); }

/* ---------- sign in ---------- */
.gate { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr); }
.gate .art { background: var(--night); position: relative; }
.gate .art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gate .form { padding: clamp(2rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.gate h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); margin-top: 2.5rem; }
.gate h1 em { color: var(--clay); }
.gate .sub { margin-top: 0.75rem; color: var(--soft); max-width: 24rem; }
form.signin { margin-top: 2rem; max-width: 22rem; display: grid; gap: 1.25rem; }
fieldset { border: 0; padding: 0; margin: 0; }
legend, label.l { font-size: 0.85rem; font-weight: 600; padding: 0; margin-bottom: 0.5rem; display: block; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.who label { position: relative; }
.who input { position: absolute; opacity: 0; inset: 0; }
.who span { display: block; text-align: center; padding: 0.75rem; border: 1px solid var(--ink); border-radius: 0.4rem; font-family: var(--serif); font-size: 1.3rem; cursor: pointer; }
.who input:checked + span { background: var(--ink); color: var(--paper); }
.who input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 3px; }
input[type="password"], input[type="search"] {
  width: 100%; font: inherit; padding: 0.8rem 0.9rem; border: 1px solid var(--ink); border-radius: 0.4rem; background: #fffdf8; color: var(--ink);
}
.msg { min-height: 1.5rem; font-size: 0.9rem; color: #a3271c; }
.back { margin-top: 2rem; font-size: 0.88rem; color: var(--soft); }
@media (max-width: 46rem) {
  .gate { grid-template-columns: 1fr; grid-template-rows: 11rem auto; }
}

/* ---------- portal ---------- */
.p-bar { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; padding: 1.1rem var(--gutter); border-bottom: 1px solid var(--line); }
.p-bar .me { font-size: 0.88rem; color: var(--soft); display: flex; gap: 1rem; align-items: center; }
.p-bar button { font: inherit; font-size: 0.88rem; background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 0.2em; cursor: pointer; color: var(--ink); }
.p-wave { display: block; width: 100%; height: 5.5rem; background: var(--sand); }
.p-main { padding: clamp(2rem, 5vw, 4rem) var(--gutter) 5rem; max-width: 76rem; }
.p-head h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.p-head h1 em { color: var(--clay); }
.p-head p { margin-top: 0.75rem; color: var(--soft); max-width: var(--measure); }
.tabs { margin-top: 2rem; display: flex; gap: 1.75rem; border-bottom: 1px solid var(--ink); }
.tabs a { text-decoration: none; padding: 0.6rem 0; font-weight: 600; font-size: 0.95rem; color: var(--soft); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--clay); }
.find { margin: 1.75rem 0 0; max-width: 26rem; }

.talks { list-style: none; padding: 0; margin-top: 1rem; }
.talks li { border-bottom: 1px solid var(--line); }
.talks a { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.25rem 1.5rem; padding: 1.5rem 0; text-decoration: none; }
.talks .wk { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--clay); grid-row: span 2; }
.talks .wk small { display: block; font-family: var(--sans); font-size: 0.72rem; color: var(--soft); letter-spacing: 0.04em; margin-bottom: 0.2rem; }
.talks h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.talks .meta { font-size: 0.88rem; color: var(--soft); }
.talks a:hover h2 { color: var(--clay); }

.themes { list-style: none; padding: 0; margin-top: 1rem; columns: 2 20rem; column-gap: 3rem; }
.themes li { break-inside: avoid; border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.themes a { text-decoration: none; font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; display: block; }
.themes .meta { font-size: 0.82rem; color: var(--soft); }
.themes .hit { font-size: 0.9rem; color: var(--soft); margin-top: 0.3rem; }
.empty { margin-top: 2rem; color: var(--soft); }

.crumb { font-size: 0.88rem; }
.talk h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); margin-top: 1rem; max-width: 20ch; }
.talk .meta { margin-top: 0.75rem; color: var(--soft); font-size: 0.92rem; }
.talk-grid { margin-top: 2.5rem; display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62rem) { .talk-grid { grid-template-columns: 15rem minmax(0, 1fr); } .toc { position: sticky; top: 1.5rem; align-self: start; } }
.toc h2 { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; }
.toc ol { list-style: none; padding: 0; margin-top: 0.5rem; font-size: 0.9rem; }
.toc li { padding: 0.35rem 0; border-top: 1px solid var(--line); }
.toc a { text-decoration: none; }
.panel { background: var(--sand); padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; }
.panel h2 { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.6rem; }
.panel audio { width: 100%; }
.panel p { color: var(--soft); font-size: 0.92rem; }
.notes section { margin-bottom: 2.5rem; scroll-margin-top: 1.5rem; }
.notes h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); border-top: 1px solid var(--ink); padding-top: 1rem; }
.notes ul { padding-left: 1.1rem; margin-top: 0.9rem; max-width: 44rem; }
.notes li { margin-top: 0.45rem; }
.notes li ul { margin-top: 0.2rem; color: var(--soft); font-size: 0.95rem; }
.notes li::marker { color: var(--clay); }
.transcript { white-space: pre-wrap; font-size: 0.97rem; max-width: 44rem; margin-top: 1rem; }
details.tr { border-top: 1px solid var(--ink); padding-top: 1rem; }
details.tr summary { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); cursor: pointer; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- the two sides ---------- */
.flip { margin-top: clamp(2rem, 4vw, 3rem); display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; padding: 3px; }
.flip button { font: inherit; font-family: var(--serif); font-size: 1.2rem; padding: 0.35rem 1.2rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.flip button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.flip + .pair { margin-top: 1.75rem; }
.faces { position: relative; aspect-ratio: 4 / 5; max-width: 15rem; margin-bottom: 1.5rem; background: var(--sand); overflow: hidden; }
.faces .face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s ease; }
.pair[data-side="a"] .face.b, .pair[data-side="b"] .face.a { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .faces .face { transition: none; } }

/* ---------- the title's question ---------- */
.meaning { background: var(--sand); border-top: 0; }
.meaning.band { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.meaning .ask { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.2; }
.meaning .ask em { display: inline-block; }
.meaning .ask em { color: var(--clay); }

/* ---------- dialogue and data, side by side ---------- */
.split.twin { margin-top: 0; }
.split.twin h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.split.twin h2 em { color: var(--clay); }
.split.twin .lede { margin-top: 1.1rem; font-size: 1rem; }
.threads { margin-top: 1.1rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.35; color: var(--soft); max-width: var(--measure); }

/* ---------- intro beside heading; closing question ---------- */
.pair.intro { margin-top: 0; align-items: start; }
.pair.intro h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.pair.intro h2 em { color: var(--clay); }
.pair.intro .lede { margin-top: 0.6rem; font-size: 1.08rem; }
.closing { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.closing .ask { margin-top: 1rem; font-family: var(--serif); font-size: clamp(2.2rem, 5.5vw, 4.4rem); line-height: 1.1; }
.closing .ask em { color: #e58a5f; }


/* ---------- book; signal note ---------- */
.split.twin { align-items: center; }
.book { max-width: 24rem; justify-self: center; width: 100%; }
.book img { display: block; width: 100%; height: auto; }
.book figcaption { margin-top: 0.6rem; font-size: 0.8rem; color: var(--soft); }
.signal { margin-top: clamp(2.5rem, 5vw, 3.5rem); background: var(--sand); padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: 0.75rem 3rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); align-items: center; }
.signal h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.signal h3 em { color: var(--clay); }
.signal p { font-size: 0.95rem; max-width: 40rem; }
@media (min-width: 52rem) { .signal { grid-template-columns: 16rem 1fr; } }

/* ---------- three acts: heading and note left, acts stacked right ---------- */
.stage { display: grid; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: 1fr; }
@media (min-width: 56rem) { .stage { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.stage-head h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.stage-head h2 em { color: var(--clay); }
.stage .signal { display: block; background: none; padding: 0 0 0 1.25rem; border-left: 2px solid var(--clay); margin-top: clamp(1.75rem, 4vw, 2.75rem); max-width: 26rem; }
.stage .signal h3 { font-size: 1.6rem; }
.stage .signal p { margin-top: 0.5rem; font-size: 0.92rem; color: var(--soft); }
.stage .acts { margin-top: 0; display: block; }
.stage .acts li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 0 1rem; padding: 1.4rem 0; border-top: 1px solid var(--ink); }
.stage .acts li:last-child { border-bottom: 1px solid var(--ink); }
.stage .acts .n { font-size: 3.2rem; line-height: 0.9; }
.stage .acts h3 { margin: 0 0 0.4rem; font-size: 1.8rem; }
.stage .acts p { font-size: 1rem; max-width: 34rem; }

/* ---------- phones ---------- */
@media (max-width: 40rem) {
  .cover canvas { height: 42vh; min-height: 15rem; }
  .cover-title h1 { font-size: clamp(2.1rem, 10vw, 3rem); }
  .cover-title p { font-size: 1.15rem; }
  .night canvas { height: 9rem; }
  .night h2 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .stage-head { display: contents; }
  .stage { gap: 1.75rem; }
  .stage .acts { order: 2; }
  .stage .signal { order: 3; margin-top: 0; max-width: none; }
  .pair { gap: 2.75rem; }
  .pair.intro { gap: 1rem; }
  .faces { max-width: 13rem; }
  .book { max-width: 18rem; justify-self: start; }
  footer.foot { flex-direction: column; gap: 0.75rem; }
  footer.foot a { display: inline-block; padding: 0.6rem 0; }
  .p-bar .me { flex-wrap: wrap; gap: 0.25rem 1rem; }
  .p-bar .me a, .p-bar button { padding: 0.5rem 0; }
  .talks a { grid-template-columns: 3.5rem 1fr; gap: 0.25rem 1rem; }
  .toc { display: none; }
}

/* ---------- week and date together ---------- */
.talks a { grid-template-columns: 7rem 1fr; }
.talks .wk time { display: block; margin-top: 0.35rem; font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--ink); letter-spacing: 0; }
@media (max-width: 40rem) { .talks a { grid-template-columns: 5.5rem 1fr; } }
