/* Wizardy Magic page CSS: tokens only (values live in theme.css). */

body { font-size: var(--fs-body); }
::selection { background: var(--accent-fill); color: var(--accent-on-fill); }

/* Bill type: condensed capitals used for labels, nav, numerals and buttons */
.bill, .eyebrow, .label, .nav-links, .button, .brand-sub, .meta, .footer-cols h2 {
  font-family: var(--font-bill);
}
.eyebrow, .label { font-weight: 500; font-size: 0.8125rem; }
.h2 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4.25rem); line-height: 1.02; }
.h3 { font-family: var(--font-display); font-weight: 700; }
em, .it { font-style: italic; }

/* Header: the bill's masthead line */
.site-header { border-bottom: 1px solid transparent; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line-strong); }
.brand { display: inline-flex; align-items: baseline; gap: 10px; font-weight: 800; font-size: 1.35rem; letter-spacing: 0; }
.brand-sub { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-text); }
.nav-links { display: flex; gap: clamp(14px, 3vw, 32px); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-links a { padding-block: 12px; }
.nav-links a[aria-current] { color: var(--accent-text); }
.nav-wide { display: none; }
@media (min-width: 560px) { .nav-wide { display: inline; } }
@media (max-width: 559px) { .brand-sub { display: none; } .brand { font-size: 1.15rem; } }

/* Double rule: the fine pair of lines that divides a playbill */
.double-rule { height: 7px; border-top: 2px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.double-rule.gold { border-color: var(--gold); }

/* ── Playbill hero ── */
.hero-bill { min-height: min(92svh, 940px); text-align: center; padding-block: clamp(40px, 6vw, 96px); }
.hero-bill .hero-inner { justify-items: center; gap: clamp(14px, 2vw, 22px); max-width: 1100px; }
.hero-bill .double-rule { width: 100%; }
.bill-top { font-size: clamp(0.8rem, 0.7rem + 0.4vw, 1rem); font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; }
.bill-line { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.25rem, 1rem + 1.2vw, 2.1rem); line-height: 1.2; color: var(--muted-strong); }
.bill-giant { display: block; font-size: var(--fs-display); font-weight: 900; line-height: 0.88; letter-spacing: -0.015em; text-transform: uppercase; }
.bill-giant .amp { color: var(--accent-text); font-style: italic; font-weight: 700; text-transform: none; }
.bill-script { display: block; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(2.4rem, 1rem + 6vw, 6.2rem); line-height: 0.95; color: var(--accent-text); }
.bill-row { display: grid; gap: 10px; width: 100%; font-family: var(--font-bill); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.85rem; font-weight: 500; }
@media (min-width: 760px) { .bill-row { grid-template-columns: 1fr auto 1fr; align-items: center; } .bill-row > :first-child { text-align: right; } .bill-row > :last-child { text-align: left; } }
.pips { display: inline-flex; gap: 10px; justify-content: center; color: var(--accent-text); }
.pips svg { width: 18px; height: 18px; }
.hero-bill .actions { justify-content: center; margin-top: 8px; }

/* Buttons: square, condensed capitals */
.button { font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.9rem; }
.button-quiet { border-color: var(--line-strong); }

/* ── Programme: index list of essays on the velvet band ── */
.programme > li { grid-template-columns: 1fr; }
.programme > li::before { font-family: var(--font-bill); font-weight: 500; color: var(--accent-text); }
.band-ink .programme > li { border-color: color-mix(in srgb, var(--on-ink) 40%, transparent); }
.band-ink .programme > li::before { color: var(--field-1); }
.programme a { text-decoration: none; }
.programme a:hover .h3, .programme a:focus-visible .h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.programme .meta { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.band-ink .programme .meta, .band-ink .programme p { color: var(--on-ink-muted); }
@media (min-width: 760px) { .programme > li { grid-template-columns: 5.5rem minmax(0, 1.1fr) minmax(0, 1fr); } }
.band-ink .eyebrow { color: var(--field-1); }

/* Fields */
.field .label { color: inherit; opacity: 0.9; }
.field .h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.field a { font-family: var(--font-bill); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; font-weight: 500; text-underline-offset: 0.3em; }
.field svg.suit { width: 44px; height: 44px; }

/* Motto */
.motto { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem); line-height: 1.05; color: var(--accent-text); }

/* Breadcrumbs */
.crumbs { font-family: var(--font-bill); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Compact hero for inner pages */
.hero-compact .display { font-size: clamp(2.5rem, 1.2rem + 5.2vw, 6rem); line-height: 0.98; max-width: 18ch; }
.hero-compact .lead { max-width: 52ch; }
.hero-compact .meta { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Article */
.article-grid { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 1000px) { .article-grid { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); } .article-aside > div { position: sticky; top: calc(var(--header-height) + 32px); } }
.article-aside { font-size: var(--fs-small); color: var(--muted-strong); }
.article-aside .kv > div { grid-template-columns: 1fr; padding-block: 12px; }
.prose { font-size: 1.125rem; line-height: 1.7; max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); line-height: 1.15; margin-top: 1.9em; }
.prose h2 + * { margin-top: 0.6em; }
.prose ul { padding-left: 1.2em; list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li + li { margin-top: 0.45em; }
.prose ul > li::before { content: ""; position: absolute; left: -1.05em; top: 0.68em; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.prose ol { padding-left: 1.6em; list-style: decimal; }
.prose ol > li + li { margin-top: 0.45em; }
.prose a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose .dropcap::first-letter { float: left; font-family: var(--font-display); font-weight: 900; font-size: 4.3em; line-height: 0.8; padding: 0.06em 0.1em 0 0; color: var(--accent-text); }
.prose .callout { font-size: 1rem; }
.prose .callout .label { color: var(--accent-text); }
.sources { font-size: 1rem; }
.sources li + li { margin-top: 0.5em; }

/* Next essay strip */
.next-essay { display: grid; gap: 10px; text-decoration: none; padding-block: 28px; border-top: 2px solid var(--line-strong); }
.next-essay .h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.3rem); }
.next-essay:hover .h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

/* Contact form: bordered panel number one */
.form-panel { display: grid; gap: 18px; padding: clamp(22px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line-strong); }
.form-panel label { display: grid; gap: 6px; font-family: var(--font-bill); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.form-panel input, .form-panel textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--muted); border-radius: 0;
  background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; letter-spacing: 0; text-transform: none;
}
.form-panel textarea { min-height: 170px; resize: vertical; }
.form-panel input:focus-visible, .form-panel textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-panel .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-panel .note { font-size: var(--fs-small); color: var(--muted-strong); }
.form-status { font-size: 1rem; }

/* Brief: bordered panel number two */
.brief { border-color: var(--line-strong); }

/* Footer */
.site-footer .footer-lead { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; margin-bottom: 28px; max-width: 40ch; }
.site-footer .double-rule { margin-bottom: 32px; }
.footer-cols h2 { font-weight: 500; }
.footer-legal { margin-top: 40px; color: var(--muted); }

/* Span helpers (no inline styles, so the CSP can forbid them) */
.span-3 { --span: 3; }
.span-6 { --span: 6; }
.cols-2 { --cols: 2; }
.prog-head { display: grid; gap: 8px; }
.programme p { max-width: 52ch; }
@media (max-width: 759px) { .hero-bill { min-height: 0; padding-block: 40px 56px; } }
