:root {
  --paper: #f3eee3;
  --paper-deep: #e7dece;
  --ink: #181715;
  --muted: #6b665d;
  --accent: #b7462f;
  --accent-dark: #87301f;
  --line: rgba(24, 23, 21, 0.18);
  --white: #fffdf8;
  --shadow: 0 18px 45px rgba(34, 27, 19, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 5px;
  background: var(--accent);
  z-index: 100;
}

a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 42px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.wordmark strong {
  margin-top: 5px;
  font: 700 25px/0.95 var(--serif);
  letter-spacing: -0.035em;
  text-transform: none;
}

nav { display: flex; gap: 24px; }
nav a {
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  text-decoration: none;
}
nav a:hover, nav a[aria-current="page"] { border-color: currentColor; }

main { min-height: 70vh; }

.intro {
  max-width: 1500px;
  min-height: 480px;
  margin: 0 auto;
  padding: 80px 42px 85px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1, h2 { font-family: var(--serif); font-weight: 400; }

.intro h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(54px, 7vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.intro-copy { max-width: 660px; margin-top: 48px; font-size: 18px; }
.intro-copy p { margin: 0 0 20px; }
.small-note, .form-note { color: var(--muted); font-size: 13px; }

.collection { max-width: 1500px; margin: 0 auto; padding: 70px 42px 130px; }

.collection-heading, .section-title-row {
  margin-bottom: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.collection-heading h2, .section-title-row h2, .people-section h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 67px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.collection-tools { display: flex; align-items: center; gap: 22px; }
.collection-tools p { min-width: 105px; margin: 0; color: var(--muted); font-size: 13px; text-align: right; }

.search-field input {
  width: min(310px, 40vw);
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 10px 2px;
  background: transparent;
  color: var(--ink);
  outline: none;
}
.search-field input:focus { border-bottom-width: 2px; }

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

.art-card {
  min-width: 0;
  content-visibility: auto;
  contain-intrinsic-size: 380px 520px;
}

.art-image-button {
  width: 100%;
  min-height: 250px;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-deep);
  cursor: zoom-in;
  overflow: hidden;
}

.art-image-button img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 220ms ease;
}
.art-image-button:hover img { transform: scale(1.012); }
.art-image-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.art-meta {
  padding: 13px 2px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.art-meta h3 { margin: 0 0 2px; font: 600 15px/1.2 var(--sans); }
.art-meta p { margin: 0; color: var(--muted); font-size: 12px; }

.pick-label {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}
.pick-label input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}
.art-card.is-selected .art-image-button { box-shadow: inset 0 0 0 5px var(--accent); }

.selection-bar {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  min-width: 255px;
  padding: 12px 12px 12px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--ink);
  color: white;
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.selection-bar[hidden] { display: none; }
.selection-bar p { margin: 0; font-size: 13px; }

.primary-button, .quiet-button {
  border: 0;
  padding: 11px 16px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 720;
}
.primary-button:hover { background: var(--accent-dark); }
.primary-button:disabled { opacity: 0.5; cursor: wait; }
.quiet-button { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.quiet-button:hover { border-color: var(--ink); }
.full-width { width: 100%; padding-block: 14px; }

dialog { border: 0; padding: 0; background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(16, 14, 11, 0.72); backdrop-filter: blur(3px); }

.submit-dialog { width: min(520px, calc(100vw - 30px)); }
.submit-dialog form { position: relative; padding: 42px; }
.submit-dialog h2 { margin: 0 0 8px; font-size: 48px; letter-spacing: -0.04em; }
.submit-dialog form > p { margin-top: 0; }
.dialog-close, .image-dialog-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}
.name-field { display: block; margin: 28px 0 10px; }
.name-field span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 650; }
.name-field input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 13px;
  background: white;
}
.name-field input:focus { border-color: var(--accent); outline: 2px solid rgba(183, 70, 47, 0.2); }
.honeypot { position: absolute; left: -10000px; }
.form-message { min-height: 24px; color: var(--accent-dark); font-size: 13px; }

.image-dialog { max-width: min(1100px, calc(100vw - 28px)); max-height: calc(100vh - 28px); background: #111; color: white; }
.image-dialog img { max-width: 100%; max-height: calc(100vh - 100px); display: block; object-fit: contain; }
.image-dialog > div { padding: 13px 18px; display: flex; justify-content: space-between; gap: 20px; }
.image-dialog-close { color: white; background: rgba(0,0,0,0.5); }

.choices-page { max-width: 1300px; margin: 0 auto; padding: 90px 42px 130px; }
.choices-intro { max-width: 850px; margin-bottom: 105px; }
.choices-intro h1 { margin: 0 0 28px; font-size: clamp(62px, 9vw, 126px); line-height: 0.86; letter-spacing: -0.065em; }
.choices-intro > p:not(.eyebrow) { max-width: 660px; font-size: 18px; }
.choice-stats { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 16px; }
.choice-stats span { min-width: 150px; padding-top: 13px; border-top: 1px solid var(--ink); color: var(--muted); font-size: 13px; }
.choice-stats strong { color: var(--ink); font: 400 31px/1 var(--serif); }

.notice { margin: 25px 0; padding: 18px; border: 1px solid var(--line); color: var(--muted); }
.notice[hidden] { display: none; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.choice-card { display: grid; grid-template-columns: 120px 1fr; min-height: 150px; background: var(--white); }
.choice-card img { width: 120px; height: 100%; object-fit: cover; }
.choice-card-copy { padding: 18px; }
.choice-card h3 { margin: 0; font-size: 16px; }
.choice-card .measurement { margin: 3px 0 15px; color: var(--muted); font-size: 12px; }
.choice-card ul { margin: 0; padding-left: 18px; font-size: 14px; }
.choice-card.conflict { box-shadow: inset 0 4px 0 var(--accent); }

.people-section { margin-top: 110px; padding-top: 70px; border-top: 1px solid var(--line); }
.people-list { margin-top: 35px; border-top: 1px solid var(--line); }
.person-row { padding: 20px 0; display: grid; grid-template-columns: minmax(180px, 0.6fr) 1.4fr; gap: 30px; border-bottom: 1px solid var(--line); }
.person-row h3 { margin: 0; font: 400 25px/1.2 var(--serif); }
.person-row p { margin: 2px 0 0; color: var(--muted); }

footer {
  padding: 30px 42px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
footer p { margin: 0; }

@media (max-width: 1040px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-header { padding: 24px 20px 15px; align-items: center; }
  nav { gap: 15px; }
  nav a { font-size: 12px; }
  .intro { min-height: auto; padding: 75px 20px 65px; display: block; }
  .intro h1 { font-size: clamp(50px, 15vw, 78px); }
  .intro-copy { margin-top: 48px; }
  .collection { padding: 55px 20px 115px; }
  .collection-heading { align-items: flex-start; flex-direction: column; }
  .collection-tools { width: 100%; }
  .search-field { flex: 1; }
  .search-field input { width: 100%; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 10px; }
  .art-image-button { min-height: 150px; }
  .art-meta { display: block; }
  .pick-label { margin-top: 9px; }
  .selection-bar { left: 12px; right: 12px; bottom: 12px; }
  .submit-dialog form { padding: 36px 24px 26px; }
  .choices-page { padding: 70px 20px 100px; }
  .choices-intro { margin-bottom: 75px; }
  .choice-grid { grid-template-columns: 1fr; }
  .section-title-row { align-items: flex-end; }
  .person-row { grid-template-columns: 1fr; gap: 7px; }
  footer { padding: 25px 20px; flex-direction: column; }
}

@media (max-width: 420px) {
  .wordmark span { display: none; }
  .wordmark strong { font-size: 21px; }
  .gallery { grid-template-columns: 1fr; gap: 34px; }
  .art-image-button { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art-image-button img { transition: none; }
}
