/* Public site: light, warm, unhurried. Gold header band (after nicoleloretan.com), serif display, generous whitespace. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.site-header, .site-footer, .admin-bar { flex-shrink: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); max-width: var(--measure); }
.measure { max-width: var(--measure); }
.muted { color: var(--ink-mute); }
.small { font-size: 0.9rem; }
.eyebrow { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 0.6rem; }
.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 52rem); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

/* Header */
.site-header { background: var(--header-bg); color: var(--header-fg); border-bottom: 1px solid var(--tint-rule); }
.site-header__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: 1.6rem 0 1.2rem; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--brand); display: block; }
.brand__logo { display: block; height: 3.9rem; width: auto; max-width: 100%; }
@media (max-width: 840px) { .brand__logo { height: auto; width: min(100%, 420px); } }
.brand__name { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 500; line-height: 1; display: block; }
.brand__tagline { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; margin-top: 0.3rem; opacity: 0.85; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.site-nav__list { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav__list a { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.site-nav__list a:hover, .site-nav__list a.is-active { border-bottom-color: var(--header-rule); color: var(--header-fg); }
.lang { display: flex; gap: 0.4rem; list-style: none; margin: 0; padding: 0; font-size: 0.78rem; letter-spacing: 0.1em; }
.lang a { text-decoration: none; padding: 0.2rem 0.4rem; border-radius: 3px; opacity: 0.75; }
.lang a.is-active, .lang a:hover { opacity: 1; background: var(--accent-soft); color: var(--header-fg); }
.nav-toggle { display: none; background: none; border: 1px solid var(--tint-rule); color: inherit; border-radius: 4px; padding: 0.4rem 0.7rem; font: inherit; cursor: pointer; }
@media (max-width: 840px) {
  .site-header__inner { align-items: center; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-bottom: 0.5rem; }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0.2rem; }
}
.site-header__rule { height: 4px; background: linear-gradient(90deg, var(--header-rule) 0, var(--header-rule) 4rem, transparent 4rem); }

/* Hero */
.hero { background: var(--tint); padding: clamp(2.5rem, 6vw, 5rem) 0; border-bottom: 1px solid var(--rule); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (max-width: 840px) { .hero__grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.hero__date { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 0.4rem; }
.hero__title { margin-bottom: 0.4rem; }
.hero__performers { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1rem; }
.hero__performers a { text-decoration: none; }
.hero__performers a:hover { text-decoration: underline; }
.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero__media img { border-radius: 4px; box-shadow: var(--shadow); }
.hero__programme { border-left: 3px solid var(--accent); padding-left: 1.2rem; }
.hero--live { background: var(--dark); color: var(--dark-fg); border-bottom: 0; }
.hero--live a { color: #fff; }
.hero--live .hero__performers, .hero--live .muted { color: #cfc8bc; }
.hero--live .yt { box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.hero--empty { text-align: center; }

/* Buttons & badges */
.btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.65rem 1.2rem; border-radius: 3px; border: 1px solid var(--accent); background: transparent; color: var(--ink); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; cursor: pointer; font-family: var(--font-body); }
.btn:hover { background: var(--accent); color: var(--accent-contrast); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--gold { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn--gold:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--accent-contrast); }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.75rem; }
.badge { display: inline-block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--ink); vertical-align: middle; }
.badge--live { background: var(--live); color: #fff; }
.badge--live::before { content: ''; display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%; background: #fff; margin-right: 0.45em; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.badge--rec { background: #e8eef8; color: #2b4b86; }
.badge--draft { background: #eee; color: #666; border: 1px dashed #aaa; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--cream { background: var(--tint); }
.section--tight { padding: 2rem 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section__head h2 { margin: 0; }
.section__head a { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule--gold { width: 4rem; border-top: 3px solid var(--accent); margin: 0 0 1.5rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--rule); text-decoration: none; }
.card:hover .card__title { color: var(--accent-deep); }
.card__date { text-align: center; line-height: 1; }
.card__day { font-family: var(--font-display); font-size: 2.4rem; display: block; }
.card__month { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-top: 0.25rem; color: var(--ink-soft); }
.card__year { font-size: 0.72rem; color: var(--ink-mute); display: block; margin-top: 0.15rem; }
.card__title { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; margin: 0 0 0.3rem; }
.card__meta { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 0.4rem; }
.card__teaser { font-size: 0.95rem; margin: 0; }
.card__badges { margin-top: 0.5rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.list { display: grid; }
.list .card { grid-template-columns: 5rem 1fr; }

/* Video */
.yt { position: relative; aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; border-radius: 4px; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.yt button { position: absolute; inset: 0; margin: auto; width: 4.5rem; height: 4.5rem; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-contrast); font-size: 1.6rem; cursor: pointer; box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.yt button:hover { background: var(--accent-deep); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem 1.5rem; }
.video__title { font-family: var(--font-display); font-size: 1.3rem; margin: 0.8rem 0 0.1rem; }
.video__meta { font-size: 0.9rem; color: var(--ink-soft); }
.yt-note { font-size: 0.8rem; color: var(--ink-mute); margin-top: 0.5rem; }

/* Concert page */
.concert-head { padding: clamp(2rem, 5vw, 4rem) 0 2rem; }
.concert-head .hero__date { color: var(--ink-soft); }
.concert-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 840px) { .concert-grid { grid-template-columns: 1fr; } }
.aside { position: sticky; top: 1.5rem; }
.aside__box { background: var(--tint); padding: 1.5rem; border-radius: 4px; margin-bottom: 1.25rem; }
.aside__box h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.aside__box p:last-child { margin-bottom: 0; }
.aside__actions { display: grid; gap: 0.5rem; }
.aside__actions .btn { justify-content: center; }
.performers { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.performers li { padding: 0.35rem 0; border-bottom: 1px solid var(--rule-soft); display: flex; justify-content: space-between; gap: 1rem; }
.performers a { text-decoration: none; font-weight: 500; }
.performers a:hover { text-decoration: underline; }
.performers .instrument { color: var(--ink-soft); font-size: 0.95rem; }
.programme { list-style: none; margin: 0 0 2rem; padding: 0; }
.programme li { padding: 0.4rem 0; }
.programme__composer { font-weight: 600; }
.programme__work { display: block; color: var(--ink-soft); }
@media (min-width: 640px) { .programme li { display: grid; grid-template-columns: 14rem 1fr; gap: 1rem; } .programme__work { display: inline; } .programme__composer { grid-column: 1; } }
.programme__movement { display: block; padding-left: 1.2rem; font-style: italic; color: var(--ink-soft); }
@media (min-width: 640px) { .programme__movement { grid-column: 2; padding-left: 0; } }
.programme__break { display: block; text-align: center; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); padding: 0.5rem 0; }
@media (min-width: 640px) { .programme__break { grid-column: 1 / -1; } }
.notes { max-width: var(--measure); }
.notes p { margin-bottom: 1em; }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.docs a { text-decoration: none; display: block; }
.docs img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border: 1px solid var(--rule); border-radius: 3px; background: #fff; transition: transform 0.15s; }
.docs a:hover img { transform: translateY(-2px); box-shadow: var(--shadow); }
.docs__file { aspect-ratio: 3 / 4; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 3px; background: var(--tint); font-family: var(--font-display); font-size: 1.6rem; }
.docs__label { font-size: 0.85rem; margin-top: 0.4rem; display: block; }
.pdf-embed { display: none; width: 100%; height: 75vh; min-height: 480px; border: 1px solid var(--rule); border-radius: 3px; margin-bottom: 1rem; background: #fff; }
@media (min-width: 840px) and (hover: hover) { .pdf-embed { display: block; } }
dialog.video-modal { border: 0; padding: 0; background: transparent; width: min(96vw, 1200px); max-width: 96vw; }
dialog.video-modal::backdrop { background: rgba(20, 18, 14, 0.92); }
.video-modal__frame { aspect-ratio: 16 / 9; width: 100%; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
dialog.video-modal button { position: fixed; top: 1rem; right: 1rem; background: var(--accent); border: 0; border-radius: 50%; width: 2.6rem; height: 2.6rem; font-size: 1.3rem; cursor: pointer; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.lightbox::backdrop { background: rgba(20, 18, 14, 0.9); }
dialog.lightbox img { max-height: 92vh; max-width: 96vw; width: auto; margin: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
dialog.lightbox button { position: fixed; top: 1rem; right: 1rem; background: var(--accent); border: 0; border-radius: 50%; width: 2.6rem; height: 2.6rem; font-size: 1.3rem; cursor: pointer; }
.live-notice { background: var(--dark); color: var(--dark-fg); padding: 1.5rem; border-radius: 4px; margin-bottom: 1.5rem; }
.live-notice a { color: #fff; }

/* Archive & filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin-bottom: 2rem; }
.filters label { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.25rem; }
.input, .select, .textarea { font: inherit; padding: 0.55rem 0.75rem; border: 1px solid var(--tint-rule); border-radius: 3px; background: var(--paper); color: var(--ink); width: 100%; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.filters .input, .filters .select { width: auto; min-width: 9rem; }
.year-head { font-family: var(--font-display); font-size: 2rem; margin: 2.5rem 0 0.5rem; color: var(--ink-soft); }
.year-head:first-of-type { margin-top: 0; }
.pagination { display: flex; gap: 0.3rem; flex-wrap: wrap; justify-content: center; margin: 2.5rem 0 0; }
.pagination a, .pagination span { padding: 0.4rem 0.75rem; border: 1px solid var(--rule); text-decoration: none; border-radius: 3px; font-size: 0.9rem; }
.pagination .current { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.pagination .disabled { opacity: 0.35; }

/* Artists */
.artist-groups { display: grid; gap: 2.5rem; }
.artist-group h2 { font-size: 1.6rem; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 0.2rem; margin-bottom: 1rem; }
.artist-list { columns: 3; column-gap: 2rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 840px) { .artist-list { columns: 2; } }
@media (max-width: 520px) { .artist-list { columns: 1; } }
.artist-list li { break-inside: avoid; padding: 0.2rem 0; }
.artist-list a { text-decoration: none; }
.artist-list a:hover { text-decoration: underline; }
.artist-list .instrument { color: var(--ink-mute); font-size: 0.85rem; }
.artist-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: start; padding: clamp(2rem, 5vw, 4rem) 0 1rem; }
.artist-head img { width: 220px; border-radius: 4px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .artist-head { grid-template-columns: 1fr; } .artist-head img { width: 160px; } }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--rule); }
.timeline .date { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.timeline .docs-inline { font-size: 0.85rem; margin-top: 0.2rem; }

/* Forms */
.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.form label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.form .help { font-size: 0.85rem; color: var(--ink-mute); margin: 0.3rem 0 0; }
.form .error { color: var(--live); font-size: 0.9rem; margin: 0.3rem 0 0; }
.form textarea { min-height: 9rem; }
.form-inline { display: flex; gap: 0.5rem; max-width: 30rem; }
.form-inline .input { flex: 1; }
.notice { background: var(--accent-soft); color: var(--ink); padding: 1rem 1.25rem; border-radius: 4px; }
.notice--ok { background: #eaf5ec; }
.notice--warn { background: #fbebea; }

/* Footer */
.site-footer { background: var(--tint); border-top: 1px solid var(--tint-rule); margin-top: 3rem; padding: 3rem 0 2rem; font-size: 0.95rem; margin-bottom: 0; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.site-footer h3 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.8rem; }
.site-footer p { margin-bottom: 0.5em; }
.site-footer address { font-style: normal; }
.site-footer__bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: var(--ink-mute); }
.site-footer__bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.admin-bar { background: var(--ink); color: #fff; font-size: 0.8rem; padding: 0.4rem 0; }
.admin-bar a { color: var(--accent); }
.admin-bar .wrap { display: flex; gap: 1.5rem; justify-content: flex-end; }

/* Home extras */
.intro { columns: 2; column-gap: 3rem; font-size: 1.05rem; }
@media (max-width: 720px) { .intro { columns: 1; } }
.stat-band { display: flex; gap: 3rem; flex-wrap: wrap; align-items: center; }
.stat-band__num { font-family: var(--font-display); font-size: 3.2rem; line-height: 1; }
.search-box { display: flex; gap: 0.5rem; max-width: 32rem; }

/* Error page */
.error-page { text-align: center; padding: 5rem 0; }

@media print {
  .site-header, .site-footer, .site-nav, .hero__actions, .aside__actions, .admin-bar, .yt, .nav-toggle { display: none !important; }
  body { font-size: 11pt; }
  a { text-decoration: none; color: inherit; }
}

/* Colour scheme switcher (footer) */
.themes { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; list-style: none; margin: 0; padding: 0; }
.themes a { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; font-size: 0.85rem; padding: 0.2rem 0.5rem 0.2rem 0.25rem; border-radius: 999px; border: 1px solid transparent; }
.themes a:hover, .themes a.is-active { border-color: var(--tint-rule); background: var(--paper); }
.themes__swatch { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); background: linear-gradient(135deg, var(--sw-a) 0 50%, var(--sw-b) 50% 100%); }

/* Full logo artwork (home) */
.artwork { color: var(--brand); width: 100%; height: auto; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem; align-items: center; }
@media (max-width: 840px) { .about-grid { grid-template-columns: 1fr; } }
