:root {
  --ink: #191516;
  --paper: #f6efe4;
  --cream: #fff8ec;
  --red: #a51e2d;
  --blue: #143d4f;
  --gold: #c39142;
  --green: #315c4d;
  --plum: #57314e;
  --shadow: 0 24px 80px rgba(25, 21, 22, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(195, 145, 66, 0.18), transparent 36rem),
    linear-gradient(180deg, #1c1718 0 34rem, var(--paper) 34rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: #fff9ef;
  background: rgba(20, 17, 18, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 248, 236, 0.18);
}

.mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.45rem);
  text-decoration: none;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  font-size: 0.82rem;
  border: 1px solid transparent;
}

nav a:hover,
nav a.active {
  border-color: rgba(255, 248, 236, 0.45);
  background: rgba(255, 248, 236, 0.08);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  padding: 8rem clamp(1rem, 4vw, 3rem) 2.5rem;
  color: #fff8ec;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 21, 22, 0.85), rgba(25, 21, 22, 0.35), rgba(25, 21, 22, 0.78)),
    linear-gradient(0deg, rgba(25, 21, 22, 0.92), transparent 48%),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Henri%20de%20Toulouse-Lautrec%20-%20At%20the%20Moulin%20Rouge%20-%20Google%20Art%20Project.jpg") center / cover;
  transform: scale(1.02);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 248, 236, 0.05) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(0deg, rgba(255, 248, 236, 0.035) 0 1px, transparent 1px 74px);
  mix-blend-mode: screen;
}

.hero-copy {
  position: relative;
  max-width: 980px;
}

.kicker,
.section-label {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 1040px;
  margin-bottom: 1.25rem;
  font-size: clamp(3.4rem, 10vw, 9.3rem);
}

h2 {
  font-size: clamp(2.1rem, 5vw, 5rem);
}

h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

p {
  line-height: 1.65;
}

.hero-copy p:last-child {
  max-width: 720px;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.hero-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(3rem, 9vh, 7rem);
  background: rgba(255, 248, 236, 0.26);
  box-shadow: var(--shadow);
}

.hero-strip span {
  min-height: 5.8rem;
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(25, 21, 22, 0.78);
  color: #fff8ec;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.panel,
.galleries,
.timeline,
.legacy,
.library,
.sources,
.sound-section {
  padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 4vw, 3rem);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  background: var(--cream);
}

.intro p:last-child,
.sound-section p,
.gallery-card p,
.people p,
.legacy p {
  font-size: 1.03rem;
}

.galleries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  background: #20191b;
  color: #fff8ec;
}

.gallery-card {
  min-height: 34rem;
  display: grid;
  grid-template-rows: minmax(16rem, 1fr) auto;
  overflow: hidden;
  background: #2d2427;
  border: 1px solid rgba(255, 248, 236, 0.16);
}

.gallery-card.large {
  grid-row: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.gallery-card div {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.sound-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(20, 61, 79, 0.94), rgba(87, 49, 78, 0.9)),
    var(--blue);
  color: #fff8ec;
}

.record {
  aspect-ratio: 1;
  max-width: 34rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #c39142 0 8%, #191516 8.5% 12%, transparent 12.5%),
    repeating-radial-gradient(circle, #161112 0 5px, #272022 6px 9px);
  box-shadow: var(--shadow);
}

.record span {
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 236, 0.28);
  background:
    radial-gradient(circle, transparent 0 20%, rgba(255, 248, 236, 0.1) 21% 22%, transparent 23%),
    var(--red);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  background: #fff8ec;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.timeline {
  background: var(--paper);
}

.timeline-heading {
  max-width: 780px;
  margin-bottom: 3rem;
}

.timeline ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(25, 21, 22, 0.16);
}

.timeline li {
  min-height: 22rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fff8ec;
}

time {
  display: inline-block;
  margin-bottom: 2.2rem;
  color: var(--red);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.people {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 6rem);
  background: #e7d8c4;
}

.person-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(25, 21, 22, 0.18);
}

.person-grid article {
  padding: 1.35rem;
  background: rgba(255, 248, 236, 0.76);
}

.legacy {
  background: #151f20;
  color: #fff8ec;
}

.legacy h2 {
  max-width: 760px;
  margin-bottom: 2rem;
}

.legacy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 248, 236, 0.18);
}

.legacy-grid article {
  min-height: 23rem;
  padding: 1.35rem;
  background: rgba(255, 248, 236, 0.055);
}

.legacy-grid span {
  display: block;
  margin-bottom: 5rem;
  color: var(--gold);
  font-weight: 900;
}

.library {
  background:
    linear-gradient(180deg, rgba(246, 239, 228, 0.95), rgba(246, 239, 228, 0.98)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Boulevard%20Montmartre%2C%20Mardi%20Gras%20by%20Camille%20Pissarro%2C%201897.jpg") center / cover fixed;
}

.library-heading {
  max-width: 850px;
  margin-bottom: 2rem;
}

.shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(25, 21, 22, 0.18);
  box-shadow: var(--shadow);
}

.shelf article {
  min-height: 28rem;
  padding: 1.25rem;
  background: rgba(255, 248, 236, 0.92);
}

.shelf a {
  display: block;
  padding: 0.85rem 0;
  color: var(--blue);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  border-top: 1px solid rgba(25, 21, 22, 0.14);
}

.sources {
  background: #fff8ec;
}

.sources div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sources a,
footer a {
  color: var(--blue);
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  background: #191516;
  color: #fff8ec;
}

footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .intro,
  .sound-section,
  .people {
    grid-template-columns: 1fr;
  }

  .hero-strip,
  .timeline ol,
  .legacy-grid,
  .shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .galleries {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  nav a {
    padding: 0.45rem 0.55rem;
  }

  .hero {
    min-height: 100vh;
    padding-top: 10.5rem;
  }

  .hero-strip,
  .timeline ol,
  .person-grid,
  .legacy-grid,
  .shelf {
    grid-template-columns: 1fr;
  }

  .timeline li,
  .legacy-grid article,
  .shelf article {
    min-height: auto;
  }

  .legacy-grid span {
    margin-bottom: 2rem;
  }

  footer {
    flex-direction: column;
  }
}
