:root {
  color-scheme: dark;
  --bg: #07110d;
  --ink: #f0efe6;
  --muted: #aeb8aa;
  --dim: #6f7a70;
  --line: rgba(240, 239, 230, 0.16);
  --panel: rgba(13, 26, 20, 0.72);
  --panel-strong: rgba(20, 38, 29, 0.92);
  --rust: #c46236;
  --sap: #d7c76f;
  --moss: #6ea06b;
  --steel: #93aeb7;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(circle at 76% 8%, rgba(196, 98, 54, 0.18), transparent 31rem),
    radial-gradient(circle at 12% 24%, rgba(110, 160, 107, 0.2), transparent 26rem),
    linear-gradient(140deg, #07110d 0%, #132019 42%, #0a0c0b 100%);
}

body.is-playing .hero-backdrop,
body.is-playing .cover-stack {
  animation-play-state: running;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 31px 31px;
  mix-blend-mode: overlay;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(240, 239, 230, 0.08);
  background: rgba(7, 17, 13, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(215, 199, 111, 0.22), rgba(196, 98, 54, 0.22));
  font-size: 0.78rem;
}

.nav {
  gap: clamp(0.8rem, 2.4vw, 1.6rem);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 4.5rem);
  grid-template-columns: minmax(17rem, 0.9fr) minmax(18rem, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 6rem) clamp(1rem, 5vw, 5rem) clamp(3rem, 6vw, 5rem);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 13rem;
  content: "";
  background: linear-gradient(0deg, rgba(7, 17, 13, 1), transparent);
  pointer-events: none;
}

.hero-backdrop {
  position: absolute;
  inset: -14% -8%;
  z-index: -1;
  background:
    linear-gradient(rgba(7, 17, 13, 0.42), rgba(7, 17, 13, 0.84)),
    url("HEARTWOOD_Albumcover.png") center / cover;
  filter: blur(36px) saturate(1.15);
  transform: scale(1.05);
  animation: drift 16s ease-in-out infinite alternate paused;
}

@keyframes drift {
  from {
    transform: scale(1.05) translate3d(-1%, -1%, 0);
  }

  to {
    transform: scale(1.12) translate3d(1.5%, 1%, 0);
  }
}

.hero-media {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(100%, 33rem);
  aspect-ratio: 1;
  border: 1px solid rgba(240, 239, 230, 0.18);
  box-shadow: var(--shadow);
}

.hero-media::before,
.hero-media::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero-media::before {
  inset: -1rem;
  border: 1px solid rgba(215, 199, 111, 0.16);
}

.hero-media::after {
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(240, 239, 230, 0.1));
  mix-blend-mode: screen;
}

.hero-media img,
.cover-stack img,
.track-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  z-index: 1;
  max-width: 50rem;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--sap);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4.2rem, 13vw, 12rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  max-width: 58rem;
  margin: 0;
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  line-height: 1;
}

.hero-text {
  max-width: 44rem;
  margin: 1.7rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.primary-link,
.ghost-button,
.as-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 239, 230, 0.18);
  padding: 0.8rem 1.15rem;
  text-decoration: none;
  cursor: pointer;
}

.primary-link {
  color: #08100c;
  background: var(--sap);
  font-weight: 800;
}

.ghost-button {
  background: rgba(240, 239, 230, 0.06);
}

.primary-link:hover,
.ghost-button:hover,
.as-button:hover {
  transform: translateY(-1px);
}

.ticker {
  overflow: hidden;
  border-block: 1px solid rgba(240, 239, 230, 0.1);
  background: rgba(5, 10, 8, 0.42);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: crawl 30s linear infinite;
}

.ticker span {
  padding: 1rem 1.8rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

@keyframes crawl {
  to {
    transform: translateX(-50%);
  }
}

.player-section,
.tracks-section,
.dna-section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 5vw, 5rem);
}

.section-head {
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.player-shell {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(20rem, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.now-panel,
.control-panel,
.playlist,
.dna-console {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.now-panel {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1rem;
}

.cover-stack {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #111;
  animation: pulse-border 2.7s ease-in-out infinite paused;
}

@keyframes pulse-border {
  50% {
    box-shadow: 0 0 0 1px rgba(215, 199, 111, 0.45), 0 0 32px rgba(196, 98, 54, 0.2);
  }
}

#wood-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.52;
  mix-blend-mode: screen;
}

.now-meta {
  display: grid;
  gap: 0.35rem;
}

.now-meta p {
  margin: 0;
  color: var(--muted);
}

#now-number {
  color: var(--rust);
  font-weight: 900;
}

.control-panel {
  display: grid;
  gap: 1.25rem;
  align-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.transport {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.icon-button,
.play-button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 239, 230, 0.18);
  background: rgba(240, 239, 230, 0.06);
  cursor: pointer;
}

.icon-button {
  width: 3rem;
  height: 3rem;
}

.play-button {
  width: 5.7rem;
  height: 5.7rem;
  color: #08100c;
  background: var(--sap);
  font-weight: 900;
  text-transform: uppercase;
}

.icon-button:hover,
.play-button:hover {
  filter: brightness(1.08);
}

.progress-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr 3.2rem;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--sap);
}

.quote-line {
  display: grid;
  gap: 0.75rem;
}

#now-keywords {
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#now-pitch {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.playlist {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.playlist button {
  display: grid;
  width: 100%;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 0.85rem;
  border: 0;
  border-bottom: 1px solid rgba(240, 239, 230, 0.08);
  background: transparent;
  padding: 1rem;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.playlist li:nth-child(odd) button {
  border-right: 1px solid rgba(240, 239, 230, 0.08);
}

.playlist button:hover,
.playlist button[aria-current="true"] {
  color: var(--ink);
  background: rgba(240, 239, 230, 0.06);
}

.playlist-number {
  color: var(--rust);
  font-weight: 900;
}

.playlist-title {
  min-width: 0;
  font-weight: 800;
}

.playlist-meta {
  color: var(--dim);
  font-size: 0.78rem;
}

.dna-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(17rem, 1.1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 17, 13, 0.98), rgba(7, 17, 13, 0.56)),
    url("HEARTWOOD_Albumcover.png") center / cover fixed;
}

.dna-copy p:not(.kicker) {
  max-width: 43rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.dna-console {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1rem, 3vw, 2rem);
}

.dna-bars {
  display: grid;
  height: 18rem;
  grid-template-columns: repeat(20, 1fr);
  align-items: end;
  gap: 0.35rem;
  overflow: hidden;
}

.dna-bars span {
  min-height: 8%;
  background: linear-gradient(180deg, var(--sap), var(--rust));
  transform-origin: bottom;
  animation: chop 1.1s ease-in-out infinite paused;
}

body.dna-playing .dna-bars span {
  animation-play-state: running;
}

.dna-bars span:nth-child(3n) {
  animation-duration: 0.72s;
}

.dna-bars span:nth-child(4n) {
  animation-duration: 1.34s;
}

.dna-bars span:nth-child(5n) {
  animation-duration: 0.92s;
}

@keyframes chop {
  0%,
  100% {
    transform: scaleY(0.18);
  }

  42% {
    transform: scaleY(0.94);
  }

  68% {
    transform: scaleY(0.38);
  }
}

.as-button {
  border: 0;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: rgba(240, 239, 230, 0.12);
  border: 1px solid rgba(240, 239, 230, 0.12);
}

.track-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  background: var(--bg);
}

.track-card figure {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #111;
}

.track-card-body {
  display: grid;
  gap: 0.72rem;
  align-content: start;
  padding: 1rem;
}

.track-card h3 {
  font-size: 1.15rem;
  line-height: 1.12;
}

.track-card p {
  margin: 0;
}

.track-card .genre {
  color: var(--steel);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.track-card .pitch {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.track-card .line {
  border-left: 2px solid var(--rust);
  padding-left: 0.65rem;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

.track-card button {
  width: max-content;
  border: 1px solid rgba(240, 239, 230, 0.18);
  background: rgba(240, 239, 230, 0.06);
  padding: 0.62rem 0.78rem;
  cursor: pointer;
}

.track-card button:hover {
  background: rgba(215, 199, 111, 0.18);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid rgba(240, 239, 230, 0.1);
  color: var(--dim);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1180px) {
  .track-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    position: static;
  }

  .hero,
  .player-shell,
  .dna-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    width: min(100%, 27rem);
  }

  .playlist {
    grid-template-columns: 1fr;
  }

  .playlist li:nth-child(odd) button {
    border-right: 0;
  }

  .track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dna-section {
    background-attachment: scroll;
  }
}

@media (max-width: 560px) {
  .site-header,
  .nav {
    align-items: flex-start;
  }

  .site-header {
    flex-direction: column;
  }

  .hero-actions,
  .transport {
    width: 100%;
  }

  .primary-link,
  .ghost-button,
  .as-button {
    flex: 1 1 auto;
  }

  .track-grid {
    grid-template-columns: 1fr;
  }

  .playlist button {
    grid-template-columns: 2.4rem 1fr;
  }

  .playlist-meta {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
