  :root {
    --wall: #1b1d1f;
    --wall-deep: #141516;
    --text: #f2efe9;
    --dim: #b8b4ab;
    --rule: rgba(242, 239, 233, .2);
    --rule-soft: rgba(242, 239, 233, .1);
    --light: rgba(255, 246, 228, .13);
    --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
    --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    --plate: clamp(240px, 28vw, 400px);
    --pad: clamp(36px, 3.4vw, 56px);
  }
  * { box-sizing: border-box; }
  html { background: var(--wall); color-scheme: dark; }
  body {
    margin: 0; background: var(--wall); color: var(--text);
    font: 400 17.5px/1.62 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  ::selection { background: var(--text); color: var(--wall); }
  a { color: inherit; text-decoration-line: underline; text-decoration-color: rgba(242,239,233,.45); text-decoration-thickness: 1px; text-underline-offset: .22em; transition: text-decoration-color .2s; }
  a:hover { text-decoration-color: var(--text); }
  :focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 1px; }
  main:focus { outline: none; }
  html { scrollbar-color: #4a4d50 var(--wall); }
  ::-webkit-scrollbar { width: 11px; }
  ::-webkit-scrollbar-track { background: var(--wall); }
  ::-webkit-scrollbar-thumb { background: #44474a; border: 3px solid var(--wall); border-radius: 8px; }


  /* The gallery: wall text leads, one modest plate beside it */
  .gallery { display: block; }
  .plate { margin: 0; position: relative; max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
  .plate .frame { position: relative; max-width: 100%; line-height: 0; box-shadow: 0 24px 44px -16px rgba(0,0,0,.75), 0 5px 14px rgba(0,0,0,.45); outline: 1px solid rgba(242,239,233,.14); outline-offset: 0; }
  .plate img { display: block; max-width: 100%; max-height: 60vh; width: auto; height: auto; object-fit: contain; }
  .plate .no { font: 400 18px/1 var(--serif); font-variant-numeric: tabular-nums; color: var(--dim); letter-spacing: .02em; }
  .plate.lit .frame { animation: lights .9s cubic-bezier(.16, 1, .3, 1) both; }
  .plate.lit .no { animation: numeral .9s cubic-bezier(.16, 1, .3, 1) .15s both; }
  @keyframes lights { from { opacity: 0; filter: brightness(.35); transform: translateY(10px); } to { opacity: 1; filter: none; transform: none; } }
  @keyframes numeral { from { opacity: 0; } to { opacity: 1; } }

  .text { max-width: 1260px; margin: 0 auto; padding: clamp(28px, 4.5vh, 52px) var(--pad) 96px; min-width: 0; }
  .masthead { display: flex; align-items: flex-start; gap: 28px; }
  .logo { --mk: 84px; display: flex; align-items: center; gap: calc(var(--mk) * .36); flex: none; line-height: 0; }
  .logo .lw { height: calc(var(--mk) * .8); }
  .logo img { height: var(--mk); width: auto; max-width: none; filter: grayscale(1) invert(1) contrast(1.15); mix-blend-mode: screen; }
  .toggle { display: none; }

  .rooms { margin: 0; padding: 0; list-style: none; flex: 1; max-width: 440px; border-top: 1px solid var(--rule); }
  .rooms li { border-bottom: 1px solid var(--rule-soft); }
  .rooms a { display: flex; gap: 14px; align-items: baseline; padding: 5px 2px; text-decoration: none; font: 500 15.5px/1.35 var(--sans); color: var(--dim); transition: color .2s, padding .25s cubic-bezier(.16,1,.3,1); }
  .rooms a .n { font: 400 15px/1 var(--serif); font-variant-numeric: tabular-nums; min-width: 1.1em; color: var(--dim); }
  .rooms a:hover { color: var(--text); padding-left: 8px; }
  .rooms a[aria-current="page"] { color: var(--text); font-weight: 700; }
  .rooms a[aria-current="page"] .n { color: var(--text); }

  main { display: grid; grid-template-columns: minmax(0, 68ch) minmax(0, var(--plate)); column-gap: clamp(40px, 5vw, 88px); align-content: start; padding-top: clamp(34px, 6vh, 64px); }
  main > * { grid-column: 1; min-width: 0; }
  main > .plate { grid-column: 2; grid-row: 1 / span 60; align-self: start; margin-top: .6em; }
  h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
  h1 { font-size: clamp(42px, 4.4vw, 66px); line-height: 1.02; letter-spacing: -.01em; margin-bottom: 26px; }
  h2 { font-size: clamp(32px, 2.8vw, 40px); line-height: 1.08; margin: 64px 0 18px; }
  h2:first-child { margin-top: 0; }
  h3 { font-size: 27px; line-height: 1.15; margin: 40px 0 6px; }
  p { margin: 0 0 1.1em; max-width: 68ch; }
  .lead { font-size: 20.5px; line-height: 1.5; font-weight: 600; margin-bottom: 1.5em; }
  .lead strong, strong { font-weight: 700; }
  em { font-style: italic; }
  .sec-rule { border: 0; border-top: 1px solid var(--rule); margin: 60px 0 0; }

  .ev { padding: 20px 0 18px; border-top: 1px solid var(--rule); }
  .ev:last-child { border-bottom: 1px solid var(--rule); }
  .ev .date { font: 600 16px/1.3 var(--sans); font-variant-numeric: tabular-nums lining-nums; letter-spacing: .02em; margin: 0 0 6px; }
  .ev .who { font: 700 18.5px/1.35 var(--sans); margin: 0 0 4px; }
  .ev p { margin-bottom: .55em; }
  .ev p:last-child { margin-bottom: 0; }
  .ev .t { font: 400 27px/1.16 var(--serif); margin: 6px 0 8px; max-width: 30ch; }
  .ev .t em { font-style: italic; }
  .past .ev { padding: 14px 0 12px; border-top-color: var(--rule-soft); }
  .past .ev:last-child { border-bottom-color: var(--rule-soft); }
  .past .ev .date { font-weight: 500; color: var(--dim); }
  .past .ev .who { font-weight: 600; font-size: 17.5px; }
  .past .ev .t { font-size: 24px; }
  .ev .when { font: 600 16px/1.45 var(--sans); letter-spacing: .01em; margin: 10px 0 0; }
  .ev .when span { display: block; }
  .home-block { margin-top: 56px; }
  .home-block h2 { margin: 0 0 14px; }
  .home-block h2 a { text-decoration-color: rgba(242,239,233,.3); }
  .home-block h2 a:hover { text-decoration-color: var(--text); }
  .home-block + .home-block { margin-top: 48px; }

  .pub { padding: 22px 0 20px; border-top: 1px solid var(--rule); }
  .pubs .pub:last-child, .pub.single { border-bottom: 1px solid var(--rule); }
  .pub .title { font: 400 25px/1.22 var(--serif); margin: 0 0 10px; max-width: 34ch; }
  .pub .title strong { font-weight: 400; }
  .pub .title a { text-decoration-color: rgba(242,239,233,.3); }
  .pub .cite { font-size: 16.5px; color: var(--dim); margin-bottom: .8em; }
  .pub .sum { margin-bottom: 0; }
  .person { margin: 0 0 4px; }
  .person-role { margin: 0 0 18px; color: var(--dim); font-size: 16.5px; }
  .group + .group { margin-top: 20px; }

  address { font-style: normal; }
  .contact-block { padding: 20px 0; border-top: 1px solid var(--rule); }
  .contact-block:last-child { border-bottom: 1px solid var(--rule); }
  .contact-block p { margin: 0; }
  .contact-block p + p { margin-top: .15em; }
  .contact-block p:first-child { font-weight: 700; }
  .contact-block.plain p:first-child { font-weight: 400; }

  /* people photos: framed, unfaded, inside the text column */
  .fig { margin: 8px 0 36px; max-width: 420px; }
  .fig img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; box-shadow: 0 24px 44px -16px rgba(0,0,0,.75), 0 5px 14px rgba(0,0,0,.45); outline: 1px solid rgba(242,239,233,.14); }
  .bio { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 28px; align-items: start; }
  .bio + .bio { margin-top: 2em; }
  .bio .portrait { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; margin-top: .3em; box-shadow: 0 14px 30px -12px rgba(0,0,0,.7); outline: 1px solid rgba(242,239,233,.14); }
  .bio-t > p:last-child { margin-bottom: 0; }
  @media (max-width: 600px) {
    .bio { grid-template-columns: minmax(0, 1fr); }
    .bio .portrait { width: 150px; margin: 0 0 16px; }
  }

  /* Mobile: plate as a banner, room list behind a toggle */
  @media (max-width: 899px) {
    body { font-size: 17px; }
    main { display: block; }
    .plate { margin: 4px 0 30px; }
    .plate img { max-height: 220px; }
    .text { padding: 20px 18px 72px; }
    .masthead { align-items: center; justify-content: space-between; position: relative; }
    .logo { --mk: 48px; }
    .toggle { margin-left: auto; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--rule); background: transparent; color: var(--text); border-radius: 2px; cursor: pointer; }
    .toggle:hover { border-color: var(--text); }
    .toggle svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; }
    .toggle .x { display: none; }
    .toggle[aria-expanded="true"] .x { display: block; }
    .toggle[aria-expanded="true"] .bars { display: none; }
    .rooms { display: none; position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); background: var(--wall); border: 1px solid var(--rule); border-top: 1px solid var(--rule); padding: 6px 14px; box-shadow: 0 24px 40px rgba(0,0,0,.6); flex: none; max-width: none; }
    .rooms.open { display: block; }
    .rooms a { padding: 12px 2px; font-size: 17px; }
    h1 { font-size: 40px; }
    .ev .t { font-size: 24px; max-width: none; }
    .pub .title { font-size: 23px; max-width: none; }
    main { padding-top: 28px; }
    .masthead { flex-direction: row; gap: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .plate.lit .frame, .plate.lit .no { animation: none; }
    * { transition: none !important; }
  }
body:has(.rooms.open) #main{visibility:hidden}

/* horizontal nav: logo row, then the rooms in one row under a hairline */
@media (min-width: 1100px) {
  .masthead { flex-wrap: wrap; align-items: center; row-gap: 22px; }
  .masthead > nav { flex: 1 0 100%; }
  .rooms { display: flex; justify-content: space-between; gap: 8px 26px; max-width: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 0; }
  .rooms li { border: 0; }
  .rooms a { padding: 14px 0 13px; font-size: 14.5px; letter-spacing: .01em; position: relative; }
  .rooms a:hover { padding-left: 0; }
  .rooms a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.16,1,.3,1); }
  .rooms a:hover::after, .rooms a[aria-current="page"]::after { transform: scaleX(1); }
  .rooms a[aria-current="page"] { font-weight: 600; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .masthead { align-items: center; justify-content: space-between; position: relative; }
  .toggle { margin-left: auto; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--rule); background: transparent; color: var(--text); border-radius: 2px; cursor: pointer; }
  .toggle svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; }
  .toggle .x { display: none; }
  .toggle[aria-expanded="true"] .x { display: block; }
  .toggle[aria-expanded="true"] .bars { display: none; }
  .rooms { display: none; position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); background: var(--wall); border: 1px solid var(--rule); padding: 6px 14px; box-shadow: 0 24px 40px rgba(0,0,0,.6); max-width: none; }
  .rooms.open { display: block; }
  .rooms a { padding: 12px 2px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .rooms a::after { transition: none; } }

/* plates as large images fading into the wall behind the text (desktop) */
@media (min-width: 900px) {
  main { display: block; position: relative; }
  main > * { position: relative; z-index: 1; max-width: 68ch; }
  main > .plate { position: absolute; z-index: 0; max-width: none; top: 0; right: calc(var(--pad) * -1); width: min(58vw, 900px); margin: 0; pointer-events: none; }
  main > .plate .frame { box-shadow: none; outline: none; width: 100%; }
  main > .plate img { width: 100%; height: min(78vh, 720px); max-height: none; object-fit: cover; object-position: center;
    opacity: .34; filter: saturate(.6) brightness(.72);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 30%, #000 72%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 22%, #000 58%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, transparent 30%, #000 72%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 22%, #000 58%, transparent 100%);
    mask-composite: intersect; }
  .past { margin-top: 64px; }
  .past > h2 { padding-top: 26px; }
}

/* light theme of the Exhibition design: pale gallery wall, ink text, photos fading into the wall */
:root {
  --wall: #f4f2ee; --wall-deep: #e9e6e0; --text: #1c1d1f; --dim: #55534e;
  --rule: rgba(28, 29, 31, .18); --rule-soft: rgba(28, 29, 31, .09); --light: rgba(0, 0, 0, .04);
}
html, body { background: var(--wall); color: var(--text); }
a { text-decoration-color: rgba(28,29,31,.4); }
.home-block h2 a, .pub .title a { text-decoration-color: rgba(28,29,31,.3); }
.logo img { filter: none; mix-blend-mode: multiply; }
.plate .frame, .fig img, .bio .portrait { box-shadow: 0 18px 36px -18px rgba(0,0,0,.35), 0 3px 10px rgba(0,0,0,.12); }
@media (min-width: 900px) { main > .plate img { opacity: .5; filter: saturate(.75) brightness(1.04) contrast(.92); } }
::selection { background: #1c1d1f; color: #f4f2ee; }

/* the page holds at least a screen, so the footer is always a scroll away */
main { min-height: calc(100svh - 150px); }
#collaboration { scroll-margin-top: 32px; }
.collab-fig { margin-top: 4px; margin-bottom: 28px; }
html[data-route="center"] main > section + section { margin-top: 52px; }

/* site footer: the contact details, set like a wall label at the foot of the room */
.site-foot { position: relative; z-index: 1; background: var(--wall); margin-top: clamp(120px, 16vh, 200px); padding-top: 34px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(150px, .9fr) minmax(0, 1.5fr) minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px clamp(24px, 3vw, 48px); align-items: start; font-size: 15.5px; line-height: 1.55; }
.site-foot .foot-id { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.site-foot .foot-id img { width: 58px; height: auto; mix-blend-mode: multiply; }
.site-foot h2 { font-size: 30px; line-height: 1; margin: 0; }
.site-foot address { display: contents; }
.site-foot .fb p { margin: 0; color: var(--dim); }
.site-foot .fb p:first-child { color: var(--text); }
.site-foot .fb.name p:first-child { font-weight: 700; }
.site-foot .fb a { color: var(--text); }
.site-foot .fb.reach p { color: var(--text); }
@media (max-width: 1099px) {
  .site-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-foot .foot-id { grid-column: 1 / -1; flex-direction: row; align-items: center; }
}
@media (max-width: 599px) {
  .site-foot { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 96px; padding-top: 28px; font-size: 16px; }
  .site-foot .foot-id img { width: 46px; }
  .site-foot h2 { font-size: 28px; }
}
.site-foot .credit { grid-column: 1 / -1; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--rule-soft); font: 400 12px/1.4 var(--sans); letter-spacing: .02em; color: var(--dim); max-width: none; }
.site-foot .credit a { color: var(--dim); text-decoration-color: rgba(85,83,78,.45); }
.site-foot .credit a:hover { color: var(--text); text-decoration-color: var(--text); }
body:has(.rooms.open) .site-foot { visibility: hidden; }

/* giving panel */
.give { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--rule); max-width: 34rem; }
.give .row + .row { margin-top: 26px; }
.seg { display: inline-flex; border: 1px solid var(--text); border-radius: 2px; padding: 3px; gap: 3px; background: var(--wall); }
.seg button, .amts button, .donate, .again { font: inherit; cursor: pointer; color: var(--text); background: transparent; border: 0; border-radius: 1px; }
.seg button { font: 600 15px/1 var(--sans); letter-spacing: .01em; padding: 12px 22px; min-height: 44px; transition: background-color .2s, color .2s; }
.seg button:hover { background: var(--wall-deep); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--wall); }
.amts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.amts button { font: 400 28px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; padding: 16px 6px 15px; min-height: 60px; border: 1px solid var(--rule); background: rgba(255,255,255,.5); transition: border-color .2s, background-color .2s, color .2s; }
.amts button:hover { border-color: var(--text); }
.amts button[aria-pressed="true"] { background: var(--text); color: var(--wall); border-color: var(--text); }
.other label { display: block; font: 600 15px/1.3 var(--sans); margin: 0 0 8px; }
.other .field { display: flex; align-items: center; max-width: 16rem; border: 1px solid var(--rule); background: rgba(255,255,255,.5); border-radius: 1px; transition: border-color .2s; }
.other .field:hover { border-color: var(--dim); }
.other .field:focus-within { border-color: var(--text); outline: 2px solid var(--text); outline-offset: 3px; }
.other .field span { font: 400 26px/1 var(--serif); color: var(--dim); padding: 0 4px 0 16px; }
.other input { flex: 1; min-width: 0; font: 400 26px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--text); background: transparent; border: 0; padding: 14px 14px 13px 2px; caret-color: var(--text); }
.other input:focus { outline: none; }
.other input::placeholder { color: #8a877f; }
.donate { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 58px; padding: 16px 24px; background: var(--text); color: var(--wall); font: 600 17px/1.2 var(--sans); letter-spacing: .01em; box-shadow: 0 12px 24px -14px rgba(0,0,0,.55); transition: background-color .2s, box-shadow .25s, transform .25s cubic-bezier(.16,1,.3,1); }
.donate:hover:not(:disabled) { background: #000; box-shadow: 0 16px 28px -14px rgba(0,0,0,.6); transform: translateY(-1px); }
.donate:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.give .done { padding: 6px 0 4px; }
.give .done h2 { margin: 0 0 8px; font-size: 44px; }
.give .done p { font: 400 24px/1.3 var(--serif); font-variant-numeric: lining-nums; color: var(--dim); margin: 0 0 24px; }
.give .done h2:focus { outline: none; }
.again { font: 600 15px/1 var(--sans); padding: 13px 20px; min-height: 44px; border: 1px solid var(--text); transition: background-color .2s, color .2s; }
.again:hover { background: var(--text); color: var(--wall); }
.give .done { animation: settle .6s cubic-bezier(.16,1,.3,1) both; }
@keyframes settle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) {
  .amts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg { display: flex; }
  .seg button { flex: 1; }
  .other .field { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .give .done { animation: none; } .donate:hover:not(:disabled) { transform: none; } }

/* loading and load failure */
html.loading .gallery { visibility: hidden; }
.load-error { font-size: 16px; color: var(--dim); max-width: 40ch; }
html.failed .masthead, html.failed .site-foot { display: none; }
.ev .t a { text-decoration-color: rgba(28,29,31,.3); }

/* Donate is a link to the seminary donation page */
a.donate { text-decoration: none; max-width: 22rem; }
a.donate:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

/* masks split across two elements so they always multiply (no mask-composite needed): no visible left edge */
@media (min-width: 900px) {
  main > .plate .frame { -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 30%, #000 72%, #000 78%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, transparent 30%, #000 72%, #000 78%, transparent 100%); }
  main > .plate img { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 58%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 58%, transparent 100%); -webkit-mask-composite: source-over; mask-composite: add; }
}

/* a section merged into another page gets its own heading (2026-11-20) */
.sec-h { margin-top: 80px; }

/* one-piece logo (no logo name in media.logo): the main image takes the whole lockup, wider if it needs to be */
.logo.single .lw { display: none; }
.logo.single .lm { height: var(--mk); width: auto; max-width: 360px; object-fit: contain; object-position: left center; }
@media (max-width: 899px) { .logo.single .lm { max-width: min(70vw, 360px); } }
html.logo-single .site-foot .foot-id img { width: auto; height: 38px; max-width: 200px; object-fit: contain; object-position: left center; }
@media (max-width: 899px) { html.logo-single .site-foot .foot-id img { height: 30px; } }
