@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f7f3e8;
  --muted: #d3c9ae;
  --dim: #9d947e;
  --line: rgba(247, 243, 232, 0.18);
  --gold: #d9ad57;
  --moss: #8aa17b;
  --charcoal: #10120f;
  --panel: rgba(16, 18, 15, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--charcoal);
}

a {
  color: inherit;
}

.site-shell {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(16, 18, 15, 0) 0%, #10120f 69%),
    #10120f;
}

.hero {
  position: relative;
  min-height: 165svh;
  isolation: isolate;
  --reveal-progress: 0;
}

.hero-pin {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: 28px clamp(20px, 4vw, 64px) 56px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #10120f;
}

.hero-media img,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center calc(48% + (var(--reveal-progress) * 16%));
  opacity: 0.88;
  filter: saturate(0.9) contrast(1.06);
  transform: scale(calc(1.2 - (var(--reveal-progress) * 0.14)));
  transform-origin: center;
  transition: transform 120ms linear, object-position 120ms linear;
  animation: slowDrift 24s ease-in-out infinite alternate;
}

.hero-media img {
  z-index: 0;
  opacity: 0.72;
}

.hero-video {
  z-index: 1;
  opacity: 0.92;
  mix-blend-mode: screen;
}

.hero-pin::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 48% calc(36% + (var(--reveal-progress) * 12%)), rgba(244, 211, 126, 0.18), transparent 32%),
    linear-gradient(90deg, rgba(16, 18, 15, 0.84), rgba(16, 18, 15, 0.22) 48%, rgba(16, 18, 15, 0.76)),
    linear-gradient(180deg, rgba(16, 18, 15, 0.05), rgba(16, 18, 15, 0.44) 70%, #10120f);
}

.light-sweep {
  position: absolute;
  inset: -36%;
  z-index: 2;
  background: linear-gradient(104deg, transparent 30%, rgba(255, 238, 184, 0.3) 48%, transparent 65%);
  transform: translateX(-20%) rotate(3deg);
  animation: lightSweep 8.5s ease-in-out infinite;
  filter: blur(1px);
  mix-blend-mode: screen;
}

.light-pulse {
  position: absolute;
  inset: -12%;
  z-index: 2;
  background:
    radial-gradient(circle at 54% 36%, rgba(252, 220, 143, 0.28), transparent 24%),
    radial-gradient(circle at 42% 58%, rgba(138, 161, 123, 0.16), transparent 22%);
  animation: lightPulse 7s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 7px 7px;
}

.topbar,
.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  align-self: start;
}

.topbar.minimal {
  justify-content: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  background: rgba(16, 18, 15, 0.48);
}

.footer a {
  text-decoration-color: rgba(217, 173, 87, 0.58);
  text-underline-offset: 5px;
}

.hero-content {
  width: min(920px, 100%);
  align-self: end;
  margin: 0 auto;
  padding-top: 22vh;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  max-width: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 500;
}

h2 {
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.7rem);
  font-weight: 500;
}

#page-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1rem, 5.4vw, 4.25rem);
  letter-spacing: 0.26em;
  line-height: 1.2;
  white-space: nowrap;
  padding-left: 0.26em;
}

.footer {
  padding: 28px clamp(20px, 4vw, 64px);
  border-top: 1px solid rgba(247, 243, 232, 0.12);
  background: #0c0e0c;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-inner > :first-child { justify-self: start; text-align: left; }
.footer-inner > :nth-child(2) { justify-self: center; text-align: center; }
.footer-inner > :last-child { justify-self: end; text-align: right; }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 12px; }
  .footer-inner > :nth-child(n) { justify-self: center; text-align: center; }
}

.footer p {
  margin: 0;
}

.simple-page {
  background:
    linear-gradient(135deg, rgba(217, 173, 87, 0.13), transparent 34%),
    #10120f;
}

.simple-header {
  padding: 28px clamp(20px, 4vw, 64px);
}

.legal-content {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 92px) 0 96px;
}

.legal-content h1 {
  max-width: none;
  font-size: clamp(3rem, 8vw, 6rem);
}

.legal-content h2 {
  max-width: none;
  margin-top: 42px;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.legal-content p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.legal-content .updated {
  color: var(--dim);
  font-size: 0.95rem;
}

@keyframes slowDrift {
  from {
    filter: saturate(0.92) contrast(1.04) brightness(0.96);
  }
  to {
    filter: saturate(1.04) contrast(1.1) brightness(1.12);
  }
}

@keyframes lightSweep {
  0%,
  100% {
    opacity: 0;
    transform: translateX(-28%) rotate(3deg);
  }
  42%,
  64% {
    opacity: 1;
  }
  78% {
    opacity: 0;
    transform: translateX(28%) rotate(3deg);
  }
}

@keyframes lightPulse {
  from {
    opacity: 0.42;
    transform: translate3d(-1.2%, -1%, 0) scale(1);
  }
  to {
    opacity: 0.88;
    transform: translate3d(1.2%, 1%, 0) scale(1.05);
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 155svh;
  }

  .hero-pin {
    padding-top: 22px;
  }

  .topbar,
  .footer-inner {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    align-self: center;
    padding-top: 8vh;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5.6rem);
  }
}

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

  .hero-media img,
  .hero-video,
  .light-sweep,
  .light-pulse {
    animation: none;
  }
}

/* Undulations release and album detail page. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:where(a, button):focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.hero-release-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}
.hero-release-link:hover { color: var(--ink); }
.release-section {
  padding: clamp(64px, 9vw, 120px) 24px;
  background: radial-gradient(ellipse at 50% 35%, rgba(217, 173, 87, 0.08), transparent 65%), #10120f;
  scroll-margin-top: 24px;
}
.release-card { max-width: 650px; margin: 0 auto; text-align: center; }
.release-card h2 { max-width: none; font-size: clamp(3rem, 7vw, 5rem); }
.release-intro, .album-description { color: var(--muted); line-height: 1.7; }
.release-intro { margin: 20px 0 36px; }
.cover-link { display: block; max-width: 480px; margin: 0 auto; }
.album-cover { display: block; width: 100%; height: auto; aspect-ratio: 1; border: 1px solid var(--line); box-shadow: 0 24px 60px #0006; }
.listen-label { margin: 30px 0 18px; color: var(--dim); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; text-align: center; }
.listen-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.listen-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.8rem;
  text-decoration: none;
  background: #f7f3e804;
  transition: border-color 160ms ease, background 160ms ease;
}
.listen-links a:hover { border-color: var(--gold); background: #d9ad5712; }
.listen-links img { width: 20px; height: 20px; filter: invert(96%) sepia(13%) saturate(273%) hue-rotate(347deg); }
.album-details-link { display: inline-flex; align-items: center; gap: 24px; margin-top: 34px; padding: 8px 0; color: var(--gold); text-decoration: none; border-bottom: 1px solid #d9ad5766; }
.album-header { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { font-family: Montserrat, sans-serif; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; }
.back-link { font-size: 0.8rem; text-decoration: none; color: var(--muted); white-space: nowrap; }
.album-page { background: radial-gradient(ellipse at 10% 15%, #d9ad5710, transparent 65%), var(--charcoal); }
.album-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); width: min(1120px, calc(100% - 48px)); margin: 64px auto 96px; }
.album-tracks h1 { font-size: clamp(2.8rem, 5.7vw, 5.3rem); }
.album-meta { color: var(--dim); font-size: 0.8rem; line-height: 1.8; margin-top: 24px; }
.album-meta span { margin: 0 6px; }
.album-description { margin: 20px 0 40px; }
.tracklist-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.tracklist-heading h2 { font-size: 1.5rem; }
.tracklist-heading > span { color: var(--dim); font-size: 0.75rem; }
.track-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.track-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.track-number, .track-duration { font-size: 0.75rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.track-info h3 { margin: 0 0 8px; font-size: 0.98rem; font-weight: 500; line-height: 1.4; }
.track-info a { color: var(--dim); font-size: 0.65rem; text-decoration: none; }
.track-info a:hover { color: var(--gold); }
.lyrics-button { font: inherit; font-size: 0.75rem; color: var(--gold); background: none; border: 1px solid var(--line); border-radius: 4px; padding: 10px; min-height: 44px; cursor: pointer; }
.lyrics-button:hover { background: #d9ad5712; border-color: var(--gold); }
.lyrics-dialog { width: min(700px, calc(100% - 32px)); max-height: 85svh; padding: 0; border: 1px solid #d9ad5755; border-radius: 8px; background: #161812; color: var(--ink); box-shadow: 0 24px 100px #0009; overscroll-behavior: contain; }
.lyrics-dialog::backdrop { background: #050704d9; backdrop-filter: blur(7px); }
.dialog-header { position: sticky; top: 0; display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; padding: 28px 32px 24px; background: #161812; border-bottom: 1px solid var(--line); }
.dialog-header .eyebrow { font-size: 0.65rem; margin-bottom: 12px; }
.dialog-header h2 { max-width: none; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.1; }
.dialog-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); background: none; cursor: pointer; font: inherit; font-size: 1.8rem; }
.dialog-close:hover { border-color: var(--gold); }
.lyrics-text { white-space: pre-wrap; overflow-wrap: anywhere; padding: 28px 32px 40px; color: var(--muted); font-size: 1rem; line-height: 1.85; }
body.lyrics-open { overflow: hidden; }
@media (max-width: 760px) {
  .album-layout { grid-template-columns: 1fr; gap: 48px; margin-top: 36px; }
  .album-artwork { max-width: 480px; width: 100%; margin: 0 auto; }
  .album-tracks h1 { font-size: clamp(2.8rem, 10vw, 4.5rem); }
  .album-header { gap: 12px; }
  .wordmark { font-size: 0.68rem; letter-spacing: 0.15em; }
  .track-row { gap: 10px; grid-template-columns: 20px minmax(0, 1fr) auto auto; }
  .dialog-header { padding: 24px 20px 20px; }
  .lyrics-text { padding: 24px 20px 32px; font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) { .listen-links a { transition: none; } }
