/* Vol. 1: a debut album drawn in chalk on a dark sleeve. One family, Shantell Sans:
   calm (low informality) for reading, loose and bouncy for the hand-lettered bits. */
@font-face {
  font-family: "Shantell";
  src: url("fonts/shantell.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --night: #1b1830;
  --sleeve: #262143;
  --chalk: #eeeef4;
  --dim: #a7a3c2;
  --line: #3a3460;
  --ball: #ff7a1f;
  --font: "Shantell", "Comic Sans MS", system-ui, sans-serif;
  --calm: "INFM" 0, "BNCE" 0;
  --loose: "INFM" 100, "BNCE" 60;
  --gutter: clamp(1rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font: 400 1.0625rem/1.6 var(--font);
  font-variation-settings: var(--calm);
  overflow-x: hidden;
}
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: var(--ball); }
a:focus-visible, button:focus-visible { outline: 2px dashed var(--ball); outline-offset: 4px; }
::selection { background: var(--ball); color: var(--night); }

.top, .foot {
  display: flex; gap: 1.5rem; justify-content: space-between; align-items: baseline;
  padding: 1.1rem var(--gutter);
  font-size: 0.95rem;
}
.top a, .foot a { text-decoration: none; }
.top a:hover, .foot a:hover { text-decoration: underline; text-decoration-color: var(--ball); }
.top .mark { font-weight: 700; font-variation-settings: var(--loose); }
.foot { margin-top: clamp(4rem, 10vw, 8rem); color: var(--dim); justify-content: flex-start; }

/* Album page: cover on the left, info and tracklist on the right */
.album {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 76rem; margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem) var(--gutter) 0;
}
@media (min-width: 900px) { .album { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

.sleeve { position: relative; width: min(100%, 36rem); justify-self: start; margin-right: 12%; cursor: pointer; }
.cover {
  position: relative; z-index: 2; display: block; width: 100%; height: auto;
  pointer-events: none; /* clicks on the cover land on the record behind it */
  border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(5, 3, 15, 0.7);
}
.cover .paper { fill: var(--sleeve); }
.cover .ink { fill: none; stroke: var(--chalk); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.cover .thin { stroke-width: 2.5; }
.cover .thick { stroke-width: 9; }
.cover .accent, .cover .accent-stroke { stroke: var(--ball); }
.cover .ball { fill: var(--ball); }
.cover .fill { fill: var(--chalk); }
.cover .title text {
  font-family: var(--font); font-weight: 800; font-size: 86px; letter-spacing: -1px;
  font-variation-settings: "INFM" 100, "BNCE" 100;
  fill: var(--chalk);
}
.cover .vol { font-family: var(--font); font-size: 34px; font-weight: 600; fill: var(--ball); font-variation-settings: var(--loose); }
.cover .sticker rect { fill: var(--chalk); }
.cover .sticker text { font-family: var(--font); fill: var(--night); text-anchor: middle; font-weight: 800; font-variation-settings: var(--calm); }
.cover .sticker .s1 { font-size: 12px; letter-spacing: 0.5px; }
.cover .sticker .s2 { font-size: 22px; }
.cover .sticker .s3 { font-size: 11px; letter-spacing: 1px; }

/* The record: peeks out of the sleeve. Hover pulls it a little; click spins it and plays a beat. */
.record {
  position: absolute; z-index: 1; top: 3%; left: 0; width: 94%; aspect-ratio: 1;
  border: 0; padding: 0; border-radius: 50%; cursor: pointer;
  background:
    conic-gradient(from 30deg, transparent 0 10%, rgba(255,255,255,0.10) 14%, transparent 20% 60%, rgba(255,255,255,0.07) 64%, transparent 70%),
    repeating-radial-gradient(circle, #0f0d16 0 2px, #1b1826 2px 4px);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.06);
  transform: translateX(16%);
  transition: transform 700ms var(--ease);
}
.record .label {
  position: absolute; inset: 33%; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: var(--ball); color: var(--night);
  font-weight: 800; font-size: clamp(1rem, 2.4vw, 1.6rem); line-height: 1; font-variation-settings: var(--loose);
}
.record .label small { display: block; font-size: 0.45em; font-weight: 600; margin-top: 0.3em; }
.record .label::after { content: ""; position: absolute; inset: 47%; border-radius: 50%; background: var(--night); }
@media (hover: hover) { .record:hover { transform: translateX(24%); } }
.record.playing { transform: translateX(46%); }
.record.playing .label { animation: spin 1.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.notes { position: absolute; z-index: 3; right: -30%; top: 6%; pointer-events: none; }
.notes i { position: absolute; font-style: normal; font-size: 1.8rem; color: var(--ball); opacity: 0; }
.playing ~ .notes i { animation: float 2.4s var(--ease) infinite; }
.notes i:nth-child(2) { left: 1.8rem; animation-delay: 0.8s !important; }
.notes i:nth-child(3) { left: -1.4rem; animation-delay: 1.6s !important; }
@keyframes float { 0% { opacity: 0; transform: translateY(1rem) rotate(-10deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-4rem) rotate(14deg); } }

.side { max-width: 34rem; }
.kind { margin: 0; color: var(--dim); }
.side h1 {
  margin: 0.1rem 0 0; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; font-weight: 800;
  letter-spacing: -0.02em; font-variation-settings: var(--loose);
}
.sub { margin: 0.4rem 0 1.25rem; font-size: 1.2rem; color: var(--ball); font-variation-settings: var(--loose); }
.pitch { margin: 0 0 2rem; font-size: 1.15rem; max-width: 30rem; }

/* Tracklist: a real sequence, so it gets numbers */
.tracks { list-style: none; margin: 0; padding: 0; counter-reset: track; border-top: 1px solid var(--line); }
.tracks li { counter-increment: track; border-bottom: 1px solid var(--line); }
.tracks a {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: baseline; gap: 0.75rem;
  padding: 0.8rem 0.25rem; text-decoration: none;
}
.tracks a::before { content: counter(track); color: var(--dim); font-variant-numeric: tabular-nums; }
.tracks .t { font-size: 1.15rem; font-weight: 600; transition: transform 300ms var(--ease); }
.tracks .len { color: var(--dim); font-variant-numeric: tabular-nums; }
.tracks .feat .t { color: var(--ball); }
@media (hover: hover) {
  .tracks a:hover .t { transform: translateX(0.3rem); text-decoration: underline wavy var(--ball) 1.5px; text-underline-offset: 0.3em; }
  .tracks a:hover::before { content: "\25B6"; color: var(--ball); font-size: 0.8em; }
}

/* Liner notes */
.liner {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 3rem;
  max-width: 76rem; margin: clamp(4rem, 10vw, 8rem) auto 0; padding: 0 var(--gutter);
}
@media (min-width: 900px) { .liner { grid-template-columns: 12rem minmax(0, 1.4fr) minmax(0, 1fr); } }
.liner h2 { margin: 0; font-size: 1.6rem; font-weight: 800; font-variation-settings: var(--loose); transform: rotate(-3deg); transform-origin: left; }
.liner-body p { margin: 0 0 1rem; max-width: 34rem; font-size: 1.1rem; }
.credits { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.35rem 1rem; align-content: start; font-size: 0.95rem; }
.credits dt { color: var(--dim); }
.credits dd { margin: 0; overflow-wrap: anywhere; }

/* Project pages */
article { max-width: 40rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--gutter) 0; }
article h1 { overflow-wrap: anywhere; margin: 0 0 0.3rem; font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.05; font-weight: 800; font-variation-settings: var(--loose); }
article .muted { margin: 0 0 2rem; color: var(--dim); }
article h2 { margin: 2.2rem 0 0.5rem; font-size: 1.35rem; font-weight: 700; color: var(--ball); font-variation-settings: var(--loose); }
article li { margin: 0.25rem 0; }
code { background: var(--sleeve); padding: 0.1em 0.35em; border-radius: 4px; }
img { max-width: 100%; height: auto; }

@media (max-width: 899px) {
  .sleeve { width: 78%; }
  .record.playing { transform: translateX(28%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
