@font-face {
  font-family: "Gloock";
  src: url("/assets/fonts/gloock-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Winter evening */
  --ink: #0d1626;
  --ink-2: #14203a;
  --ink-line: #2a3a5c;
  --frost: #eef2f7;
  --frost-dim: #b6c1d3;
  --gold: #e9b44c;
  --gold-soft: #f3cf85;

  /* Beat-Herder */
  --bh-black: #000;
  --bh-magenta: #e30083;
  --bh-yellow: #ffe200;
  --bh-white: #fff;

  --serif: "Gloock", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --bh-sans: "Montserrat", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 38rem;
  --radius-control: 4px;
  --radius-container: 10px;

  color-scheme: dark;
  accent-color: var(--gold);
  scrollbar-color: var(--ink-line) var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--frost);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, p, dl, dd, ol { margin: 0; }

::selection { background: var(--gold); color: var(--ink); }

a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: var(--radius-control); }

.nw { white-space: nowrap; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Intro */

.intro {
  background: var(--ink);
  padding: clamp(3.5rem, 12vh, 8rem) var(--gutter) clamp(3rem, 8vh, 5rem);
}
.intro__inner { max-width: 72rem; margin: 0 auto; }

.intro__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.25rem, 12vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.intro__lede {
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  color: var(--frost-dim);
  max-width: var(--measure);
}

.intro__events {
  list-style: none;
  padding: 0;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink-line);
}
.intro__events li { border-bottom: 1px solid var(--ink-line); }
.intro__events a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "what arrow" "when arrow";
  align-items: center;
  column-gap: 1rem;
  padding: 1.1rem 0.25rem;
  text-decoration: none;
  transition: background-color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.intro__events a:hover { background: var(--ink-2); }
.intro__when {
  grid-area: when;
  margin-top: 0.2rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
}
.intro__what {
  grid-area: what;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
}
.intro__arrow {
  grid-area: arrow;
  width: 1.75rem; height: 1.75rem;
  fill: none; stroke: var(--gold); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.intro__events a:hover .intro__arrow { transform: translateY(3px); }

@media (min-width: 48rem) {
  .intro__events { grid-template-columns: 1fr 1fr; column-gap: 2rem; border-top: 0; }
  .intro__events li { border-top: 1px solid var(--ink-line); }
}

/* Beat-Herder: their world */

.bh {
  background: var(--bh-black);
  color: var(--bh-white);
  font-family: var(--bh-sans);
  scroll-margin-top: 0;
}
.bh ::selection { background: var(--bh-magenta); color: var(--bh-white); }
.bh :focus-visible { outline-color: var(--bh-yellow); }

.bh__hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, clamp(26rem, 72vw, 56rem));
  display: grid;
  align-items: end;
  isolation: isolate;
}
.bh__hero picture { position: absolute; inset: 0; z-index: -2; }
.bh__photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.bh__hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0) 35%, rgb(0 0 0 / 0.55) 70%, var(--bh-black) 100%);
}

.bh__logo {
  padding: 0 var(--gutter) clamp(2.5rem, 7vh, 4.5rem);
  max-width: calc(72rem + 2 * var(--gutter));
  width: 100%;
  margin: 0 auto;
}
.bh__logo img { width: min(100%, 44rem); filter: drop-shadow(0 2px 12px rgb(0 0 0 / 0.5)); }

.bh__credit {
  position: absolute;
  top: 0.75rem; right: var(--gutter);
  font-size: 0.75rem;
  color: var(--bh-white);
  background: rgb(0 0 0 / 0.6);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-control);
}

.bh__body {
  max-width: calc(72rem + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(1rem, 3vh, 2rem) var(--gutter) clamp(3rem, 8vh, 5rem);
  display: grid;
  gap: 2rem;
}
.bh__intro { display: grid; gap: 1rem; }
.bh__where {
  color: var(--bh-yellow);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.45;
  max-width: 34ch;
}
.bh__lede {
  font-weight: 700;
  font-size: clamp(1.375rem, 3.2vw, 2rem);
  line-height: 1.3;
  max-width: 34ch;
  text-wrap: balance;
}
.bh__facts { display: grid; gap: 1.25rem; }
.bh__facts div { display: grid; gap: 0.2rem; border-top: 2px solid var(--bh-magenta); padding-top: 0.75rem; }
.bh__facts dt { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8125rem; color: var(--bh-yellow); }
.bh__facts dd { font-size: 1rem; line-height: 1.55; max-width: 40ch; }

@media (min-width: 48rem) {
  .bh__body { grid-template-columns: 5fr 7fr; column-gap: 4rem; align-items: start; }
  .bh__facts { grid-template-columns: 1fr 1fr; column-gap: 2rem; row-gap: 1.75rem; }
}

.bh__tickets {
  background: var(--bh-magenta);
  color: var(--bh-black);
  padding: clamp(2rem, 6vh, 3.5rem) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem 2rem;
}
.bh__onsale {
  font-weight: 800;
  font-size: clamp(1.375rem, 3.5vw, 2.25rem);
  line-height: 1.15;
  text-wrap: balance;
}
.bh__button {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.4rem;
  background: var(--bh-yellow);
  color: var(--bh-black);
  font-weight: 800;
  font-size: 1.0625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius-control);
  transition: background-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.bh__button svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.bh__button:hover { background: var(--bh-white); }
.bh__tickets :focus-visible { outline-color: var(--bh-black); }
@media (max-width: 30rem) {
  .bh__button { width: 100%; justify-content: center; font-size: 1rem; letter-spacing: 0.02em; white-space: nowrap; }
}

@media (min-width: 72rem) {
  .bh__tickets { padding-inline: max(var(--gutter), calc((100% - 72rem) / 2)); }
}

/* The one authored motion: the festival photo settles as it scrolls into view */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .bh__photo {
      animation: bh-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 60%;
    }
    @keyframes bh-settle {
      from { transform: scale(1.12); filter: saturate(0.7) brightness(0.8); }
      to { transform: scale(1); filter: none; }
    }
  }
}

/* Drinks: winter evening */

.drinks {
  background: var(--ink-2);
  padding: clamp(4rem, 12vh, 8rem) var(--gutter);
}
.drinks__inner { max-width: 72rem; margin: 0 auto; }
.drinks__intro { display: grid; gap: 1.5rem; align-content: start; }
.drinks__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 9vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.drinks__lede { max-width: 30ch; font-size: clamp(1.125rem, 2.4vw, 1.375rem); color: var(--frost-dim); }
.drinks__facts { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.drinks__facts div { display: grid; gap: 0.2rem; border-top: 1px solid var(--gold); padding-top: 0.75rem; }
.drinks__facts dt { font-weight: 600; font-size: 0.9375rem; color: var(--gold); }
.drinks__facts dd { font-family: var(--serif); font-size: clamp(1.375rem, 3vw, 1.75rem); line-height: 1.3; }

@media (min-width: 48rem) {
  .drinks__inner { display: grid; grid-template-columns: 5fr 7fr; column-gap: 4rem; align-items: start; }
  .drinks__facts { margin-top: 0.5rem; }
}

/* Footer */

.foot {
  background: var(--ink);
  color: var(--frost-dim);
  font-size: 0.875rem;
  padding: 2rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--ink-line);
}
.foot p { max-width: 72rem; margin: 0 auto; }
