/* ============================================================
   Medford Jazz Festival — site styles
   Palette + banded-section idea carried forward from the Wix
   site; type consolidated to two families:
     - Cormorant Garamond (display / headings)
     - Jost (body, nav, UI — a free Futura-like geometric sans)
   ============================================================ */

:root {
  --teal:      #3e6870;
  --teal-deep: #2e4d54;
  --orange:    #fe7b22;
  --orange-ink:#3a1a00;   /* readable text on orange */
  --gold:      #fedb6e;
  --mint:      #b6e6cc;
  --cream:     #faf6ec;   /* warm off-white */
  --paper:     #ffffff;
  --ink:       #23302f;   /* warm charcoal body text */
  --link:      #c2590f;   /* darkened orange for links on light */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --wrap: 940px;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- headings ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
  color: var(--teal);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
p { margin: 0 0 1rem; }
a { color: var(--link); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--teal);
  border-bottom: 3px solid var(--gold);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand__logo {
  width: 44px; height: 44px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--cream);
  flex: none;
}
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  white-space: nowrap;
}
.site-nav ul {
  display: flex; flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* ============================================================
   Section bands — each <section> is a full-width color band;
   its direct children are centered to --wrap.
   ============================================================ */
main { display: block; }
main > section { padding: 3.25rem 1.25rem; }
main > section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }

.band-teal   { background: var(--teal);   color: var(--cream); }
.band-orange { background: var(--orange); color: var(--orange-ink); }
.band-mint   { background: var(--mint);   color: var(--ink); }
.band-cream  { background: var(--cream);  color: var(--ink); }

.band-teal :is(h1, h2, h3)   { color: var(--cream); }
.band-orange :is(h1, h2, h3) { color: var(--orange-ink); }
.band-teal a  { color: var(--gold); }

/* ============================================================
   Buttons
   ============================================================ */
.button, button[type="submit"] {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange-ink);
  background: var(--gold);
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}
.button { background: var(--orange); color: #fff; }
.button:hover, button[type="submit"]:hover { transform: translateY(-1px); }
.button:hover { background: #ec6a12; }
/* On teal bands, use the bright gold button for contrast */
.band-teal .button { background: var(--gold); color: var(--orange-ink); }

/* ============================================================
   Home — hero
   ============================================================ */
.hero { text-align: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.hero__logo {
  width: min(220px, 60vw);
  margin: 0 auto 1.25rem;
  border-radius: 14px;
}
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  margin-bottom: 0.35rem;
}
.hero__meta {
  font-family: var(--sans);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  letter-spacing: 0.03em;
  color: var(--gold);
  margin: 0;
}

/* Crowd photo — full-bleed banner */
.crowd { padding: 0; }
.crowd img {
  width: 100%;
  max-width: none;
  height: clamp(240px, 42vw, 460px);
  object-fit: cover;
}

/* Sponsors */
.sponsors h3 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--orange);
  margin-top: 1.5rem;
}
.sponsors ul {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  /* Column min-track sized to the longest sponsor name, so widening the
     window never fragments into too-narrow, awkwardly-wrapping columns.
     min(100%, ...) lets it collapse to one column on phones. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 0.35rem 1.5rem;
}
.sponsors li { padding: 0.15rem 0; }

/* Headliners */
.headliners { text-align: center; }
.headliner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.headliner img {
  width: min(420px, 100%);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.headliner p {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0;
}
.headliner strong { font-weight: 700; }

/* Schedule — clean, readable (moved off the orange band on purpose) */
.schedule__day { margin-bottom: 1.75rem; }
.schedule__day h3 { color: var(--teal); margin-bottom: 0.15rem; }
.schedule__location {
  font-style: italic;
  color: #6a7b78;
  margin: 0 0 0.5rem;
}
.schedule ul { list-style: none; padding: 0; margin: 0; }
.schedule li {
  display: flex;
  gap: 0.9rem;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(62,104,112,0.15);
}
.set__time {
  flex: none;
  min-width: 6.5rem;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--orange);
}

/* Program / poster */
.program { text-align: center; }
.poster {
  width: min(360px, 80%);
  margin: 1.5rem auto 0;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.28);
}

/* ============================================================
   Forms (contact + newsletter)
   ============================================================ */
.contact-form { max-width: 560px; margin-left: auto; margin-right: auto; }
.contact-form p { margin: 0.65rem 0; }
label {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
input, textarea {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(35,48,47,0.25);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; }

/* ============================================================
   Simple content pages (about, donate, volunteer, contact)
   ============================================================ */
.page > h1 { margin-bottom: 0.75rem; }
.page p { max-width: 40rem; font-size: 1.08rem; }
.page ul { max-width: 40rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--teal-deep);
  color: var(--cream);
  padding: 2.75rem 1.25rem;
}
.site-footer > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.site-footer__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}
.site-footer a { color: var(--gold); }
.newsletter { margin-top: 1.5rem; }
.newsletter h2 { color: var(--cream); font-size: 1.5rem; }
.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: end;
  max-width: 460px;
}
.newsletter label { color: var(--gold); }
.newsletter input { flex: 1 1 220px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  .site-header { justify-content: center; text-align: center; }
  .site-nav ul { justify-content: center; }
  main > section { padding: 2.5rem 1.1rem; }
  .set__time { min-width: 5.5rem; }
}

/* ============================================================
   VARIANT B — gold header bar + prominent stacked date.
   (Everything not overridden here inherits the base = Variant A.)
   ============================================================ */
.variant-b .site-header {
  background: var(--gold);
  border-bottom: 3px solid var(--teal);
}
.variant-b .brand__name { color: var(--teal-deep); }
.variant-b .brand__logo { background: var(--teal); }
.variant-b .site-nav a { color: var(--teal-deep); }
.variant-b .site-nav a:hover { color: var(--orange); }
.variant-b .site-nav a[aria-current="page"] {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* Prominent date: big serif, echoing the original's headline treatment */
.variant-b .hero__date {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  color: var(--gold);
  margin: 1rem 0 0.25rem;
}
.variant-b .hero__where {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  color: var(--cream);
  margin: 0;
}
