:root {
  --ink: #f4eee4;
  --muted: #bdb2a5;
  --paper: #171310;
  --panel: #211b17;
  --line: rgba(244, 238, 228, 0.16);
  --gold: #d9a662;
  --brick: #8c4933;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 2rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
}
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a { text-decoration: none; color: rgba(255,255,255,.78); }
.site-header nav a:hover, .site-header nav a:focus-visible { color: white; }

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(22rem, .9fr);
  background: #0f0c0a;
}
.hero-image-wrap { min-height: 40rem; overflow: hidden; }
.hero-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 8rem clamp(2rem, 7vw, 7rem) 5rem;
  background:
    radial-gradient(circle at 10% 20%, rgba(140,73,51,.28), transparent 42%),
    #16110e;
}
.eyebrow {
  margin: 0 0 .7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.05; }
h1 { max-width: 7ch; margin-bottom: 1.4rem; font-size: clamp(3.6rem, 8vw, 7.4rem); }
.hero-copy > p:not(.eyebrow) { max-width: 28rem; color: #d2c8bd; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-top: 1rem;
  padding: .6rem 1.2rem;
  border: 1px solid var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
}
.primary-link:hover, .primary-link:focus-visible { color: #16110e; background: var(--gold); }
.hero-copy .ai-note {
  max-width: 31rem;
  margin: 2.4rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}
.ai-note strong { color: var(--ink); font-weight: 600; }
.hero-copy .hero-contact {
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: .92rem;
}
.hero-contact a, .creator-note a {
  color: var(--ink);
  text-decoration-color: var(--gold);
  text-underline-offset: .22em;
}
.hero-contact a:hover, .hero-contact a:focus-visible,
.creator-note a:hover, .creator-note a:focus-visible { color: var(--gold); }

.section-shell { max-width: var(--max); margin: 0 auto; padding: clamp(5rem, 9vw, 8rem) 2rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2.8rem, 6vw, 5.4rem); }
.quiet { margin: 0; color: var(--muted); }

.film-section video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #070606;
  border: 1px solid var(--line);
}
.film-heading { margin-bottom: 1.5rem; }
.text-button {
  min-height: 2.75rem;
  padding: .4rem 0;
  border: 0;
  border-bottom: 1px solid var(--gold);
  background: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
}

.songs-section { padding-top: 3rem; }
.collection {
  display: grid;
  grid-template-columns: minmax(12rem, .38fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}
.collection-heading h3 { margin-bottom: .6rem; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.collection-heading p { color: var(--muted); }
.song-list { border-top: 1px solid var(--line); }
.song-row {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 4.7rem;
  padding: .7rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}
.song-row:hover, .song-row:focus-visible { color: var(--gold); }
.song-row:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.song-row.is-playing { color: var(--gold); }
.play-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.play-mark::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: .12rem;
  border-top: .3rem solid transparent;
  border-bottom: .3rem solid transparent;
  border-left: .48rem solid currentColor;
}
.is-playing .play-mark::before {
  width: .5rem;
  height: .6rem;
  margin: 0;
  border: 0;
  border-left: .17rem solid currentColor;
  border-right: .17rem solid currentColor;
}
.song-state { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.musical-collection { border-bottom: 1px solid var(--line); }

.musical-section {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 6rem 2rem;
  text-align: center;
  background:
    linear-gradient(rgba(24,14,10,.77), rgba(24,14,10,.9)),
    url("./assets/images/after-thoughts.png") center 52% / cover no-repeat;
  background-attachment: fixed;
}
.musical-inner { max-width: 53rem; }
.musical-section h2 { margin-bottom: 1.4rem; font-size: clamp(3.3rem, 8vw, 7rem); }
.thesis { margin: 0 auto 2rem; max-width: 30ch; color: #fff1da; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.musical-copy { max-width: 48rem; margin: 0 auto; color: #d4c9bc; font-size: 1.1rem; }

.process-section { max-width: 52rem; margin-left: max(0px, calc((100vw - var(--max)) / 2)); }
.process-section h2 { margin-bottom: 1.3rem; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.process-section > p { color: #cfc4b7; font-size: 1.1rem; }
.creator-note {
  margin-top: 3.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.creator-note h3 { margin-bottom: 1rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.creator-note p { color: #cfc4b7; font-size: 1.1rem; }
.creator-note p:last-child { margin-bottom: 0; }

footer {
  max-width: var(--max);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
footer span:last-child { text-align: right; }

.player {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), 48rem);
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(28,22,18,.96);
  box-shadow: 0 1.2rem 4rem rgba(0,0,0,.4);
  backdrop-filter: blur(12px);
}
.player[hidden] { display: none; }
.player-toggle {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.player-icon {
  width: .62rem;
  height: .8rem;
  border-left: .18rem solid currentColor;
  border-right: .18rem solid currentColor;
}
.player.is-paused .player-icon {
  width: 0;
  height: 0;
  margin-left: .15rem;
  border: 0;
  border-top: .35rem solid transparent;
  border-bottom: .35rem solid transparent;
  border-left: .55rem solid currentColor;
}
.player-info { min-width: 0; }
.player-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.progress-wrap { display: grid; grid-template-columns: 1fr 3.2rem; gap: .7rem; align-items: center; color: var(--muted); font-size: .75rem; }
#progress { width: 100%; accent-color: var(--gold); }
.player-close { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 800px) {
  .site-header { position: relative; padding: 1.1rem 1.25rem; background: #0f0c0a; }
  .site-header nav { gap: 1rem; }
  .site-header nav a:last-child { display: none; }
  .hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-image-wrap { min-height: 0; aspect-ratio: 1 / 1; }
  .hero-copy { padding: 4rem 1.5rem 5rem; }
  h1 { font-size: clamp(3.2rem, 16vw, 5.4rem); }
  .section-shell { padding-left: 1.25rem; padding-right: 1.25rem; }
  .collection { grid-template-columns: 1fr; gap: 1rem; padding: 2.5rem 0; }
  .collection-heading p { margin-bottom: 0; }
  .musical-section { min-height: 65vh; background-attachment: scroll; }
  .player { bottom: .6rem; width: calc(100% - 1rem); grid-template-columns: 2.8rem 1fr; }
  .player-close { display: none; }
  footer { flex-direction: column; gap: .5rem; }
  footer span:last-child { text-align: left; }
}

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

.copy-email {
  margin-inline-start: .35em;
  padding: .25em .55em;
  border: 1px solid var(--gold);
  border-radius: .25em;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.copy-email:hover { color: var(--gold); }
.copy-email-status { font-size: .9em; }
