:root {
  --bg: #0c2347;
  --bg-2: #123466;
  --panel: rgba(255, 255, 255, 0.06);
  --line: rgba(243, 232, 200, 0.22);
  --cream: #f3e8c8;
  --cream-dim: #d9ceb0;
  --gold: #f0cf7a;
  --sky: #9cc0ee;
  --head: "IM Fell English SC", Georgia, serif;
  --serif: "EB Garamond", Georgia, serif;
  --fell: "IM Fell English", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4rem; }
body {
  margin: 0; color: var(--cream); background: var(--bg);
  font: 400 1.1875rem/1.65 var(--serif);
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 78% 8%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.4px 1.4px at 44% 42%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 90% 63%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.2px 1.2px at 24% 81%, rgba(255,255,255,.5), transparent 60%),
    linear-gradient(180deg, #0c2347 0%, #123466 45%, #0c2347 100%);
  background-size: 420px 420px, 380px 380px, 520px 520px, 460px 460px, 340px 340px, 100% 100%;
}
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4, h5, .eyebrow, .step-n, .btn, .topnav { font-family: var(--head); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); color: var(--gold); margin: 0 0 .6rem; letter-spacing: .02em; line-height: 1.15; }

/* nav */
.topnav {
  position: sticky; top: 0; z-index: 10; display: flex; gap: 1.4rem; align-items: center;
  padding: .55rem 20px; background: rgba(12, 35, 71, .92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); overflow-x: auto; white-space: nowrap; font-size: 1.05rem;
}
.topnav a { color: var(--cream); text-decoration: none; }
.topnav a:hover { color: var(--gold); }
.topnav .brand { display: inline-flex; gap: .5rem; align-items: center; margin-right: auto; color: var(--gold); }
.topnav .brand img { border-radius: 4px; }

/* hero */
.hero { text-align: center; padding: clamp(3rem, 9vw, 6.5rem) 20px clamp(3rem, 7vw, 5rem); }
.hero .org { font-family: var(--head); font-size: clamp(1rem, 2.6vw, 1.45rem); letter-spacing: .08em; margin: 0; }
.hero h1 { font-size: clamp(2.8rem, 10vw, 6rem); line-height: 1.02; margin: .15em 0 .1em; letter-spacing: .02em; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero .tagline { font-family: var(--head); font-size: clamp(.8rem, 2vw, 1.05rem); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 2rem; color: var(--cream-dim); }
.hero .when { font-family: var(--head); font-size: clamp(1.25rem, 3.4vw, 1.9rem); margin: 0 0 .5rem; line-height: 1.4; }
.hero .cost { color: var(--cream-dim); font-style: italic; margin: 0 0 2rem; }
.btn { display: inline-block; padding: .65rem 1.6rem; border: 2px solid var(--gold); color: var(--gold); text-decoration: none; font-size: 1.15rem; border-radius: 3px; }
.hero .btn { margin: .3rem .4rem; }
.btn:hover { background: var(--gold); color: var(--bg); }

/* about */
.about, .index, .thanks { padding: 3rem 0; }
.two { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .two { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; } }
.about h2:not(:first-child) { margin-top: 2rem; }
.relay { list-style: none; counter-reset: s; margin: 0 0 1rem; padding: 0; border-left: 2px dashed var(--line); }
.relay li { counter-increment: s; position: relative; padding: .2rem 0 .9rem 1.6rem; }
.relay li::before {
  content: counter(s); position: absolute; left: -.85rem; top: .15rem; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--gold); color: var(--bg); font: 1rem/1.6rem var(--head); text-align: center;
}
.relay b { font-family: var(--head); font-weight: 400; color: var(--gold); display: block; font-size: 1.2rem; }
.relay span { color: var(--cream-dim); }

/* index cards */
.cards { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cards a {
  display: grid; grid-template-columns: auto 1fr; gap: .1rem .9rem; align-items: start; height: 100%;
  padding: 1rem 1.1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--cream);
}
.cards a:hover { border-color: var(--gold); background: rgba(255,255,255,.1); }
.cards .num { grid-row: span 2; font: 2.2rem/1 var(--head); color: var(--gold); }
.cards .t { font-family: var(--head); font-size: 1.2rem; line-height: 1.25; }
.cards .s { font-size: .95rem; color: var(--cream-dim); line-height: 1.4; }

/* thread */
.thread { margin: 2.5rem 0 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.eyebrow { margin: 0; color: var(--sky); letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; }
.thread-head h3 { font-size: clamp(1.9rem, 5vw, 3rem); margin: .1em 0 .3em; line-height: 1.1; }
.chain { display: flex; flex-wrap: wrap; gap: .35rem .7rem; align-items: baseline; margin: 0 0 1.4rem; font-size: 1rem; color: var(--cream-dim); }
.chain b { font-family: var(--head); font-weight: 400; color: var(--sky); margin-right: .25rem; }
.chain i { font-style: normal; color: var(--gold); }
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem 1.2rem 1.3rem; min-width: 0; }
.step-n { margin: 0 0 .5rem; color: var(--sky); font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; }
.step h4 { font-size: 1.35rem; margin: 0 0 .15rem; line-height: 1.25; color: var(--cream); }
.role { margin: 0 0 .7rem; color: var(--cream-dim); font-style: italic; font-size: 1.02rem; line-height: 1.4; }
.step p { margin: 0 0 .7rem; font-size: 1.06rem; }
.step .program-note { font-size: .98rem; color: var(--cream-dim); }
.performers { list-style: none; padding: 0; margin: 0 0 .9rem; font-size: 1.02rem; }
.ext { font-size: .98rem; }
.audio { margin: .6rem 0 0; }
.audio figcaption { font-size: .9rem; color: var(--cream-dim); margin-bottom: .3rem; }
audio { width: 100%; max-width: 100%; height: 40px; }
.media { margin-top: 16px; padding: 1.1rem 1.2rem 1.3rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.media-grid { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 700px) { .media.n2 .media-grid, .media.n3 .media-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .media.n3 .media-grid { grid-template-columns: repeat(3, 1fr); } }
.media figure { margin: 0; }
.media figure.art { max-width: 760px; margin-inline: auto; }
.media .n1 figure.art, .media.n1 figure { margin-inline: auto; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.media img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; display: block; border-radius: 4px; border: 1px solid var(--line); background: rgba(0,0,0,.25); }
.media figure.photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.media-cap { margin: .8rem 0 0; text-align: center; color: var(--cream-dim); font-style: italic; }
.media figcaption { margin-top: .5rem; font-size: 1rem; color: var(--cream-dim); text-align: center; }
dialog#lightbox { max-width: 96vw; max-height: 96vh; padding: 0; border: 1px solid var(--line); background: #06142b; border-radius: 6px; }
dialog#lightbox::backdrop { background: rgba(0,0,0,.85); }
dialog#lightbox img { display: block; max-width: 96vw; max-height: 94vh; width: auto; height: auto; }
dialog#lightbox .close { position: absolute; top: 6px; right: 8px; width: 2.4rem; height: 2.4rem; font-size: 1.8rem; line-height: 1; color: var(--cream); background: rgba(6,20,43,.8); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.pending { font-style: italic; color: var(--cream-dim); border: 1px dashed var(--line); border-radius: 6px; padding: 1.2rem; text-align: center; }

/* details */
details > summary { cursor: pointer; color: var(--gold); font-family: var(--head); font-size: 1.05rem; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸ "; display: inline-block; transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }
.text-body { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); font-family: var(--fell); font-size: 1.1rem; line-height: 1.55; max-height: 28rem; overflow-y: auto; padding-right: .5rem; }
.text.prose .text-body p { text-align: left; }
.text-body p { margin: 0 0 1em; }
.bios { margin-top: 1rem; padding: .9rem 1.2rem; border: 1px solid var(--line); border-radius: 8px; }
.bio h5 { font-size: 1.2rem; margin: 1rem 0 .3rem; color: var(--cream); }
.bio h5 span { font: italic 1rem var(--serif); color: var(--sky); margin-left: .4rem; }
.bio p { margin: 0 0 .7rem; font-size: 1.05rem; max-width: 70ch; }

/* thanks */
.thanks-grid { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.thanks h3 { font-size: 1.15rem; color: var(--sky); margin: 0 0 .3rem; }
.thanks p { margin: 0; line-height: 1.5; }

footer { text-align: center; padding: 3rem 20px 4rem; border-top: 1px solid var(--line); background: rgba(0,0,0,.18); }
footer img { border-radius: 8px; margin-bottom: .5rem; }
footer p { margin: .2rem 0; }
footer .small { color: var(--cream-dim); font-size: .95rem; margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .topnav, .btn, audio, .skip { display: none; }
  h1, h2, h3, h4, h5, a, .eyebrow, .step-n, .cards .num { color: #000; }
  .step, .bios { border-color: #999; background: none; }
  details > * { display: block; } .text-body { max-height: none; }
}
