/* ═══════════════════════════════════════════
   POUROVER — Design System
   Dark, minimal, atmospheric.
   Derived from album art palette.
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=DM+Mono:wght@300;400&display=swap');

:root {
  --bg: #0a0a0c;
  --surface: #111114;
  --accent: #c07a3a;
  --accent-dim: #7a4e25;
  --text-primary: #e8e4dc;
  --text-dim: #6b6660;
  --gap-unit: clamp(1.5rem, 4vw, 3rem);
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Noise texture overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Typography ── */

/* Headlines — Cormorant Garamond italic */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

/* UI / labels — DM Mono, lowercase */
.label, .mono, nav, footer, .player-bar,
.section-header, .release-meta, .contact-line {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

/* ── Layout ── */
.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap-unit);
}

/* ── Links ── */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 300ms ease;
}

a:hover {
  color: var(--text-primary);
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem var(--gap-unit);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
}

nav .site-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

nav .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav .nav-links a {
  color: var(--text-dim);
  transition: color 300ms ease;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: var(--text-primary);
}

/* ── Hero ── */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.hero .subline {
  color: var(--text-dim);
  margin-bottom: 3rem;
}

.hero .scroll-link {
  color: var(--text-dim);
  transition: color 300ms ease;
}

.hero .scroll-link:hover {
  color: var(--accent);
}

/* ── Sections ── */
section {
  padding: calc(var(--gap-unit) * 3) 0;
}

.section-header {
  color: var(--text-dim);
  margin-bottom: calc(var(--gap-unit) * 2);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(107, 102, 96, 0.2);
}

/* ── Latest Release ── */
.latest-release {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-unit);
  align-items: end;
}

@media (min-width: 768px) {
  .latest-release {
    grid-template-columns: 1fr 1fr;
  }
}

.latest-release .release-art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.7);
  transition: filter 300ms ease;
}

.latest-release .release-art:hover {
  filter: saturate(1);
}

.latest-release .release-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.latest-release .release-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.release-meta {
  color: var(--text-dim);
}

.release-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.release-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--accent);
  transition: color 300ms ease;
}

.release-links a:hover {
  color: var(--text-primary);
}

/* ── Music Grid ── */
.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px;
}

.release-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.release-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6);
  transition: filter 300ms ease;
}

.release-tile:hover img {
  filter: saturate(1);
}

.release-tile .tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.75);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 300ms ease;
}

.release-tile:hover .tile-overlay {
  opacity: 1;
}

.tile-overlay .tile-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.tile-overlay .tile-year {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* Streaming links row — revealed on click */
.release-detail-row {
  grid-column: 1 / -1;
  padding: var(--gap-unit);
  background: var(--surface);
  display: none;
}

.release-detail-row.active {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.release-detail-row .detail-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  margin-right: auto;
}

/* ── About Page ── */
.bio {
  max-width: 680px;
}

.bio p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 1.5em;
  color: var(--text-primary);
}

.collaborators-list {
  margin-top: calc(var(--gap-unit) * 2);
  display: flex;
  flex-direction: column;
  gap: calc(var(--gap-unit) * 1.5);
}

.collaborator-entry .collab-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.collaborator-entry .collab-role {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--text-dim);
}

.collaborator-entry .collab-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  margin-top: 0.5rem;
  display: inline-block;
}

.contact-section {
  margin-top: calc(var(--gap-unit) * 3);
}

.contact-line {
  color: var(--text-dim);
}

.contact-line a {
  color: var(--accent-dim);
}

/* ── Player Bar ── */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  z-index: 200;
  transform: translateY(100%);
  transition: transform 400ms ease;
  border-top: 1px solid rgba(107, 102, 96, 0.15);
}

.player-bar.visible {
  transform: translateY(0);
}

.player-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem var(--gap-unit);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.player-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
  color: var(--text-primary);
}

.player-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.player-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--text-primary);
  transition: fill 300ms ease;
}

.player-btn:hover svg {
  fill: var(--accent);
}

.scrub-bar {
  flex: 1;
  height: 3px;
  background: rgba(107, 102, 96, 0.3);
  cursor: pointer;
  position: relative;
  min-width: 80px;
}

.scrub-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 100ms linear;
}

.player-time {
  color: var(--text-dim);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Volume */
.volume-bar {
  width: 60px;
  height: 3px;
  background: rgba(107, 102, 96, 0.3);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.volume-fill {
  height: 100%;
  background: var(--accent-dim);
  width: 70%;
  transition: width 100ms linear;
}

.volume-icon {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* ── Tracklist ── */
.tracklist {
  display: flex;
  flex-direction: column;
}

.tracklist-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(107, 102, 96, 0.1);
  cursor: pointer;
  transition: background 200ms ease;
}

.tracklist-row:hover {
  background: var(--surface);
}

.tracklist-row.active {
  background: var(--surface);
}

.tracklist-row.active .track-title {
  color: var(--accent);
}

.track-num {
  color: var(--text-dim);
  text-align: right;
}

.track-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  transition: color 200ms ease;
}

.track-artist {
  color: var(--text-dim);
}

.track-link {
  font-size: 0.65rem;
  min-width: 60px;
  text-align: right;
}

/* ── System Interrupts ── */
.interrupt-well {
  padding: 3rem var(--gap-unit);
  text-align: center;
  cursor: pointer;
  transition: background 300ms ease;
  margin: calc(var(--gap-unit) * 2) 0;
}

.interrupt-well:hover {
  background: var(--surface);
}

.interrupt-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 1.5rem;
}

.interrupt-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 600px;
  margin: 0 auto;
  transition: opacity 300ms ease;
}

.interrupt-hint {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--text-dim);
  opacity: 0;
  margin-top: 1.5rem;
  transition: opacity 300ms ease;
}

.interrupt-well:hover .interrupt-hint {
  opacity: 0.6;
}

/* ── Footer ── */
footer {
  padding: calc(var(--gap-unit) * 2) 0;
  text-align: center;
  color: var(--text-dim);
}

footer a {
  color: var(--text-dim);
  transition: color 300ms ease;
}

footer a:hover {
  color: var(--accent);
}

/* Player bar offset — prevent footer from hiding behind player */
body.player-active {
  padding-bottom: 60px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  nav {
    padding: 1rem var(--gap-unit);
  }

  nav .nav-links {
    gap: 1.25rem;
  }

  .release-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .player-inner {
    padding: 0.5rem var(--gap-unit);
  }
}
