:root {
  --paper: #f8f5ee;
  --paper-strong: #fffdf8;
  --sand: #e7dccd;
  --sage: #8ea58d;
  --sage-deep: #526a5a;
  --blue: #7597a4;
  --blue-deep: #385b68;
  --terracotta: #b76f4b;
  --gold: #c49a4f;
  --ink: #203236;
  --muted: #65716d;
  --line: #d9cec0;
  --shadow: 0 18px 50px rgba(32, 50, 54, 0.12);
  --max: 1160px;
}

* {
  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: 16px;
  line-height: 1.6;
}

body.modal-active {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
.display {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.9rem);
  max-width: 850px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(248, 245, 238, 0.94);
  border-bottom: 1px solid rgba(217, 206, 192, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 232px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: var(--paper-strong);
  background: var(--blue-deep);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 0.96rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  background: rgba(142, 165, 141, 0.18);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-strong);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

.hero.compact {
  min-height: 430px;
}

.hero-media,
.hero-media img,
.hero::after {
  position: absolute;
  inset: 0;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(12, 27, 30, 0.76), rgba(12, 27, 30, 0.42) 48%, rgba(12, 27, 30, 0.1)),
    linear-gradient(0deg, rgba(12, 27, 30, 0.64), rgba(12, 27, 30, 0.05) 48%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 128px 0 76px;
  color: var(--paper-strong);
}

.hero-content h1,
.hero-content h2 {
  color: var(--paper-strong);
}

.hero-content p {
  max-width: 640px;
  margin-top: 22px;
  color: rgba(255, 253, 248, 0.88);
  font-size: 1.18rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c985;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  color: var(--paper-strong);
  background: var(--terracotta);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(70, 42, 28, 0.2);
}

.button.secondary {
  color: var(--paper-strong);
  background: rgba(255, 253, 248, 0.12);
  border-color: rgba(255, 253, 248, 0.55);
}

.button.light {
  color: var(--ink);
  background: var(--paper-strong);
  border-color: var(--line);
}

.section {
  padding: 92px clamp(18px, 4vw, 48px);
}

.section.tinted {
  background: #efe9df;
}

.section.sage-band {
  background: var(--sage-deep);
  color: var(--paper-strong);
}

.section.sage-band h2,
.section.sage-band h3 {
  color: var(--paper-strong);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.68fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 38px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.04rem;
}

.sage-band .section-heading p,
.sage-band p {
  color: rgba(255, 253, 248, 0.82);
}

.text-stack {
  display: grid;
  gap: 20px;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
}

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

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

.feature-card,
.info-panel,
.timeline-item,
.artist-card,
.artwork-card,
.sponsor-card {
  background: var(--paper-strong);
  border: 1px solid rgba(217, 206, 192, 0.82);
  border-radius: 8px;
  overflow: hidden;
}

.feature-card img,
.artist-card img,
.artwork-card img {
  height: 245px;
  object-fit: cover;
}

.feature-card-body,
.artist-card-body,
.artwork-card-body,
.info-panel {
  padding: 24px;
}

.feature-card-body p,
.artist-card-body p,
.artwork-card-body p,
.info-panel p {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 10px;
  color: var(--blue-deep);
  background: rgba(117, 151, 164, 0.16);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.byline,
.meta {
  color: var(--terracotta);
  font-weight: 800;
}

.artwork-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.artwork-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.artwork-button {
  width: 100%;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.quote-band {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.65fr);
  gap: 42px;
  align-items: center;
}

.quote-band img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.large-quote {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 1.12;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: -1px;
  background: var(--line);
}

.stat {
  padding: 28px 18px;
  background: var(--paper-strong);
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 500;
}

.stat span {
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.42fr);
  gap: 42px;
  align-items: start;
}

.content-main {
  display: grid;
  gap: 26px;
}

.content-main h2,
.content-main h3 {
  margin-top: 10px;
}

.content-main ul,
.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-main li,
.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.content-main li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--sage);
  border-radius: 50%;
}

.side-stack {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 18px;
}

.detail-card {
  padding: 22px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-card h3 {
  margin-bottom: 8px;
}

.detail-card p,
.detail-card a {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.timeline-item time {
  color: var(--terracotta);
  font-weight: 900;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.chip {
  min-height: 40px;
  padding: 8px 14px;
  color: var(--muted);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.chip:hover,
.chip.is-active {
  color: var(--paper-strong);
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

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

.partner-list {
  display: grid;
  gap: 18px;
}

.partner-item {
  padding: 22px;
  background: var(--paper-strong);
  border-left: 5px solid var(--sage);
}

.partner-item a {
  color: var(--blue-deep);
  font-weight: 800;
}

.sponsor-card {
  padding: 24px;
}

.sponsor-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--terracotta);
  font-size: 1.08rem;
}

.spacer-top {
  margin-top: 24px;
}

.modal-root {
  display: none;
}

.modal-root.is-open {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 29, 33, 0.72);
}

.modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(280px, 0.7fr);
  gap: 28px;
  width: min(980px, 100%);
  max-height: 88vh;
  padding: 22px;
  overflow: auto;
  background: var(--paper-strong);
  border-radius: 8px;
}

.modal-panel img {
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: 6px;
}

.modal-panel p {
  margin-top: 14px;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.details-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.details-list div {
  padding: 14px;
  background: var(--paper);
  border-radius: 8px;
}

.details-list dt {
  color: var(--blue-deep);
  font-weight: 900;
}

.details-list dd {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 56px clamp(18px, 4vw, 48px);
  color: rgba(255, 253, 248, 0.86);
  background: var(--ink);
}

.footer-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
}

.site-footer h2 {
  color: var(--paper-strong);
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links a {
  color: var(--paper-strong);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 18px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-header.nav-open .site-nav {
    display: grid;
  }

  .nav-link {
    border-radius: 8px;
  }

  .section-heading,
  .quote-band,
  .content-grid,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .gallery-grid,
  .artists-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-stack {
    position: static;
  }

  .modal-panel {
    grid-template-columns: 1fr;
  }

  .modal-panel img {
    min-height: 280px;
  }
}

@media (max-width: 680px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero,
  .hero.compact {
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 54px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .grid-3,
  .gallery-grid,
  .artists-grid,
  .stat-strip,
  .timeline-item,
  .details-list {
    grid-template-columns: 1fr;
  }

  .feature-card img,
  .artist-card img,
  .artwork-card img {
    height: 220px;
  }

  .button {
    width: 100%;
  }
}
