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

:root {
  --bg: #f5f2ed;
  --surface: #faf8f5;
  --text: #1a1916;
  --muted: #6b6860;
  --border: #dedad3;
  --accent: #2c4a3e;
  --accent-light: #e8efe8;
  --player-bg: #ffffff;
  --sans: 'DM Sans', sans-serif;
  --serif: 'DM Serif Display', serif;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

header {
  padding: 5rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-weight: 400;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text);
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.site-tagline {
  margin-top: 1.2rem;
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.03em;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav a {
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}

nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ── about block ─────────────────────────────────────────────────────────── */

.about {
  max-width: 620px;
  margin: 0 auto 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.about h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text);
}

.about p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 0.9rem;
}

.about a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.about .about-note {
  font-size: 13px;
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ── featured card ───────────────────────────────────────────────────────── */

.featured-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 auto 4.5rem;
  padding: 2rem 2.2rem;
  background: var(--accent);
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.featured-card:hover { opacity: 0.93; }

.featured-eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.featured-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: #fff;
  line-height: 1.2;
}

.featured-sub {
  margin-top: 0.5rem;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 300;
}

.featured-note {
  margin-top: 0.3rem;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}

.featured-cta {
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  background: #fff;
  border-radius: 3px;
  padding: 0.7rem 1.4rem;
  white-space: nowrap;
}

/* ── artist sections ─────────────────────────────────────────────────────── */

.artist-section { margin-bottom: 5rem; }

.artist-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.artist-name {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
}

.recording-count {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}

.artist-divider {
  width: 40px;
  height: 1.5px;
  background: var(--accent);
  margin-bottom: 1.6rem;
}

.artist-note {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 1.2rem;
}

.artist-note a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.group-label-bare {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 1.8rem 0 0.7rem;
}

/* ── show index rows ─────────────────────────────────────────────────────── */

.show-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--border);
}

.show-row {
  display: grid;
  grid-template-columns: 150px 1fr auto 20px;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  background: var(--player-bg);
  text-decoration: none;
  transition: background 0.15s;
}

.show-row:hover { background: var(--accent-light); }

.show-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.show-venue {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
}

.show-venue em { font-style: italic; }

.show-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.show-badge {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: 500;
}

.show-badge.accent {
  color: #fff;
  background: var(--accent);
}

.show-extra {
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
}

.show-arrow {
  font-size: 14px;
  color: var(--muted);
  text-align: right;
}

.show-row:hover .show-arrow { color: var(--accent); }

@media (max-width: 640px) {
  .show-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "date arrow" "venue venue" "badges badges";
    row-gap: 4px;
  }
  .show-date { grid-area: date; }
  .show-venue { grid-area: venue; }
  .show-badges { grid-area: badges; flex-wrap: wrap; white-space: normal; }
  .show-arrow { grid-area: arrow; }
}

/* ── recording cards & player ────────────────────────────────────────────── */

.recording-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--border);
}

.recording-item {
  background: var(--player-bg);
  padding: 1.4rem 1.6rem;
  transition: background 0.15s;
}

.recording-item:hover { background: var(--surface); }

.recording-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.recording-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.track-num {
  display: inline-block;
  min-width: 2em;
  color: var(--muted);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}

.recording-detail {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.recording-title .track-num + * { padding-left: 0; }

.recording-item .recording-title + .recording-detail { padding-left: 2em; }

.recording-item .recording-meta-grid + .recording-detail { padding-left: 0; }

.recording-badge {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
  font-weight: 500;
  flex-shrink: 0;
}

.recording-meta-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2px 12px;
  margin-top: 4px;
}

.meta-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  padding-top: 1px;
}

.meta-value {
  font-size: 12px;
  color: var(--text);
  font-weight: 300;
}

.custom-player {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: visible;
}

.play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.play-btn:hover {
  background: var(--accent);
  color: white;
}

.play-btn svg {
  width: 14px;
  height: 14px;
}

.progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.progress-bar-track {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.time-row {
  display: flex;
  justify-content: space-between;
}

.time-label {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

@keyframes spin { to { transform: rotate(360deg); } }

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 3px;
  background: var(--accent-light);
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.download-btn:hover { background: var(--accent); color: white; }
.download-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.download-btn.wav-protected { padding-left: 8px; }

.lock-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.dl-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── alternates disclosure ───────────────────────────────────────────────── */

.alt-details summary {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  padding: 0.8rem 0;
  user-select: none;
}

.alt-details summary:hover { color: var(--accent); }
.alt-details[open] summary { margin-bottom: 0.6rem; }

.wav-note {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  font-weight: 300;
  margin-top: 2rem;
  text-align: center;
}

/* ── contact form ────────────────────────────────────────────────────────── */

.contact-section {
  max-width: 560px;
  margin: 0 auto 5rem;
  padding-top: 2rem;
}

.contact-sub {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--player-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-submit {
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--surface);
  background: var(--accent);
  border: none;
  border-radius: 3px;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.form-submit:hover { opacity: 0.85; }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

#formStatus { font-size: 13px; margin-top: 0.2rem; }
#formStatus.success { color: var(--accent); }
#formStatus.error { color: #b94a3a; }

/* ── password modal ──────────────────────────────────────────────────────── */

.pw-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,25,22,0.55);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.pw-overlay.open { display: flex; }

.pw-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.4rem 2.4rem 2rem;
  width: 340px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.pw-modal h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.pw-modal p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 1.4rem;
  font-weight: 300;
}

.pw-modal input {
  font-family: var(--sans);
  font-size: 14px;
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--player-bg);
  color: var(--text);
  outline: none;
  margin-bottom: 0.8rem;
  transition: border-color 0.2s;
}
.pw-modal input:focus { border-color: var(--accent); }

.pw-modal-error {
  font-size: 12px;
  color: #b94a3a;
  min-height: 1.2em;
  margin-bottom: 0.6rem;
}

.pw-modal-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

.pw-cancel {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}
.pw-cancel:hover { color: var(--text); }

.pw-submit {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--surface);
  background: var(--accent);
  border: none;
  border-radius: 3px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.pw-submit:hover { opacity: 0.85; }

footer {
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  background: var(--surface);
}

footer a { color: var(--accent); text-decoration: none; }

@media (max-width: 600px) {
  header { padding: 3rem 1.5rem 2.5rem; }
  main { padding: 2.5rem 1.25rem 4rem; }
  nav { gap: 1rem; }
  nav a { font-size: 11px; }
  .featured-card { flex-direction: column; align-items: flex-start; }
}
