/* Bethlehem Artworks — Unified Monograph Design System
   Fixed adaptive header (transparent -> compact), full-screen mobile drawer,
   editorial cursor reticle, museum passe-partout plates, dialogs & footer. */
@font-face {
  font-family: Manrope;
  src: url(./manrope.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #f6f2e8;
  --parchment: #ece5d5;
  --plinth: #faf8f2;
  --obsidian: #0d1b13;
  --forest: #16291f;
  --forest-mid: #233b2d;
  --ink: #1d271e;
  --muted: #4e594c;
  --brass: #8a6835;
  --brass-dark: #705224;
  --gold: #dfbe88;
  --gold-bright: #f0d7ac;
  --line: rgba(29, 39, 30, 0.14);
  --line-strong: rgba(29, 39, 30, 0.26);
  --line-light: rgba(223, 190, 136, 0.24);
  --display: 'Iowan Old Style', Georgia, 'Palatino Linotype', 'Times New Roman', serif;
  --body: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --edge: clamp(20px, 5vw, 88px);
  --gutter: clamp(24px, 4vw, 68px);
  --header-h: 82px;
  --header-compact-h: 64px;
  --fast: 200ms;
  --curve: cubic-bezier(0.22, 1, 0.36, 1);
  --read-progress: 0;
  font: 16px/1.65 var(--body);
  color: var(--ink);
  background: var(--paper);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-compact-h) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: var(--obsidian);
  background: var(--gold);
}

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

figure {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

button, input {
  font: inherit;
  color: inherit;
}

button, summary {
  cursor: pointer;
}

button {
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 0.55em 0.95em;
  border-radius: 0;
}

a:hover, button:hover {
  color: var(--brass-dark);
}

:focus-visible {
  outline: 3px solid #a86021;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--paper);
}

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

.skip {
  position: fixed;
  top: -120px;
  left: 1rem;
  z-index: 200;
  background: var(--obsidian);
  color: var(--gold-bright);
  padding: 0.8em 1.2em;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--gold);
  transition: top var(--fast) var(--curve);
}

.skip:focus {
  top: 1rem;
}

/* Typography foundations */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3rem, 6vw, 7rem);
  margin: 0.2em 0;
}

h1 em, h2 em, h2 i {
  font-weight: 400;
  font-style: italic;
  color: var(--brass-dark);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 4.7rem);
  margin: 0 0 0.38em;
}

.eyebrow, figcaption {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  font-weight: 650;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75em;
  letter-spacing: 0.16em;
  color: var(--brass-dark);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
  flex: none;
}

.lead {
  font-size: clamp(1.03rem, 1.4vw, 1.38rem);
  line-height: 1.72;
  max-width: 52ch;
}

/* Architectural Buttons & Links */
.action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15em;
  padding: 0.78em 0;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-weight: 650;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  transition: background var(--fast) var(--curve), color var(--fast) var(--curve), border-color var(--fast) var(--curve), transform var(--fast) var(--curve);
}

.action.primary {
  color: #faf7ef;
  background: var(--forest);
  padding: 0.92em 1.35em;
  border: 1px solid var(--forest);
}

.action.primary:hover, .action.primary:focus-visible {
  background: var(--forest-mid);
  border-color: var(--forest-mid);
  color: #ffffff;
  transform: translateY(-2px);
}

.action span {
  transition: transform var(--fast) var(--curve);
}

.action:hover span {
  transform: translate(3px, -3px);
}

.text-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  font-weight: 700;
  font-size: 0.84rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.55rem;
  transition: color var(--fast) ease, border-color var(--fast) ease;
}

.text-link span {
  transition: transform 250ms var(--curve);
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

/* ONE UNIFIED FIXED HEADER ACROSS EVERY PAGE */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: var(--header-h);
  padding: 0 var(--edge);
  background: rgba(246, 242, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: height 220ms var(--curve), background 280ms var(--curve), color 260ms var(--curve), border-color 260ms var(--curve), box-shadow 260ms var(--curve);
}

header.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brass);
  transform-origin: left center;
  transform: scaleX(var(--read-progress, 0));
  pointer-events: none;
  opacity: 0.85;
}

body.has-scrolled header.site-header {
  height: var(--header-compact-h);
  background: rgba(246, 242, 232, 0.97);
  box-shadow: 0 12px 32px rgba(13, 27, 19, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  position: relative;
}

.brand img {
  width: clamp(148px, 14.5vw, 194px);
  height: auto;
  transition: width 320ms var(--curve);
}

body.has-scrolled .brand img {
  width: clamp(138px, 13.2vw, 174px);
}

.brand-mark-light {
  display: none;
}

/* Transparent over Dark Hero Sections (Home, About, Ministry, Olive Wood, Collection, Workshop) */
body.has-dark-hero:not(.header-light):not(.menu-open) header.site-header {
  background: linear-gradient(180deg, rgba(10, 21, 15, 0.82) 0%, rgba(10, 21, 15, 0.36) 72%, transparent 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom-color: rgba(223, 190, 136, 0.16);
  color: #f6f0e4;
  box-shadow: none;
}

body.has-dark-hero.has-scrolled:not(.header-light):not(.menu-open) header.site-header {
  background: rgba(11, 23, 16, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(223, 190, 136, 0.22);
}

body.has-dark-hero:not(.header-light):not(.menu-open) header.site-header::after {
  background: var(--gold);
  opacity: 0.78;
}

body.has-dark-hero:not(.header-light):not(.menu-open) .brand-mark-dark,
body.menu-open .brand-mark-dark {
  display: none;
}

body.has-dark-hero:not(.header-light):not(.menu-open) .brand-mark-light,
body.menu-open .brand-mark-light {
  display: block;
}

body.menu-open header.site-header {
  background: transparent;
  border-bottom-color: rgba(223, 190, 136, 0.2);
  color: #f6f0e4;
  box-shadow: none;
}

body.has-dark-hero:not(.header-light):not(.menu-open) header.site-header a:hover,
body.has-dark-hero:not(.header-light):not(.menu-open) header.site-header button:hover {
  color: var(--gold-bright);
}

body.has-dark-hero:not(.header-light):not(.menu-open) header.site-header :focus-visible,
body.menu-open header.site-header :focus-visible {
  outline-color: var(--gold-bright);
  box-shadow: 0 0 0 3px var(--obsidian);
}

body.has-dark-hero:not(.header-light):not(.menu-open) nav.site-nav .action.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--obsidian);
}

body.has-dark-hero:not(.header-light):not(.menu-open) nav.site-nav .action.primary:hover,
body.has-dark-hero:not(.header-light):not(.menu-open) nav.site-nav .action.primary:focus-visible {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--obsidian);
}

body.has-dark-hero:not(.header-light):not(.menu-open) header.site-header > .menu,
body.menu-open header.site-header > .menu {
  border-color: rgba(223, 190, 136, 0.52);
  color: #f6f0e4;
}

nav.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.25vw, 24px);
}

nav.site-nav > a:not(.action),
.search-open,
.menu {
  font-size: 0.83rem;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav.site-nav > a:not(.action),
nav.site-nav > .search-open {
  position: relative;
  padding-block: 0.35rem;
  white-space: nowrap;
  transition: color var(--fast) ease;
}

nav.site-nav > a:not(.action)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--brass);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 300ms var(--curve);
}

body.has-dark-hero:not(.header-light) nav.site-nav > a:not(.action)::after {
  background: var(--gold);
}

nav.site-nav > a:not(.action):hover::after,
nav.site-nav > a[aria-current="page"]::after {
  transform: scaleX(1);
}

nav.site-nav [aria-current="page"] {
  color: var(--brass-dark);
}

body.has-dark-hero:not(.header-light) nav.site-nav [aria-current="page"] {
  color: var(--gold-bright);
}

.search-open {
  border: 0;
  padding: 0.35rem 0.2rem;
  display: none;
  align-items: center;
  gap: 0.4em;
}

.js .search-open {
  display: inline-flex;
}

.search-open::before {
  content: "⌕";
  font-size: 1.05em;
  line-height: 1;
  opacity: 0.78;
}

nav.site-nav .action.primary {
  font-size: 0.76rem;
  padding: 0.74em 1.05em;
  white-space: nowrap;
}

/* Animated Hamburger Control */
header.site-header > .menu {
  display: none;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line-strong);
  padding: 0.52em 0.95em;
  min-height: 44px;
  transition: background var(--fast) ease, border-color var(--fast) ease;
}

.menu-bars {
  position: relative;
  width: 18px;
  height: 10px;
  display: inline-block;
}

.menu-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 280ms var(--curve), top 280ms var(--curve);
}

.menu-bars span:first-child {
  top: 1px;
}

.menu-bars span:last-child {
  top: 8px;
}

header.site-header > .menu[aria-expanded="true"] .menu-bars span:first-child {
  top: 4.5px;
  transform: rotate(45deg);
}

header.site-header > .menu[aria-expanded="true"] .menu-bars span:last-child {
  top: 4.5px;
  transform: rotate(-45deg);
}

/* Full-Screen Art-Directed Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: var(--obsidian);
  color: #f6f1e4;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms var(--curve), visibility 0s linear 320ms;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 320ms var(--curve), visibility 0s linear 0s;
}

.mobile-drawer-inner {
  position: relative;
  min-height: 100%;
  padding: calc(var(--header-h) + 20px) var(--edge) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  overflow: hidden;
}

.mobile-drawer-rings {
  position: absolute;
  right: -120px;
  top: 10%;
  width: 360px;
  height: 360px;
  pointer-events: none;
  opacity: 0.75;
}

.mobile-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.mobile-drawer-eyebrow {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.mobile-drawer-close {
  border: 1px solid rgba(223, 190, 136, 0.45);
  color: #f6f1e4;
  font-size: 0.76rem;
  font-weight: 650;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
}

.mobile-drawer-links {
  display: grid;
  gap: 0.15rem;
  position: relative;
  z-index: 1;
}

.mobile-drawer-links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  text-decoration: none;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(223, 190, 136, 0.12);
  opacity: 0;
  transform: translate3d(-18px, 0, 0);
  transition: opacity 300ms var(--curve), transform 360ms var(--curve), color var(--fast) ease;
  transition-delay: calc(var(--i, 0) * 24ms);
}

.mobile-drawer.is-open .mobile-drawer-links a {
  opacity: 1;
  transform: none;
}

.mobile-drawer-links a span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  min-width: 24px;
}

.mobile-drawer-links a em {
  font-family: var(--display);
  font-style: normal;
  font-size: clamp(1.55rem, 6.2vw, 2.3rem);
  line-height: 1.15;
  color: #f8f3e8;
}

.mobile-drawer-links a[aria-current="page"] em,
.mobile-drawer-links a:hover em {
  color: var(--gold-bright);
  font-style: italic;
}

.mobile-drawer-actions {
  display: grid;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.mobile-drawer-search {
  border: 1px solid rgba(223, 190, 136, 0.4);
  color: #f8f3e8;
  padding: 0.85rem 1.1rem;
  min-height: 46px;
  text-align: left;
  font-size: 0.86rem;
  font-weight: 650;
}

.mobile-drawer-cta {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--obsidian) !important;
  justify-content: space-between;
  min-height: 48px;
}

.mobile-drawer-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  font-size: 0.8rem;
  color: #cbd5c9;
  position: relative;
  z-index: 1;
}

.mobile-drawer :focus-visible {
  outline-color: var(--gold-bright);
  box-shadow: 0 0 0 3px var(--obsidian);
}

/* Main Content Layout & Fixed Header Clearance */
main {
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 var(--edge) clamp(64px, 8vw, 130px);
}

body:not(.has-dark-hero) main {
  padding-top: var(--header-h);
}

/* Museum Passe-Partout Archival Plates (elevates 491x321 archive photography cleanly) */
.archival-plate {
  position: relative;
  background: var(--parchment);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.archival-plate::before,
.archival-plate::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  opacity: 0.55;
}

.archival-plate::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid var(--brass);
  border-left: 1px solid var(--brass);
}

.archival-plate::after {
  bottom: 10px;
  right: 10px;
  border-bottom: 1px solid var(--brass);
  border-right: 1px solid var(--brass);
}

.archival-plate-frame {
  width: 100%;
  max-width: 491px;
  overflow: hidden;
  border: 1px solid rgba(29, 39, 30, 0.14);
  box-shadow: 0 18px 42px rgba(13, 27, 19, 0.13);
  background: #d8d4c6;
}

.archival-plate-frame img {
  width: 100%;
  aspect-ratio: 491 / 321;
  object-fit: cover;
  display: block;
}

.archival-plate figcaption {
  width: 100%;
  max-width: 491px;
  margin-top: 0.95rem;
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
}

/* Shared Story & Contact Spreads */
.story,
.contact-spread {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(28px, 6.5vw, 128px);
  padding: clamp(44px, 6vw, 104px) 0;
  border-top: 1px solid var(--line);
}

.story.reverse figure {
  order: 2;
}

.story figure:not(.archival-plate) img,
.contact-spread figure:not(.archival-plate) img {
  width: 100%;
  aspect-ratio: 1.48;
  object-fit: cover;
}

.storytext p {
  max-width: 50ch;
  line-height: 1.82;
}

.storytext .action {
  margin-top: 0.6rem;
  margin-right: 1rem;
}

.contact-spread a,
footer a {
  overflow-wrap: anywhere;
}

/* Shared Architectural Museum Footer */
footer.site-footer {
  position: relative;
  overflow: hidden;
  max-width: 2000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: var(--gutter);
  padding: clamp(58px, 6.5vw, 112px) var(--edge) clamp(50px, 5vw, 88px);
  background: var(--obsidian);
  color: #f6f1e4;
  border-top: 1px solid var(--line-light);
}

footer.site-footer::before {
  content: "";
  position: absolute;
  top: -12vw;
  right: -10vw;
  width: 38vw;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(223, 190, 136, 0.08);
  pointer-events: none;
}

footer.site-footer img {
  width: clamp(175px, 16vw, 215px);
  height: auto;
}

footer.site-footer p {
  max-width: 34ch;
  color: #c7d1c5;
  margin: 1rem 0 0;
  line-height: 1.72;
  font-size: 0.91rem;
}

.footer-col-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

footer.site-footer a {
  display: table;
  margin-bottom: 0.56em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--fast) ease, border-color var(--fast) ease;
  font-size: 0.92rem;
}

footer.site-footer a:hover {
  color: var(--gold-bright);
  border-bottom-color: rgba(240, 215, 172, 0.45);
}

footer :focus-visible,
.menu:focus-visible {
  outline-color: var(--gold-bright);
  box-shadow: 0 0 0 3px var(--obsidian);
}

.footer-top-link {
  margin-top: 1.15rem;
  font-size: 0.7rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(223, 190, 136, 0.35) !important;
  padding-bottom: 0.25rem;
}

/* Desktop Editorial Cursor Reticle (additive only — never replaces native cursor) */
.cursor-lens {
  display: none;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor-lens {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    pointer-events: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(138, 104, 53, 0.45);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.75);
    opacity: 0;
    transition: width 240ms var(--curve), height 240ms var(--curve), background 240ms ease, border-color 240ms ease, opacity 200ms ease;
  }
  .cursor-lens.is-visible {
    opacity: 1;
  }
  .cursor-lens.is-active {
    width: 66px;
    height: 66px;
    background: rgba(13, 27, 19, 0.84);
    border-color: var(--gold);
    backdrop-filter: blur(4px);
  }
  .cursor-lens span {
    font-size: 0.54rem;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-bright);
    opacity: 0;
    transition: opacity 160ms ease;
  }
  .cursor-lens.is-active span {
    opacity: 1;
  }
}

/* Native Dialogs: Site Search & Workshop Viewer */
dialog {
  border: 1px solid var(--line-strong);
  padding: clamp(20px, 3vw, 44px);
  width: min(620px, 94vw);
  max-height: 90dvh;
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(9, 19, 13, 0.36);
}

dialog::backdrop {
  background: rgba(8, 17, 11, 0.84);
  backdrop-filter: blur(6px);
}

dialog h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin: 0 0 0.75rem;
}

dialog .close {
  float: right;
  padding: 0.52em 0.95em;
  font-size: 0.8rem;
  font-weight: 650;
  border-color: var(--line-strong);
}

dialog .close:hover {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

#search label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass-dark);
  margin-top: 0.5rem;
}

#search input {
  width: 100%;
  padding: 0.78em 0.2em;
  margin-top: 0.35rem;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  font-size: 1.05rem;
}

#search input:focus {
  outline: none;
  border-bottom-color: var(--forest);
}

#search [role="status"] {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1rem 0 0.6rem;
}

#search ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#search li a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

#search li a strong {
  display: block;
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 400;
  color: var(--ink);
}

#search li a span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
  line-height: 1.5;
}

#search li a:hover strong {
  color: var(--brass-dark);
}

/* Workshop Lightbox Viewer */
.viewer {
  width: min(1220px, 96vw);
  max-height: 95dvh;
  border: 1px solid rgba(223, 190, 136, 0.35);
  background: var(--obsidian);
  color: #f8f3e8;
  padding: clamp(14px, 2.2vw, 32px);
}

.viewer::backdrop {
  background: rgba(4, 10, 7, 0.92);
  backdrop-filter: blur(5px);
}

.viewer .toolbar {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
}

.viewer .toolbar-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.viewer .count {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.viewer button {
  color: #f8f3e8;
  border: 1px solid rgba(223, 190, 136, 0.4);
  padding: 0.58em 1em;
  font-size: 0.78rem;
  font-weight: 650;
}

.viewer button:hover,
.viewer button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--obsidian);
  border-color: var(--gold);
}

.viewer :focus-visible {
  outline-color: var(--gold-bright);
  box-shadow: 0 0 0 3px var(--obsidian);
}

.viewer-stage {
  position: relative;
  overflow: hidden;
  background: #07110b;
  border: 1px solid rgba(255, 255, 255, 0.09);
  margin: 0.45rem 0;
}

.viewer img {
  height: min(64dvh, 700px);
  width: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 280ms var(--curve);
}

.viewer img.is-zoomed {
  transform: scale(1.85);
  cursor: zoom-out;
}

.viewer figcaption {
  color: #d6dfd3;
  font-size: 0.88rem;
  letter-spacing: 0;
  margin-top: 0.65rem;
}

body:has(dialog[open]) {
  overflow: hidden;
}

.topic-index {
  max-width: 42ch;
}

.topic-index summary {
  font-weight: 650;
}

.topic-index ul {
  padding-inline-start: 1.4em;
}

/* Desktop Tightening & Mobile Breakpoint Switch (<= 1040px) */
@media (max-width: 1220px) {
  header.site-header {
    gap: 0.8rem;
  }
  .brand img {
    width: 152px;
  }
  nav.site-nav {
    gap: 10px;
  }
  nav.site-nav > a:not(.action),
  nav.site-nav > .search-open {
    font-size: 0.76rem;
  }
  nav.site-nav .action.primary {
    font-size: 0.71rem;
    padding: 0.7em 0.86em;
  }
}

@media (max-width: 1040px) {
  .js header.site-header > .menu {
    display: inline-flex;
    margin-left: auto;
  }
  .js nav.site-nav {
    display: none;
  }
  html:not(.js) nav.site-nav {
    flex-wrap: wrap;
    padding: 0.8rem 0;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
    --header-compact-h: 58px;
  }
  .brand img,
  body.has-scrolled .brand img {
    width: 142px;
  }
  .story,
  .contact-spread,
  footer.site-footer {
    grid-template-columns: 1fr;
  }
  .story,
  .contact-spread {
    gap: 24px;
    padding: 40px 0;
  }
  .story.reverse figure {
    order: 0;
  }
  .archival-plate {
    padding: 14px;
  }
  .archival-plate figcaption {
    font-size: 0.64rem;
    margin-top: 0.7rem;
  }
  footer.site-footer {
    gap: 28px;
    padding-top: 52px;
    padding-bottom: 52px;
  }
  .viewer {
    padding: 12px;
  }
  .viewer .toolbar {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .mobile-drawer-links a {
    opacity: 1 !important;
    transform: none !important;
  }
}
