/* Hallmark · genre: editorial · macrostructure: Letter · theme: custom (vibe: "healing blues, midnight velvet")
 * paper: oklch(12% 20 250) · accent: oklch(65% 15 250) cool-blue · display: Cormorant Garamond italic + DM Sans
 * nav: N9 Edge-aligned minimal · footer: Ft6 Letter close · enrichment: none
 */

:root {
  /* Colors — Healing Blues palette */
  --color-paper: #0c1929;
  --color-paper-2: #111f35;
  --color-paper-3: #162440;
  --color-ink: #e8e4dc;
  --color-ink-muted: rgba(232, 228, 220, 0.65);
  --color-accent: #4a7ba7;
  --color-accent-light: #6b9fcb;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  /* Text sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;
  --text-display: clamp(2.5rem, 6vw, 4.5rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur-base: 300ms;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--color-paper);
  color: var(--color-ink);
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: var(--color-accent-light);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

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

/* Nav */
.nav-minimal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-ink);
  letter-spacing: 0.02em;
}

.nav-back {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  letter-spacing: 0.05em;
}

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

/* Album Layout — split view */
.album-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  min-height: 100vh;
  padding: calc(80px + var(--space-xl)) var(--space-lg) var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

/* Album Art */
.album-art {
  position: sticky;
  top: calc(80px + var(--space-lg));
}

.album-art img {
  width: 100%;
  max-width: 480px;
  border-radius: 2px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

/* Album Content */
.album-content {
  padding-top: var(--space-md);
}

.album-header {
  margin-bottom: var(--space-xl);
}

.album-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: var(--space-sm);
}

.album-title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-ink);
  margin-bottom: var(--space-sm);
}

.album-subtitle {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-ink-muted);
  font-weight: 400;
}

/* Prose */
.prose {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--color-ink);
}

.prose p {
  margin-bottom: var(--space-lg);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose em {
  font-style: italic;
  color: var(--color-accent-light);
}

.prose-divider {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: 0.5em;
}

/* Streaming */
.streaming-section {
  margin-top: var(--space-xl);
}

.streaming-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}

.streaming-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.streaming-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-paper-2);
  border: 1px solid rgba(74, 123, 167, 0.2);
  border-radius: 2px;
  color: var(--color-ink);
  transition: all var(--dur-base) var(--ease-out);
}

.streaming-link:hover {
  background: var(--color-paper-3);
  border-color: var(--color-accent);
  color: var(--color-accent-light);
}

.streaming-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Footer */
.foot-letter {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(74, 123, 167, 0.15);
}

.foot-letter__close {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  line-height: 1.5;
  color: var(--color-ink);
}

.foot-letter__sign {
  font-style: normal;
  font-weight: 500;
}

.foot-letter__ps {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  margin-top: var(--space-sm);
}

/* Responsive */
@media (max-width: 900px) {
  .album-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding-top: calc(80px + var(--space-lg));
  }

  .album-art {
    position: static;
    max-width: 340px;
    margin: 0 auto;
  }

  .album-art img {
    max-width: 100%;
  }

  .album-content {
    text-align: center;
  }

  .streaming-links {
    max-width: 400px;
    margin: 0 auto;
  }

  .foot-letter {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-minimal {
    padding: var(--space-sm) var(--space-md);
  }

  .album-layout {
    padding: calc(80px + var(--space-md)) var(--space-md) var(--space-md);
  }

  .prose {
    font-size: var(--text-sm);
  }

  .streaming-link {
    padding: var(--space-sm) var(--space-md);
  }
}