/*
 * THE VALLEY VILLAGE FIVE · base styles
 *
 * Layout concept: one long night. The page scrolls from moonrise (top)
 * to dawn (bottom) over a live sky; each section is a different 1970s
 * object floating in it (a gig poster, trading cards, a tape deck, a
 * corkboard, an LP back cover).
 *
 * Single deliberate dark look: the sky IS the background.
 */

:root {
  color-scheme: dark;

  /* --- sky --- */
  --night-0: #0a0820;
  --night-1: #141038;
  --night-2: #241a55;
  --dusk: #4a2160;
  --ember: #a8325a;
  --dawn: #ff8a5c;
  --moon: #fff0c2;

  /* --- 70s album sleeve --- */
  --cream: #f6e6c4;
  --paper: #f1dcb2;
  --paper-2: #e6c993;
  --ink: #1e1424;
  --ink-soft: #5a4548;
  --mustard: #f4b33c;
  --orange: #ec7a2c;
  --rust: #cc4a2b;
  --rust-ink: #9a3219; /* rust for TEXT on paper/cream/mustard (passes 4.5:1) */
  --brown: #4e2617;
  --teal: #3fb8a8;
  --plum: #c86bd8;
  --wood: #6b3a1f;
  --wood-dark: #3d1f10;

  /* --- roles --- */
  --bg: var(--night-0);
  --fg: var(--cream);
  --fg-dim: #cbbca4;
  --line: rgba(246, 230, 196, 0.2);
  --focus: var(--mustard); /* focus ring; set --focus: var(--ink) on light surfaces */

  /* the signature 70s stacked-stripe shadow */
  --stripes: 0.035em 0.035em 0 var(--mustard), 0.07em 0.07em 0 var(--orange),
    0.105em 0.105em 0 var(--rust), 0.14em 0.14em 0 var(--brown);
  --stripes-sm: 2px 2px 0 var(--mustard), 4px 4px 0 var(--orange), 6px 6px 0 var(--rust);
  --stripe-band: linear-gradient(
    var(--mustard) 0 25%,
    var(--orange) 25% 50%,
    var(--rust) 50% 75%,
    var(--brown) 75% 100%
  );

  /* --- type --- */
  --font-display: "Fraunces", "Cooper Black", "Cooper Std", Georgia, serif;
  --font-body: "Fraunces", "Fraunces Fallback Georgia", "Fraunces Fallback Noto", "Fraunces Fallback Times", Georgia,
    "Times New Roman", serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-hand: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
  --font-script: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --soft: "SOFT" 100, "WONK" 1;

  --fs-xs: 0.78rem;
  --fs-sm: 0.92rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.6rem, 3vw, 2.25rem);
  --fs-2xl: clamp(2.6rem, 7vw, 5rem);
  --fs-3xl: clamp(3.4rem, 11vw, 8.5rem);

  /* --- space + shape --- */
  /* side gutter; never less than the notch / rounded corners in iPhone landscape */
  --gutter: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --wrap: 1200px;
  --section-pad: clamp(3.5rem, 7vw, 6rem);
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 28px;
  --shadow-pop: 6px 6px 0 var(--ink);
  --shadow-soft: 0 24px 50px -18px rgba(0, 0, 0, 0.7);

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- reset-ish ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-color: var(--orange) var(--night-0);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img,
svg,
video,
canvas {
  max-width: 100%;
}
img {
  display: block;
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.02;
  text-wrap: balance;
  font-family: var(--font-display);
  font-variation-settings: var(--soft);
  font-weight: 900;
}
p {
  margin: 0;
  text-wrap: pretty;
}
::selection {
  background: var(--mustard);
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--mustard);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--r-sm);
}
.skip-link:focus {
  top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
}

/* ---------- layout ---------- */
main {
  position: relative;
  z-index: 1;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  position: relative;
  padding-block: var(--section-pad);
}
/* back-to-back sections: one gap of sky between objects, not two */
.section + .section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.section__head {
  display: grid;
  gap: 0.9rem;
  max-width: 52rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mustard);
}
/* One eyebrow treatment for every section: a stripe-band lead-in,
   then an optional track number like the back of an LP ("A2"). */
.section__head .eyebrow,
.eyebrow--bar {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-shadow: 0 1px 0 rgba(10, 8, 32, 0.55);
}
.section__head .eyebrow::before,
.eyebrow--bar::before {
  content: "";
  flex: none;
  width: 2.2rem;
  height: 10px;
  border-radius: 2px;
  background: var(--stripe-band);
}
.eyebrow__track {
  flex: none;
  padding: 0.12em 0.4em 0.08em 0.5em;
  border: 2px solid currentColor;
  border-radius: 3px;
  line-height: 1.1;
  letter-spacing: 0.1em;
}
.section__title {
  font-size: var(--fs-2xl);
  color: var(--cream);
  text-shadow: var(--stripes);
  letter-spacing: -0.01em;
  padding-bottom: 0.14em; /* room for the stripes */
}
.section__kicker {
  font-size: var(--fs-lg);
  line-height: 1.45;
  color: var(--fg-dim);
  max-width: 40rem;
}

/* scroll-in: elements rest visible and just settle into place */
[data-reveal] {
  transition: transform 0.9s var(--ease-out);
}
.js [data-reveal]:not(.is-in) {
  transform: translateY(26px);
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem var(--gutter);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-nav.is-scrolled,
.site-nav.is-open {
  background: rgba(10, 8, 32, 0.78);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
/* nothing to see behind a dialog; don't keep re-blurring it */
.has-dialog .site-nav {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-nav__logo {
  font-family: var(--font-display);
  font-variation-settings: var(--soft);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--cream);
  text-shadow: var(--stripes-sm);
  margin-right: auto;
  padding: 0.15rem 0.4rem 0.35rem 0;
}
.site-nav nav {
  display: contents;
}
.site-nav__links {
  display: flex;
  gap: clamp(0.6rem, 1.6vw, 1.6rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__links a {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-dim);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav__links a[aria-current="true"] {
  color: var(--cream);
  border-color: var(--orange);
}
@media (hover: hover) {
  .site-nav__links a:hover {
    color: var(--cream);
    border-color: var(--orange);
  }
}
.site-nav__menu {
  display: none;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

/* retro on/off switch */
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  white-space: nowrap;
  transition: border-color 0.2s, background-color 0.2s;
}
@media (hover: hover) {
  .sound-toggle:hover {
    border-color: var(--mustard);
  }
}
.sound-toggle__switch {
  position: relative;
  width: 2.1rem;
  height: 1.15rem;
  border-radius: 999px;
  background: var(--night-2);
  box-shadow: inset 0 0 0 2px var(--line);
  transition: background-color 0.2s;
}
.sound-toggle__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(1.15rem - 6px);
  height: calc(1.15rem - 6px);
  border-radius: 50%;
  background: var(--fg-dim);
  transition: transform 0.25s var(--ease-bounce), background-color 0.2s;
}
.sound-toggle[aria-pressed="true"] .sound-toggle__switch {
  background: var(--orange);
}
.sound-toggle[aria-pressed="true"] .sound-toggle__switch::after {
  transform: translateX(0.95rem);
  background: var(--cream);
}

@media (max-width: 880px) {
  .site-nav {
    gap: 0.6rem;
  }
  /* a solid bar instead of a live blur: cheaper on phones, same look on a night sky */
  .site-nav.is-scrolled {
    background: rgba(10, 8, 32, 0.94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-nav.is-open {
    background: var(--night-0);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-nav__logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .sound-toggle,
  .site-nav__menu {
    min-height: 44px;
  }
  .site-nav__menu {
    display: inline-block;
    order: 3;
    min-width: 5.4rem; /* "Menu" and "Close" take the same room */
  }
  .sound-toggle {
    order: 2;
  }
  /* the open menu drops down under the bar (the page doesn't move) and scrolls on short screens */
  .site-nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.25rem var(--gutter) 1rem;
    max-height: calc(100vh - 4.75rem);
    max-height: calc(100dvh - 4.75rem - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--night-0);
    box-shadow: 0 1px 0 var(--line), 0 22px 30px -14px rgba(0, 0, 0, 0.75);
  }
  .site-nav.is-open .site-nav__links {
    display: flex;
  }
  .site-nav__links a {
    display: block;
    font-size: var(--fs-sm);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
}
/* landscape phones: a slimmer bar leaves more of a short screen for the page */
@media (max-width: 880px) and (max-height: 500px) {
  .site-nav {
    padding-block: 0.3rem;
  }
}
/* tablets and landscape phones: the links fit in a few columns */
@media (min-width: 600px) and (max-width: 880px) {
  .site-nav.is-open .site-nav__links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    column-gap: 1.5rem;
  }
}
@media (max-width: 380px) {
  .sound-toggle {
    padding-right: 0.6rem;
  }
}
@media (max-width: 360px) {
  .site-nav {
    gap: 0.45rem;
  }
  .site-nav__logo {
    padding-right: 0;
  }
  .sound-toggle {
    letter-spacing: 0.06em;
    padding-inline: 0.35rem 0.5rem;
  }
  .site-nav__menu {
    min-width: 0;
    padding-inline: 0.6rem;
    letter-spacing: 0.06em;
  }
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-bd: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bd);
  border-radius: 999px;
  box-shadow: 0 0 0 transparent;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background-color 0.2s;
}
@media (hover: hover) {
  .btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--orange);
  }
}
.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 0 0 0 transparent;
}
.btn--primary {
  --btn-bg: var(--mustard);
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
@media (hover: hover) {
  .btn--primary:hover {
    box-shadow: 7px 7px 0 var(--rust);
  }
}
.btn--ink {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  --btn-bd: var(--ink);
}
.btn--small {
  min-height: 2.3rem;
  padding: 0.45rem 0.95rem;
  font-size: var(--fs-xs);
}

/* ---------- stickers + stamps ---------- */
.sticker {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--mustard);
  border-radius: var(--r-sm);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(var(--tilt, -3deg));
}
.stamp {
  display: inline-block;
  padding: 0.2em 0.55em;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust-ink);
  border: 3px solid currentColor;
  border-radius: 6px;
  transform: rotate(var(--tilt, -12deg));
  mix-blend-mode: multiply;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='s'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23s)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='s'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23s)'/%3E%3C/svg%3E");
}

/* ---------- paper panel ---------- */
.panel {
  --focus: var(--ink);
  position: relative;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
}

/* ---------- ticker ---------- */
.ticker-band {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-block: 1.25rem 1.75rem;
}
.ticker {
  --focus: var(--ink);
  position: relative;
  z-index: 2;
  background: var(--mustard);
  color: var(--ink);
  border-block: 6px solid var(--ink);
  box-shadow: 0 6px 0 var(--orange), 0 12px 0 var(--rust);
  margin-bottom: 12px;
  transform: rotate(-1.2deg);
  width: 104%;
  margin-left: -2%;
}
.ticker__window {
  overflow: hidden;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}
/* paused by the button, off-screen, in a hidden tab, or under a dialog */
.ticker-band.is-paused .ticker__track,
.ticker-band.is-away .ticker__track,
.has-dialog .ticker__track {
  animation-play-state: paused;
}
@media (hover: hover) {
  .ticker:hover .ticker__track {
    animation-play-state: paused;
  }
}
/* the little pause/play knob stuck on the right end of the band */
.ticker__toggle {
  position: absolute;
  top: 50%;
  right: calc(1.95% + var(--gutter)); /* the band hangs 2% past the screen edge */
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.1rem;
  padding: 0 0.85rem 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  /* a mustard pad so the scrolling words slide under it cleanly */
  box-shadow: 0 0 0 5px var(--mustard), -14px 0 14px 4px var(--mustard);
  transform: translateY(-50%);
}
.ticker__toggle:focus-visible {
  outline-offset: 2px;
}
.ticker__toggle::after {
  /* a 44px tap area around the small knob */
  content: "";
  position: absolute;
  inset: -5px -4px;
}
.ticker__toggle-icon {
  flex: none;
  width: 10px;
  height: 11px;
  border-inline: 3.5px solid currentColor;
}
.ticker-band.is-paused .ticker__toggle-icon {
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
@media (hover: hover) {
  .ticker__toggle:hover {
    color: var(--mustard);
  }
}
@media (max-width: 600px) {
  .ticker__toggle {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    justify-content: center;
  }
  .ticker__toggle-word {
    display: none;
  }
}
.ticker__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ticker__item {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.85rem 0;
}
.ticker__star {
  padding-inline: 1.4rem;
  color: var(--rust);
  font-size: 1.2rem;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- dialog (shared) ---------- */
.vvv-dialog {
  width: min(92vw, 900px);
  max-width: 92vw;
  max-height: min(90vh, 90dvh);
  padding: 0;
  border: 2px solid var(--cream);
  border-radius: var(--r-lg);
  background: var(--night-1);
  color: var(--fg);
  box-shadow: 10px 10px 0 var(--orange), 20px 20px 0 var(--rust);
  overflow: auto;
  overscroll-behavior: contain;
  animation: dialog-in 0.42s var(--ease-bounce);
}
/* solid, no blur: a blurred backdrop over a moving page costs every frame */
.vvv-dialog::backdrop {
  background: rgba(5, 4, 18, 0.86);
  animation: backdrop-in 0.3s ease-out;
}
.vvv-dialog.is-closing {
  animation: dialog-out 0.18s ease-in forwards;
}
.vvv-dialog__body {
  padding: clamp(1.25rem, 4vw, 2.5rem);
}
.vvv-dialog__close {
  position: sticky;
  top: 0.75rem;
  float: right;
  z-index: 3;
  margin: 0.75rem 0.75rem 0 0;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.2s var(--ease-bounce);
}
@media (hover: hover) {
  .vvv-dialog__close:hover {
    transform: rotate(90deg) scale(1.06);
  }
}
/* two-tone ring: ink shows on mustard and paper headers, mustard on the night */
.vvv-dialog__close:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 3px 3px 0 var(--ink), 0 0 0 2px var(--cream), 0 0 0 8px var(--mustard);
}
html.has-dialog {
  overflow: hidden;
}
/* while a dialog is up, the page behind it holds still */
html.has-dialog main *,
html.has-dialog main *::before,
html.has-dialog main *::after {
  animation-play-state: paused;
}
@media (max-width: 480px) {
  .vvv-dialog {
    box-shadow: 5px 5px 0 var(--orange), 10px 10px 0 var(--rust);
  }
}
@keyframes dialog-in {
  from { transform: translateY(24px) scale(0.92); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes dialog-out {
  to { transform: translateY(12px) scale(0.96); opacity: 0; }
}
@keyframes backdrop-in {
  from { opacity: 0; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
  z-index: 90;
  max-width: calc(100vw - 2 * var(--gutter));
  padding: 0.75rem 1.2rem;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
  background: var(--mustard);
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-50%, 160%);
  transition: transform 0.4s var(--ease-bounce);
  pointer-events: none;
}
.toast.is-on {
  transform: translate(-50%, 0);
}

/* ---------- liner notes (LP back cover) ---------- */
/* The head floats on the dawn sky (magenta by now): cream reads better than mustard there. */
#photos .section__head .eyebrow,
#lore .section__head .eyebrow {
  color: var(--cream);
}
.lore__sleeve {
  --focus: var(--ink);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  row-gap: clamp(1.4rem, 3vw, 2.25rem);
  padding: clamp(1.25rem, 3.2vw, 2.5rem) clamp(1.5rem, 5vw, 3.75rem) clamp(1.5rem, 3.6vw, 2.75rem);
  color: var(--ink);
  background:
    /* ring wear: the record inside has rubbed through the ink, and its label too */
    radial-gradient(circle at 74% 46%, transparent 0 calc(min(17rem, 30vw) - 9px), rgba(255, 250, 235, 0.2) calc(min(17rem, 30vw) - 6px) calc(min(17rem, 30vw) + 3px), rgba(78, 38, 23, 0.07) calc(min(17rem, 30vw) + 5px) calc(min(17rem, 30vw) + 7px), transparent calc(min(17rem, 30vw) + 10px)),
    radial-gradient(circle at 74% 46%, transparent 0 calc(min(5.5rem, 10vw) - 2px), rgba(78, 38, 23, 0.07) calc(min(5.5rem, 10vw) - 1px) calc(min(5.5rem, 10vw) + 2px), transparent calc(min(5.5rem, 10vw) + 3px)),
    /* sun fade in the corner, a little shelf grime at the bottom */
    radial-gradient(circle at 100% 0, rgba(236, 122, 44, 0.2), transparent 40%),
    linear-gradient(180deg, transparent 70%, rgba(78, 38, 23, 0.06)),
    var(--paper);
  border-radius: 3px;
  rotate: -0.4deg;
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 250, 235, 0.35),
    inset 0 0 38px rgba(78, 38, 23, 0.14);
  overflow: hidden;
}
.lore__sleeve::before {
  /* the stripe band down the spine of the sleeve */
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 14px;
  background: linear-gradient(90deg, var(--mustard) 0 25%, var(--orange) 25% 50%, var(--rust) 50% 75%, var(--brown) 75%);
}
/* catalog strip across the top, like every LP back ever */
.lore__cat {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding-block: 0.55rem;
  border-block: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@media (max-width: 480px) {
  .lore__cat {
    letter-spacing: 0.1em;
  }
  .lore__cat-pre {
    display: none;
  }
}
.lore__cat > span:nth-child(2) {
  padding: 0.05em 0.6em 0;
  color: var(--rust-ink);
  border: 2px solid currentColor;
  border-radius: 3px;
}
.lore__col {
  display: grid;
  align-content: start;
  gap: 1.1rem;
  min-width: 0;
}
.lore__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust-ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.4rem;
}
.lore__notes {
  display: grid;
  gap: 1rem;
  font-size: var(--fs-md);
  line-height: 1.65;
}
.lore__notes p:first-child::first-letter {
  float: left;
  font-family: var(--font-display);
  font-variation-settings: var(--soft);
  font-weight: 900;
  font-size: 4.2rem;
  line-height: 0.8;
  padding: 0.35rem 0.5rem 0 0;
  color: var(--rust);
}
.lore__col > .lore__label:not(:first-child) {
  margin-top: 0.6rem;
}
.credits {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}
.credits__row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}
.credits__row dt {
  flex: 1 1 auto;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
  font-weight: 700;
}
.credits__dots {
  flex: 1 1 1rem;
  min-width: 1rem;
  border-bottom: 2px dotted var(--ink-soft);
  transform: translateY(-0.3em);
}
.credits__row dd {
  flex: 0 1 auto;
  max-width: 72%;
  margin: 0;
  text-align: right;
  min-width: 0;
}
.faq {
  display: grid;
  gap: 1rem;
  margin: 0;
}
.faq__item dt {
  font-family: var(--font-display);
  font-variation-settings: var(--soft);
  font-weight: 800;
  font-size: var(--fs-lg);
  line-height: 1.2;
}
.faq__item dd {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
}
/* fine print + barcode across the bottom of both columns */
.lore__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
}
.lore__fine {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2 17rem;
  column-gap: 2.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--ink-soft);
}
.lore__fine li {
  break-inside: avoid;
  margin-bottom: 0.3rem;
}
.lore__barcode {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.7rem 0.3rem;
  background: #fbf3df;
  box-shadow: 0 0 0 1px rgba(30, 20, 36, 0.18);
  rotate: 1.5deg;
}
.lore__bars {
  display: block;
  width: 7.5rem;
  height: 2.6rem;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(90deg, transparent 0 5px, var(--ink) 5px 8px, transparent 8px 13px);
}
.lore__digits {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  line-height: 1;
}
@media (max-width: 760px) {
  .lore__sleeve {
    grid-template-columns: minmax(0, 1fr);
    padding-left: calc(clamp(1.5rem, 5vw, 3.75rem) + 8px);
    rotate: -0.25deg;
  }
  .lore__foot {
    flex-wrap: wrap;
  }
  .lore__barcode {
    margin-left: auto;
  }
}

/* ---------- footer (dawn) ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding-top: clamp(5rem, 14vw, 10rem);
  overflow: hidden;
}
.site-footer__hills {
  display: block;
  width: 100%;
  height: clamp(90px, 16vw, 200px);
}
.site-footer__ground {
  background: #2a1424;
  padding-block: 2rem 3rem;
  padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer__mark {
  font-family: var(--font-display);
  font-variation-settings: var(--soft);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 0.9;
  color: var(--cream);
  text-shadow: var(--stripes);
  padding-bottom: 0.15em;
}
.site-footer__meta {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  min-width: 0;
}
.site-footer__meta a {
  display: inline-block;
  padding-block: 0.8rem; /* a thumb-sized target without moving the text */
  margin-block: -0.8rem;
  color: var(--mustard);
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker__track {
    animation: none;
    width: auto;
    overflow-x: auto;
    padding-left: calc(var(--gutter) + 2vw); /* start on screen, not under the band's overhang */
  }
  .ticker__group[aria-hidden="true"],
  .ticker__toggle {
    display: none;
  }
  .js [data-reveal]:not(.is-in) {
    transform: none;
  }
}
