/* The Peanut Gallery — lo-fi indie rock
   Wide, chunky sans (Archivo stretched) + colors pulled from the cover:
   lamp amber, no-smoking red, smoke-seaweed blue. */
:root {
  --night: #140d0c;              /* warm near-black */
  --night-2: #22161a;
  --paper: #f3e9d6;              /* warm off-white */
  --mute: #a99a88;
  --line: rgba(243, 233, 214, 0.18);
  --sign: #e45c3f;               /* no-smoking red */
  --amber: #f2a94e;              /* bedroom-lamp amber */
  --sea: #6f8fe0;                /* smoke-seaweed blue */
  --navy: #0f1426;
  --wine: #23100f;
  --type: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--night);
  /* Grain lives in the page background only, never on the album cover */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .95  0 0 0 0 .88  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color: var(--paper);
  font-family: var(--type);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--amber); }
img { display: block; max-width: 100%; }

.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 1rem; background: var(--paper); color: var(--night); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 1px dashed var(--paper); outline-offset: 4px; }

/* ---------- Header: plain, centered, like a hand-coded band page ---------- */
.site-header { position: relative; z-index: 2; }
.site-header .wrap {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding-block: 1.4rem;
}
.wordmark { font-weight: 800; font-stretch: 125%; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; line-height: 1; }
.nav { display: flex; gap: 1.6rem; list-style: none; font-size: .9rem; }
.nav a { color: var(--mute); text-decoration: none; }
.nav a:hover { color: var(--amber); }
.nav a[aria-current="page"] { color: var(--paper); text-decoration: underline; }

/* ---------- Type ---------- */
.band {
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.label, .kicker { font-size: .8rem; font-weight: 600; font-stretch: 112%; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); }
.h2 {
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  line-height: .95;
  margin: .4rem 0 1.6rem;
  text-transform: uppercase;
}
.prose { max-width: 58ch; }
.prose p + p { margin-top: 1rem; }
.lead { margin-bottom: 1.6rem; }
.tbd { color: var(--mute); }

/* ---------- Hero: centered art, hazy glow behind it ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero .kicker { margin-bottom: .9rem; }
.hero .band { margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.hero-cover { width: min(520px, 100%); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.hero .sub { margin-top: 1.6rem; color: var(--paper); opacity: .8; font-size: .95rem; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; margin-top: 1rem; font-size: 1.05rem; }
.links a { text-decoration: underline; }
.links a { font-weight: 700; font-stretch: 115%; text-transform: uppercase; letter-spacing: .04em; text-decoration-color: var(--sign); text-decoration-thickness: 2px; }
.links a::before { content: "→"; display: inline-block; margin-right: .45rem; color: var(--amber); }
.hero-press { padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero-press .band { margin-bottom: 1.2rem; }

/* EPK link: plain text, only "live" when the PDF exists */
.epk { cursor: pointer; }
.epk[aria-disabled="true"] { color: var(--mute); text-decoration: none; cursor: not-allowed; pointer-events: none; }

/* ---------- Album cover: square, whole photo, no filters ---------- */
.cover { aspect-ratio: 1 / 1; background: #000; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: contain; }
.cover-note { margin-top: .7rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px dashed var(--line); }
/* Color blocks: deep seaweed-blue for the music, warm wine for the band */
#music, .section-blue { background: linear-gradient(180deg, var(--night) 0%, var(--navy) 18%, var(--navy) 82%, var(--night) 100%); border-top: 0; }
#about, .section-wine { background: linear-gradient(180deg, var(--night) 0%, var(--wine) 20%, var(--wine) 80%, var(--night) 100%); border-top: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }

/* Fact lists read like a liner-notes credits page */
.facts { font-size: .92rem; }
.facts div { display: flex; align-items: baseline; gap: .5rem; padding: .45rem 0; }
.facts dt { color: var(--mute); white-space: nowrap; }
.facts dd { font-weight: 500; }
.facts div::after { content: none; }
.facts dt::after {
  content: ""; flex: 1;
}
.facts div { display: grid; grid-template-columns: auto 1fr auto; }
.facts div::before {
  content: ""; grid-column: 2; grid-row: 1; align-self: end; margin-bottom: .45em;
  border-bottom: 1px dotted var(--line); min-width: 1rem;
}
.facts dt { grid-column: 1; grid-row: 1; }
.facts dd { grid-column: 3; grid-row: 1; text-align: right; }

/* ---------- Player ---------- */
.player { border-top: 1px dashed var(--line); }
.transport { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 0 1rem; }
.ctrl {
  width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0;
  border: 0; background: none; color: var(--mute); cursor: pointer;
}
.ctrl:hover:not(:disabled) { color: var(--paper); }
.ctrl svg { width: 18px; height: 18px; fill: currentColor; }
.ctrl.play { width: 62px; height: 62px; border-radius: 50%; border: 0; color: var(--night); background: linear-gradient(135deg, var(--amber), var(--sign)); }
.ctrl.play:hover:not(:disabled) { color: var(--night); filter: brightness(1.1); }
.player.is-playing .ctrl.play { box-shadow: 0 0 0 6px rgba(242, 169, 78, .18); }
.ctrl.play svg { width: 20px; height: 20px; }
.ctrl:disabled { opacity: .35; cursor: not-allowed; }
.i-pause { display: none; }
.player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: block; }

.now { min-width: 0; flex: 1; text-align: left; }
.now-title { font-weight: 800; font-stretch: 118%; font-size: 1.35rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.progress { display: flex; align-items: center; gap: .75rem; font-size: .8rem; color: var(--mute); font-variant-numeric: tabular-nums; padding-bottom: 1.5rem; }
.progress span { min-width: 2.8em; }
.progress span:last-child { text-align: right; }
.seek {
  --p: 0%;
  flex: 1; height: 2px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background: linear-gradient(90deg, var(--amber), var(--sign) var(--p), var(--line) var(--p));
}
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); }
.seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--paper); }
.seek:disabled { opacity: .35; cursor: not-allowed; }

.status { font-size: .9rem; color: var(--mute); padding-bottom: 1rem; }

/* Tracklist: typewritten, like a J-card */
.tracks { list-style: none; border-top: 1px dashed var(--line); }
.tracks li { border-bottom: 1px dashed var(--line); }
.track {
  width: 100%; display: grid; grid-template-columns: 2.4rem 1fr auto; gap: .75rem;
  align-items: baseline; padding: .8rem .25rem; text-align: left;
  background: none; border: 0; color: var(--paper); font: inherit;
}
button.track { cursor: pointer; }
button.track:hover { background: rgba(111, 143, 224, .08); }
button.track:hover .t { text-decoration: underline; }
.track .n, .track .d { color: var(--mute); font-size: .85rem; font-variant-numeric: tabular-nums; }
.track.active .n, .track.active .t { color: var(--amber); }
.track .t { font-weight: 500; }
.track.unavailable { color: var(--mute); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px dashed var(--line); padding: 2.5rem 0 3rem; color: var(--mute); font-size: .85rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
  .now-title { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
