/* SoundsFolk 2027 — palette taken from the festival poster */
:root {
  --peach: #f6cb9c;
  --peach-light: #fbe4c8;
  --sunset: #eea064;
  --rust: #d4532e;
  --leaf: #6aae68;
  --pine: #1f6b53;
  --pine-deep: #164d3c;
  --bark: #6a4425;
  --glow: #fbe7a1;
  --mint: #c4e8d6;
  --ink: #2a1d14;

  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--peach-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--rust); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: 1; margin: 0 0 .4em; }
h2 { font-size: clamp(2.6rem, 6vw, 4.2rem); color: var(--pine); }
h3 { font-size: 1.7rem; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--pine); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

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

.eyebrow {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .12em;
  color: var(--rust);
  margin: 0 0 .2em;
}
.eyebrow-light { color: var(--glow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: .06em;
  line-height: 1;
  padding: .7em 1.2em .6em;
  border-radius: 999px;
  background: var(--rust);
  color: #fff;
  text-decoration: none;
  border: 3px solid var(--rust);
  box-shadow: 0 4px 0 var(--bark);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 var(--bark); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--bark); }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--pine); box-shadow: 0 4px 0 var(--pine); }
.btn-ghost:hover { background: var(--pine); color: var(--peach-light); box-shadow: 0 6px 0 var(--pine-deep); }
.btn-light { background: var(--peach-light); color: var(--pine-deep); border-color: var(--peach-light); box-shadow: 0 4px 0 var(--pine-deep); }
.btn-light:hover { color: var(--rust); box-shadow: 0 6px 0 var(--pine-deep); }
.btn-small { font-size: 1.2rem; padding: .55em 1em .45em; box-shadow: 0 3px 0 var(--bark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 203, 156, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 3px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--pine); box-shadow: 0 6px 20px rgba(42, 29, 20, .12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 52px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.site-nav a:not(.btn) {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: .06em;
  color: var(--pine);
  text-decoration: none;
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; border-radius: 3px;
  background: var(--rust);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.site-nav a:not(.btn):hover, .site-nav a.active { color: var(--rust); }
.site-nav a:not(.btn):hover::after, .site-nav a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 15%, rgba(251, 231, 161, .55), transparent 55%),
    linear-gradient(180deg, var(--peach) 0%, #f3bb87 55%, var(--sunset) 100%);
  padding: clamp(28px, 5vw, 64px) 0 clamp(90px, 10vw, 140px);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 0 0 .3em; }
.hero-logo { width: min(100%, 560px); filter: drop-shadow(0 6px 0 rgba(106, 68, 37, .18)); }
.hero-date {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--pine);
  line-height: 1;
  margin: 0;
  text-shadow: 2px 2px 0 var(--peach-light);
}
.hero-venue {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  color: var(--pine);
  line-height: 1.05;
  margin: .3em 0 .6em;
  letter-spacing: .04em;
}
.countdown {
  display: inline-block;
  font-weight: 800;
  color: var(--bark);
  background: var(--glow);
  padding: .3em .9em;
  border-radius: 999px;
  margin: 0 0 1.4em;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .5);
}
.countdown:empty { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-poster {
  margin: 0;
  justify-self: center;
  max-width: 420px;
  transform: rotate(2.5deg);
  background: var(--peach-light);
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 24px 50px rgba(106, 68, 37, .35), 0 0 0 1px rgba(106, 68, 37, .1);
  transition: transform .4s ease;
}
.hero-poster:hover { transform: rotate(0deg) scale(1.02); }
.hero-poster img { border-radius: 4px; }

/* Fairy lights */
.lights { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.light {
  position: absolute;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 12px 3px rgba(251, 231, 161, .75);
  opacity: .8;
  animation: twinkle var(--d, 3s) ease-in-out var(--delay, 0s) infinite alternate;
}
.light.amber { background: #f6b94a; box-shadow: 0 0 12px 3px rgba(246, 185, 74, .6); }
@keyframes twinkle { from { opacity: .25; transform: scale(.8); } to { opacity: .95; transform: scale(1); } }

.hill { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(50px, 8vw, 120px); fill: var(--peach-light); z-index: 1; }

/* ---------- Lineup ---------- */
.lineup { padding: clamp(48px, 7vw, 90px) 0; text-align: center; }
.bands {
  list-style: none;
  margin: .6em auto 0;
  padding: 0;
  max-width: 1000px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: .25em .55em;
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.05;
}
.bands li { display: flex; flex-direction: column; align-items: center; transition: transform .2s ease; }
.band-from {
  font-family: var(--body);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bark);
  opacity: .8;
  margin-top: .1em;
}
.bands li.tba { opacity: .45; }
.bands li:nth-child(4n+1) { color: var(--rust); }
.bands li:nth-child(4n+2) { color: var(--leaf); }
.bands li:nth-child(4n+3) { color: var(--pine); }
.bands li:nth-child(4n+4) { color: var(--bark); }
.bands li:hover { transform: rotate(-2deg) scale(1.05); }
.lineup-note { margin: 1.6em 0 0; color: var(--bark); font-weight: 600; }

/* ---------- Participate ---------- */
.participate {
  background: linear-gradient(180deg, var(--peach-light) 0%, var(--peach) 100%);
  padding: 0 0 clamp(56px, 8vw, 100px);
  text-align: center;
}
.section-intro { max-width: 36em; margin: 0 auto; font-size: 1.12rem; }
.activities {
  list-style: none;
  margin: 2em 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: left;
}
.activity {
  --accent: var(--rust);
  --shadow: var(--bark);
  background: #fff8ee;
  border-radius: var(--radius);
  border-top: 8px solid var(--accent);
  padding: 26px 24px 24px;
  box-shadow: 0 6px 0 rgba(106, 68, 37, .18);
}
.activity-leaf { --accent: var(--leaf); }
.activity-pine { --accent: var(--pine); }
.activity h3 { color: var(--accent); font-size: 2.1rem; margin: .45em 0 .15em; }
.activity-leaf h3 { color: #3f8a3e; } /* darker leaf so the heading text has enough contrast */
.activity p { margin: 0; }
.activity-with {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .04em;
  color: var(--bark);
  margin: -.1em 0 .5em !important;
}
.activity h3 + p:not(.activity-with) { margin-top: .3em; }
.session-list { list-style: none; margin: 1em 0 0; padding: 0; display: grid; gap: 8px; }
.session-list li {
  position: relative;
  padding: 8px 12px 6px 34px;
  background: rgba(31, 107, 83, .08);
  border-radius: 10px;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: .04em;
  line-height: 1.1;
  color: var(--pine);
}
.session-list li::before {
  content: "";
  position: absolute; left: 12px; top: 50%;
  width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 0 2px #f6b94a, 0 0 8px 2px rgba(246, 185, 74, .6);
}
.activity-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); }
.activity-icon svg { width: 32px; height: 32px; fill: var(--peach-light); stroke: var(--peach-light); stroke-width: 0; }
.activity-icon svg [fill="none"] { fill: none; }

/* ---------- About ---------- */
.about {
  position: relative;
  background: var(--pine);
  color: var(--peach-light);
  padding: clamp(56px, 8vw, 100px) 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(251, 231, 161, .14) 0 4px, transparent 5px),
    radial-gradient(circle at 70% 80%, rgba(251, 231, 161, .12) 0 3px, transparent 4px);
  background-size: 120px 120px, 90px 90px;
}
.about h2 { color: var(--peach-light); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-copy p { font-size: 1.15rem; max-width: 34em; }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.features li {
  background: var(--pine-deep);
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 2px solid rgba(196, 232, 214, .15);
}
.features h3 { color: var(--glow); font-size: 1.6rem; margin: .4em 0 .2em; }
.features p { margin: 0; font-size: .98rem; color: var(--mint); }
.feature-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--rust); }
.feature-icon svg { width: 28px; height: 28px; fill: var(--peach-light); stroke: var(--peach-light); stroke-width: 0; }
.feature-icon svg [fill="none"] { fill: none; }
.feature-icon svg .hole { fill: var(--rust); }

/* ---------- Info ---------- */
.info { padding: clamp(56px, 8vw, 100px) 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 1.2em; }
.card {
  background: #fff8ee;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 3px solid var(--peach);
  box-shadow: 0 6px 0 var(--peach);
}
.card h3 { color: var(--rust); margin-bottom: .2em; }
.card-big { font-family: var(--display); font-size: 2.1rem; line-height: 1; color: var(--pine); margin: 0 0 .4em; }
.card p, .card address { margin: 0 0 .8em; font-style: normal; }
.card-accent { background: var(--rust); border-color: var(--rust); box-shadow: 0 6px 0 var(--bark); color: #fff; }
.card-accent h3 { color: var(--glow); }
.card-accent .card-big { color: #fff; }

/* ---------- Getting there ---------- */
.getting-there {
  background: linear-gradient(180deg, var(--peach) 0%, var(--sunset) 100%);
  padding: clamp(56px, 8vw, 100px) 0;
}
.gt-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.gt-inner p { max-width: 34em; }
.gt-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4em; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tips li {
  background: rgba(255, 248, 238, .75);
  border-left: 6px solid var(--pine);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
}
.tips strong { color: var(--pine); }

/* ---------- FAQ ---------- */
.faq { padding: clamp(56px, 8vw, 100px) 0 clamp(80px, 10vw, 130px); }
.faq-inner { max-width: 820px; }
.faq details {
  background: #fff8ee;
  border-radius: 14px;
  margin-bottom: 12px;
  border: 2px solid var(--peach);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 56px 18px 22px;
  font-weight: 800;
  color: var(--pine);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 2rem;
  color: var(--rust);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--pine-deep); color: var(--mint); padding: 40px 0 24px; }
.hill-footer { top: -79px; bottom: auto; height: 80px; fill: var(--pine-deep); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-logo { width: 180px; }
.footer-meta { flex: 1; min-width: 220px; }
.footer-meta p { margin: 0 0 .3em; }
.footer-date { font-family: var(--display); font-size: 1.6rem; letter-spacing: .04em; color: var(--glow); }
.site-footer a { color: var(--mint); font-family: var(--display); font-size: 1.5rem; letter-spacing: .06em; text-decoration: none; }
.site-footer a:hover { color: var(--glow); }
.bug { width: 110px; }
.copyright { margin: 28px auto 0; font-size: .85rem; opacity: .7; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand img { height: 44px; }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border: 0; border-radius: 12px;
    background: var(--pine);
    cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 24px; height: 3px; border-radius: 3px; background: var(--peach-light);
    transition: transform .25s ease, opacity .2s ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -8px; }
  .nav-toggle-bars::after { top: 8px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--peach);
    border-bottom: 3px solid var(--pine);
    box-shadow: 0 16px 30px rgba(42, 29, 20, .18);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav li { border-bottom: 1px solid rgba(31, 107, 83, .15); }
  .site-nav li:last-child { border: 0; padding-top: 14px; }
  .site-nav a:not(.btn) { display: block; padding: 12px 0; font-size: 1.8rem; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { display: block; text-align: center; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-poster { max-width: 340px; }

  .about-inner, .gt-inner { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .activities { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .gt-actions .btn { flex: 1 1 100%; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-poster { max-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
