/* ------------------------------------------------------------------
   Husks Of The Dead
   Anton for display headlines (PLAY ALBUM, brand, store title).
   IBM Plex Mono for body copy and UI labels (buttons, track info).
   Colors sampled from screenshots of the live site.
------------------------------------------------------------------- */

@font-face {
  font-family: "Anton";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/anton-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
}

:root {
  --black: #000000;
  --panel: #1c1c1c;      /* the body content area behind all four album sections */
  --panel-line: #333333;
  --text: #e9e9e6;       /* body copy: a hair off pure white */
  --text-dim: #9a9a97;
  --accent: #ffffff;

  --gutter: clamp(16px, 5vw, 96px);
  --content-w: 1320px;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Top bar ---------- */

.topbar {
  position: relative;
  background: var(--black);
  padding: 22px var(--gutter);
}

.nav {
  display: flex;
  gap: 28px;
}
.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-link:hover { color: var(--accent); }
.nav-link.is-current { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.brand {
  position: absolute;
  top: 22px;
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: 0.01em;
  color: var(--accent);
}

@media (max-width: 640px) {
  .brand { position: static; translate: none; margin-top: 14px; text-align: center; font-size: 18px; }
  .topbar { display: flex; flex-direction: column; align-items: center; gap: 4px; }
}

/* ---------- Hero ---------- */

.hero {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: cover;
  background: var(--black);
}

/* ---------- Album sections ---------- */

main { background: var(--panel); }

.album {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) 0;
}
.album:last-of-type { padding-bottom: clamp(48px, 8vw, 96px); }

.album-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 24px 32px;
  border-bottom: 1px solid var(--panel-line);
  padding-bottom: 22px;
  margin-bottom: 40px;
}

.play-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0.01em;
}

.play-btn {
  flex: 0 0 auto;
  font: inherit;   /* buttons don't inherit font-size by default; the em-sized triangle needs it */
  display: grid;
  place-items: center;
  width: 0.85em;
  height: 0.85em;
  padding: 0;
  border: 1px solid var(--panel-line);
  background: #141414;
  color: var(--accent);
  cursor: pointer;
}
.play-btn:hover { background: #202020; }
.tri {
  width: 0; height: 0;
  margin-left: 0.12em;
  border-style: solid;
  border-width: 0.16em 0 0.16em 0.26em;
  border-color: transparent transparent transparent currentColor;
}
.play-btn[aria-pressed="true"] .tri {
  width: 0.22em; height: 0.28em;
  margin-left: 0;
  border: 0;
  background: currentColor;
  box-shadow: 0.34em 0 0 currentColor;
}

.track-info { margin-left: auto; text-align: right; }
.track-title { margin: 0; font-size: 15px; font-weight: 500; }
.track-year { color: var(--text-dim); font-weight: 400; }
.track-artist { margin: 2px 0 0; font-size: 12px; letter-spacing: 0.08em; color: var(--text-dim); text-transform: uppercase; }

/* ---------- Body: text + art ---------- */

.album-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.album-text p {
  max-width: 62ch;
  margin: 0 0 1.3em;
}
.album-text .poem { font-style: italic; color: #d7d7d3; }

.buy-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 340px;
  margin-top: 32px;
}

.buy-btn {
  display: block;
  padding: 15px 18px;
  border: 1px solid #4a4a4a;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.buy-btn:hover { background: #242424; border-color: #666; }
.buy-btn-big { max-width: 260px; margin: 0 auto; }

/* Buttons not yet wired to a real destination (merch / digital download platforms
   still need to be set up). Visibly disabled so nobody clicks through to nowhere. */
.buy-btn[data-pending] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.album-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Seek bar ---------- */

.seek-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  font-size: 12px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.seek {
  --pct: 0%;
  flex: 1;
  height: 16px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.seek::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(to right, var(--accent) var(--pct), #444 var(--pct));
}
.seek::-moz-range-track { height: 3px; background: #444; }
.seek::-moz-range-progress { height: 3px; background: var(--accent); }
.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent);
}
.seek::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--accent); }
.time-total::before { content: "/ "; }
.time-total:empty::before { content: ""; }

/* ---------- Focus ---------- */

:where(button, a, input):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  color: var(--text-dim);
  text-align: center;
  font-size: 12px;
  padding: 32px var(--gutter);
}

/* ---------- Store page ---------- */

.store { max-width: var(--content-w); margin: 0 auto; padding: clamp(32px, 6vw, 64px) var(--gutter) 80px; }
.store-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 96px);
  margin: 0 0 clamp(28px, 5vw, 56px);
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 40px 28px;
}
.product { display: flex; flex-direction: column; }
.product img { width: 100%; height: auto; margin-bottom: 16px; }
.product h2 { font-family: var(--font-display); font-size: 22px; margin: 0 0 4px; font-weight: 400; }
.product-year { margin: 0 0 16px; color: var(--text-dim); font-size: 12px; }
.product .buy-links { max-width: none; margin-top: auto; }

.merch-cta {
  margin-top: clamp(56px, 9vw, 112px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--panel-line);
  text-align: center;
}
.merch-cta h2 { font-family: var(--font-display); font-size: clamp(28px, 5vw, 42px); margin: 0 0 12px; font-weight: 400; }
.merch-cta p { color: var(--text-dim); max-width: 46ch; margin: 0 auto 28px; }

/* ---------- Small screens ---------- */

@media (max-width: 820px) {
  .album-body { grid-template-columns: 1fr; }
  .album-art { order: -1; }
  .track-info { margin-left: 0; text-align: left; }
}
