/* Harborne Orchestra – site styles (Direction A, "Evening Concert")
   Colours checked against WCAG 2.2 AA:
   navy #0B2046 on white 16:1 · gold #C69A2C on navy 6.2:1 (never as text on white)
   deep gold #7A5E17 on white 6.1:1 / on cream 5.3:1 · light gold #E4C77A on navy 9.7:1 */

:root {
  --navy: #0B2046;
  --navy-2: #13295A;
  --navy-3: #071630;
  --gold: #C69A2C;
  --gold-light: #E4C77A;
  --gold-deep: #7A5E17;
  --cream: #F4F1E8;
  --line: #D9D3C3;
  --text-muted: #4A5573;
  --white: #FFFFFF;
  --focus: #C69A2C;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --bodoni: "Bodoni Moda", Didot, Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--navy); background: var(--white); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--gold-deep); text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.plain { list-style: none; margin: 0 0 1em; padding: 0; }
.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--gold); color: var(--navy); padding: 12px 18px; font-weight: 700; border-radius: 4px; }
.skip-link:focus { top: 12px; }

/* ---------- header */
.site-header { background: var(--navy); color: var(--white); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand .monogram { height: 46px; width: auto; flex: none; }
.wordmark { display: flex; flex-direction: column; line-height: 1; font-family: var(--bodoni); font-weight: 500; text-transform: uppercase; }
.wm-1 { font-size: 1.2rem; letter-spacing: .3em; }
.wm-2 { font-size: .68rem; letter-spacing: .55em; margin-top: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 20px; }
.site-nav a { color: var(--white); text-decoration: none; font-size: .95rem; font-weight: 600; display: inline-block; padding: 10px 0; }
.site-nav a:hover { color: var(--gold-light); text-decoration: underline; }
.site-nav a[aria-current] { color: var(--gold-light); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.site-nav .nav-cta a { padding: 10px 20px; color: var(--navy); text-decoration: none; }
.site-nav .nav-cta a:hover { color: var(--navy); background: var(--gold-light); }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; background: transparent; color: var(--white); border: 2px solid var(--gold); border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; }
.menu-toggle:hover { background: var(--navy-2); }

/* small screens: menu collapses behind a button (only when JavaScript is running) */
@media (max-width: 1023px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 10px; }
  .js .site-nav li { border-top: 1px solid #2A3B66; }
  .js .site-nav a { display: block; padding: 13px 4px; }
  .js .site-nav .nav-cta { border: 0; padding-top: 12px; }
  .js .site-nav .nav-cta a { text-align: center; }
}
@media (max-width: 480px) {
  .brand .monogram { height: 38px; }
  .wm-1 { font-size: 1rem; }
  .wm-2 { font-size: .58rem; }
}

/* ---------- buttons */
.btn { display: inline-block; font-weight: 700; text-decoration: none; padding: 13px 24px; border-radius: 999px; line-height: 1.2; border: 2px solid transparent; font-size: 1rem; cursor: pointer; text-align: center; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-2); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 1.25em; }
.btn-row:empty { display: none; }
.link-row { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.link-row a { font-weight: 700; padding: 6px 0; }

/* ---------- bands & layout */
.band { padding: clamp(44px, 7vw, 72px) 0; }
.band-tight { padding: 32px 0; }
.band-tight-bottom { padding-bottom: 8px; }
.band-cream { background: var(--cream); }
.band-navy { background: var(--navy); color: var(--white); }
.band-navy a.on-navy, a.on-navy { color: var(--gold-light); font-weight: 700; }
.band-navy a.on-navy:hover, a.on-navy:hover { color: var(--white); }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 24px; }
.band-head h2 { margin: 0; }
.eyebrow { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold-light); margin-bottom: .5em; }
.eyebrow-dark { color: var(--navy); }
.lead { font-size: 1.15rem; max-width: 46rem; }
.split { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.split > * { flex: 1 1 340px; min-width: 0; }
.split-top { align-items: flex-start; }
.split-side { flex: 1 1 260px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px; }
.rule-card { border-top: 4px solid var(--navy); padding-top: 18px; }
.rule-card a { font-weight: 700; }
.panel-white { background: var(--white); color: var(--navy); padding: 26px 28px; }
.panel-cream { background: var(--cream); padding: 26px 28px; border-top: 4px solid var(--navy); }
.page-head { background: var(--cream); padding: 40px 0 36px; }
.page-head h1 { margin-bottom: .25em; }
.page-head .lead { margin-bottom: 0; }
.breadcrumb ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .95rem; }
.breadcrumb li + li::before { content: "›"; margin: 0 6px 0 2px; color: var(--text-muted); }
.breadcrumb [aria-current] { color: var(--text-muted); }
.breadcrumb a { display: inline-block; padding: 3px 0; min-height: 24px; }
.prose-wrap { max-width: 820px; }
.prose { max-width: 46rem; }
.prose img { display: block; margin: 1.5em 0; border-radius: 2px; }
.prose h2 { font-size: 1.9rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--gold); font-size: 1.08rem; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose cite, .prose .attrib { display: block; font-style: normal; font-weight: 700; margin-top: 4px; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0 1.5em; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }
.prose em > img + br { display: none; }
.prose-light { color: #E8ECF4; }
.prose-light a { color: var(--gold-light); }
.byline { color: var(--text-muted); font-style: italic; }
.note { font-size: .95rem; color: var(--text-muted); }
.back-link { margin: 0 auto; padding-bottom: 56px; }
.back-link a { font-weight: 700; }

/* ---------- home hero */
.hero { position: relative; background: var(--navy); color: var(--white); }
.hero-img { display: block; width: 100%; height: clamp(260px, 52vw, 600px); object-fit: cover; object-position: center 40%; }
.hero-panel { background: var(--navy); border-top: 4px solid var(--gold); padding: 28px 0 36px; }
.hero-panel h1 { color: var(--white); }
.hero-text { color: #E8ECF4; font-size: 1.1rem; max-width: 36rem; }
@media (min-width: 900px) {
  .hero-panel-wrap { position: absolute; left: 0; right: 0; bottom: 48px; }
  .hero-panel { max-width: 640px; padding: 34px 40px; background: rgba(11, 32, 70, .94); }
}

/* ---------- events */
.next-grid { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.next-intro { flex: 1 1 260px; }
.next-grid .event-card { flex: 2 1 520px; }
.event-list { display: flex; flex-direction: column; gap: 22px; }
.event-card { display: flex; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); }
.event-card-empty { align-items: center; }
.date-block { flex: 0 0 150px; background: var(--navy); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px 16px; border-bottom: 4px solid var(--gold); }
.date-block span { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; }
.date-block strong { font-family: var(--serif); font-size: 3.6rem; line-height: 1; }
.date-block-past { background: var(--cream); color: var(--navy); border-bottom-color: var(--line); }
.date-block-past span { color: var(--navy); }
.event-body { flex: 1 1 300px; padding: 24px 28px; min-width: 0; }
.event-title { font-family: var(--serif); font-size: 1.9rem; }
.event-title a { color: var(--navy); text-decoration: none; }
.event-title a:hover { text-decoration: underline; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 16px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.facts-light dt { color: var(--gold-light); }
.facts-large { font-size: 1.08rem; gap: 10px 22px; }
.tag { display: inline-block; margin-left: 8px; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); }
.programme { list-style: none; margin: 0 0 1.5em; padding: 0; border-top: 1px solid var(--line); }
.programme li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.programme .composer { font-weight: 700; }
.programme .composer::after { content: " –"; font-weight: 400; }
.poster { margin: 0; flex: 0 1 320px; }
.poster img { border: 1px solid var(--line); display: block; }
.poster figcaption, .illustration figcaption { font-size: .9rem; color: var(--text-muted); margin-top: 6px; }
.concert-detail { padding-top: 40px; padding-bottom: 32px; }
.empty-note { font-style: italic; }
@media (max-width: 560px) {
  .date-block { flex-basis: 100%; flex-direction: row; gap: 10px; padding: 12px 18px; justify-content: flex-start; border-bottom-width: 3px; }
  .date-block strong { font-size: 2.2rem; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 8px; }
}

/* ---------- news */
.news-card { background: var(--navy-2); padding: 24px; border-top: 3px solid var(--gold); }
.news-card .meta { color: var(--gold-light); font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.news-card h3 { font-size: 1.2rem; line-height: 1.35; }
.news-card h3 a { color: var(--white); text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }
.news-card p:last-child { color: #D6DCEA; margin: 0; }
.feature { display: flex; flex-wrap: wrap; background: var(--navy); color: var(--white); }
.feature img { flex: 1 1 380px; min-width: 0; max-height: 360px; object-fit: cover; display: block; }
.feature-body { flex: 1 1 380px; padding: 32px 36px; border-left: 4px solid var(--gold); }
.feature h2 a { color: var(--white); text-decoration: none; }
.feature h2 a:hover { text-decoration: underline; }
.feature p:last-child { color: #E8ECF4; margin: 0; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 40px; }
.post-list li { border-top: 1px solid var(--line); padding: 14px 0; }
.post-list .meta { margin: 0 0 2px; font-size: .9rem; font-weight: 600; color: var(--gold-deep); }
.post-list a { color: var(--navy); font-weight: 600; font-size: 1.08rem; text-decoration: none; line-height: 1.4; }
.post-list a:hover { text-decoration: underline; }
.post-list li[hidden] { display: none; }
.article { max-width: 820px; padding-top: 32px; padding-bottom: 8px; }
.article h1 { margin-top: 8px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .95rem; color: var(--text-muted); border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 28px; }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; }
.post-nav a { max-width: 46%; text-decoration: none; color: var(--navy); font-weight: 600; }
.post-nav a span { display: block; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.post-nav a:hover { text-decoration: underline; }
.post-nav .newer { text-align: right; margin-left: auto; }

/* ---------- filters (shown only with JavaScript) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.chip { font: inherit; font-size: .95rem; font-weight: 700; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--navy); background: var(--white); color: var(--navy); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.chip:hover { background: var(--cream); }
.chip[aria-pressed="true"]:hover { background: var(--navy-2); }
.filter-count { font-size: .95rem; margin-bottom: 16px; min-height: 1.5em; }

/* ---------- about */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--navy); flex: 2 1 520px; }
.timeline li { position: relative; padding: 0 0 26px 30px; }
.timeline li::before { content: ""; position: absolute; left: -10px; top: 7px; width: 17px; height: 17px; border-radius: 50%; background: var(--gold); border: 3px solid var(--navy); }
.timeline-year { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; line-height: 1.1; margin: 0 0 4px; }
.conductor-photo { flex: 0 1 340px; aspect-ratio: 4 / 5; object-fit: cover; border: 4px solid var(--gold); }

/* ---------- join */
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: var(--navy); color: var(--white); padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.pill-outline { background: var(--white); color: var(--navy); border: 2px solid var(--navy); padding: 4px 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold-light); align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
.table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.table caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.table th, .table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { border-bottom: 2px solid var(--navy); }
.faqs details { border-top: 1px solid var(--line); padding: 4px 0; }
.faqs details:last-child { border-bottom: 1px solid var(--line); }
.faqs summary { font-weight: 700; padding: 12px 0; cursor: pointer; }
.faqs summary:hover { color: var(--gold-deep); }

/* ---------- archive */
.archive-intro { padding-top: 28px; }
.archive-tools { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; margin-bottom: 14px; }
.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); }
.table-archive { min-width: 860px; margin: 0; }
.table-archive thead { background: var(--navy); color: var(--white); }
.table-archive thead th { padding: 12px 14px; border: 0; }
.table-archive td, .table-archive tbody th { padding: 12px 14px; }
.table-archive tbody tr:nth-child(even) { background: #F8F6F0; }
.table-archive tr[hidden] { display: none; }
.scroll-hint { display: none; font-size: .95rem; font-style: italic; margin-bottom: 8px; }
@media (max-width: 860px) { .scroll-hint { display: block; } }
.illustration { margin: 0; }
.illustration img { display: block; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- policies */
.doc-list { list-style: none; margin: 24px 0; padding: 0; }
.doc-list li { border-top: 1px solid var(--line); padding: 14px 0; }
.doc-list li:last-child { border-bottom: 1px solid var(--line); }
.doc-cat { margin: 0; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); }
.doc-list a { font-weight: 700; font-size: 1.05rem; }
.doc-meta { font-weight: 400; }

/* ---------- forms */
.contact-grid { padding-top: 40px; padding-bottom: 64px; }
.contact-form-wrap { flex: 999 1 480px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; max-width: 560px; }
.field label { font-weight: 700; }
.optional { font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; color: var(--navy); background: var(--white); padding: 12px 14px; border: 2px solid #5B6683; border-radius: 6px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--navy); }
.field-error { margin: 0; color: #B42318; font-weight: 700; }
.field [aria-invalid="true"] { border-color: #B42318; }
.field-inline { margin: 0; flex: 1 1 320px; }
.form-note { font-size: .95rem; max-width: 40rem; }
.error-summary { border: 3px solid #B42318; background: #FEF3F2; padding: 18px 22px; margin-bottom: 24px; max-width: 560px; }
.error-summary h2 { font-family: var(--sans); font-size: 1.2rem; color: #912018; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: #912018; font-weight: 700; }
.form-status:not(:empty) { border: 2px solid #1E6B3A; background: #EEF7F1; padding: 16px 20px; margin-top: 12px; max-width: 560px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer */
.site-footer { background: var(--navy-3); color: var(--white); padding: 52px 0 28px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.footer-logo { width: 170px; height: auto; display: block; }
.footer-h { font-family: var(--sans); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 8px; }
.footer-h + p, .footer-h + ul { margin-bottom: 18px; }
.footer-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid #2A3B66; font-size: .9rem; color: #C3CBDD; }

/* ---------- motion & print */
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print {
  .site-header nav, .menu-toggle, .skip-link, .filter-bar, .site-footer { display: none !important; }
  .band-navy, .hero, .news-card, .feature { background: none !important; color: #000 !important; }
  a { color: #000; }
}
