/* ══════════════════════════════════════════════
   Edessa Records — Stylesheet
   ══════════════════════════════════════════════ */

/* ── COLOR PALETTE ("Terracotta & Earth") ── */
:root {
  --burnt-sienna: #B5563E;
  --cognac: #C4956A;
  --sand: #D4B896;
  --cream: #F5F0EB;
  --espresso: #2C2420;
  --olive: #6B7F5E;
}

/* ── RESET & BASE ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--cognac) var(--cream);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--espresso);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── FILM GRAIN OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: multiply;
  animation: grainDrift 6s steps(6) infinite;
}

@keyframes grainDrift {
  0%   { transform: translate(0, 0); }
  16%  { transform: translate(-3px, 2px); }
  33%  { transform: translate(2px, -2px); }
  50%  { transform: translate(-1px, 3px); }
  66%  { transform: translate(3px, -1px); }
  83%  { transform: translate(-2px, -3px); }
  100% { transform: translate(0, 0); }
}

/* ── FOCUS STYLES ── */
:focus-visible {
  outline: 2px solid var(--burnt-sienna);
  outline-offset: 3px;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

nav.scrolled {
  background: rgba(245, 240, 235, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-wordmark {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--espresso);
  text-decoration: none;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--espresso);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  cursor: pointer;
  position: relative;
}

/* Animated sliding underline */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--burnt-sienna);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* ── HAMBURGER MENU BUTTON ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--espresso);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

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

/* ── PAGES ── */
.page {
  display: none;
  min-height: 100vh;
}

.page.active {
  display: block;
  animation: pageFadeIn 0.5s ease both;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   HOME PAGE — Full-bleed release grid
   ══════════════════════════════════════════════ */

/* Compact hero — label + location */
.home-hero {
  text-align: center;
  padding: 120px 32px 0;        /* top clears the fixed nav */
  max-width: 1200px;
  margin: 0 auto;
}

.home-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: 0.08em;
  color: var(--espresso);
}

.home-hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cognac);
  margin-top: 12px;
  opacity: 0.7;
}

/* Gallery-style grid with breathing room.
   On desktop: 3 columns with gaps and padding.
   On tablet: 2 columns.
   On mobile: stacked single column. */
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;                    /* gutters between cards */
  max-width: 1200px;            /* don't stretch on ultra-wide */
  margin: 0 auto;               /* center the grid */
  padding: 40px 32px 48px;      /* hero handles top spacing */
}

.home-card {
  cursor: pointer;
}

/* Image container — holds the thumbnail */
.home-card-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 9;        /* horizontal landscape, matches YouTube thumbnails */
}

/* Thumbnail image — fills the image container, full color */
.home-card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.5s ease;
}

.home-card:hover .home-card-bg {
  transform: scale(1.03);
}

/* Subtle lift shadow on hover for premium pop */
.home-card-image {
  transition: box-shadow 0.5s ease;
}

.home-card:hover .home-card-image {
  box-shadow: 0 8px 30px rgba(44, 36, 32, 0.18);
}

/* Title & artist sit below the image, centered */
.home-card-info {
  padding: 14px 4px 0;
  text-align: center;
}

.home-card-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--espresso);
}

.home-card-artist {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 15px;
  color: var(--cognac);
  margin-top: 4px;
}

/* ══════════════════════════════════════════════
   RELEASE PAGE — Individual track view
   ══════════════════════════════════════════════ */
.release-page {
  padding-top: 100px;
  padding-bottom: 0;
}

/* Back link to return to grid */
.release-back {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--espresso);
  opacity: 0.5;
  text-decoration: none;
  cursor: pointer;
  padding: 0 40px;
  margin-bottom: 32px;
  transition: opacity 0.3s ease;
}

.release-back:hover {
  opacity: 1;
}

/* Video embed on release page — wider, centered */
.release-video {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Responsive iframe embed container */
.video-embed {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--espresso);
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* Release header: track number, title, artist */
.release-header {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 40px 0;
}

.release-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: 0.06em;
  color: var(--espresso);
  margin-top: 8px;
}

.release-artist {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 18px;
  color: var(--cognac);
  margin-top: 6px;
}

/* Release content sections (lyrics, photos) */
.release-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 40px;
  margin-top: 56px;
}

.release-section-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burnt-sienna);
  margin-bottom: 24px;
}

.release-section-label.olive {
  color: var(--olive);
}

/* Lyrics — clean, minimal, each line readable */
.release-lyrics {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.9;
  color: var(--espresso);
  opacity: 0.85;
}

.release-lyrics p {
  margin-bottom: 28px;
}

.lyrics-placeholder,
.gallery-placeholder {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--olive);
  opacity: 0.5;
  font-style: italic;
}

/* Gallery section — wider than lyrics, matches video width */
.release-gallery-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
  margin-top: 56px;
}

.release-gallery-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 24px;
}

/* Photo gallery — mosaic collage layout */
.release-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.release-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  grid-column: span 2;           /* default: 3 photos per row */
}

/* Wide photos span half the grid */
.release-gallery img.wide {
  grid-column: span 3;
}

/* Full-width photo spans entire row */
.release-gallery img.full {
  grid-column: span 6;
}

/* ══════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════ */
.about-page {
  padding-top: 160px;
  padding-bottom: 80px;
}

.about-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 40px;
}

.about-header {
  margin-bottom: 80px;
}

.about-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 0.06em;
  color: var(--espresso);
}

.about-header .tagline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 19px;
  color: var(--olive);
  margin-top: 10px;
  opacity: 0.8;
}

.about-section {
  margin-bottom: 48px;
}

.about-section-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burnt-sienna);
  margin-bottom: 16px;
}

.about-section-label.olive {
  color: var(--olive);
}

.about-section p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.75;
  color: var(--espresso);
  opacity: 0.85;
}

.about-section p + p {
  margin-top: 20px;
}

/* Ornamental monogram divider */
.ornamental-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 64px;
}

.ornamental-divider::before,
.ornamental-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sand), transparent);
  opacity: 0.4;
}

.ornamental-divider .monogram {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--cognac);
  opacity: 0.4;
  text-transform: uppercase;
}

.about-contact {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(212, 184, 150, 0.35);
}

.about-contact a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--burnt-sienna);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.about-contact a:hover {
  border-bottom-color: var(--burnt-sienna);
}

/* ── FOOTER ── */
.site-footer {
  text-align: center;
  padding: 60px 40px;
  border-top: 1px solid rgba(212, 184, 150, 0.25);
}

.footer-mark {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--espresso);
  opacity: 0.35;
}

/* ── SCROLL REVEALS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.22, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.22, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 860px) {
  .home-hero {
    padding: 100px 24px 0;
  }

  .home-grid {
    grid-template-columns: repeat(2, 1fr);   /* 2 cols on tablet */
    padding: 32px 24px 40px;
  }

  .release-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .release-gallery img {
    grid-column: span 1;
  }

  .release-gallery img.wide,
  .release-gallery img.full {
    grid-column: span 2;
  }

  .release-gallery-section {
    padding: 0 24px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  nav {
    padding: 16px 24px;
  }

  .about-container {
    padding: 0 24px;
  }

  .release-back {
    padding: 0 24px;
  }

  .release-video {
    padding: 0 24px;
  }

  .release-header {
    padding: 48px 24px 0;
  }

  .release-section {
    padding: 0 24px;
  }

  /* Show hamburger, hide desktop nav links */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: var(--cream);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 99;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 18px;
    letter-spacing: 0.2em;
    opacity: 0.7;
  }

  .nav-links a.active {
    opacity: 1;
  }

  .home-hero {
    padding: 80px 16px 0;
  }

  .home-hero-title {
    font-size: 28px;
  }

  .home-hero-sub {
    font-size: 11px;
    margin-top: 8px;
  }

  .home-grid {
    grid-template-columns: 1fr;               /* single column on mobile */
    padding: 24px 16px 32px;
    gap: 24px;
  }

  .home-card-image {
    aspect-ratio: 16 / 9;                     /* keep horizontal on mobile */
  }

  .about-page {
    padding-top: 120px;
  }

  .release-page {
    padding-top: 80px;
  }

  .release-header {
    padding: 32px 24px 0;
  }

  .release-section {
    margin-top: 40px;
  }

  .release-gallery-section {
    padding: 0 24px;              /* match .release-video mobile padding */
    margin-top: 40px;
  }
}
