/* OnlyTheHobo — Museum of American Hobo Culture
   Restrained editorial design: parchment, ink, rail-iron */

:root {
  --parchment: #f3eee4;
  --parchment-deep: #e8e0d0;
  --ink: #1c1917;
  --ink-soft: #3f3a34;
  --muted: #6b645a;
  --rail: #3d4450;
  --rail-light: #5a6270;
  --copper: #8b5a3c;
  --copper-light: #a67c52;
  --rule: #cfc5b4;
  --card: #faf7f1;
  --focus: #2c5282;
  --max: 42rem;
  --wide: 68rem;
  --font-display: "Libre Baskerville", "Georgia", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--parchment);
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .header-inner {
  position: relative;
}
.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 0 1 auto;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  display: block;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: block;
}
.brand-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 0.45rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--rail); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  align-items: center;
  justify-content: flex-end;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--copper);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.65rem 0.95rem;
    font-size: 0.9rem;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--card);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    padding: 0.35rem 1rem 1rem;
    gap: 0;
    max-height: min(70vh, 32rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 12px 28px rgba(28, 25, 23, 0.12);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.75rem 0.35rem;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
    letter-spacing: 0.03em;
  }
  .site-nav a:last-child { border-bottom: none; }
}



/* Desktop nav: single line */
@media (min-width: 901px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 0.75rem 1rem;
  }
  .site-nav {
    flex-wrap: nowrap;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 0.1rem 0.55rem;
    min-width: 0;
  }
  .site-nav a {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    padding: 0.35rem 0;
    white-space: nowrap;
  }
  .brand-mark { width: 56px; height: 56px; }
  .brand-name { font-size: 1.15rem; }
  .brand-tag {
    max-width: 12rem;
    white-space: normal;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .site-nav {
    gap: 0.05rem 0.4rem;
  }
  .site-nav a {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }
  .brand-tag { display: none; }
}

/* Hero */
.hero {
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(180deg, var(--parchment-deep) 0%, var(--parchment) 100%);
  padding: 4.5rem 1.5rem 3.5rem;
}
.hero-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.75rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--ink);
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}
.hero-figure {
  margin: 0;
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 70vh;
  object-fit: cover;
  border: 1px solid var(--rule);
  filter: sepia(18%) contrast(1.05);
}
.hero-figure figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.65rem;
  line-height: 1.45;
}
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--rail);
  color: var(--parchment);
  text-decoration: none;
  padding: 0.7rem 1.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--rail);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--ink); color: var(--parchment); border-color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
  margin-left: 0.75rem;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }

/* Layout */
.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.exhibit {
  max-width: calc(var(--max) + 12rem);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.exhibit-narrow { max-width: var(--max); }

.breadcrumbs {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--copper); }
.breadcrumbs span { margin: 0 0.4rem; color: var(--rule); }

.exhibit-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.exhibit-header .room-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.5rem;
}
.exhibit-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
.exhibit-header .deck {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 38rem;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
  color: var(--ink);
}
h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}
p { margin: 0 0 1.15rem; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }

ul, ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
li { margin-bottom: 0.45rem; }

blockquote, .pullquote {
  margin: 2rem 0;
  padding: 1.25rem 0 1.25rem 1.25rem;
  border-left: 3px solid var(--copper);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.55;
}
blockquote cite, .pullquote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.note, .caveat {
  background: var(--parchment-deep);
  border: 1px solid var(--rule);
  padding: 1rem 1.15rem;
  margin: 1.75rem 0;
  font-size: 0.95rem;
}
.caveat strong { color: var(--copper); }
.note-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 0.35rem;
}

/* Cards / room grid */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 3rem;
}
.room-card {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.35rem 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.room-card:hover {
  border-color: var(--rail-light);
  box-shadow: 0 8px 24px rgba(28,25,23,0.06);
  color: inherit;
}
.room-card .num {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.room-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.room-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

/* Figure / image treatment — sized so no single photo fills the viewport */
.figure {
  margin: 1.75rem auto;
  max-width: 680px;
  clear: both;
}
.figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 60vh;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  filter: sepia(12%) contrast(1.04);
  border: 1px solid var(--rule);
  background: var(--parchment-deep);
}
.figure.portrait {
  max-width: 420px;
}
.figure.portrait img {
  max-height: 55vh;
  object-position: center top;
}
/* Optional inset floats beside text */
.figure.inset-left,
.figure.inset-right {
  max-width: 340px;
  margin-top: 0.35rem;
  margin-bottom: 1rem;
}
.figure.inset-left {
  float: left;
  margin-right: 1.25rem;
}
.figure.inset-right {
  float: right;
  margin-left: 1.25rem;
}
.figure.inset-left img,
.figure.inset-right img {
  max-height: 42vh;
}
.figure figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.55rem;
  line-height: 1.45;
  text-align: left;
}
/* Clear floats before next major block */
.exhibit-narrow h2,
.exhibit-narrow .object-focus,
.exhibit-narrow .voices-box,
.exhibit-narrow .dyk,
.exhibit-narrow .caveat,
.exhibit-narrow .exhibit-nav,
.exhibit-narrow .room-grid,
.exhibit-narrow .trade-grid,
.exhibit-narrow .artist-grid,
.exhibit-narrow .moniker-wall {
  clear: both;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.gallery .figure {
  margin: 0;
  max-width: none;
}
.gallery .figure img {
  aspect-ratio: 4/3;
  max-height: none;
  height: auto;
  object-fit: cover;
}

/* Glossary */
.glossary dt {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-top: 1.5rem;
  color: var(--ink);
}
.glossary dd {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 2rem 0; }
.timeline li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.timeline .year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--copper);
  font-size: 1rem;
}
@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* Symbol cards */
.symbol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.symbol-card {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1rem;
  text-align: center;
}
.symbol-card .glyph {
  font-size: 1.75rem;
  font-family: var(--font-mono);
  color: var(--rail);
  margin-bottom: 0.5rem;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.symbol-card .meaning {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Person cards */
.people {
  display: grid;
  gap: 1.75rem;
  margin: 2rem 0;
}
.person {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.25rem;
}
.person img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: sepia(15%);
  border: 1px solid var(--rule);
}
.person h3 { margin: 0 0 0.25rem; }
.person .dates { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
.person p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
  .person { grid-template-columns: 1fr; }
  .person img { max-width: 10rem; }
}

/* Trivia */
.trivia-list { list-style: none; padding: 0; }
.trivia-list li {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.85rem;
}
.trivia-list strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
}

/* Sources */
.sources-list { list-style: none; padding: 0; }
.sources-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.sources-list .src-title { font-weight: 600; color: var(--ink); }
.sources-list .src-meta { font-size: 0.9rem; color: var(--muted); }

/* Exhibit nav (prev/next) */
.exhibit-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.exhibit-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 45%;
}
.exhibit-nav a:hover { color: var(--copper); }
.exhibit-nav .label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.exhibit-nav .next { text-align: right; margin-left: auto; }

/* Footer */
.site-footer {
  background: var(--rail);
  color: #d6d0c4;
  padding: 2.75rem 1.5rem 2rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer a { color: #e8dfd0; }
.site-footer a:hover { color: #fff; }
.site-footer h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #f3eee4;
  margin: 0 0 0.75rem;
  font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-credit {
  max-width: var(--wide);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  color: #a8a295;
  line-height: 1.5;
}

.visit-count {
  display: none;
  max-width: var(--wide);
  margin: 0.75rem auto 0;
  font-size: 0.8rem;
  color: #a8a295;
  letter-spacing: 0.02em;
  font-weight: 400;
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

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


/* Contact form */
.contact-form {
  margin: 2rem 0 1rem;
  padding: 1.5rem 1.35rem 1.75rem;
  background: var(--card);
  border: 1px solid var(--rule);
}
.contact-form .form-intro {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}
.form-field {
  margin-bottom: 1.15rem;
}
.form-field label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--parchment);
  border: 1px solid var(--rule);
  padding: 0.65rem 0.75rem;
  border-radius: 0;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--rail-light);
}
.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}
.form-actions {
  margin-top: 1.35rem;
}
.contact-form .btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.thank-you-panel {
  text-align: center;
  padding: 2rem 0 1rem;
}
.thank-you-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  margin: 0 0 1rem;
}


/* Mobile polish */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  overflow-x: clip;
  max-width: 100%;
}
img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}
.btn {
  min-height: 44px;
  padding: 0.75rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.btn-ghost {
  margin-left: 0;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  body {
    font-size: 1.0625rem; /* 17px — readable body on phones */
  }
  .header-inner {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.05rem; }
  .brand-tag {
    font-size: 0.6rem;
    max-width: 9.5rem;
    line-height: 1.3;
  }
  .hero {
    padding: 2.25rem 1rem 2rem;
  }
  .hero-inner { gap: 1.5rem; }
  .hero-figure img {
    aspect-ratio: 16/9;
    max-height: 55vh;
    object-fit: cover;
    object-position: center;
  }
  .hero-lead { font-size: 1.05rem; }
  .wrap, .exhibit {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .exhibit { padding-top: 2rem; padding-bottom: 3rem; }
  .exhibit-narrow { max-width: 100%; }
  .breadcrumbs {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .breadcrumbs a {
    display: inline-block;
    padding: 0.25rem 0;
    min-height: 44px;
    line-height: 44px;
  }
  .room-label, .hero-kicker, .note-label, .exhibit-nav .label {
    font-size: 0.8rem;
  }
  figcaption, .figure figcaption, .hero-figure figcaption {
    font-size: 1rem;
    line-height: 1.45;
  }
  .glossary dt { font-size: 1.15rem; }
  .glossary dd {
    font-size: 1rem;
    padding-bottom: 1rem;
  }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1rem 0;
  }
  .timeline .year {
    font-size: 1.05rem;
  }
  .timeline li > div {
    font-size: 1rem;
  }
  .symbol-grid {
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.75rem;
  }
  .symbol-card .meaning { font-size: 0.95rem; }
  .gallery {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .room-grid {
    grid-template-columns: 1fr;
  }
  .person {
    grid-template-columns: 1fr;
  }
  .person img { max-width: 12rem; }
  .exhibit-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .exhibit-nav a {
    max-width: 100%;
    min-height: 44px;
    padding: 0.65rem 0;
    display: block;
  }
  .exhibit-nav .next {
    text-align: left;
    margin-left: 0;
  }
  .site-footer {
    padding: 2rem 1rem 1.75rem;
    font-size: 1rem;
  }
  .site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0;
  }
  .footer-credit {
    font-size: 0.95rem;
    line-height: 1.55;
  }
  .contact-form {
    padding: 1.25rem 1rem 1.5rem;
  }
  .contact-form .form-field label {
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--ink-soft);
    margin-bottom: 0.4rem;
  }
  .contact-form input,
  .contact-form textarea,
  .contact-form .honeypot input {
    font-size: 16px; /* prevent iOS zoom */
    min-height: 44px;
    padding: 0.75rem 0.85rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .contact-form textarea {
    min-height: 10rem;
  }
  .contact-form .btn {
    width: 100%;
  }
  .btn-ghost {
    display: inline-flex;
    width: auto;
    margin-left: 0;
    margin-right: 0.5rem;
  }
  .sources-list .src-meta { font-size: 1rem; }
  .pullquote, blockquote { font-size: 1.1rem; padding-left: 1rem; }
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.85rem; }
  .exhibit-header h1 { font-size: 1.7rem; }
  .header-content, .header-inner {
    flex-wrap: nowrap;
  }
  .btn + .btn-ghost,
  p .btn-ghost {
    margin-top: 0.65rem;
  }
}

/* === Museum expansion: wings, dropdowns, floor plan, callouts === */

.nav-item.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-item .nav-top {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.nav-item.has-dropdown:hover .nav-top,
.nav-item.has-dropdown:focus-within .nav-top,
.nav-item .nav-top[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--copper);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 13rem;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.12);
  padding: 0.4rem 0;
  z-index: 40;
}
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  display: block;
}
.nav-dropdown a {
  display: block;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  border-bottom: none !important;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-dropdown a:hover,
.nav-dropdown a:focus {
  color: var(--ink);
  background: var(--parchment-deep);
}

@media (max-width: 900px) {
  .nav-item.has-dropdown {
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--rule);
  }
  .nav-item .nav-top {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.75rem 0.35rem;
    font-size: 1rem;
  }
  .nav-dropdown {
    display: block;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0.4rem 0.75rem;
    min-width: 0;
  }
  .nav-dropdown a {
    min-height: 40px;
    display: flex;
    align-items: center;
    font-size: 0.95rem !important;
    border-bottom: 1px solid var(--rule) !important;
  }
}

@media (min-width: 901px) {
  .site-nav {
    gap: 0.05rem 0.5rem;
  }
  .site-nav > a,
  .nav-item .nav-top {
    font-size: 0.7rem;
    letter-spacing: 0.025em;
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .site-nav > a,
  .nav-item .nav-top {
    font-size: 0.64rem;
    letter-spacing: 0.015em;
  }
  .site-nav { gap: 0.02rem 0.35rem; }
}

.wing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.wing-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.15rem 1.2rem 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wing-card:hover,
.wing-card:focus {
  border-color: var(--copper);
  box-shadow: 0 6px 18px rgba(28, 25, 23, 0.08);
}
.wing-card .num {
  font-family: var(--font-display);
  color: var(--copper);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wing-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0.35rem 0 0.4rem;
}
.wing-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}
.wing-card .rooms-hint {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.dyk {
  border-left: 3px solid var(--copper);
  background: var(--parchment-deep);
  padding: 0.85rem 1rem;
  margin: 1.25rem 0;
  font-size: 0.98rem;
  line-height: 1.5;
}
.dyk .note-label { display: block; margin-bottom: 0.25rem; }

.wing-continue { margin-top: 1.5rem; }

/* Floor plan */
.floorplan-wrap {
  border: 1px solid var(--rule);
  background: var(--parchment-deep);
  padding: 0.75rem;
  margin: 1.25rem 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.floorplan-svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 640px;
  max-width: 1000px;
  margin: 0 auto;
  font-family: "Libre Baskerville", Georgia, serif;
}
.floorplan-svg .plan-wall {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
}
.floorplan-svg .plan-outer {
  fill: #f3ead7;
  stroke: var(--ink);
  stroke-width: 3;
}
.floorplan-svg .plan-hall {
  fill: #ebe1cb;
  stroke: var(--ink);
  stroke-width: 1.4;
}
.floorplan-svg .plan-lobby {
  fill: #e4d7bc;
  stroke: var(--ink);
  stroke-width: 1.8;
}
.floorplan-svg a.plan-room {
  cursor: pointer;
  outline: none;
}
.floorplan-svg a.plan-room rect,
.floorplan-svg a.plan-room path {
  fill: #f7f0e0;
  stroke: var(--ink);
  stroke-width: 1.2;
  transition: fill 0.15s, stroke-width 0.15s;
}
.floorplan-svg a.plan-room:hover rect,
.floorplan-svg a.plan-room:focus rect,
.floorplan-svg a.plan-room:hover path,
.floorplan-svg a.plan-room:focus path {
  fill: #dcc9a0;
  stroke: var(--copper);
  stroke-width: 2;
}
.floorplan-svg a.plan-room text {
  fill: var(--ink);
  font-size: 9.5px;
  pointer-events: none;
  text-anchor: middle;
}
.floorplan-svg .plan-wing-label {
  fill: var(--copper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-anchor: middle;
  pointer-events: none;
}
.floorplan-svg .plan-route {
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.6;
  stroke-dasharray: 4 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0.85;
}
.floorplan-svg .plan-door {
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linecap: square;
}
.floorplan-svg .plan-north {
  fill: var(--ink-soft);
  font-size: 10px;
  text-anchor: middle;
}
.floorplan-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.floorplan-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.floorplan-legend i {
  display: inline-block;
  width: 1.1rem;
  height: 0.7rem;
  border: 1px solid var(--ink);
  background: #f7f0e0;
}
.floorplan-legend i.route {
  background: transparent;
  border: none;
  border-top: 2px dashed var(--copper);
  height: 0;
  width: 1.4rem;
}
.floorplan-fallback {
  margin-top: 1.5rem;
}
.floorplan-fallback h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.floorplan-fallback ul {
  columns: 2;
  gap: 1.5rem;
  padding-left: 1.1rem;
}
@media (max-width: 600px) {
  .floorplan-fallback ul { columns: 1; }
  .floorplan-svg { min-width: 560px; }
}

.mini-floorplan {
  margin: 1.5rem 0 0;
  border: 1px solid var(--rule);
  padding: 0.75rem 1rem 1rem;
  background: var(--card);
}
.mini-floorplan h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}
.mini-floorplan .floorplan-wrap {
  margin: 0.5rem 0;
  padding: 0.4rem;
}
.mini-floorplan .floorplan-svg {
  min-width: 0;
  max-width: 100%;
}

.map-svg-inline {
  /* work circuits */
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--parchment-deep);
  margin: 1rem 0;
}
.map-svg-inline text {
  font-family: "Source Sans 3", system-ui, sans-serif;
  fill: var(--ink);
  font-size: 11px;
}
.map-note {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.moniker-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.moniker-tile {
  border: 1px dashed var(--rail);
  background: var(--card);
  padding: 0.9rem 1rem;
  min-height: 5.5rem;
}
.moniker-tile .mark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.moniker-tile p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.reading-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
}
.reading-list li {
  border-top: 1px solid var(--rule);
  padding: 0.9rem 0;
}
.reading-list li:last-child { border-bottom: 1px solid var(--rule); }
.reading-list a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}
.reading-list .meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0;
}
.person-card {
  border: 1px solid var(--rule);
  padding: 1rem;
  background: var(--card);
}
.person-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}
.person-card p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.45; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.gallery-grid .figure {
  margin: 0;
  max-width: none;
}
.gallery-grid .figure img {
  width: 100%;
  height: 10.5rem;
  max-height: 40vh;
  object-fit: cover;
}

/* === Deepen rooms: storytelling modules === */
.vignette {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  border-left: 3px solid var(--rail);
  padding: 0.35rem 0 0.35rem 1rem;
  margin: 0 0 1.5rem;
}
.object-focus, .voices-box {
  border: 1px solid var(--rule);
  background: var(--card);
  padding: 1rem 1.15rem 1.15rem;
  margin: 1.35rem 0;
}
.object-focus h3, .voices-box h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--copper);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.object-focus .figure, .voices-box .figure { margin: 0.75rem 0 0; }
.voices-box blockquote {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.45;
}
.voices-box cite {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  font-style: normal;
  color: var(--muted);
}
.mission-banner {
  border: 1px solid var(--copper);
  background: var(--parchment-deep);
  padding: 1rem 1.2rem;
  margin: 1.25rem 0 1.75rem;
}
.mission-banner strong { color: var(--copper); }
.trade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.85rem;
  margin: 1.1rem 0 1.4rem;
}
.trade-card {
  border: 1px solid var(--rule);
  padding: 0.85rem 0.95rem;
  background: var(--card);
}
.trade-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}
.trade-card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.4; }
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}
.artist-card {
  border: 1px solid var(--rule);
  padding: 1rem;
  background: var(--card);
}
.artist-card h3 { font-family: var(--font-display); margin: 0 0 0.4rem; font-size: 1.1rem; }
.artist-card p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); line-height: 1.45; }

/* In-room figures on small screens: full content width, capped height */
@media (max-width: 900px) {
  .figure,
  .figure.portrait,
  .figure.inset-left,
  .figure.inset-right {
    float: none;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .figure img,
  .figure.portrait img,
  .figure.inset-left img,
  .figure.inset-right img {
    max-height: 50vh;
    width: 100%;
    object-fit: contain;
  }
  .gallery-grid .figure img {
    height: 9rem;
    max-height: 40vh;
    object-fit: cover;
  }
}



@media (max-width: 420px) {
  .brand { gap: 0.45rem; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-tag { display: none; }
}


/* Quiet pointer to Sources — not a production banner */
.see-sources {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.see-sources a { color: var(--ink); }

/* Glossary */
.glossary-toc { font-size: 0.95rem; color: var(--ink-soft); }
.glossary { margin: 0 0 2rem; }
.glossary dt { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; margin-top: 1.1rem; scroll-margin-top: 6rem; }
.glossary dd { margin: 0.25rem 0 0 0; padding-left: 1rem; border-left: 2px solid var(--rail); line-height: 1.6; }
