@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:opsz,ital,wght@8..60,0,400;8..60,0,600;8..60,0,700;8..60,1,400&display=swap");

:root {
  --paper: #f3eee4;
  --paper-deep: #e8e0d2;
  --ink: #1b1916;
  --muted: #5e5850;
  --line: #d5cdc0;
  --teal: #007472;
  --teal-deep: #005754;
  --cream: #fbf8f2;
  --white: #fffcf7;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  --wide: 1280px;
  --radius: 2px;
  --header: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--white);
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.wrap-wide {
  width: min(var(--wide), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  width: 220px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--teal);
}

.hero {
  padding: 12px 0 72px;
}

.hero-figure {
  position: relative;
  overflow: hidden;
  background: #2a3338;
}

.hero-figure img {
  width: 100%;
  height: min(72vh, 760px);
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05);
}

.hero-caption {
  position: absolute;
  left: 28px;
  bottom: 22px;
  margin: 0;
  color: #f4efe6;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-copy {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
  padding-top: 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
.serif {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.08;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.section {
  padding: 88px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.mission {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mission-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
}

.mission p {
  margin: 0 0 18px;
  color: var(--muted);
}

.points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: point;
}

.points li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
}

.points li::before {
  counter-increment: point;
  content: counter(point, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  background: var(--cream);
}

.card:hover {
  color: inherit;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 26px;
  flex: 1;
}

.card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.card .more {
  margin-top: auto;
  padding-top: 12px;
  color: var(--teal-deep);
  font-size: 14px;
  font-weight: 600;
}

.card:hover .more {
  text-decoration: underline;
}

.exhibitions-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}

.exhibit {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  color: var(--white);
  text-decoration: none;
}

.exhibit:hover {
  color: var(--white);
}

.exhibit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
  filter: brightness(0.72) saturate(0.9);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.exhibit:hover img {
  transform: scale(1.04);
  filter: brightness(0.62) saturate(1);
}

.exhibit:first-child {
  grid-row: 1 / span 2;
  min-height: 520px;
}

.exhibit-meta {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  background: linear-gradient(transparent, rgba(18, 16, 13, 0.78));
}

.exhibit-meta span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.exhibit-meta strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
}

.press-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.press-list li {
  border-top: 1px solid var(--line);
}

.press-list a {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  color: inherit;
  text-decoration: none;
}

.press-list a:hover h3 {
  color: var(--teal);
}

.press-source {
  color: var(--muted);
  font-size: 14px;
}

.press-list h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}

.press-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.press-link {
  align-self: center;
  color: var(--teal-deep);
  font-size: 14px;
  font-weight: 600;
}

.partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.partners img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  padding: 18px;
  background: var(--white);
  filter: grayscale(1);
  opacity: 0.86;
}

.partners img:hover {
  filter: none;
  opacity: 1;
}

.page-intro {
  padding: 36px 0 28px;
}

.page-intro h1 {
  max-width: 16ch;
}

.page-intro .lead {
  max-width: 42em;
  margin-top: 18px;
}

.cover {
  margin: 0 0 56px;
}

.cover img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.prose {
  max-width: 44em;
}

.prose h2 {
  margin: 1.6em 0 0.5em;
  font-size: 32px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose p {
  margin: 0 0 1em;
}

.prose .btn {
  margin: 8px 12px 8px 0;
}

.poem {
  margin: 32px 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
}

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin: 36px 0 48px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}

.person {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  padding: 28px;
  background: var(--cream);
}

.person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.person h2 {
  margin: 0 0 6px;
  font-size: 34px;
}

.person .role {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-grid h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.contact-grid p,
.contact-grid a {
  margin: 0 0 8px;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.timeline time {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer {
  padding: 48px 0 28px;
  background: #1d2e3f;
  color: #f4efe6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer a {
  color: #f4efe6;
}

.site-footer p,
.site-footer a {
  margin: 0 0 8px;
  font-size: 15px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 239, 230, 0.18);
  color: rgba(244, 239, 230, 0.72);
  font-size: 13px;
}

.cookies {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 12;
  display: none;
  max-width: 360px;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.cookies.is-open {
  display: block;
}

.cookies p {
  margin: 0 0 12px;
  font-size: 14px;
}

.cookies button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  background: var(--teal);
  color: white;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: var(--header) 0 auto;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .hero-copy,
  .mission-grid,
  .cards,
  .points,
  .press-list a,
  .partners,
  .person,
  .contact-grid,
  .footer-grid,
  .timeline li,
  .gallery,
  .exhibitions-grid,
  .section-head {
    grid-template-columns: 1fr;
  }

  .exhibit:first-child {
    grid-row: auto;
    min-height: 280px;
  }

  .press-link {
    display: none;
  }

  .footer-bottom,
  .hero-copy,
  .mission-grid {
    display: flex;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .exhibit img {
    transition: none;
  }
}
