:root {
  --museum-ink: #141410;
  --museum-ink-soft: #1d1c18;
  --museum-bone: #eee6d4;
  --museum-paper: #d8cdb7;
  --museum-muted: #9d9688;
  --museum-copper: #c67542;
  --museum-verdigris: #6d8e80;
  --museum-line: rgba(238, 230, 212, 0.18);
  --museum-serif: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
  --museum-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.home-page {
  margin: 0;
  min-width: 320px;
  color: var(--museum-bone);
  background:
    radial-gradient(circle at 72% -10%, rgba(198, 117, 66, 0.14), transparent 36rem),
    var(--museum-ink);
  font-family: var(--museum-sans);
  font-size: 16px;
  line-height: 1.5;
}

.home-page img { display: block; max-width: 100%; }
.home-page a { color: inherit; }
.home-page button, .home-page input { font: inherit; }

.home-page :focus-visible {
  outline: 2px solid var(--museum-copper);
  outline-offset: 4px;
}

.site-skip-link {
  position: fixed;
  z-index: 1000;
  top: -5rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--museum-ink);
  background: var(--museum-bone);
}

.site-skip-link:focus { top: 1rem; }

.site-shell-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  min-height: 72px;
  padding: 0 3vw;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--museum-line);
  background: rgba(20, 20, 16, 0.86);
  backdrop-filter: blur(18px);
}

.site-shell-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
  color: var(--museum-bone);
  font-family: var(--museum-serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-shell-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--museum-copper);
  border-radius: 50%;
  color: var(--museum-copper);
  font-style: italic;
}

.site-shell-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.9rem, 2.4vw, 2.2rem);
}

.site-shell-nav a {
  color: var(--museum-paper);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-shell-nav a:hover { color: var(--museum-copper); }

.home-hero {
  display: grid;
  min-height: calc(100svh - 72px);
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 6vw, 6.5rem);
  grid-template-columns: minmax(0, 1.02fr) minmax(28rem, 0.98fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  overflow: hidden;
}

.home-hero-copy { position: relative; z-index: 2; max-width: 54rem; }

.section-kicker,
.resource-type,
.resource-number,
.hero-object-caption > span:first-child,
.museum-card-type {
  color: var(--museum-copper);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-kicker { margin: 0 0 1.4rem; }

.home-hero h1,
.section-heading h2,
.app-story h2,
.app-invitation h2,
.closing-note h2 {
  margin: 0;
  font-family: var(--museum-serif);
  font-weight: 400;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.home-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.7rem, 7vw, 7.7rem);
  line-height: 0.9;
}

.home-hero h1 em { color: var(--museum-copper); font-weight: 400; }

.home-hero-summary {
  max-width: 42rem;
  margin: 2.2rem 0 0;
  color: var(--museum-paper);
  font-family: var(--museum-serif);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.65;
}

.home-actions {
  display: flex;
  margin-top: 2.4rem;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0.78rem 1.15rem;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  border: 1px solid transparent;
  text-decoration: none;
}

.home-page .button-primary {
  color: var(--museum-ink);
  background: var(--museum-bone);
}
.home-page .button-primary:hover {
  color: var(--museum-ink);
  background: #fff8e9;
}
.button-secondary { border-color: var(--museum-line); color: var(--museum-paper); }
.button-secondary:hover { border-color: var(--museum-copper); color: var(--museum-bone); }

.home-exhibit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-top: 1.5rem;
  color: var(--museum-muted);
  font-size: 0.78rem;
}

.home-exhibit-links span {
  color: var(--museum-copper);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-exhibit-links a { color: var(--museum-paper); text-underline-offset: 0.22em; }
.home-exhibit-links a:hover { color: var(--museum-copper); }

.museum-tally {
  display: flex;
  max-width: 46rem;
  margin: 3.2rem 0 0;
  padding: 1.25rem 0 0;
  gap: clamp(1rem, 3vw, 3rem);
  border-top: 1px solid var(--museum-line);
}

.museum-tally div { display: flex; align-items: baseline; gap: 0.5rem; }
.museum-tally dt { color: var(--museum-bone); font-family: var(--museum-serif); font-size: 1.5rem; }
.museum-tally dd { margin: 0; color: var(--museum-muted); font-size: 0.72rem; line-height: 1.35; }

.hero-object-stage {
  position: relative;
  display: block;
  width: min(100%, 43rem);
  justify-self: center;
  aspect-ratio: 0.88;
  color: var(--museum-bone);
  text-decoration: none;
}

.hero-object-stage::before {
  content: "";
  position: absolute;
  inset: 2% -8% 16% 8%;
  border: 1px solid var(--museum-line);
  background: linear-gradient(135deg, rgba(255,255,255,0.025), transparent 40%);
  transform: rotate(2deg);
}

.hero-map,
.hero-note,
.hero-coin {
  position: absolute;
  display: block;
  overflow: hidden;
  background: #282720;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.38);
  transition: transform 450ms ease, filter 450ms ease;
}

.hero-map {
  --media-inset: 0;
  inset: 7% 3% 29% 12%;
  border: 0.75rem solid #282720;
  transform: rotate(-2.5deg);
}

.hero-map .artifact-media__viewport { filter: sepia(0.18) saturate(0.78); }
.hero-map > img,
.hero-note > img,
.hero-coin > img { width: 100%; height: 100%; object-fit: cover; }
.hero-map > img { filter: sepia(0.18) saturate(0.78); }

.hero-coin {
  --media-inset: 0.55rem;
  z-index: 2;
  top: 4%;
  right: -1%;
  width: 34%;
  aspect-ratio: 1;
  padding: 0.55rem;
  border-radius: 50%;
  background: #0d0d0b;
  transform: rotate(8deg);
}

.hero-coin .artifact-media__viewport { border-radius: 50%; }
.hero-coin > img { border-radius: 50%; }

.hero-note {
  --media-inset: 0;
  z-index: 3;
  right: 3%;
  bottom: 13%;
  width: 54%;
  aspect-ratio: 1.8;
  border: 0.5rem solid #27261f;
  transform: rotate(5deg);
}

.hero-note.kind-coin {
  right: 7%;
  bottom: 12%;
  width: 31%;
  aspect-ratio: 1;
  padding: 0.45rem;
  border: 0;
  border-radius: 50%;
  background: #0d0d0b;
}

.hero-note.kind-coin .artifact-media__viewport { border-radius: 50%; }


.hero-object-caption {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 0;
  display: flex;
  width: 68%;
  min-height: 9.5rem;
  padding: 1.4rem 1.5rem;
  flex-direction: column;
  justify-content: center;
  border-left: 2px solid var(--museum-copper);
  background: rgba(20, 20, 16, 0.94);
}

.hero-object-caption strong {
  margin: 0.45rem 0 0.8rem;
  font-family: var(--museum-serif);
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  font-weight: 400;
  line-height: 1.1;
}

.hero-object-caption > span:last-child { color: var(--museum-muted); font-size: 0.74rem; }
.hero-object-stage:hover .hero-map { transform: rotate(-1deg) translateY(-0.4rem); }
.hero-object-stage:hover .hero-coin { transform: rotate(12deg) translateY(-0.5rem); }
.hero-object-stage:hover .hero-note { transform: rotate(3deg) translateY(-0.3rem); }

.museum-program,
.resource-library {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 6vw, 6.5rem);
  border-top: 1px solid var(--museum-line);
}

.museum-program { background: #0f0f0c; }

.section-heading {
  display: grid;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.55fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
}

.section-heading h2,
.app-story h2,
.closing-note h2 { font-size: clamp(3rem, 5.6vw, 6.2rem); line-height: 0.95; }

.section-heading > p {
  max-width: 34rem;
  margin: 0;
  color: var(--museum-muted);
  font-family: var(--museum-serif);
  font-size: 1.08rem;
  line-height: 1.7;
}

.museum-program-list { display: grid; gap: 1px; background: var(--museum-line); }
.museum-loading { margin: 0; padding: 3rem; color: var(--museum-muted); background: var(--museum-ink); }

.museum-program-card {
  display: grid;
  min-height: 20rem;
  grid-template-columns: minmax(19rem, 0.72fr) minmax(0, 1.28fr);
  color: var(--museum-bone);
  background: var(--museum-ink);
  text-decoration: none;
}

.museum-program-card:nth-child(even) { background: var(--museum-ink-soft); }

.museum-card-preview {
  --media-inset: clamp(1.1rem, 3vw, 2.25rem);
  position: relative;
  min-height: 20rem;
  overflow: hidden;
  background: #090907;
}

.museum-card-preview .artifact-media__viewport {
  filter: saturate(0.72) sepia(0.1);
}

.museum-card-preview > .artifact-media__stage { transition-duration: 500ms; }

.museum-card-copy {
  display: grid;
  min-width: 0;
  padding: clamp(2rem, 5vw, 4.8rem);
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "type count" "title title" "summary summary" "action action";
  align-content: center;
  column-gap: 2rem;
}

.museum-card-type { grid-area: type; }
.museum-card-count { grid-area: count; color: var(--museum-muted); font-size: 0.74rem; }
.museum-card-copy h3 {
  grid-area: title;
  margin: 1rem 0;
  font-family: var(--museum-serif);
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.museum-card-copy p { grid-area: summary; max-width: 52rem; margin: 0; color: var(--museum-muted); line-height: 1.7; }
.museum-card-action { grid-area: action; margin-top: 2rem; font-size: 0.78rem; letter-spacing: 0.06em; }
.museum-program-card:hover .museum-card-preview > .artifact-media__stage {
  filter: saturate(1.18) sepia(0.02);
  transform: scale(1.025);
}
.museum-program-card:hover .museum-card-action { color: var(--museum-copper); }

.section-link-row { display: flex; margin-top: 2rem; justify-content: flex-end; }
.text-link { color: var(--museum-paper); text-decoration: none; }
.text-link:hover { color: var(--museum-copper); }

.app-story {
  display: grid;
  padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 7vw, 8rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(25rem, 0.72fr);
  gap: clamp(4rem, 9vw, 10rem);
  color: #24231e;
  background: var(--museum-bone);
}

.app-story .section-kicker { color: #9d542b; }
.app-story h2 { color: #181713; }
.app-story-intro { max-width: 43rem; margin: 2rem 0 0; color: #5d584e; font-family: var(--museum-serif); font-size: 1.2rem; line-height: 1.7; }

.app-sequence { margin: 3.5rem 0 0; padding: 0; list-style: none; }
.app-sequence li { display: grid; padding: 1.4rem 0; grid-template-columns: 3rem 1fr; gap: 1rem; border-top: 1px solid rgba(36,35,30,0.18); }
.app-sequence li > span { color: #9d542b; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; }
.app-sequence strong { font-family: var(--museum-serif); font-size: 1.25rem; font-weight: 600; }
.app-sequence p { margin: 0.4rem 0 0; color: #6e685d; }

.app-proof { position: relative; min-height: 49rem; align-self: center; }
.app-screen { position: absolute; margin: 0; }
.app-screen img { width: 100%; border: 0.5rem solid #171713; border-radius: 1.7rem; box-shadow: 0 2rem 4rem rgba(35,32,26,0.25); }
.app-screen figcaption { max-width: 13rem; margin-top: 0.9rem; color: #665f52; font-size: 0.74rem; }
.app-screen-primary { z-index: 2; top: 0; left: 0; width: 56%; }
.app-screen-secondary { right: 0; bottom: 0; width: 48%; }
.app-screen-secondary figcaption { margin-left: auto; text-align: right; }

.app-invitation {
  display: grid;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 7vw, 8rem);
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.7fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  border-top: 1px solid rgba(20,20,16,0.13);
  color: #22211c;
  background: #d7ccb5;
}

.app-invitation .section-kicker { color: #8f4d2a; }
.app-invitation h2 { max-width: 17ch; font-size: clamp(2.7rem, 4.4vw, 4.8rem); line-height: 1; }
.app-invitation > div > p:last-child { max-width: 36rem; color: #5e594f; }
.access-form label { display: block; margin-bottom: 0.8rem; color: #4f4a41; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.access-form > div { display: flex; }
.access-form input { min-width: 0; flex: 1 1 auto; padding: 0.95rem 1rem; border: 1px solid rgba(20,20,16,0.22); border-radius: 0; color: #171713; background: rgba(255,255,255,0.48); }
.access-form button { padding: 0.95rem 1.2rem; border: 1px solid #171713; border-radius: 0; color: var(--museum-bone); background: #171713; cursor: pointer; }
.access-form button:hover { background: #34332c; }
.access-form button:disabled { cursor: wait; opacity: 0.65; }
.form-status { min-height: 1.5rem; margin: 0.75rem 0 0; color: #5e594f; font-size: 0.8rem; }

.resource-library { background: var(--museum-ink-soft); }
.resource-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 1px; background: var(--museum-line); }
.resource-card {
  display: grid;
  min-height: 23rem;
  padding: clamp(2rem, 5vw, 4rem);
  grid-template-rows: auto 1fr;
  color: var(--museum-bone);
  background: var(--museum-ink);
  text-decoration: none;
}
.resource-featured { grid-row: span 2; min-height: 46rem; background: radial-gradient(circle at 80% 10%, rgba(198,117,66,0.18), transparent 26rem), #0e0e0b; }
.resource-number { color: var(--museum-muted); }
.resource-card-copy { display: flex; align-self: end; flex-direction: column; align-items: flex-start; }
.resource-card-copy strong { max-width: 15ch; margin: 0.8rem 0 1.2rem; font-family: var(--museum-serif); font-size: clamp(1.8rem, 3vw, 3.4rem); font-weight: 400; line-height: 1.05; }
.resource-featured .resource-card-copy strong { font-size: clamp(2.8rem, 5vw, 5.6rem); }
.resource-card-copy > span:not(.resource-type, .resource-action) { max-width: 42rem; color: var(--museum-muted); line-height: 1.65; }
.resource-action { margin-top: 2rem; color: var(--museum-paper); font-size: 0.78rem; }
.resource-card:hover .resource-action { color: var(--museum-copper); }

.closing-note {
  padding: clamp(6rem, 14vw, 13rem) 1.25rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(109, 142, 128, 0.14), transparent 30rem),
    var(--museum-ink);
}
.closing-note .section-kicker { margin-bottom: 2rem; }
.closing-note h2 { max-width: 19ch; margin: 0 auto 3rem; }

.site-shell-footer {
  display: flex;
  padding: 3rem clamp(1.25rem, 4vw, 4rem);
  justify-content: space-between;
  gap: 3rem;
  border-top: 1px solid var(--museum-line);
  color: var(--museum-muted);
  background: #0c0c0a;
}
.site-shell-footer > div { text-align: right; }
.site-shell-footer nav { display: flex; justify-content: flex-end; gap: 1.4rem; flex-wrap: wrap; }
.site-shell-footer nav a { color: var(--museum-paper); font-size: 0.75rem; text-decoration: none; }
.site-shell-footer nav a:hover { color: var(--museum-copper); }
.site-shell-footer p { margin: 1rem 0 0; font-size: 0.72rem; }

@media (max-width: 1100px) {
  .home-hero { grid-template-columns: 1fr; }
  .hero-object-stage { width: min(100%, 49rem); }
  .app-story { grid-template-columns: 1fr 28rem; gap: 4rem; }
  .app-proof { min-height: 42rem; }
}

@media (max-width: 820px) {
  .site-shell-header { position: relative; padding: 1rem; align-items: flex-start; flex-direction: column; gap: 1rem; }
  .site-shell-nav { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 0.25rem; }
  .site-shell-nav a { white-space: nowrap; }
  .home-hero { min-height: 0; padding-top: 4rem; }
  .section-heading, .app-story, .app-invitation { grid-template-columns: 1fr; }
  .museum-program-card { grid-template-columns: 1fr; }
  .museum-card-preview { min-height: 18rem; max-height: 28rem; }
  .museum-card-copy { min-height: 22rem; }
  .app-proof { width: min(100%, 34rem); min-height: 47rem; justify-self: center; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-featured { grid-row: auto; min-height: 32rem; }
}

@media (max-width: 560px) {
  .home-hero { padding-inline: 1rem; }
  .home-hero h1 { font-size: clamp(3.2rem, 15vw, 4.8rem); }
  .home-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .museum-tally { align-items: flex-start; flex-direction: column; gap: 0.45rem; }
  .museum-tally div { width: 100%; justify-content: space-between; }
  .hero-object-stage { aspect-ratio: 0.72; }
  .hero-map { inset: 7% 0 34% 4%; }
  .hero-coin { width: 38%; right: 0; }
  .hero-note { right: 1%; bottom: 21%; width: 62%; }
  .hero-object-caption { width: 88%; }
  .museum-card-copy { display: flex; min-height: 23rem; flex-direction: column; }
  .museum-card-count { margin-top: 0.4rem; }
  .museum-card-copy h3 { font-size: 2.25rem; }
  .app-proof { min-height: 35rem; }
  .app-screen-primary { width: 58%; }
  .app-screen-secondary { width: 50%; }
  .app-screen figcaption { display: none; }
  .access-form > div { flex-direction: column; }
  .access-form button { width: 100%; }
  .resource-card { min-height: 24rem; }
  .site-shell-footer { align-items: flex-start; flex-direction: column; }
  .site-shell-footer > div { text-align: left; }
  .site-shell-footer nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-map, .hero-note, .hero-coin, .museum-card-preview > .artifact-media__stage { transition: none; }
}
