:root {
  --ink: #17191a;
  --paper: #f5f1e8;
  --warm: #ff5c35;
  --lime: #d8fb48;
  --blue: #6dd9ec;
  --muted: #6c706d;
  --line: rgba(23, 25, 26, 0.14);
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 8%, rgba(109, 217, 236, .35), transparent 24rem),
    linear-gradient(120deg, transparent 0 74%, rgba(255,255,255,.3) 74%),
    var(--paper);
}

a { color: inherit; }

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .15em;
}

.brand-mark {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 22px;
}

.brand-mark i { display: block; width: 5px; border-radius: 4px; background: var(--warm); }
.brand-mark i:nth-child(1) { height: 12px; }
.brand-mark i:nth-child(2) { height: 22px; }
.brand-mark i:nth-child(3) { height: 16px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: end;
  padding: clamp(80px, 13vw, 150px) 0 88px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2 { font-family: "Manrope", sans-serif; margin: 0; letter-spacing: -.045em; }

h1 {
  max-width: 760px;
  font-size: clamp(54px, 8.5vw, 108px);
  line-height: .9;
  font-weight: 800;
}

h1 em { color: var(--warm); font-style: normal; }

.lede {
  max-width: 590px;
  margin: 34px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: #414542;
}

.how-card {
  position: relative;
  padding: 28px;
  border: 2px solid var(--ink);
  background: var(--lime);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(1.5deg);
}

.card-kicker { margin: 0 0 20px; font-weight: 800; font-size: 12px; letter-spacing: .15em; }
.how-card ol { list-style: none; margin: 0; padding: 0; }
.how-card li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 15px 0; border-top: 1px solid rgba(23,25,26,.24); }
.how-card li span { display: grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--ink); border-radius: 50%; font-weight: 800; }
.how-card li p { margin: 0; line-height: 1.45; }

.playlist-section { padding: 70px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading .eyebrow { margin: 0 0 6px; }
.section-heading h2, .ground-rules h2 { font-size: clamp(32px, 4vw, 52px); }

.playlist-list { display: grid; gap: 14px; }
.playlist-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px;
  border: 2px solid var(--ink);
  background: #fffdf7;
}

.record {
  display: grid;
  place-items: center;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, var(--ink) 0 5px, #2c302f 6px 9px);
  animation: spin 8s linear infinite;
}
.record::after { content: ""; width: 22px; aspect-ratio: 1; border-radius: 50%; background: var(--warm); border: 4px solid var(--paper); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .record { animation: none; } }

.playlist-copy h3 { margin: 0 0 4px; font: 800 clamp(24px, 3vw, 34px)/1 "Manrope", sans-serif; letter-spacing: -.035em; }
.playlist-copy p { margin: 0; color: var(--muted); }
.expiry { margin-top: 7px !important; font-size: 13px; font-weight: 600; color: #7a4a00 !important; }
.expiry.expired { color: #a12020 !important; }

.spotify-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.spotify-button:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--warm); }
.spotify-button:focus-visible, .print-link:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; }
.spotify-button[aria-disabled="true"] { opacity: .48; pointer-events: none; }

.loading, .error { padding: 30px; border: 2px dashed var(--ink); }
.error { background: #ffe0d6; }

.ground-rules {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 28px;
  align-items: center;
  margin: 30px 0 70px;
  padding: 36px;
  background: var(--blue);
  border-radius: 18px;
}
.ground-rules .eyebrow { margin-bottom: 8px; }
.ground-rules p:last-child { margin: 12px 0 0; font-size: 18px; line-height: 1.5; }
.rule-icon { display: grid; place-items: center; width: 84px; aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 42px; font-weight: 800; }

footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer p { margin: 0; }
.print-link { font-weight: 700; color: var(--ink); text-underline-offset: 4px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 620px); padding-top: 24px; }
  .hero { grid-template-columns: 1fr; padding: 72px 0 64px; gap: 52px; }
  .how-card { margin-right: 10px; }
  .playlist-card { grid-template-columns: 54px 1fr; gap: 16px; }
  .record { width: 54px; }
  .spotify-button { grid-column: 1 / -1; width: 100%; }
  .ground-rules { grid-template-columns: 1fr; padding: 26px; }
  .rule-icon { width: 64px; }
  footer { flex-direction: column; }
}
