/* ═══════════════════════════════════════════════════
   LEIDEN ENGLISH CHOIR — shared stylesheet
   ═══════════════════════════════════════════════════ */

/* ── Design tokens ── */
:root{
  --color-bg: #f7f4ef;
  --color-surface: #ffffff;
  --color-text: #721d53;
  --color-border: #d8cfc3;
  --color-brand: #721d53;
  --color-accent: #3bc489;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Nunito', Arial, sans-serif;
  --radius: 6px;
  /* Extra tokens */
  --max-w: 1080px;
  --header-h: 68px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s;
}
a:hover  { color: var(--color-accent); }
a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Headings ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-brand);
  line-height: 1.22;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 5vw, 3rem);    margin-bottom: 0.55em; }
h2 { font-size: clamp(1.35rem, 3.5vw, 2rem); margin-bottom: 0.5em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem);margin-bottom: 0.4em; }
h4 { font-size: 1rem;                          margin-bottom: 0.35em; }

p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.6em 1.45em;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-surface);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--color-accent) 80%, #000);
  border-color: color-mix(in srgb, var(--color-accent) 80%, #000);
  color: var(--color-surface);
}
.btn-primary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-secondary {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn-secondary:hover {
  background: var(--color-brand);
  color: var(--color-surface);
}
.btn-secondary:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 3px;
}

/* ══════════════════════════════════════
   HEADER
   ══════════════════════════════════════ */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-sm);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-link:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-brand);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

/* Main navigation */
[data-site-nav] {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

[data-site-nav] a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.35em 0.7em;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
[data-site-nav] a:hover {
  background: color-mix(in srgb, var(--color-brand) 10%, transparent);
  color: var(--color-brand);
}
[data-site-nav] a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

[data-nav-link][aria-current="page"] {
  color: var(--color-brand);
  background: color-mix(in srgb, var(--color-brand) 12%, transparent);
}

[data-site-nav] a.nav-members {
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  margin-left: 0.4rem;
}
[data-site-nav] a.nav-members:hover {
  background: var(--color-accent);
  color: var(--color-surface);
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
  background: color-mix(in srgb, var(--color-brand) 92%, #000);
  color: color-mix(in srgb, var(--color-surface) 90%, transparent);
  padding: var(--space-lg) var(--space-sm) var(--space-md);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-choir-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-surface);
  letter-spacing: 0.02em;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  color: color-mix(in srgb, var(--color-surface) 75%, transparent);
}

.footer-contact a {
  color: color-mix(in srgb, var(--color-surface) 90%, transparent);
  font-size: 0.9rem;
  text-underline-offset: 3px;
}
.footer-contact a:hover { color: var(--color-surface); }
.footer-contact a:focus-visible {
  outline: 3px solid var(--color-surface);
  outline-offset: 3px;
}

.footer-copy {
  max-width: var(--max-w);
  margin: var(--space-md) auto 0;
  text-align: center;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--color-surface) 55%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--color-surface) 18%, transparent);
  padding-top: var(--space-sm);
}

/* ══════════════════════════════════════
   PAGE HERO (inner pages — modest header band)
   ══════════════════════════════════════ */
.page-hero {
  background: color-mix(in srgb, var(--color-brand) 9%, var(--color-bg));
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg) var(--space-sm) var(--space-md);
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: color-mix(in srgb, var(--color-text) 80%, var(--color-brand));
  max-width: 62ch;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   CONTENT WRAP
   ══════════════════════════════════════ */
.content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-sm);
}

/* ── Content sections ── */
.content-section {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.content-section:last-of-type {
  border-bottom: none;
}

.prose {
  max-width: 65ch;
}

/* ── Pull-quote ── */
.pull-quote {
  background: color-mix(in srgb, var(--color-brand) 7%, var(--color-bg));
  border-left: 4px solid var(--color-brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 0.5rem);
  margin: calc(-1 * var(--space-sm)) 0 var(--space-lg);
}

.pull-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-style: italic;
  color: var(--color-brand);
  line-height: 1.45;
  margin-bottom: 0.45em;
}

.pull-quote cite {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--color-text) 65%, transparent);
  font-style: normal;
}

/* ── Detail card (rehearsal info) ── */
.detail-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-top: var(--space-md);
  max-width: 480px;
}

.detail-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.detail-list li {
  display: flex;
  gap: var(--space-sm);
  align-items: baseline;
  font-size: 0.95rem;
}

.detail-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-accent);
  flex-shrink: 0;
  min-width: 90px;
}

.detail-value {
  color: var(--color-text);
}

/* ── Two-column layout (conductor section) ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: start;
}

.conductor-aside {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.conductor-aside h3 {
  margin-bottom: var(--space-sm);
}

.repertoire-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.repertoire-list li {
  font-size: 0.95rem;
  padding-left: 1.1em;
  position: relative;
}

.repertoire-list li::before {
  content: "♩";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.8em;
  top: 0.12em;
}

/* ── CTA band ── */
.cta-band {
  background: color-mix(in srgb, var(--color-brand) 9%, var(--color-bg));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  margin-top: var(--space-lg);
}

.cta-band h2 {
  margin-bottom: 0.4em;
}

.cta-band p {
  max-width: 52ch;
  margin: 0 auto var(--space-md);
  color: color-mix(in srgb, var(--color-text) 85%, var(--color-brand));
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 700px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 0.75rem var(--space-sm);
    gap: 0.5rem;
    align-items: flex-start;
  }

  [data-site-nav] {
    gap: 0.1rem;
  }

  [data-site-nav] a {
    font-size: 0.82rem;
    padding: 0.3em 0.55em;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .pull-quote {
    padding: var(--space-sm) var(--space-sm) var(--space-sm) calc(var(--space-sm) + 0.5rem);
  }

  .cta-band {
    padding: var(--space-md) var(--space-sm);
  }
}

@media (max-width: 480px) {
  .brand-name { font-size: 0.95rem; }
  .site-logo  { height: 32px; }

  .detail-list li {
    flex-direction: column;
    gap: 0.1rem;
  }

  .detail-label { min-width: unset; }
}

/* ══════════════════════════════════════
   HOME PAGE — HERO
   ══════════════════════════════════════ */

/* Hero animations */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.home-hero {
  position: relative;
  width: 100%;
  /* Landscape 1.58:1 — let it be naturally tall on mobile, cap on desktop */
  aspect-ratio: 16 / 9;
  min-height: 420px;
  max-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.home-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 32%;
}

/* Localised gradient — fades in WITH the text, never from page load */
.home-hero__overlay {
  position: absolute;
  inset: 0;
  /* Gradient weighted to the lower portion where text sits */
  background: linear-gradient(
    to top,
    rgba(30, 8, 20, 0.78) 0%,
    rgba(30, 8, 20, 0.42) 45%,
    rgba(30, 8, 20, 0.10) 80%,
    rgba(30, 8, 20, 0.00) 100%
  );
  animation: heroOverlayIn 0.7s ease-out 1.5s both;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  padding-bottom: calc(var(--space-lg) + 0.5rem);
}

.home-hero__title {
  color: #ffffff;
  font-size: clamp(2.1rem, 6vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 0.3em;
  text-shadow:
    0 1px 3px rgba(0,0,0,0.6),
    0 3px 14px rgba(0,0,0,0.4);
  animation: heroFadeIn 0.8s ease-out 1.8s both;
}

.home-hero__tagline {
  color: color-mix(in srgb, #ffffff 90%, var(--color-accent));
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.05rem, 2.8vw, 1.5rem);
  margin-bottom: var(--space-md);
  text-shadow:
    0 1px 2px rgba(0,0,0,0.55),
    0 2px 8px rgba(0,0,0,0.35);
  animation: heroFadeIn 0.8s ease-out 2.2s both;
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: heroFadeIn 0.8s ease-out 2.55s both;
}

/* Ghost button — white border for use over the dark photo */
.btn-hero-ghost {
  display: inline-block;
  padding: 0.6em 1.45em;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.75);
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  letter-spacing: 0.02em;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: #ffffff;
  color: #ffffff;
}
.btn-hero-ghost:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* ══════════════════════════════════════
   HOME PAGE — INTRO SECTION
   ══════════════════════════════════════ */

.home-intro {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg) var(--space-sm);
}

.home-intro__inner {
  max-width: 68ch;
  margin: 0 auto;
}

.home-intro__inner h2 {
  margin-bottom: 0.6em;
}

.home-intro__inner p {
  color: var(--color-text);
  margin-bottom: 1em;
}

.home-intro__inner .btn {
  margin-top: var(--space-xs);
}

/* ══════════════════════════════════════
   HOME PAGE — CONCERT HIGHLIGHT
   ══════════════════════════════════════ */

.home-concert {
  background: var(--color-bg);
  padding: var(--space-lg) var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.home-concert__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.home-concert__eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.home-concert__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  max-width: 720px;
}

.home-concert__date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: color-mix(in srgb, var(--color-brand) 9%, var(--color-bg));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  min-width: 72px;
  flex-shrink: 0;
  text-align: center;
}

.home-concert__day {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-brand);
}

.home-concert__month {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 0.15rem;
}

.home-concert__year {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  margin-top: 0.1rem;
}

.home-concert__details h2 {
  margin-bottom: 0.25em;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.home-concert__meta {
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  margin-bottom: 0.75em;
}

.home-concert__desc {
  font-size: 0.97rem;
  margin-bottom: var(--space-md);
  max-width: 52ch;
}

/* ══════════════════════════════════════
   HOME PAGE — JOIN CTA SECTION
   ══════════════════════════════════════ */

.home-join {
  background: color-mix(in srgb, var(--color-brand) 9%, var(--color-bg));
  padding: var(--space-lg) var(--space-sm);
}

.home-join__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.home-join__inner h2 {
  margin-bottom: 0.5em;
}

.home-join__inner p {
  max-width: 52ch;
  margin: 0 auto var(--space-md);
  color: color-mix(in srgb, var(--color-text) 85%, var(--color-brand));
}

/* ══════════════════════════════════════
   HOME PAGE — RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 600px) {
  .home-hero {
    aspect-ratio: 4 / 3;
    max-height: 520px;
    align-items: flex-end;
  }

  .home-hero__content {
    padding: var(--space-md) var(--space-sm);
    padding-bottom: var(--space-md);
  }

  .home-concert__card {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .home-concert__date-block {
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
    min-width: unset;
    width: 100%;
    padding: 0.5rem 0.75rem;
  }

  .home-concert__day   { font-size: 1.4rem; }
  .home-concert__month { margin-top: 0; }
  .home-concert__year  { margin-top: 0; }
}