@font-face{font-family:'Prata';src:url('fonts/prata-latin-400-normal.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Bricolage Grotesque';src:url('fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');font-weight:200 800;font-style:normal;font-display:swap}

:root {
  --ground: #fff5f0;
  --ink: #1c1a40;
  --coral: #ff4f6d;
  --cobalt: #2b4ad8;
  --sun: #ffd23f;
  --blush: #ffd9e0;
  --display: 'Prata', 'Bodoni 72', Didot, serif;
  --text: 'Bricolage Grotesque', system-ui, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --wrap: min(1180px, 100% - 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

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

/* Top bar */
.topbar { width: var(--wrap); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; gap: 1rem; }
.mark { font-family: var(--display); font-size: 1.5rem; text-decoration: none; letter-spacing: -0.02em; }
.mark span, .footer-mark span { color: var(--coral); }
.topbar-note { font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* Sleeve (hero) */
.sleeve { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.eyebrow { font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 1.25rem; }
.chorus { font-size: clamp(2.6rem, 7vw, 5.6rem); }
.chorus .line { display: block; animation: chorus-rise .9s var(--ease) both; }
.chorus .line + .line { animation-delay: .22s; }
.line-accent { color: var(--coral); }
.lede { margin-top: 1.5rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; font: 700 1rem/1 var(--text); text-decoration: none; border: 2px solid var(--ink); cursor: pointer; transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-coral { background: var(--coral); color: var(--ink); border-color: var(--coral); }
.btn-coral:hover { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--blush); }

.sleeve-art { margin: 0; position: relative; }
#hero-record { width: 100%; height: auto; display: block; max-width: 560px; margin-inline: auto; }
#hero-record .spin { transform-origin: 200px 200px; animation: groove-spin 1.8s linear infinite; }
.sleeve-art figcaption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.motion-toggle { font: 700 .8rem/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--ground); border: 2px solid var(--ink); border-radius: 999px; padding: .6rem 1rem; min-height: 40px; cursor: pointer; transition: background-color .25s var(--ease); }
.motion-toggle:hover { background: var(--blush); }
.motion-toggle[aria-pressed="true"] { background: var(--sun); }

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

/* Tracklist */
.tracklist { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 1.5rem 0; }
.side-label { font-family: var(--display); font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: .5rem; }
.side-label span { font-family: var(--text); font-size: .95rem; color: var(--cobalt); letter-spacing: 0; }
.tracklist ol { list-style: none; margin: 0; padding: 0; }
.tracklist a { display: flex; gap: 1rem; padding: .55rem 0; text-decoration: none; font-weight: 600; border-bottom: 1px dashed rgba(28,26,64,.25); transition: color .2s var(--ease), padding-left .2s var(--ease); }
.tracklist a:hover { color: var(--coral); padding-left: .4rem; }
.no { font-weight: 800; color: var(--coral); min-width: 2ch; font-variant-numeric: tabular-nums; }

/* Tracks */
.side-a, .side-b { width: var(--wrap); margin: 0 auto; }
.track { display: grid; grid-template-columns: 7rem 1fr; gap: 1.5rem; padding: clamp(3rem, 7vw, 5.5rem) 0; border-bottom: 1px solid rgba(28,26,64,.15); }
.track-no { font-family: var(--display); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; color: var(--coral); }
.track h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 18ch; }
.track-intro { margin-top: 1rem; max-width: 46ch; font-size: 1.15rem; }

.crate-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.crate { border-radius: 18px; padding: 1.5rem; min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; transition: transform .35s var(--ease); }
.crate:hover { transform: translateY(-4px) rotate(-.5deg); }
.crate::before { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; top: -40px; right: -40px; background: repeating-radial-gradient(circle, var(--ink) 0 2px, #2a2760 2px 5px); }
.crate::after { content: ""; position: absolute; width: 44px; height: 44px; border-radius: 50%; top: 13px; right: 13px; background: var(--sun); }
.crate-new { background: var(--blush); }
.crate-used { background: var(--sun); }
.crate-used::after { background: var(--coral); }
.crate h3 { font-size: 1.7rem; }
.crate p { margin-top: .35rem; }

.decks { display: flex; gap: 1rem; margin-top: 2rem; }
.deck { width: min(220px, 45%); aspect-ratio: 1.2 / 1; background: var(--ink); border-radius: 16px; position: relative; }
.platter { position: absolute; left: 12%; top: 12%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--coral) 0 18%, var(--ink) 18% 21%, #2a2760 21% 100%); box-shadow: inset 0 0 0 2px rgba(255,245,240,.15); }
.arm { position: absolute; right: 12%; top: 14%; width: 6px; height: 55%; background: var(--ground); border-radius: 3px; transform-origin: top center; transform: rotate(18deg); }

.track-night { background: var(--cobalt); color: var(--ground); border-radius: 28px; padding-inline: clamp(1.25rem, 4vw, 3rem); margin: 2rem 0; border-bottom: 0; }
.track-night .track-no { color: var(--sun); }
.big-time { font-family: var(--display); font-size: clamp(3.5rem, 12vw, 9rem); line-height: 1; margin-top: 1.5rem; letter-spacing: -0.02em; }
.big-time span { color: var(--sun); }

.address { font-style: normal; font-size: 1.3rem; margin-top: 1.25rem; line-height: 1.45; }
.hours { margin-top: 2.5rem; }
.hours h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.hours-note { margin-top: .4rem; color: var(--cobalt); font-weight: 600; }
#moon-week { width: 100%; height: auto; display: block; margin-top: 1.5rem; overflow: visible; }
#moon-week .moon { transform-box: fill-box; transform-origin: center; transition: transform .4s cubic-bezier(.2,.8,.2,1); cursor: default; }
#moon-week .moon:hover, #moon-week .moon.today { transform: translateY(-6px); }
#moon-week .moon.today circle:first-child { stroke: var(--coral); stroke-width: 4; }
.days { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: .95rem; }
.days li { display: flex; flex-direction: column; gap: .1rem; padding: .4rem 0; border-radius: 10px; }
.days b { font-weight: 800; }
.days em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--cobalt); }
.days li[data-day="1"] span { color: var(--coral); font-weight: 700; }
.days li.today { background: var(--blush); }

/* Envelope */
.envelope { position: relative; max-width: 720px; filter: drop-shadow(0 18px 30px rgba(28,26,64,.15)); }
.flap { height: 90px; background: var(--coral); clip-path: polygon(0 0, 50% 38%, 100% 0, 100% 100%, 0 100%); border-radius: 22px 22px 0 0; }
.letter { background: #fff; border: 2px solid var(--ink); border-radius: 0 0 22px 22px; padding: clamp(1.5rem, 4vw, 2.75rem); position: relative; margin-top: -2px; }
.stamp { position: absolute; top: -34px; right: 1.5rem; width: 72px; height: 84px; display: grid; place-items: center; background: var(--sun); font-family: var(--display); font-size: 1.1rem; border: 2px dashed var(--ink); transform: rotate(6deg); }
.letter-form { margin-top: 1.75rem; }
.letter-form label { display: block; font-weight: 700; margin-bottom: .5rem; }
.field { display: flex; gap: .75rem; flex-wrap: wrap; }
.field input { flex: 1 1 240px; min-height: 52px; border: 2px solid var(--ink); border-radius: 999px; padding: 0 1.25rem; font: 500 1.05rem var(--text); color: var(--ink); background: var(--ground); }
.field input:focus { outline: 3px solid var(--cobalt); outline-offset: 2px; }

/* Footer */
.footer { width: var(--wrap); margin: 3rem auto 0; padding: 2.5rem 0 3rem; border-top: 2px solid var(--ink); display: grid; gap: .3rem; }
.footer-mark { font-family: var(--display); font-size: 2rem; letter-spacing: -0.02em; }

/* Entrance */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@keyframes groove-spin { to { transform: rotate(360deg); } }
@keyframes chorus-rise { from { opacity: 0; transform: translateY(.6em); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .sleeve { grid-template-columns: 1fr; }
  .sleeve-art { order: -1; max-width: 340px; margin-inline: auto; width: 100%; }
  .tracklist { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr; gap: .5rem; }
  .crate-cards { grid-template-columns: 1fr; }
  .topbar-note { display: none; }
  .days { font-size: .8rem; }
  .days span { font-size: .72rem; }
}

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