/* The Fest at Tampa Bay — landing page
   ENDORSEMENT BRAND ARCHITECTURE: The Fest owns its identity but is always
   visually tied to the parent, the Tampa Bay Black Heritage Festival (TBBHF).
   - Borrowed from TBBHF: gold (#E4AE1D) + royal purple, and the DM Sans family.
   - The Fest's own concert-forward spark: an electric-neon accent.

   THEMING: dark is the default (committed, stage-lit). A light take is available
   via [data-theme="light"] — gold/neon stay as FILLS, but text-accents switch to
   --ink-accent / --neon-ink so nothing washes out on a light ground. */

:root {
  --ink:      #100B16;
  --ink-2:    #201341;   /* royal-purple surface (borrowed from TBBHF) */
  --ink-3:    #2C1B4E;
  --bone:     #F7EFE1;
  --muted:    #C9BCD6;   /* purple-biased grey; tuned for a crisp read on the purple surface */
  --gold:     #E4AE1D;   /* TBBHF brand gold — the heritage tie (used as FILLS) */
  --gold-br:  #F5C542;
  --neon:     #2BF0DE;   /* The Fest's own high-energy concert neon (FILLS) */
  --neon-br:  #5FFBEC;
  --grape:    #6E3FB0;
  --line:        rgba(247,239,225,.15);
  --line-2:      rgba(247,239,225,.08);
  --line-strong: rgba(247,239,225,.34);  /* interactive borders (buttons, tabs) — clears 3:1 */
  --ink-accent:  var(--gold);   /* text-accent color (gold in dark) */
  --neon-ink:    var(--neon);   /* "neon" used as text (cyan in dark) */

  --display: "Anton", "Haettenschweiler", "Impact", sans-serif; /* poster identity */
  --sans:    "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; /* TBBHF family */
  --mono:    "DM Mono", ui-monospace, Menlo, monospace;

  --wrap: 1200px;
  --radius: 4px;
}

/* ---------- LIGHT & MIXED TAKES ----------
   One light token set powers two takes:
   - [data-theme="light"] → the whole page goes light
   - [data-theme="mixed"] → only the .section-alt blocks become light islands
                            (dark hero/nav/lineup/footer + light schedule/tickets)
   Also exposed as .theme-light for any one-off light island. */
:root[data-theme="light"],
:root[data-theme="mixed"] .section-alt,
.theme-light {
  --ink:      #FBF6EC;   /* warm ivory ground */
  --ink-2:    #EFE8F8;   /* soft lavender panels */
  --ink-3:    #E2D6F2;
  --bone:     #1A1222;   /* deep plum-black text (16.9:1 on ivory) */
  --muted:    #665873;   /* warm purple-grey (6.1:1) */
  --line:        rgba(26,18,34,.16);
  --line-2:      rgba(26,18,34,.09);
  --line-strong: rgba(26,18,34,.36);
  --ink-accent:  #4A2A86;  /* deep royal purple — legible text accent (9.9:1) */
  --neon-ink:    #0A6E66;  /* deep teal — legible "neon" text (5.7:1) */
}
:root[data-theme="light"] .hero-glow { opacity: .42; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }
a { color: inherit; text-decoration: none; }

h1, h2 { font-family: var(--display); font-weight: 400; line-height: .92; letter-spacing: .005em; text-transform: uppercase; text-wrap: balance; margin: 0; }
h3 { font-family: var(--sans); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
:focus-visible { outline: 3px solid var(--ink-accent); outline-offset: 3px; }
::selection { background: var(--gold); color: #100B16; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--bone); --btn-bd: var(--bone);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-bd); cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--neon); }
.btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--neon); }
.btn-solid { --btn-bg: var(--gold); --btn-fg: #100B16; --btn-bd: var(--gold); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--bone); --btn-bd: var(--line-strong); }
.btn-ghost:hover { --btn-bd: var(--ink-accent); }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }

.theme-toggle { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; background: transparent; color: var(--bone); border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: border-color .15s, color .15s; }
.theme-toggle:hover { border-color: var(--ink-accent); color: var(--ink-accent); }
.tt-ico { font-size: 14px; line-height: 1; }

/* ---------- sticky header: ribbon + nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); }

/* The Invisible String — permanent tie back to TBBHF */
.ribbon { background: var(--gold); color: #100B16; font-size: 13.5px; font-weight: 500; }
.ribbon-inner { display: flex; align-items: center; justify-content: center; gap: 8px 18px; flex-wrap: wrap; padding-block: 9px; text-align: center; }
.ribbon strong { font-weight: 800; }
.ribbon a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.ribbon a:hover { color: var(--ink-2); }

.nav { border-bottom: 1px solid var(--line-2); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 66px; }

/* logo lockup */
.wordmark { display: inline-flex; flex-direction: column; justify-content: center; line-height: 1; }
.wm-main { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .01em; text-transform: uppercase; }
.wm-main span { color: var(--ink-accent); }
.wm-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-links { display: flex; gap: 24px; margin-left: 14px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--bone); }
.nav-cta { flex: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--bone); display: block; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 14px clamp(20px,5vw,56px) 22px; border-bottom: 1px solid var(--line-2); background: var(--ink); }
.mobile-menu a { padding: 12px 0; color: var(--bone); font-weight: 600; border-bottom: 1px solid var(--line-2); }
.mobile-menu a.btn { border: 2px solid var(--gold); justify-content: center; margin-top: 10px; }

/* anchor offset so sticky header doesn't cover section tops */
.section { scroll-margin-top: 128px; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 10vw, 104px) clamp(36px, 6vw, 72px); overflow: hidden; }
.hero-glow { position: absolute; inset: -20% -10% auto -10%; height: 92%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(56% 68% at 16% 6%, color-mix(in srgb, var(--gold) 34%, transparent), transparent 60%),
    radial-gradient(52% 64% at 86% 0%, color-mix(in srgb, var(--grape) 55%, transparent), transparent 62%),
    radial-gradient(46% 56% at 66% 92%, color-mix(in srgb, var(--neon) 20%, transparent), transparent 66%);
  filter: blur(24px); opacity: .8;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .18em; font-size: 13px; color: var(--ink-accent); margin: 0 0 16px; }

/* logo lockup (hero) */
.lockup { margin-bottom: 4px; }
.hero-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(78px, 23vw, 320px); line-height: .84; display: flex; flex-direction: column; letter-spacing: .01em; }
.hero-title .l1 { color: var(--bone); }
.hero-title .l2 { color: var(--ink-accent); }
.hero-locale { font-family: var(--sans); font-style: italic; font-weight: 600; font-size: clamp(22px, 4.4vw, 44px); color: var(--bone); margin: 6px 0 0; letter-spacing: -.01em; }
.endorse { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: clamp(11px, 1.4vw, 13px); color: var(--ink-accent); margin: 16px 0 0; }

.sticker {
  display: inline-block; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--neon); color: #100B16; padding: 9px 16px; border-radius: 999px;
  transform: rotate(-3deg); margin: 24px 0 0;
}
.hero-lede { font-size: clamp(19px, 2.5vw, 27px); max-width: 24ch; color: var(--bone); font-weight: 500; margin: 26px 0 0; line-height: 1.28; }

.countdown { display: flex; align-items: flex-end; gap: 10px; margin: 34px 0 0; }
.cd-unit { display: flex; flex-direction: column; align-items: center; }
.cd-num { font-family: var(--mono); font-weight: 500; font-size: clamp(30px, 6vw, 54px); line-height: 1; color: var(--bone); font-variant-numeric: tabular-nums; }
.cd-lab { font-family: var(--mono); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; color: var(--muted); margin-top: 8px; }
.cd-sep { font-family: var(--mono); font-size: clamp(24px, 5vw, 44px); color: var(--neon-ink); line-height: 1; padding-bottom: 22px; }
.cd-msg { font-family: var(--mono); font-size: 15px; letter-spacing: .04em; color: var(--muted); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ---------- marquee ---------- */
.marquee { border-block: 2px solid var(--ink); background: var(--gold); color: #100B16; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; will-change: transform; animation: scroll 30s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: .02em; text-transform: uppercase; padding-block: 12px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 118px); }
.section-alt { background: var(--ink-2); }
.section-head { margin-bottom: clamp(30px, 4vw, 52px); }
.kicker { font-family: var(--mono); text-transform: uppercase; letter-spacing: .2em; font-size: 13px; color: var(--ink-accent); display: block; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(46px, 8vw, 110px); }
.section-lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 60ch; margin: -18px 0 40px; line-height: 1.4; }
.tiny { color: var(--muted); font-size: 14px; margin-top: 24px; }

/* ---------- lineup ---------- */
.headliners { display: flex; flex-direction: column; gap: 0; margin-bottom: clamp(30px, 5vw, 54px); border-top: 1px solid var(--line); }
.headliner { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 8.5vw, 116px); line-height: 1; letter-spacing: .01em; padding: clamp(14px, 2vw, 26px) 0; border-bottom: 1px solid var(--line); color: var(--bone); transition: color .18s, padding-left .18s; }
.headliner:hover { color: var(--ink-accent); padding-left: 20px; }
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.artist { aspect-ratio: 5/3; display: flex; align-items: flex-end; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); transition: background .18s, transform .18s, color .18s; }
.artist:hover { transform: translateY(-4px); }
.artist:nth-child(3n+1):hover { background: var(--gold);  color: #100B16; }
.artist:nth-child(3n+2):hover { background: var(--neon);  color: #100B16; }
.artist:nth-child(3n):hover   { background: var(--grape); color: #F7EFE1; }
.artist-name { font-family: var(--sans); font-weight: 700; font-size: 20px; line-height: 1.1; }

/* ---------- schedule ---------- */
.day-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.day-tab { font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: .04em; padding: 12px 18px; border-radius: 999px; background: transparent; color: var(--muted); border: 1px solid var(--line-strong); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.day-tab:hover { color: var(--bone); border-color: var(--bone); }
.day-tab[aria-selected="true"] { background: var(--gold); color: #100B16; border-color: var(--gold); }
.schedule-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stage { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--ink); }
.stage h3 { font-size: 22px; color: var(--ink-accent); margin-bottom: 14px; }
.stage ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.stage li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); font-weight: 500; }
.stage li:first-child { border-top: 0; }
.stage .t { font-family: var(--mono); color: var(--neon-ink); font-size: 14px; min-width: 52px; font-variant-numeric: tabular-nums; }

/* ---------- more than music ---------- */
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.more-card { border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 26px; background: var(--ink-2); }
.more-card h3 { font-size: 22px; margin-bottom: 10px; }
.more-card p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- tickets ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; background: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.tier-feature { border-color: var(--gold); box-shadow: 8px 8px 0 var(--gold); position: relative; }
.tier-flag { position: absolute; top: -13px; left: 26px; background: var(--gold); color: #100B16; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.tier h3 { font-size: 26px; }
.price { font-family: var(--display); font-weight: 400; font-size: 62px; line-height: 1; margin: 10px 0 0; letter-spacing: .01em; }
.price span { font-size: 28px; vertical-align: super; color: var(--muted); }
.price-note { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--muted); margin: 6px 0 16px; }
.tier ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.tier li { position: relative; padding-left: 22px; font-size: 15px; color: var(--bone); }
.tier li::before { content: "✦"; position: absolute; left: 0; color: var(--ink-accent); }

/* ---------- info + faq ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: clamp(40px, 6vw, 66px); }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--ink-2); }
.info-card h3 { font-size: 21px; color: var(--ink-accent); margin-bottom: 10px; }
.info-card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.faq-title { font-size: clamp(26px, 4vw, 36px); margin-bottom: 16px; }
.faq details { border-top: 1px solid var(--line); }
.faq details[open] summary { color: var(--ink-accent); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--sans); font-weight: 700; font-size: 19px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--neon-ink); font-size: 24px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 0 0 18px; max-width: 68ch; }

/* ---------- cta band ---------- */
.cta-band { background: var(--gold); color: #100B16; padding-block: clamp(60px, 8vw, 100px); }
.cta-band-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-band h2 { font-size: clamp(42px, 7vw, 92px); }
.cta-band p { font-size: 18px; font-weight: 500; margin: 16px 0 0; max-width: 44ch; }
.signup { display: flex; gap: 10px; margin-top: 30px; width: 100%; max-width: 480px; }
.signup input { flex: 1; font-family: var(--sans); font-size: 16px; padding: 14px 18px; border: 2px solid #100B16; border-radius: var(--radius); background: #FFFBF0; color: #100B16; }
.signup input::placeholder { color: #6b5a3a; }
.signup .btn-solid { --btn-bg: #100B16; --btn-fg: var(--gold); --btn-bd: #100B16; }
.signup .btn:hover { box-shadow: 4px 4px 0 var(--neon); }
.signup-msg { min-height: 22px; margin: 14px 0 0; font-weight: 700; font-family: var(--mono); font-size: 14px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); border-top: 1px solid var(--line-2); padding-block: 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .wm-main { font-family: var(--display); font-size: 30px; text-transform: uppercase; letter-spacing: .01em; }
.footer-brand .wm-main span { color: var(--ink-accent); }
.endorse-sm { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; max-width: 34ch; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 15px; }
.footer-links a:hover { color: var(--bone); }
.footer-fine { color: var(--muted); font-family: var(--mono); font-size: 12.5px; width: 100%; margin: 8px 0 0; line-height: 1.5; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .schedule-panel { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .tier-feature { box-shadow: 6px 6px 0 var(--gold); }
  .section { scroll-margin-top: 150px; }
}
@media (min-width: 861px) { .mobile-menu { display: none !important; } }
@media (max-width: 480px) {
  .ribbon-inner { font-size: 12px; }
  .countdown { gap: 6px; }
  .cd-sep { padding-bottom: 20px; }
  .signup { flex-direction: column; }
}
