/* Magic City Bluegrass Festival */
:root {
  --night: #141210;
  --night-2: #1F1C18;
  --text: #F7F1E3;
  --muted: #CFC8BA;
  --line: rgba(247, 241, 227, .16);
  --accent: #F6CC63;
  --sun: #F6CC63;
  --sun-hover: #FFDC85;
  --cream: #FFFAF0;
  --header: 68px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sun); color: var(--night); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .8em 1.6em;
  border-radius: 8px; border: 2px solid transparent;
  font: 700 1rem/1.1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sun { background: var(--sun); color: var(--night); }
.btn-sun:hover { background: var(--sun-hover); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: var(--text); border-color: var(--text); color: var(--night); }
.btn-sm { min-height: 42px; padding: .55em 1.15em; }
.btn-dark { background: var(--night); color: var(--text); }
.btn-dark:hover { background: #38322A; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 18, 16, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header); gap: 16px; }
.brand { text-decoration: none; }
.brand-text { font: 800 1.3rem/1 var(--display); letter-spacing: -.01em; }
.brand-text em, .footer-brand em { font-style: italic; color: var(--sun); }

.nav-list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-list a:not(.btn) { display: block; padding: 10px 14px; text-decoration: none; font-weight: 600; color: var(--muted); transition: color .15s; }
.nav-list a:not(.btn):hover { color: var(--text); }
.nav-list .btn { margin-left: 8px; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px;
    border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-list {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 24px 24px; background: var(--night); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a:not(.btn) { padding: 12px 0; font-size: 1.1rem; }
  .nav-list .btn { margin: 8px 0 0; }
}

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: min(calc(100vh - var(--header)), 880px);
  min-height: min(calc(100svh - var(--header)), 880px);
  padding: 72px 0 56px;
  background: var(--night);
}
.hero-photo { position: absolute; top: 0; bottom: 0; left: 36%; z-index: -2; width: 64%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 38%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--night) 36%, rgba(20, 18, 16, 0) 54%),
    linear-gradient(0deg, rgba(20, 18, 16, .55) 0%, rgba(20, 18, 16, 0) 28%);
}
.hero-copy { max-width: 680px; }
.kicker { font-weight: 700; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow { display: inline-block; background: var(--sun); color: var(--night); font-weight: 700; font-size: 1.05rem; line-height: 1.3; padding: 7px 14px; border-radius: 6px; margin-bottom: 22px; }
.hero-title { font-size: clamp(3.6rem, 9.2vw, 7.6rem); font-weight: 800; line-height: .92; letter-spacing: -.03em; margin-bottom: 26px; }
.hero-title .t-small { display: block; font: 700 clamp(.95rem, 1.6vw, 1.2rem)/1.4 var(--body); letter-spacing: .28em; text-transform: uppercase; }
.hero-title .t-after { margin-top: .9em; }
.hero-title .t-accent { display: block; color: var(--sun); font-style: italic; }
.hero-sub { font-size: 1.2rem; line-height: 1.5; max-width: 25em; margin-bottom: 24px; }
.facts { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 12px 40px; line-height: 1.4; }
.facts strong { display: block; font-size: 1.1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.countdown { margin: 18px 0 0; font-weight: 600; color: var(--muted); }

/* Where the money goes */
.benefit { --accent: #141210; background: var(--sun); color: #141210; padding: clamp(56px, 7vw, 88px) 0; }
.benefit :focus-visible { outline-color: #141210; }
.benefit-inner { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.benefit-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.benefit .kicker { margin-bottom: 10px; }
.benefit h2 { margin-bottom: 26px; }
.benefit-goals { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.benefit-goals li { background: #141210; color: #FFFAF0; padding: 20px 22px; border-radius: 8px; font: 700 clamp(1.3rem, 2.2vw, 1.7rem)/1.15 var(--display); letter-spacing: -.01em; }
.benefit-text { font-size: 1.15rem; line-height: 1.55; max-width: 40em; margin-bottom: 24px; }
@media (max-width: 820px) {
  .benefit-inner { grid-template-columns: 1fr; }
  .benefit-photo { aspect-ratio: 3 / 2; object-position: 50% 30%; }
}
@media (max-width: 480px) { .benefit-goals { grid-template-columns: 1fr; } }

/* The bill under the hero */
.bill { border-block: 1px solid var(--line); padding: 20px 0; }
.bill ul {
  list-style: none; margin-block: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0;
  font: 600 1.15rem/1.4 var(--display);
}
.bill li:not(:last-child)::after { content: "/"; margin: 0 .8em; color: var(--sun); font-weight: 400; }

@media (max-width: 760px) {
  .hero { display: block; min-height: 0; padding: 300px 0 40px; }
  .hero-photo { left: 0; width: 100%; bottom: auto; height: 360px; object-position: 50% 40%; }
  .hero::after { background: linear-gradient(180deg, rgba(20, 18, 16, 0) 170px, var(--night) 360px); }
  .hero-title { font-size: clamp(3.3rem, 15.5vw, 5.4rem); }
  .hero-cta .btn { flex: 1 1 100%; }
  .bill ul { font-size: 1.02rem; }
}

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
h2 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.lede { font-size: 1.2rem; color: var(--muted); }

/* Lineup: one big photo per act */
.lineup { padding-bottom: 0; }
.bands { list-style: none; margin: 0; padding: 0; }
.band { display: grid; grid-template-columns: 3fr 2fr; min-height: clamp(460px, 44vw, 700px); }
.band:nth-child(even) { grid-template-columns: 2fr 3fr; }
.band:nth-child(even) .band-photo { order: 2; }
.band-photo { position: relative; margin: 0; overflow: hidden; background: var(--night-2); }
.band-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform .7s ease; }
.band:hover .band-photo img { transform: scale(1.03); }
/* Portrait photos get a narrower, taller slot so nothing is cropped off */
.band-tall { grid-template-columns: 2fr 3fr; min-height: 0; }
.band-tall .band-photo { aspect-ratio: 4 / 5; }
.band-tall .band-photo img { object-position: 50% 0; }
.band-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(32px, 5vw, 80px); }
.band-tag { font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.band-name { font-size: clamp(2.1rem, 3.8vw, 3.3rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.band-bio { color: var(--muted); max-width: 30em; margin-bottom: 20px; }
.band-link { font-weight: 700; text-underline-offset: 4px; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
.band-link:hover { color: var(--sun); }
@media (max-width: 820px) {
  .band, .band:nth-child(even) { grid-template-columns: 1fr; min-height: 0; }
  .band:nth-child(even) .band-photo { order: 0; }
  .band-photo { aspect-ratio: 3 / 2; }
  .band-body { padding: 28px 24px 52px; }
}
@media (prefers-reduced-motion: reduce) { .band:hover .band-photo img { transform: none; } }

/* Cause: the one light section */
.cause { --text: #1F1C17; --muted: #4F4A40; --accent: #2D6E3E; --line: #E7DFCE; background: var(--cream); color: var(--text); }
.cause :focus-visible { outline-color: var(--accent); }
.cause-grid { display: grid; grid-template-columns: 42% 58%; }
.cause-media { position: relative; background: #000; }
.video { position: sticky; top: var(--header); height: calc(100vh - var(--header)); min-height: 560px; overflow: hidden; background: #000; }
.video img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; left: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  min-height: 52px; padding: 10px 20px 10px 12px;
  border: 0; border-radius: 8px; background: var(--sun); color: #141210;
  font: 700 1rem/1 var(--body); cursor: pointer; transition: background-color .15s;
}
.video-play:hover { background: var(--sun-hover); }
.video-play:focus-visible { outline-color: #fff; }
.video-play svg { width: 26px; height: 26px; fill: currentColor; }
.cause-copy { padding: clamp(56px, 7vw, 112px) clamp(24px, 6vw, 96px); }
.cause-copy p { max-width: 38em; }
.quote { margin: 36px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); }
.quote p { font: 600 1.3rem/1.45 var(--display); margin-bottom: 12px; }
.quote footer { font-weight: 600; color: var(--muted); font-size: .95rem; }
.cause-cards { margin-bottom: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.mini-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.mini-card p { font-size: 1rem; color: var(--muted); margin: 0; }
.cause .btn-ghost:hover { background: var(--text); border-color: var(--text); color: var(--cream); }
@media (max-width: 900px) {
  .cause-grid { grid-template-columns: 1fr; }
  .video { position: relative; top: 0; height: auto; min-height: 0; aspect-ratio: 4 / 5; }
}

/* The Day */
.day-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: stretch; }
.day-card { padding: 22px 0; border-top: 1px solid var(--line); }
.day-card:last-child { padding-bottom: 0; }
.day-card h3 { font: 700 .85rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; color: var(--accent); }
.day-card p { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.5; }
.text-link { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--sun); }
.text-link:hover { color: var(--sun); }
.map { min-height: 440px; background: var(--night-2); }
.map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }
@media (max-width: 900px) { .day-grid { grid-template-columns: 1fr; gap: 32px; } .map, .map iframe { min-height: 320px; } }

/* Tickets */
.tickets { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(96px, 13vw, 176px) 0; }
.tickets-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tickets::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 18, 16, .5); }
.tickets p { max-width: 34em; margin: 0 auto 28px; font-size: 1.2rem; }

/* Footer */
.site-footer { padding: 44px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; color: var(--muted); }
.footer-inner p { margin: 0; }
.footer-brand { font: 800 1.5rem/1.2 var(--display); color: var(--text); margin-bottom: 6px !important; }
.footer-note a { color: var(--sun); }
.footer-credit { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; font: italic 700 1.15rem/1.3 var(--display); color: var(--text); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.h-404 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 16px; }
