@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400&family=GFS+Didot&family=Montserrat:wght@400;700&family=Cardo:ital,wght@0,400;0,700;1,400&family=Alegreya+SC:wght@400&family=Sorts+Mill+Goudy&family=Playfair+Display:ital@1&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: #000;
  color: #fff;
  font-family: 'Cardo', serif;
  min-height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 3rem;
  color: #000;
  transition: color 0.3s ease;
}

.site-header.revealed {
  color: #fff;
  background: #000;
}

/* Pages whose hero is a dark photo need visible (white) header text before reveal, unlike the default black-on-black home hero */
.site-header--light:not(.revealed) {
  color: #fff;
}

.site-name {
  font-family: 'EB Garamond', serif;
  /* CSS says 700, but the real site never actually loads a bold face — only regular (400) —
     so it renders via each browser's own (mild) synthetic-bold fake-out. Relying on synthesis
     is inconsistent across browsers/OSes; requesting 400 directly guarantees the lighter,
     non-synthetic look the reference matches. */
  font-weight: 400;
  font-size: 1.875rem;
  letter-spacing: 0.9px;
  color: inherit;
}

.site-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.site-nav a {
  display: block;
  font-family: 'GFS Didot', serif;
  font-size: 0.75rem;
  line-height: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: inherit;
  padding: 12px 20px;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: #ccc;
}

.site-nav a.active {
  border: 1px solid currentColor;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

footer {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
}

footer .contact-line {
  font-family: 'Sorts Mill Goudy', serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  text-align: right;
  max-width: 1200px;
  margin: 0 auto 0.75rem;
}

footer .contact-line a {
  color: #fff;
}

footer .copyright {
  font-family: 'EB Garamond', serif;
  font-size: 0.75rem;
  line-height: 1.75;
  color: #fff;
}

/* Home page */
.hero-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 271.5px 1.5rem 5rem;
  text-align: center;
}

.hero-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #fff;
}

.hero-links a:hover {
  color: #ccc;
}

.bio {
  display: flex;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.bio img {
  width: 250px;
  filter: grayscale(1);
}

.bio p {
  flex: 1;
  min-width: 280px;
  color: #d5d5d5;
  line-height: 1.8;
  font-size: 1rem;
}

.bio p strong {
  color: #d5d5d5;
}

.bio p a {
  text-decoration: underline;
  font-weight: 700;
  color: #d5d5d5;
}

.bio p a:hover {
  color: #fff;
}

/* Page hero (background image banner) — real site right-aligns this title as stacked all-caps lines */
.page-hero {
  background-size: cover;
  background-position: center;
  height: clamp(320px, 52vw, 756px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 3rem;
}

.page-hero h1 {
  font-family: 'Alegreya SC', serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 6.25rem);
  letter-spacing: 5px;
  text-align: right;
  color: #d5d5d5;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  line-height: 1.15;
}

/* Play page title-card hero (image has the crisp title baked in; this h1 overlays a larger echo of it).
   Real site keeps this section a fixed 482px tall and crops the image with background-size:cover —
   letting height scale with the image's own aspect ratio made ours grow ~200px too tall. */
.play-hero {
  width: 100%;
  background-image: url('images/khalid-hero.png');
  background-size: cover;
  background-position: center;
  background-color: #f4f3f1;
  aspect-ratio: 1898 / 904;
  max-height: 482px;
  display: flex;
  justify-content: center;
  /* padding-top targets a fixed 192.5px once the section is capped at 482px tall (confirmed
     identical on the real site at both 1536px and 2016px width — it's a constant, not scaled).
     Expressed as % of width (how CSS padding-top actually resolves) that's 19% while height
     still scales with width below the cap, so the title stays correctly placed at every width. */
  padding-top: clamp(0px, 19%, 192.5px);
  padding-left: 5%;
  padding-right: 5%;
}

.play-hero h1 {
  font-family: 'Alegreya SC', serif;
  font-weight: 400;
  /* Must hit its 3rem (48px) cap at the same ~1013px width where the section's padding-top
     above caps out — otherwise there's a range where padding is already final but the
     line-height gap (which depends on font-size) hasn't caught up, and the second line
     collides with the hero image's baked-in "A true story" text. */
  font-size: clamp(1.5rem, 4.74vw, 3rem);
  letter-spacing: 5px;
  text-transform: uppercase;
  text-align: center;
  color: #e8e6e6;
  line-height: 1.15;
  max-width: min(90%, 1120px);
}

.scroll-marker {
  height: 7rem;
}

/* Body content: outer container matches the page's 1200px frame, but a single
   paragraph reads at a narrower, more comfortable line length within it */
main {
  max-width: 1150px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

main > p,
main > blockquote,
main > .attribution {
  max-width: 620px;
}

/* Play page: quote sits beside the opening paragraphs in two columns, not stacked */
.hero-quote-row {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-quote-row > .quote-col,
.hero-quote-row > .text-col,
.hero-quote-row > .video-col {
  flex: 1 1 480px;
}

.hero-quote-row blockquote {
  margin-top: 0;
}

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

main h2 {
  font-family: 'Alegreya SC', serif;
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  color: #fff;
}

main p {
  color: #d5d5d5;
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

main blockquote {
  background: #222;
  border-left: 4px solid #ddd;
  padding: 2.25rem 2.5rem 2.25rem 1.5rem;
  margin: 2rem 0 0.75rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.25rem, 4vw, 2.375rem);
  line-height: 1.55;
  color: #d5d5d5;
}

.attribution {
  font-family: 'Cardo', serif;
  font-style: italic;
  font-size: 1rem;
  color: #fff;
  text-align: right;
  margin-bottom: 2rem;
}

.credit {
  font-style: italic;
  color: #fff;
}

.track {
  margin-bottom: 2rem;
}

.track h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #fff;
}

.track audio {
  width: 100%;
}

/* Classical page: real site uses a plain white section here, not the dark theme */
.light-section {
  background: #fff;
}

.classical-main {
  max-width: 1150px;
  margin: 0 auto;
  padding: 9rem 1.5rem 4rem;
}

.classical-main .intro {
  font-family: 'Cardo', serif;
  font-style: italic;
  font-size: 1.125rem;
  color: #626262;
  text-align: center;
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: 2rem 235px;
}

.album img {
  width: auto;
  max-width: 343px;
  height: auto;
}

.album .track {
  margin-top: 1rem;
  margin-bottom: 0;
}

.album .track h3 {
  color: #222;
}

@media (max-width: 700px) {
  .site-header {
    padding: 1.25rem 1.5rem;
  }
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 1.5rem;
    left: 1.5rem;
    width: auto;
    flex-direction: column;
    gap: 0;
    background: #000;
    border: 1px solid #333;
    padding: 0.5rem 0;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    color: #fff;
    padding: 0.75rem 1.25rem;
  }
  .site-nav a.active {
    border: none;
    background: #222;
  }
}

@media (max-width: 640px) {
  .hero-links {
    gap: 1.5rem;
    padding: 8rem 1.5rem 3.5rem;
  }
  .hero-links a {
    font-size: 2.2rem;
  }
  .page-hero h1 {
    font-size: 2.8rem;
  }
  .scroll-marker {
    height: 6rem;
  }
  footer .contact-line {
    text-align: center;
  }
  .album-grid {
    grid-template-columns: 1fr;
  }
  .play-hero {
    padding-top: 16%;
  }
}
