@font-face{font-family:'DM Serif Display';src:url('fonts/dm-serif-display-latin-400-normal.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'DM Serif Display';src:url('fonts/dm-serif-display-latin-400-italic.woff2') format('woff2');font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:'Literata';src:url('fonts/literata-latin-wght-normal.woff2') format('woff2');font-weight:200 900;font-style:normal;font-display:swap}
@font-face{font-family:'Literata';src:url('fonts/literata-latin-wght-italic.woff2') format('woff2');font-weight:200 900;font-style:italic;font-display:swap}
@font-face{font-family:'Caveat';src:url('fonts/caveat-latin-wght-normal.woff2') format('woff2');font-weight:400 700;font-style:normal;font-display:swap}

:root {
  /* dna1: cream paper, burgundy and mustard under lamp light */
  --paper: #f4ead8;
  --burgundy: #7a2e2a;
  --mustard: #d9a441;
  --forest: #3b4a3a;
  --ink: #2a1f1a;
  --card: #fffaf0;
  /* dna2: fonts */
  --display: 'DM Serif Display', Georgia, serif;
  --text: 'Literata', Georgia, serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(217,164,65,.16), transparent 40%),
    radial-gradient(circle at 88% 70%, rgba(122,46,42,.08), transparent 45%);
}
a { color: var(--burgundy); text-underline-offset: .2em; }
a:hover, a:focus-visible { color: var(--forest); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--burgundy); line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(3.4rem, 9vw, 7rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h3 { font-size: 1.6rem; }

.note {
  font-family: var(--hand);
  color: var(--forest);
  font-size: 1.6rem;
  line-height: 1.2;
  display: inline-block;
  transform: rotate(-3deg);
}
.note--mustard { color: var(--burgundy); background: linear-gradient(transparent 55%, rgba(217,164,65,.55) 55%); padding: 0 .2em; }

.track-no {
  font-family: var(--hand);
  font-size: 1.4rem;
  color: var(--mustard);
  display: block;
  margin-bottom: .25rem;
  font-weight: 700;
}

/* Top bar */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; border-bottom: 1px dashed rgba(42,31,26,.3); }
.brand { font-family: var(--display); font-size: 1.5rem; color: var(--burgundy); text-decoration: none; }
.motion-toggle {
  font-family: var(--text); font-size: .9rem; background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 999px; padding: .35rem .9rem; cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.motion-toggle:hover, .motion-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Hero */
#hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; padding: 3.5rem 0 3rem; }
.hero-copy .lede { font-size: 1.2rem; max-width: 32ch; }
.hero-copy .note { margin: .25rem 0 1rem 1rem; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art .note { position: absolute; right: 0; bottom: -.5rem; transform: rotate(4deg); }
.record { transform-origin: 200px 220px; transform-box: view-box; animation: spin-slow 14s linear infinite; }
.leaf { animation: leaf-sway 6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.leaf:nth-of-type(2) { animation-delay: -2s; }
.leaf:nth-of-type(3) { animation-delay: -4s; }

.btn {
  display: inline-block; font-family: var(--text); font-weight: 600; font-size: 1rem;
  background: var(--burgundy); color: var(--paper); text-decoration: none; border: 0;
  padding: .85rem 1.5rem; border-radius: 999px; cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--forest); color: var(--paper); transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }

/* dna6: tracklist */
#tracklist {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 6px;
  padding: 1.5rem 2rem; margin: 1rem 0 4rem; box-shadow: 6px 6px 0 var(--mustard);
}
#tracklist h2 { font-size: 1.4rem; margin: 0 0 .5rem; color: var(--forest); }
#tracklist ol { margin: 0; padding: 0; list-style: none; counter-reset: t var(--start, 0); }
#tracklist li { counter-increment: t; display: flex; gap: .75rem; border-bottom: 1px dotted rgba(42,31,26,.35); padding: .35rem 0; }
#tracklist li::before { content: counter(t, decimal-leading-zero); font-family: var(--hand); color: var(--burgundy); font-size: 1.25rem; min-width: 2ch; }
#tracklist a { color: var(--ink); text-decoration: none; }
#tracklist a:hover, #tracklist a:focus-visible { color: var(--burgundy); text-decoration: underline; }

.side-label {
  display: flex; align-items: center; gap: 1rem; margin: 0 0 2rem;
  font-family: var(--display); font-size: 1.1rem; letter-spacing: .2em; text-transform: uppercase; color: var(--forest);
}
.side-label::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--forest) 0 8px, transparent 8px 14px); }

section.track { padding: 0 0 4.5rem; }
.intro { max-width: 60ch; font-size: 1.1rem; }

/* dna7: instant-photo crate cards */
#crates .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.polaroid {
  background: var(--card); padding: 1rem 1rem 1.5rem; border-radius: 3px;
  box-shadow: 0 10px 24px rgba(42,31,26,.15), 0 1px 0 rgba(42,31,26,.2);
  transform: rotate(2deg);
  transition: transform .4s ease;
  position: relative;
}
.polaroid:nth-child(2) { transform: rotate(-2deg); }
.polaroid:hover, .polaroid:focus-within { transform: rotate(0deg) translateY(-4px); }
.polaroid::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 70px; height: 22px; margin-left: -35px;
  background: rgba(217,164,65,.6); transform: rotate(-4deg);
}
.polaroid .shot { aspect-ratio: 1 / 1; border-radius: 2px; display: grid; place-items: center; overflow: hidden; }
.shot--a { background: var(--burgundy); }
.shot--b { background: var(--forest); }
.shot--c { background: var(--mustard); }
.shot svg { width: 78%; height: auto; }
.polaroid h3 { margin: 1rem 0 .25rem; }
.polaroid p { margin: 0; }
.polaroid .note { font-size: 1.35rem; margin-top: .5rem; }

/* Listening corner */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.panel { background: var(--forest); color: var(--paper); border-radius: 8px; padding: 2rem; }
.panel h3 { color: var(--mustard); }
.panel .note { color: var(--paper); }

/* Thursday ticket */
.ticket {
  display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center;
  background: var(--burgundy); color: var(--paper); border-radius: 10px; padding: 2rem 2.5rem;
  position: relative; box-shadow: 8px 8px 0 var(--ink);
}
.ticket h2 { color: var(--paper); }
.ticket .when { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 4.5rem); color: var(--mustard); line-height: 1; text-align: center; }
.ticket .when small { display: block; font-family: var(--hand); font-size: 1.6rem; color: var(--paper); }
.ticket .note { color: var(--mustard); }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.card { background: var(--card); border: 1.5px solid var(--ink); border-radius: 6px; padding: 1.5rem 1.75rem; }
.card h3 { color: var(--forest); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .35rem 0; border-bottom: 1px dotted rgba(42,31,26,.35); font-weight: 400; }
.hours .closed td { color: var(--burgundy); font-style: italic; }
address { font-style: normal; font-size: 1.2rem; }

/* Newsletter */
.newsletter { background: var(--card); border: 1.5px solid var(--ink); border-radius: 8px; padding: 2.5rem; text-align: center; box-shadow: 6px 6px 0 var(--burgundy); }
.newsletter form { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.newsletter label { position: absolute; left: -9999px; }
.newsletter input[type="email"] {
  font: inherit; padding: .8rem 1.1rem; min-width: min(320px, 100%); border: 1.5px solid var(--ink);
  border-radius: 999px; background: var(--paper); color: var(--ink);
}
.form-msg { font-family: var(--hand); font-size: 1.5rem; color: var(--forest); min-height: 1.8rem; margin: .75rem 0 0; }

footer { border-top: 1px dashed rgba(42,31,26,.3); padding: 2rem 0 3rem; text-align: center; font-size: .95rem; }
footer .note { font-size: 1.4rem; }

/* dna3: motion */
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes leaf-sway { from { transform: rotate(-8deg) translateY(0); } to { transform: rotate(8deg) translateY(6px); } }

.js .reveal.is-in { animation: rise-in .9s ease-out backwards; }
.js .reveal.is-in:nth-child(2) { animation-delay: .12s; }
.js .reveal.is-in:nth-child(3) { animation-delay: .24s; }

[data-motion="paused"] * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .record, .leaf { animation: none; }
  .js .reveal.is-in { animation: none; }
  .polaroid, .btn, .motion-toggle { transition: none; }
}

@media (max-width: 820px) {
  #hero, .split, .visit-grid, #tracklist { grid-template-columns: 1fr; }
  #hero { padding-top: 2rem; }
  .hero-art { max-width: 380px; margin: 0 auto; }
  #crates .cards { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .ticket { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.5rem; }
  #tracklist { padding: 1.25rem 1.25rem; }
  .newsletter { padding: 2rem 1.25rem; }
}
