/* ==========================================================================
   Morgan and Dalin Theme - Main Stylesheet
   Lake and outdoors inspired wedding theme
   Built by InternetSherlock LLC
   ========================================================================== */

/* ==========================================================================
   1. Design Tokens (CSS Custom Properties)
   ========================================================================== */
:root {
  /* Brand colors, lake and outdoors palette */
  --primary: #1F4E66;          /* Deep lake blue, Pend Oreille at depth */
  --primary-light: #4A7D94;    /* Surface water on a clear day */
  --primary-dark: #143847;     /* Lake at dusk */
  --secondary: #C9A06B;        /* Warm sand, driftwood */
  --secondary-light: #E5C99B;  /* Sun-bleached sand */
  --accent: #E07B5C;           /* Sunset coral over the water */
  --accent-deep: #C45F3E;      /* Deeper sunset */
  --dark: #1B2429;             /* Deep ink, almost black */
  --medium: #5D6E78;           /* Stone gray */
  --light-1: #F5EFE0;          /* Birch cream */
  --light-2: #FAF6EC;          /* Soft cream */
  --white: #FFFFFF;
  --off-white: #FBFAF6;

  /* Typography */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type scale */
  --fs-hero: clamp(2.75rem, 8vw, 6.5rem);
  --fs-h1: clamp(2rem, 5.5vw, 4rem);
  --fs-h2: clamp(1.625rem, 4.5vw, 3rem);
  --fs-h3: clamp(1.25rem, 2.6vw, 1.75rem);
  --fs-body: 1.0625rem;
  --fs-body-lg: 1.1875rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.75rem;

  /* Layout */
  --nav-h: 100px;
  --max-w: 1280px;
  --max-content: 720px;
  --max-prose: 640px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Effects */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(27,36,41,0.06), 0 1px 3px rgba(27,36,41,0.04);
  --shadow: 0 4px 16px rgba(27,36,41,0.08), 0 1px 4px rgba(27,36,41,0.04);
  --shadow-lg: 0 12px 40px rgba(27,36,41,0.12), 0 4px 12px rgba(27,36,41,0.06);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   2. Base Resets
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--dark);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--dark);
}

h1 { font-size: var(--fs-h1); font-variation-settings: 'opsz' 144, 'SOFT' 100; }
h2 { font-size: var(--fs-h2); font-variation-settings: 'opsz' 80; }
h3 { font-size: var(--fs-h3); font-variation-settings: 'opsz' 30; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; font-family: var(--font-display); font-weight: 300; font-variation-settings: 'opsz' 144, 'SOFT' 100; color: var(--primary); }

::selection { background: var(--accent); color: var(--white); }

/* ==========================================================================
   3. Layout Helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-narrow {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-prose {
  width: 100%;
  max-width: var(--max-prose);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: clamp(4rem, 10vw, 8rem) 0; }
.section-sm { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-lg { padding: clamp(5rem, 12vw, 10rem) 0; }

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: inline-block;
}

/* Horizon line, subtle motif */
.horizon {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--primary);
  opacity: 0.4;
  margin: 1.5rem 0;
}

.horizon-center {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   4. Navigation
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.site-nav.is-scrolled,
.site-nav.is-light {
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27,36,41,0.06);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  font-variation-settings: 'opsz' 80;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--white);
  transition: color var(--transition);
}

.site-nav.is-scrolled .nav-brand,
.site-nav.is-light .nav-brand { color: var(--dark); }

.nav-brand em { color: inherit; font-weight: 300; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.01em;
  transition: color var(--transition-fast), opacity var(--transition-fast);
  opacity: 0.92;
}

.nav-links a:hover { opacity: 1; color: var(--secondary-light); }

.site-nav.is-scrolled .nav-links a,
.site-nav.is-light .nav-links a { color: var(--dark); }

.site-nav.is-scrolled .nav-links a:hover,
.site-nav.is-light .nav-links a:hover { color: var(--primary); }

/* Hamburger button */
.nav-hamburger {
  display: none;
  background: rgba(27,36,41,0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  border-radius: 8px;
  padding: 10px;
  color: var(--white);
  z-index: 201;
  position: relative;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  margin: 4px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--white);
  color: var(--dark);
  border-color: rgba(27,36,41,0.12);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.btn-text {
  background: transparent;
  color: var(--primary);
  padding: 0.5rem 0;
  border-radius: 0;
  border-bottom: 1px solid var(--primary);
}

.btn-text:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

/* Streaming buttons */
.streaming-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 2rem 0;
}

.btn-stream {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--white);
  color: var(--dark);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid rgba(27,36,41,0.1);
  transition: all var(--transition);
}

.btn-stream:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-stream svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-stream.dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.btn-stream.dark:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Per-service brand colors */
.btn-stream-spotify {
  background: #1DB954;
  color: #FFFFFF;
  border-color: #1DB954;
}

.btn-stream-spotify:hover {
  background: #1ED760;
  border-color: #1ED760;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29,185,84,0.28);
}

.btn-stream-apple {
  background: linear-gradient(135deg, #FA233B 0%, #FB5C74 100%);
  color: #FFFFFF;
  border-color: transparent;
}

.btn-stream-apple:hover {
  background: linear-gradient(135deg, #E81E37 0%, #F94C67 100%);
  border-color: transparent;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(250,35,59,0.28);
}

.btn-stream-youtube {
  background: #FF0033;
  color: #FFFFFF;
  border-color: #FF0033;
}

.btn-stream-youtube:hover {
  background: #E6002E;
  border-color: #E6002E;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,0,51,0.28);
}

/* Disabled state: service not yet available */
.btn-stream.is-disabled {
  background: var(--light-1);
  color: var(--medium);
  border-color: rgba(27,36,41,0.06);
  cursor: not-allowed;
  opacity: 0.7;
  position: relative;
}

.btn-stream.is-disabled:hover {
  background: var(--light-1);
  color: var(--medium);
  border-color: rgba(27,36,41,0.06);
  transform: none;
  box-shadow: none;
}

.btn-stream.dark.is-disabled {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.45);
  border-color: rgba(255,255,255,0.1);
}

.btn-stream.dark.is-disabled:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.45);
  border-color: rgba(255,255,255,0.1);
}

.btn-stream-tag {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(31,78,102,0.12);
  color: var(--primary);
  margin-left: 0.25rem;
}

.btn-stream.dark .btn-stream-tag {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
}

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  padding: var(--nav-h) var(--gutter) 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(20, 56, 71, 0.55) 0%,
      rgba(20, 56, 71, 0.35) 40%,
      rgba(20, 56, 71, 0.7) 100%);
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary-light);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 0 0 1.5rem;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--secondary-light);
}

.hero-tagline {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.hero-date {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary-light);
  margin-top: 3rem;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll-line {
  width: 1px;
  height: 32px;
  background: currentColor;
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.8; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

/* ==========================================================================
   7. Page Hero (non-home pages)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 4rem) var(--gutter) 4rem;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(74,125,148,0.4) 0%, transparent 70%);
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.page-hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary-light);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.page-hero-title {
  font-size: var(--fs-h1);
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 1rem;
}

.page-hero-title em {
  font-style: italic;
  color: var(--secondary-light);
}

.page-hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}

/* ==========================================================================
   8. Story Preview (Home)
   ========================================================================== */
.story-preview {
  background: var(--light-2);
  position: relative;
}

.story-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.story-preview-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.story-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-preview-text h2 {
  font-size: var(--fs-h1);
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.story-preview-text h2 em {
  color: var(--primary);
}

.story-preview-text p {
  font-size: var(--fs-body-lg);
  line-height: 1.65;
  color: var(--medium);
  margin-bottom: 1.25rem;
}

.story-preview-text .first-letter {
  font-family: var(--font-display);
  font-size: 3.5em;
  font-weight: 300;
  line-height: 0.9;
  float: left;
  padding: 0.05em 0.12em 0 0;
  color: var(--primary);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

/* ==========================================================================
   9. Album Preview (Home)
   ========================================================================== */
.album-preview {
  background: var(--primary-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.album-preview::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(224,123,92,0.18) 0%, transparent 60%);
  z-index: 0;
}

.album-preview > .container { position: relative; z-index: 1; }

.album-preview-header {
  text-align: center;
  margin-bottom: 4rem;
}

.album-preview-header .eyebrow { color: var(--secondary-light); }

.album-preview-header h2 {
  color: var(--white);
  font-size: var(--fs-h1);
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.album-preview-header h2 em { color: var(--secondary-light); }

.album-preview-header p {
  font-size: var(--fs-body-lg);
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin: 0 auto;
}

/* Track list */
.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  max-width: 900px;
  margin: 0 auto;
}

.track {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 1.5rem;
  background: var(--primary-dark);
  transition: background var(--transition);
  color: var(--white);
}

.track:hover { background: var(--primary); }

.track-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  color: var(--secondary-light);
  line-height: 1;
  opacity: 0.7;
}

.track-info h3 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 400;
  font-variation-settings: 'opsz' 80;
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.track-info p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.track-arrow {
  color: var(--secondary-light);
  font-size: 1.5rem;
  transition: transform var(--transition);
}

.track:hover .track-arrow { transform: translateX(6px); }

/* Streaming row for album */
.album-streaming {
  text-align: center;
  margin-top: 3rem;
}

.album-streaming p {
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   10. Wedding Info (Home)
   ========================================================================== */
.wedding-info {
  background: var(--light-1);
  text-align: center;
  position: relative;
}

.wedding-info-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.wedding-info-date {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--dark);
  margin: 0 0 1.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.wedding-info-names {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  font-variation-settings: 'opsz' 80;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin: 0;
}

.wedding-info-location {
  margin-top: 2rem;
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--medium);
}

/* ==========================================================================
   11. Story Page
   ========================================================================== */
.story-page {
  background: var(--off-white);
}

.story-intro {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
  max-width: var(--max-prose);
  margin: 0 auto;
}

.story-intro p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  color: var(--primary);
  margin: 0;
}

.story-body {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.story-body p {
  font-size: var(--fs-body-lg);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.story-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.5em;
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  line-height: 0.9;
  float: left;
  padding: 0.06em 0.1em 0 0;
  color: var(--primary);
}

.story-body p.pull {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.35;
  color: var(--primary);
  text-align: center;
  margin: 2.5rem auto;
  max-width: 540px;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(31,78,102,0.15);
  border-bottom: 1px solid rgba(31,78,102,0.15);
}

.story-body figure {
  margin: 3rem 0;
}

.story-body figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.story-body figcaption {
  font-size: 0.875rem;
  color: var(--medium);
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
  letter-spacing: 0.01em;
}

.story-end {
  text-align: center;
  padding: 4rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(27,36,41,0.08);
}

.story-end p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

/* ==========================================================================
   12. Album Page
   ========================================================================== */
.album-page-header {
  text-align: center;
  padding: 0 var(--gutter);
  max-width: 680px;
  margin: 0 auto 4rem;
}

.album-page-header p {
  font-size: var(--fs-body-lg);
  color: var(--medium);
  line-height: 1.65;
}

.album-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.album-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(27,36,41,0.04);
}

.album-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(31,78,102,0.15);
}

.album-card-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--primary);
  line-height: 1;
}

.album-card-title {
  font-size: 1.5rem;
  font-weight: 400;
  font-variation-settings: 'opsz' 80;
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.album-card-subtitle {
  font-size: 0.9375rem;
  color: var(--medium);
  margin: 0;
}

.album-card-arrow {
  color: var(--primary);
  font-size: 1.5rem;
  transition: transform var(--transition);
}

.album-card:hover .album-card-arrow { transform: translateX(6px); }

/* Album hero streaming */
.album-streaming-hero {
  text-align: center;
  margin: 3rem 0 0;
}

/* ==========================================================================
   13. Individual Song Page
   ========================================================================== */
.song-page {
  background: var(--off-white);
}

.song-hero {
  position: relative;
  min-height: 60vh;
  min-height: 60svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 4rem) var(--gutter) 3.5rem;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.song-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at bottom right, rgba(224,123,92,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at top left, rgba(74,125,148,0.4) 0%, transparent 60%);
  z-index: 0;
}

.song-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
}

.song-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.song-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.song-hero-track {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary-light);
  margin-bottom: 1rem;
  font-weight: 500;
}

.song-hero-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 0 0 1.5rem;
}

.song-hero-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.45;
  color: rgba(255,255,255,0.9);
  max-width: 640px;
  margin: 0 0 2rem;
}

.song-streaming {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Song body */
.song-body {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.song-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.song-lyrics {
  background: var(--white);
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.song-lyrics-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(27,36,41,0.08);
}

.song-lyrics-header h2 {
  font-size: 1.5rem;
  font-weight: 400;
  font-variation-settings: 'opsz' 80;
  margin: 0;
}

.lyric-section {
  margin-bottom: 1.75rem;
}

.lyric-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: block;
}

.lyric-text {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--dark);
  white-space: pre-line;
}

.song-context {
  padding-top: 1rem;
}

.song-context h3 {
  font-size: 1.25rem;
  font-weight: 400;
  font-variation-settings: 'opsz' 80;
  margin-bottom: 1rem;
}

.song-context p {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--medium);
}

.song-context-image {
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.song-context-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-pull {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--primary);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(31,78,102,0.15);
  border-bottom: 1px solid rgba(31,78,102,0.15);
  margin: 2rem 0;
}

/* Song nav (prev/next) */
.song-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem var(--gutter) 5rem;
  max-width: 1080px;
  margin: 0 auto;
  gap: 1rem;
  flex-wrap: wrap;
}

.song-nav a {
  font-size: 0.9375rem;
  color: var(--primary);
  font-weight: 500;
  transition: color var(--transition);
}

.song-nav a:hover { color: var(--accent-deep); }

/* Placeholder lyrics state */
.lyrics-placeholder {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--light-1);
  border-radius: var(--radius);
  color: var(--medium);
}

.lyrics-placeholder p {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin: 0;
}

/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-variation-settings: 'opsz' 80;
  color: var(--white);
  margin-bottom: 1rem;
  display: block;
}

.footer-brand em { color: var(--secondary-light); font-weight: 300; }

.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary-light);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li { margin-bottom: 0.625rem; }

.footer-list a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-list a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

.footer-bottom a { color: var(--secondary-light); }
.footer-bottom a:hover { color: var(--white); }

/* ==========================================================================
   15. Responsive (Mobile First Adjustments)
   ========================================================================== */

/* Tablet up */
@media (min-width: 768px) {
  .story-preview-grid {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }

  .album-grid {
    gap: 1.25rem;
  }

  .song-body-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
  }
}

/* Desktop up */
@media (min-width: 1024px) {
  :root {
    --nav-h: 120px;
  }

  .hero { padding-bottom: 6rem; }
}

/* Mobile-specific overrides */
@media (max-width: 767px) {
  :root {
    --nav-h: 80px;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--primary-dark);
    z-index: 200;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--white) !important;
    font-weight: 300;
    font-variation-settings: 'opsz' 80;
  }

  .nav-hamburger { display: block; }

  .hero { min-height: 100vh; min-height: 100svh; }

  .hero-cta-row { flex-direction: column; align-items: center; }
  .hero-cta-row .btn { width: 100%; max-width: 280px; }

  .track {
    grid-template-columns: 40px 1fr;
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .track-arrow { display: none; }

  .track-number { font-size: 1.5rem; }
  .track-info h3 { font-size: 1.25rem; }

  .album-card {
    grid-template-columns: 48px 1fr;
    padding: 1.5rem;
    gap: 1rem;
  }

  .album-card-arrow { display: none; }
  .album-card-number { font-size: 2rem; }
  .album-card-title { font-size: 1.25rem; }

  .song-hero { min-height: 50vh; min-height: 50svh; }

  .song-streaming { width: 100%; }
  .btn-stream { flex: 1; min-width: 0; justify-content: center; }

  .song-nav { padding: 2rem var(--gutter) 3rem; }
  .song-nav a { font-size: 0.875rem; }

  .hero-scroll { display: none; }
}

/* Small phone */
@media (max-width: 480px) {
  .hero-eyebrow { font-size: 0.75rem; letter-spacing: 0.16em; }
  .hero-tagline { font-size: 1rem; }
  .hero-date { font-size: 1rem; margin-top: 2rem; }

  .story-body p:first-of-type::first-letter {
    font-size: 3.5em;
  }
}

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

/* WordPress admin bar offset */
.admin-bar .site-nav { top: 46px; }
@media (min-width: 783px) {
  .admin-bar .site-nav { top: 32px; }
}

/* ==========================================================================
   The Video page
   ========================================================================== */

.video-stack {
  display: grid;
  gap: clamp(3.5rem, 8vw, 6rem);
  width: min(var(--max-w), 100%);
  margin: 0 auto;
}

.video-block-head {
  max-width: var(--max-content);
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
}

.video-block-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2, 2.25rem);
  line-height: 1.12;
  color: var(--primary-dark);
  margin: 0.6rem 0 0.9rem;
}

.video-block-blurb {
  color: var(--medium);
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  margin: 0;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

.video-player {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--primary-dark);
  -webkit-appearance: none;
  appearance: none;
}

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.video-player::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 56, 71, 0.06) 0%, rgba(20, 56, 71, 0.42) 100%);
  pointer-events: none;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(64px, 8vw, 92px);
  height: clamp(64px, 8vw, 92px);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -50%);
  transition: transform var(--transition), background var(--transition);
}

.video-play svg {
  width: 40%;
  height: 40%;
  margin-left: 8%;
  fill: var(--primary-dark);
}

.video-duration {
  position: absolute;
  right: clamp(0.75rem, 2vw, 1.25rem);
  bottom: clamp(0.75rem, 2vw, 1.25rem);
  z-index: 2;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(27, 36, 41, 0.7);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.video-player:hover .video-poster,
.video-player:focus-visible .video-poster {
  transform: scale(1.035);
}

.video-player:hover .video-play,
.video-player:focus-visible .video-play {
  background: var(--white);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-player:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-outro {
  text-align: center;
}

.video-outro-line {
  font-family: var(--font-display);
  font-size: var(--fs-h3, 1.5rem);
  line-height: 1.4;
  color: var(--primary-dark);
  margin: 0.8rem 0 1.9rem;
}

.video-outro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

@media (max-width: 768px) {
  .video-stack { gap: 3rem; }
  .video-frame { border-radius: var(--radius); }
}

@media (prefers-reduced-motion: reduce) {
  .video-poster,
  .video-play { transition: none; }
  .video-player:hover .video-poster,
  .video-player:focus-visible .video-poster { transform: none; }
}

/* Mobile nav overlay fix -------------------------------------------------
   When the header is in its compact scrolled state the open menu was being
   clipped to the header height, so the links painted over page content.
   Force the overlay to cover the viewport whenever it is open. */
@media (max-width: 767px) {
  .site-nav .nav-links.is-open,
  .site-nav.is-scrolled .nav-links.is-open {
    height: 100vh;
    height: 100svh;
    max-height: 100vh;
    max-height: 100svh;
    overflow-y: auto;
  }
}

/* Quiet film credit on the video page */
.video-credit {
  margin: clamp(2.25rem, 5vw, 3.25rem) auto 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--medium);
}

.video-credit a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 78, 102, 0.28);
  transition: border-color var(--transition-fast);
}

.video-credit a:hover,
.video-credit a:focus-visible {
  border-bottom-color: var(--primary);
}
