:root {
  --paper: #ece7e0;
  --paper-deep: #d8cec4;
  --ink: #161412;
  --muted: rgba(22, 20, 18, 0.68);
  --line: rgba(22, 20, 18, 0.12);
  --sand: #c9ae96;
  --stone: #b89d88;
  --rose: #c08d8a;
  --rose-bright: #d97b76;
  --moss: #6f8d4c;
  --plum: #5c3646;
  --gold: #b6844f;
  --shadow: 0 18px 60px rgba(20, 15, 12, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.5), transparent 35%),
    linear-gradient(180deg, #efe9e3 0%, #e7e0d7 100%);
  color: var(--ink);
  font-family:
    "Avenir Next",
    "Helvetica Neue",
    "Segoe UI",
    sans-serif;
}

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

.site-header,
.site-footer {
  position: fixed;
  left: 0;
  width: 100%;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 28px;
}

.site-header {
  top: 0;
  color: #ffffff;
  background: transparent;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
  transition:
    color 180ms ease,
    text-shadow 180ms ease,
    background-color 180ms ease;
}

.site-footer {
  bottom: 0;
  grid-template-columns: 1fr;
  justify-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.site-footer.footer-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.site-header.header-on-light {
  color: var(--ink);
  background: #efe9e3;
  text-shadow: none;
}

.nav,
.footer-links {
  display: flex;
  gap: 20px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
}

.nav-right,
.footer-links {
  justify-content: flex-end;
}

.site-footer .footer-links {
  justify-content: center;
}

.brand {
  justify-self: center;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    serif;
  font-size: clamp(1.7rem, 2.4vw, 2.6rem);
  letter-spacing: 0.04em;
}

main {
  padding-bottom: 80px;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 92px 24px 48px;
  display: grid;
  align-items: end;
}

.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-image {
  background-image:
    linear-gradient(180deg, rgba(118, 95, 88, 0.12), rgba(255, 255, 255, 0.1)),
    url("./museum-hero.jpg");
  background-repeat: no-repeat;
  background-position: center 22%;
  background-size: cover;
  filter: brightness(1.34) saturate(0.72) contrast(0.84);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 22%, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 0 36px 4px;
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    serif;
  font-weight: 500;
  line-height: 1.02;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 7vw, 6.2rem);
}

.intro-card p,
.gallery-copy p,
.about-copy {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.gallery-section,
.about-section {
  padding-inline: 24px;
  scroll-margin-top: 108px;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.gallery-section {
  margin-top: 88px;
}

.section-heading h2 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  max-width: 10ch;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  border: 1px solid var(--line);
  background: rgba(255, 250, 245, 0.44);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-card-standard {
  grid-column: span 4;
}

.gallery-card-wide {
  grid-column: span 5;
}

.gallery-card-tall {
  grid-column: span 3;
}

.gallery-image {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  background: var(--paper);
}

.gallery-card-tall .gallery-image {
  height: 540px;
}

.gallery-card-wide .gallery-image {
  height: 460px;
}

.gallery-copy {
  padding: 18px 18px 22px;
}

.gallery-copy h3 {
  margin: 0 0 8px;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    serif;
  font-size: 1.9rem;
  font-weight: 500;
}

.gallery-copy p,
.about-copy {
  margin: 0;
}

.about-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: end;
  margin-top: 88px;
  padding-bottom: 120px;
}

.about-section .section-heading h2 {
  line-height: 1.03;
}

.about-body {
  display: grid;
  gap: 18px;
}

.about-copy {
  max-width: 42ch;
}

@media (max-width: 980px) {
  .site-header,
  .site-footer {
    padding-inline: 18px;
  }

  .gallery-grid,
  .about-section,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card-standard,
  .gallery-card-wide,
  .gallery-card-tall {
    grid-column: auto;
  }

  .about-section {
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: center;
    text-align: center;
    padding-block: 16px;
    mix-blend-mode: normal;
  }

  .site-header {
    gap: 0;
  }

  .site-header .nav {
    display: none;
  }

  .nav,
  .nav-right,
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 108px;
  }

  .hero-copy {
    padding-bottom: 12px;
  }

  .hero h1 {
    max-width: 9ch;
    font-size: clamp(2.8rem, 13vw, 4.6rem);
  }

  .gallery-image,
  .gallery-card-tall .gallery-image,
  .gallery-card-wide .gallery-image {
    height: 320px;
  }

  .section-heading h2 {
    max-width: none;
    font-size: clamp(2.2rem, 9vw, 3.4rem);
  }

  .about-section {
    padding-bottom: 160px;
  }

  .gallery-section,
  .about-section {
    scroll-margin-top: 88px;
  }
}
