/* =========================================================
   Bonfire Radicals – landing page styles
   Design tokens live in :root so the whole site can reuse them later.
   ========================================================= */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Night-stage palette, from the band photos and the Spaghetti Junction cover */
  --ink:      #140c26;   /* page background */
  --ink-2:    #1f1338;   /* raised surfaces */
  --ink-3:    #2b1c4a;   /* borders / hover */
  --text:     #f7f0ff;
  --muted:    #c3b7da;

  --paper:    #fff5e6;   /* cream section */
  --paper-ink:#1d1430;

  --orange:   #f5881f;   /* logo orange */
  --teal:     #00a7bc;   /* logo teal */
  --magenta:  #ff3d8b;   /* stage neon */
  --yellow:   #ffd23f;   /* "junction" road lines */

  --font-sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Press-quote style */
  --font-quote: var(--font-sans); --quote-style: normal; --quote-weight: 450;

  --wrap: 1160px;
  --gutter: 16px;
  --radius: 14px;
  --section-pad: clamp(56px, 9vw, 120px);
}
@media (min-width: 600px) { :root { --gutter: 28px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--yellow); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.2rem, 1.6rem + 3vw, 4rem); margin-bottom: 0.4em; text-wrap: balance; }
em { font-style: italic; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 8px; }

/* ---------- small parts ---------- */
.node {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 25%, transparent);
  margin-right: 10px; vertical-align: 0.02em; flex: none;
}
.kicker, .eyebrow {
  display: flex; align-items: center;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--yellow); margin: 0 0 14px;
}
.stars { color: var(--yellow); letter-spacing: 0.08em; }
.meta { color: var(--muted); font-size: 0.95rem; margin-top: -0.4em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 0.92rem; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #ffe175; }
.btn--ghost { border-color: currentColor; }
.btn--ghost:hover { background: var(--text); color: var(--ink); border-color: var(--text); }
.btn--dark { background: var(--ink); color: var(--text); }
.btn--dark:hover { background: #2a1a48; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.topbar__logo img { width: 128px; transition: opacity .25s ease, transform .25s ease; }
.topbar--hide-logo .topbar__logo img { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.topbar__nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font-weight: 600; font-size: 0.95rem; }
.topbar__nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.topbar__nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 599px) { .topbar__nav a:not(.btn) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; }
.hero__photo { position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; object-position: 50% 30%; }
.hero__photo::after { /* fade photo into page on mobile */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 62%, var(--ink) 100%);
}
.hero__content { position: relative; margin-top: -56px; padding-bottom: clamp(40px, 6vw, 80px); }
.hero__title { margin: 0 0 18px; }
.hero__title img { width: min(100%, 460px); filter: drop-shadow(0 6px 30px rgba(255, 61, 139, .35)); }
.hero__lede { font-size: clamp(1.1rem, 0.98rem + 0.7vw, 1.4rem); line-height: 1.45; max-width: 36ch; text-wrap: pretty; }
.score { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 600; font-size: 0.85rem; }

.hero__quote { margin: clamp(36px, 4vw, 48px) 0 clamp(44px, 4.5vw, 56px); padding-left: 18px; border-left: 3px solid var(--magenta); }
.hero__quote blockquote { margin: 0; font-family: var(--font-quote); font-style: var(--quote-style); font-weight: var(--quote-weight); font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.2rem); line-height: 1.15; letter-spacing: -0.005em; }
.hero__quote blockquote p { margin: 0 0 6px; }
.hero__quote figcaption { font-weight: 600; font-size: 0.95rem; color: var(--muted); }

.album-pill {
  display: inline-flex; align-items: center; gap: 14px; max-width: 100%;
  padding: 8px 18px 8px 8px; border-radius: 18px; text-decoration: none;
  background: var(--ink-2); border: 1px solid var(--ink-3);
  transition: border-color .15s ease, transform .15s ease;
}
.album-pill:hover { border-color: var(--yellow); transform: translateY(-2px); }
.album-pill img { width: 64px; height: 64px; border-radius: 10px; }
.album-pill small { display: block; color: var(--yellow); font-size: 0.78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.album-pill strong { display: block; font-size: 1.25rem; line-height: 1.2; }
.album-pill__arrow { font-size: 1.4rem; margin-left: 6px; color: var(--yellow); }

@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(88vh, 820px); align-items: center; }
  .hero__photo { grid-column: 2; grid-row: 1; height: 100%; }
  .hero__photo img { height: 100%; aspect-ratio: auto; object-position: 48% 30%; }
  .hero__photo::after { background: linear-gradient(to right, var(--ink) 0%, transparent 22%), linear-gradient(to top, var(--ink) 0%, transparent 25%); }
  .hero__content {
    grid-column: 1; grid-row: 1; margin: 0; padding-block: 60px;
    /* align left edge with .wrap on wide screens */
    padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
    padding-right: 32px; max-width: none;
  }
  .hero::before { /* neon glow behind the text */
    content: ""; position: absolute; z-index: -1; left: -10%; top: 10%; width: 60%; height: 80%;
    background: radial-gradient(closest-side, rgba(255, 61, 139, .18), transparent), radial-gradient(closest-side at 30% 80%, rgba(0, 167, 188, .16), transparent);
  }
}

/* ---------- road-map lines ("junctions") ----------
   Reusable dividers. Set --c1/--c2/--c3 for line colours and
   --from/--to for the backgrounds either side of the seam. */
.junction {
  --c1: var(--yellow); --c2: var(--teal); --c3: var(--magenta);
  --from: var(--ink); --to: var(--ink); --node: var(--ink); --node-ring: var(--text);
  display: block; width: 100%; height: clamp(64px, 7vw, 100px);
  background: linear-gradient(var(--from) 50%, var(--to) 50%);
}
/* (line widths: --sw; stop outline: --nw — styles are set inside the SVG shapes) */
.junction--flip { transform: scaleX(-1); }
.junction--to-ink2 { --to: var(--ink-2); --c1: var(--orange); --c2: var(--yellow); --c3: var(--teal); }
.junction--to-paper { --to: var(--paper); --c1: var(--magenta); --c2: var(--orange); --c3: var(--teal); }
.junction--from-paper { --from: var(--paper); --c1: var(--teal); --c2: var(--orange); --c3: var(--magenta); }
.junction--footer { --c1: var(--orange); --c2: var(--magenta); --c3: var(--teal); margin-bottom: 32px; }
.footer:has(.junction) { padding-top: 0; }

/* big faint route map behind a section */
.map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.map { --sw: 6; --nw: 5; }
.section--press, .section--join { position: relative; overflow: hidden; }
.section--press > .wrap, .section--join > .wrap { position: relative; z-index: 1; }
.section--press .map { --c1: var(--magenta); --c2: var(--teal); --c3: var(--yellow); --c4: var(--orange); opacity: .22; }
.section--press .map { --node: var(--ink-2); --node-ring: var(--text); }
.section--join .map { --c1: var(--ink); --c2: #fff; --c3: var(--yellow); --c4: #fff; opacity: .2; }
.section--join .map { --node: var(--orange); --node-ring: var(--ink); }

/* each section's marker dot takes a different line colour */
.section--press .node { background: var(--magenta); box-shadow: 0 0 0 4px rgba(255, 61, 139, .25); }
.section--press .kicker { color: #ff8cba; }
.section--watch .node { background: var(--teal); box-shadow: 0 0 0 4px rgba(0, 167, 188, .25); }
.section--watch .kicker { color: #5fd9e8; }

/* ---------- sections ---------- */
.section { padding-block: var(--section-pad); }

/* listen */
.section--listen { padding-top: clamp(32px, 5vw, 64px); }
.listen { display: grid; gap: 40px; }
.listen__album { justify-self: center; width: min(78vw, 420px); }
.cover { width: 100%; border-radius: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06); transform: rotate(-2.5deg); }
@media (min-width: 900px) {
  .listen { grid-template-columns: 400px minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
  .listen__album { position: sticky; top: 100px; width: 100%; }
}

.tabs { margin: 28px 0 24px; }
.tabs__list { display: flex; gap: 6px; padding: 5px; background: var(--ink-2); border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs__list [role="tab"] {
  border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  color: var(--muted); white-space: nowrap; min-height: 40px;
}
.tabs__list [role="tab"][aria-selected="true"] { background: var(--text); color: var(--ink); }
.tabs__list [role="tab"]:hover:not([aria-selected="true"]) { color: var(--text); }
.tabs__panel { margin-top: 14px; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.embed { width: 100%; border: 0; }
.embed--bandcamp { height: 412px; }
.embed--spotify { height: 452px; }
.embed--apple { height: 450px; background: transparent; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.also { color: var(--muted); font-size: 0.95rem; }

/* press */
.section--press {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(255, 61, 139, .22), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, rgba(0, 167, 188, .2), transparent 70%),
    var(--ink-2);
}
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.quote {
  margin: 0; padding: 26px 24px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--ink) 55%, transparent); border: 1px solid var(--ink-3);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.quote blockquote { margin: 0; font-family: var(--font-quote); font-style: var(--quote-style); font-weight: var(--quote-weight); font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem); line-height: 1.25; letter-spacing: -0.01em; text-wrap: pretty; }
.quote blockquote p { margin: 0; }
.quote blockquote p::before { content: "“"; } .quote blockquote p::after { content: "”"; }
.quote__src { margin: 0; font-weight: 600; font-size: 0.92rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.quote--feature, .quote--teal { border-color: transparent; color: var(--ink); }
.quote--feature { background: var(--orange); }
.quote--teal { background: var(--teal); }
.quote--feature .quote__src, .quote--teal .quote__src, .quote--feature .stars, .quote--teal .stars { color: var(--ink); }
/* all four quotes the same size: 2 × 2 from tablet up */
@media (min-width: 640px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1000px) { .quote { padding: 36px; min-height: 220px; } }

/* watch */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 30px 80px -30px rgba(255, 61, 139, .45); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; }
.video__facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s ease, transform .4s ease; }
.video__facade:hover img { opacity: 1; transform: scale(1.02); }
.video__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; color: var(--magenta); filter: drop-shadow(0 4px 20px rgba(0,0,0,.5)); transition: color .15s ease; }
.video__facade:hover .video__play { color: var(--yellow); }
.video__play svg { width: clamp(56px, 9vw, 84px); height: auto; }
.video__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* YouTube thumbnails already show the title */
.playlist { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.playlist button {
  border: 1px solid var(--ink-3); background: var(--ink-2); border-radius: 999px; padding: 9px 16px; min-height: 44px;
  font-weight: 600; font-size: 0.95rem; text-align: left;
}
.playlist button span { font-weight: 400; color: var(--muted); }
@media (min-width: 900px) {
  .watch { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(220px, 1fr); gap: 24px; align-items: start; }
  .playlist { margin: 0; flex-direction: column; flex-wrap: nowrap; }
  .playlist button { width: 100%; border-radius: 14px; padding: 14px 18px; }
  .playlist button span { display: block; }
}
.playlist button:hover { border-color: var(--text); }
.playlist button[aria-pressed="true"] { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.playlist button[aria-pressed="true"] span { color: rgba(255,255,255,.85); }

/* about (cream) */
.section--about { background: var(--paper); color: var(--paper-ink); }
.section--about .kicker { color: #b4560b; }
.section--about .node { background: var(--orange); box-shadow: 0 0 0 4px rgba(245, 136, 31, .25); }
.about { display: grid; gap: 36px; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; border-radius: var(--radius); box-shadow: 14px 14px 0 var(--teal); }
.about__photo figcaption { font-size: 0.82rem; color: #6c5f80; margin-top: 18px; }
.about__text p { max-width: 62ch; }
.lineup { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px 24px; font-size: 0.95rem; }
.lineup li { padding: 10px 0; border-top: 1px solid rgba(29, 20, 48, .14); color: #4b3f5f; }
.lineup strong { display: block; color: var(--paper-ink); font-weight: 600; }
@media (min-width: 600px) { .lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 90px); align-items: center; } }

/* live: festival route map */
.route { display: grid; margin-top: 18px; }
@media (min-width: 760px) { .route { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; } }
.route__line { list-style: none; margin: 0; padding: 0; }
.route__line--a { --line: var(--yellow); }
.route__line--b { --line: var(--teal); }
.route__line li { position: relative; padding: 2px 0 36px 60px; }
.route__line li::before { /* the road */
  content: ""; position: absolute; left: 15px; top: 0; bottom: 0; width: 8px; background: var(--line);
}
.route__line li::after { /* the stop */
  content: ""; position: absolute; left: 3px; top: 4px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); border: 6px solid var(--line);
}
.route__line--a li:first-child::before { top: 20px; border-radius: 4px 4px 0 0; }
.route strong { display: block; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.005em; }
.route span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
@media (min-width: 760px) {
  .route__line--b li:first-child::before { top: 20px; border-radius: 4px 4px 0 0; }
  .route__line--b li:last-child::before { bottom: auto; height: 20px; }
}
.route__next { /* dashed road on to 2027 */
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 40px 0 0 60px;
}
.route__next::before {
  content: ""; position: absolute; left: 15px; top: 0; width: 8px; height: 46px;
  background: repeating-linear-gradient(to bottom, var(--magenta) 0 10px, transparent 10px 18px);
}
.route__next::after {
  content: ""; position: absolute; left: 3px; top: 44px; width: 32px; height: 32px; border-radius: 50%;
  border: 4px dashed var(--magenta); box-sizing: border-box;
}
.route__next p { margin: 0; font-size: 1.1rem; }
.route__next { min-height: 80px; }

/* live: dated gig list (for 2027) */
.gigs { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--ink-3); }
.gig {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 20px;
  padding: 18px 0; border-bottom: 1px solid var(--ink-3);
}
.gig__date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 70px; padding: 8px 0; border-radius: 12px; background: var(--ink-2); line-height: 1; }
.gig__day { font-size: 1.7rem; font-weight: 600; color: var(--yellow); }
.gig__month { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 5px; color: var(--muted); }
.gig__info strong { display: block; font-size: 1.15rem; line-height: 1.25; }
.gig__info span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 479px) {
  .gig { grid-template-columns: auto minmax(0, 1fr); }
  .gig .btn { grid-column: 2; justify-self: start; }
}
.gigs__empty { font-size: 1.15rem; padding: 22px 0; border-bottom: 1px solid var(--ink-3); }
.booking { margin-top: 28px; color: var(--muted); }

/* join */
.section--join { background: linear-gradient(120deg, var(--orange) 0%, var(--magenta) 100%); color: var(--ink); }
.join { display: grid; gap: 28px; }
.join h2 { color: var(--ink); }
.join__text p { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 40ch; }
.join__form { display: grid; gap: 14px; background: rgba(255,255,255,.2); padding: clamp(18px, 3vw, 28px); border-radius: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 2px solid transparent;
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem; /* 16px+ stops iOS zoom */
}
.field input:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: #8a0030; }
.hp { position: absolute; left: -5000px; }
.join__form .btn { min-height: 54px; font-size: 1.05rem; }
.join__status { margin: 0; font-weight: 600; min-height: 1.2em; }
.join__status:empty { display: none; }
.join__small { margin: 0; font-size: 0.82rem; opacity: .8; }
@media (min-width: 900px) { .join { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 60px; } }

/* footer */
.footer { padding-block: 56px 40px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.footer__logo { width: 180px; opacity: .95; }
.social { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink-2); transition: background-color .15s ease, color .15s ease; }
.social a:hover { background: var(--yellow); color: var(--ink); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 0; font-weight: 600; }
.footer__small { color: var(--muted); font-size: 0.82rem; margin: 0; }
