﻿*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:     #676767;
  --header: #39392d;
  --rust:   #070707;
  --indigo: #f8f5f5;
  --green:  #2c9239;
  --grape:  #323232;
  --text:   #000000;
  --muted:  #5a5a5a;
}

.alt-header {
  --header: #343434;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Stack Sans Text', sans-serif;
  font-style: normal;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

.page { display: none; }
.page.active { display: block; }

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  padding-right: clamp(1.5rem, 6vw, 4rem);
  height: 48px;
  background: var(--header);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-link {
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: clamp(1.5rem, 6vw, 4rem);
  margin-right: auto;
}

.logo-link img {
  height: 48px;
  width: auto;
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.logo-link:hover img {
  opacity: 0.8;
}

nav a {
  font-family: 'Stack Sans Text', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #efefef;
  text-decoration: none;
  transition: color 0.2s ease;
}
nav a:hover { color: var(--rust); }

#contact-link {
  background: var(--rust);
  height: 48px;
  padding: 0 1.5rem;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: white;
  font-weight: 500;
  transition: background 0.2s ease, opacity 0.2s ease;
}
#contact-link:hover { opacity: 0.9; }

/* HOME GRID */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 480px;
  gap: 2.5rem;
  padding: 3.5rem clamp(2rem, 6vw, 5rem);
}

.album { cursor: pointer; }

.album-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1) saturate(0);
  transition: filter 0.4s ease;
}

.album:hover .album-cover img {
  filter: brightness(1) saturate(1);
}

/* ALBUM PAGE */
#album-page {
  padding: 2.5rem clamp(2rem, 6vw, 5rem) 6rem;
  min-height: calc(100vh - 72px);
}

.album-page {
  padding: 2.5rem clamp(2rem, 6vw, 5rem) 6rem;
  min-height: calc(100vh - 72px);
  flex: 1;
}

#links-page {
  padding: 3rem clamp(2rem, 6vw, 5rem) 6rem;
  min-height: calc(100vh - 120px);
}

.links-page {
  padding: 3rem clamp(2rem, 6vw, 5rem) 6rem;
  min-height: calc(100vh - 120px);
  flex: 1;
}

.links-content h2 {
  font-size: 2.5rem;
  color: var(--indigo);
  margin-bottom: 2rem;
  font-weight: 700;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
}

.link-card {
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: white;
  color: var(--text);
}

.link-card:hover {
  border-color: var(--rust);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.link-card h3 {
  color: var(--indigo);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.link-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Stack Sans Text', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--indigo);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0.5rem 0;
  margin-bottom: 3.5rem;
  transition: color 0.2s ease;
  text-decoration: none;
}
.back-btn:hover { color: var(--rust); }
.back-btn::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.release-layout {
  display: grid;
  grid-template-columns: minmax(0, 440px) 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
  max-width: 960px;
}

@media (max-width: 640px) {
  .release-layout { grid-template-columns: 1fr; }
}

.release-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.release-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.release-info { padding-top: 0.5rem; }

.release-artist {
  font-family: 'Stack Sans Text', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--rust);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.release-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--indigo);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.release-year {
  font-family: 'Stack Sans Text', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--grape);
  margin-bottom: 3rem;
}

.listen-label {
  font-family: 'Stack Sans Text', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--indigo);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.platforms { display: flex; flex-direction: column; }

.platform-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}
.platform-link:first-child { border-top: 1px solid rgba(0,0,0,0.08); }
.platform-link:hover { color: #0052CC; }

.platform-left { display: flex; align-items: center; gap: 0.9rem; }
.platform-icon { width: 10px; height: 10px; flex-shrink: 0; opacity: 0.45; }

.platform-arrow {
  font-style: normal;
  font-size: 0.75rem;
  opacity: 0.3;
  transition: opacity 0.2s;
}
.platform-link:hover .platform-arrow { opacity: 1; }

/* FOOTER */
footer {
  padding: 4rem clamp(2rem, 6vw, 5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.footer-logo img {
  height: 18px;
  width: auto;
  display: block;
  opacity: 0.18;
}

.footer-copy {
  font-family: 'Stack Sans Text', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--indigo);
  opacity: 0.7;
  letter-spacing: 0.01em;
}
