:root {
  color-scheme: light;
  --paper: #f1eee6;
  --paper-light: #faf8f2;
  --ink: #151515;
  --muted: #68665f;
  --line: #c9c4b8;
  --accent: #e5432f;
  --accent-dark: #a7291a;
  --ideal: #c42b7e;
  --success: #176443;
  --error: #a7291a;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  transition: transform 120ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.museum-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.museum-brand img {
  width: 35px;
  height: auto;
}

.site-header nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.site-header nav a {
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  text-decoration: underline;
}

.hero {
  display: grid;
  min-height: calc(100vh - 86px);
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
  padding: clamp(3rem, 7vw, 7.5rem) clamp(1.25rem, 5vw, 5rem);
}

.kicker,
.object-number,
.reconstruction,
.visit-grid span {
  margin: 0;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: auto 0 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.84;
}

.hero-intro {
  max-width: 700px;
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.4;
}

.hero-art {
  display: grid;
  min-height: 100%;
  grid-template-rows: 1fr auto;
  margin: 0;
  border-left: 1px solid var(--line);
  background: #d7d2c6;
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.hero-art figcaption {
  display: grid;
  gap: 0.55rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--paper-light);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.hero-art figcaption span {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.collection {
  padding: clamp(4rem, 9vw, 9rem) clamp(1.25rem, 5vw, 5rem);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.25fr 0.75fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(5rem, 9vw, 9rem);
}

.section-heading h2,
.admission h2,
.visit h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.exhibit {
  display: grid;
  grid-template-columns: minmax(130px, 0.25fr) minmax(300px, 0.7fr) minmax(300px, 0.65fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(3rem, 6vw, 6rem) 0;
  border-top: 1px solid var(--ink);
}

.exhibit:last-child {
  border-bottom: 1px solid var(--ink);
}

.exhibit-year {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.exhibit-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #d8d2c5;
}

.exhibit-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0, 1);
}

.exhibit:hover .exhibit-image img {
  transform: scale(1.025);
}

.reconstruction {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.4rem 0.55rem;
  background: rgba(241, 238, 230, 0.93);
}

.exhibit-copy h3 {
  max-width: 650px;
  margin: 0.7rem 0 1.1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.exhibit-copy > p:not(.object-number) {
  max-width: 600px;
  font-size: 1.05rem;
}

.exhibit-copy .label-joke {
  margin-top: 2rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
}

.exhibit-copy a {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.paper-object,
.complaint-object,
.ideal-object,
.flow-object {
  min-height: 320px;
  background: var(--paper-light);
}

.paper-object {
  display: grid;
  width: min(100%, 500px);
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  align-content: center;
  padding: 3rem;
  border: 1px solid var(--line);
  box-shadow: 18px 18px 0 var(--accent);
  transform: rotate(-1deg);
}

.paper-object span {
  height: 150px;
  border: 1px solid var(--ink);
  border-width: 1px 0;
  background: repeating-linear-gradient(to bottom, transparent 0 12px, var(--line) 13px 14px);
}

.complaint-object {
  display: grid;
  width: min(100%, 460px);
  min-height: 320px;
  gap: 1.1rem;
  align-content: center;
  padding: 3.5rem 3rem;
  border-radius: 44% 48% 45% 42% / 9% 8% 10% 9%;
  background: #b9784f;
  box-shadow: inset 0 0 55px rgba(80, 42, 22, 0.18), 14px 18px 0 #d8d0c2;
  transform: rotate(1.2deg);
}

.complaint-object span {
  display: block;
  height: 13px;
  background: repeating-linear-gradient(90deg, #70472f 0 8px, transparent 8px 17px);
  clip-path: polygon(0 38%, 100% 0, 98% 68%, 2% 100%);
  opacity: 0.72;
}

.complaint-object span:nth-child(2),
.complaint-object span:nth-child(5) {
  width: 82%;
}

.complaint-object span:nth-child(3) {
  width: 92%;
  margin-left: 6%;
}

.ideal-object {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  place-items: center;
  padding: 3rem;
  background: var(--ideal);
  color: white;
}

.ideal-object > span {
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.1em;
}

.ideal-lines {
  display: grid;
  width: 100%;
  gap: 1.2rem;
}

.ideal-lines i {
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
}

.flow-object {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 2rem;
  background: var(--ink);
  color: white;
}

.flow-object span {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.7rem);
}

.flow-object i {
  position: relative;
  height: 1px;
  background: var(--accent);
}

.flow-object i::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.admission {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.65fr);
  gap: clamp(3rem, 8vw, 9rem);
  padding: clamp(4rem, 9vw, 9rem) clamp(1.25rem, 5vw, 5rem);
  background: var(--ink);
  color: var(--paper-light);
}

.admission-copy > p:not(.kicker) {
  max-width: 650px;
  margin-top: 2rem;
  color: #c5c0b5;
  font-size: 1.1rem;
}

.ticket-prices {
  margin: 4rem 0 0;
  border-top: 1px solid #54514c;
}

.ticket-prices div {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #54514c;
}

.ticket-prices dt,
.ticket-prices dd {
  margin: 0;
}

.ticket-form {
  align-self: start;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--paper-light);
  color: var(--ink);
}

.form-heading,
.ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.form-heading {
  padding-bottom: 1.25rem;
}

.form-heading span {
  font-family: var(--serif);
  font-size: 1.7rem;
}

.form-heading strong {
  font-size: 1.4rem;
}

.ticket-row {
  padding: 1.25rem 0;
}

.ticket-row strong,
.ticket-row small {
  display: block;
}

.ticket-row small {
  color: var(--muted);
}

.stepper {
  display: grid;
  grid-template-columns: 42px 44px 42px;
  height: 42px;
  border: 1px solid var(--ink);
}

.stepper button,
.stepper input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: center;
}

.stepper button {
  cursor: pointer;
  font-size: 1.25rem;
}

.stepper button:hover,
.stepper button:focus-visible {
  background: var(--ink);
  color: white;
}

.stepper input {
  width: 44px;
  border-right: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.form-field {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.form-field span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-field input {
  width: 100%;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
}

.form-field input:focus {
  border-bottom: 3px solid var(--accent);
}

.form-note {
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.form-result {
  min-height: 1.5rem;
  margin: 0.5rem 0;
  font-size: 0.85rem;
}

.form-result[data-kind="error"] {
  color: var(--error);
}

.checkout-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.checkout-button:hover,
.checkout-button:focus-visible {
  border-color: white;
  background: var(--accent-dark);
}

.checkout-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.visit {
  padding: clamp(4rem, 9vw, 9rem) clamp(1.25rem, 5vw, 5rem);
}

.visit h2 {
  max-width: 1000px;
  margin-top: 1.5rem;
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 5rem;
  border-top: 1px solid var(--ink);
}

.visit-grid > div {
  min-height: 230px;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--ink);
}

.visit-grid > div:first-child {
  padding-left: 0;
}

.visit-grid > div:last-child {
  border-right: 0;
}

.visit-grid p {
  max-width: 330px;
  margin-top: 3rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.25;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem clamp(1.25rem, 5vw, 5rem);
  border-top: 1px solid var(--ink);
  font-size: 0.78rem;
}

footer img {
  width: 32px;
}

footer p {
  margin: 0;
}

.result-page {
  min-height: 100vh;
}

.result-main {
  width: min(1050px, calc(100% - 2.5rem));
  min-height: calc(100vh - 190px);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 9rem) 0;
}

.result-main h1 {
  max-width: 920px;
  margin: 1rem 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.88;
}

.result-intro {
  color: var(--muted);
  font-size: 1.2rem;
}

.receipt {
  margin: 4rem 0 3rem;
  border-top: 1px solid var(--ink);
}

.receipt div {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) 1fr;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.receipt dt,
.receipt dd {
  margin: 0;
}

.receipt dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.receipt code {
  overflow-wrap: anywhere;
}

.return-link {
  display: inline-block;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--ink);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero,
  .admission {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    min-height: 680px;
  }

  .hero-art {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-art img {
    min-height: 500px;
  }

  .section-heading {
    grid-template-columns: 0.4fr 1.2fr;
  }

  .section-heading > p:last-child {
    grid-column: 2;
  }

  .exhibit {
    grid-template-columns: minmax(110px, 0.25fr) 1fr;
  }

  .exhibit-image,
  .paper-object,
  .complaint-object,
  .ideal-object,
  .flow-object {
    grid-column: 2;
  }

  .exhibit-copy {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 76px;
  }

  .museum-brand span,
  .site-header nav a:nth-child(3) {
    display: none;
  }

  .hero-copy {
    min-height: 620px;
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 18vw, 6rem);
  }

  .hero-art img {
    min-height: 410px;
  }

  .section-heading,
  .exhibit,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .section-heading > p:last-child,
  .exhibit-image,
  .paper-object,
  .complaint-object,
  .ideal-object,
  .flow-object,
  .exhibit-copy {
    grid-column: 1;
  }

  .exhibit {
    gap: 1.4rem;
  }

  .exhibit-year {
    font-size: 2.5rem;
  }

  .paper-object,
  .complaint-object,
  .ideal-object,
  .flow-object {
    min-height: 260px;
  }

  .ideal-object {
    grid-template-columns: 1fr;
  }

  .flow-object {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .flow-object i {
    width: 1px;
    height: 35px;
  }

  .flow-object i::after {
    top: auto;
    right: -3px;
    bottom: 0;
  }

  .ticket-form {
    margin-right: -0.25rem;
    margin-left: -0.25rem;
  }

  .visit-grid > div,
  .visit-grid > div:first-child {
    min-height: 180px;
    padding: 1.5rem 0;
    border-right: 0;
  }

  .visit-grid p {
    margin-top: 2rem;
  }

  footer {
    grid-template-columns: auto 1fr;
  }

  footer a {
    grid-column: 2;
  }

  .receipt div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .exhibit-image img {
    transition: none;
  }
}
