:root {
  --bvj-ground: #F1ECF9;
  --bvj-ink: #222F2F;
  --bvj-rust: #8D4C30;
  --bvj-clay: #E2C7C5;
  --bvj-surface: #FBFAFC;
  --bvj-display: 'El Messiri', Georgia, serif;
  --bvj-copy: 'Almarai', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--bvj-ink); background: var(--bvj-ground); font: 400 18px/1.75 var(--bvj-copy); }
img { display: block; max-width: 100%; }
figure, blockquote { margin: 0; }
a { color: var(--bvj-rust); text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
a:hover { color: var(--bvj-ink); text-decoration-thickness: 3px; }
a:focus-visible { outline: 3px solid var(--bvj-rust); outline-offset: 6px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--bvj-display); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(44px, 4.9vw, 72px); line-height: 1.06; letter-spacing: -.025em; }
h2 { font-size: clamp(32px, 3.3vw, 48px); line-height: 1.13; letter-spacing: -.018em; }
h3 { font-size: 27px; line-height: 1.3; }
p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }
/* The unpainted icon slots remain the site's doorjamb motif offline. Lucide
   replaces each slot with its named SVG when the pinned CDN is available. */
i[data-lucide] { display: inline-block; flex: 0 0 auto; width: 21px; height: 21px; border: 2px solid currentColor; border-bottom: 0; box-shadow: inset -5px 0 0 var(--bvj-ground); }
svg[data-lucide] { flex: 0 0 auto; width: 21px; height: 21px; stroke-width: 1.7; }
.bvj-jump { position: absolute; z-index: 20; top: -100px; left: 20px; padding: 10px 18px; background: var(--bvj-surface); }
.bvj-jump:focus { top: 20px; }
.bvj-soffit { height: 112px; border-top: 18px solid var(--bvj-rust); position: relative; padding: 19px 175px 15px 5.55%; background: var(--bvj-ground); z-index: 5; }
.bvj-wordmark { display: inline-flex; align-items: center; gap: 16px; color: var(--bvj-ink); text-decoration: none; font: 600 27px/1.02 var(--bvj-display); }
.bvj-wordmark img { width: 40px; height: 48px; }
.bvj-wordmark:hover { color: var(--bvj-rust); }
.bvj-face { position: absolute; right: 0; top: -18px; bottom: -18px; z-index: 6; width: 142px; background: var(--bvj-clay); padding: 17px 22px; display: flex; flex-direction: column; justify-content: center; gap: 3px; box-shadow: -9px 9px 0 var(--bvj-surface); }
.bvj-face a { display: flex; align-items: center; gap: 9px; width: fit-content; color: var(--bvj-ink); font-size: 16px; line-height: 1.6; text-decoration: none; }
.bvj-face svg, .bvj-face i { width: 16px; height: 16px; }
.bvj-face a:hover span { text-decoration: underline; text-decoration-color: var(--bvj-rust); text-underline-offset: 5px; }
/* One photograph fills the opening. Solid pieces of the threshold carry every
   word; the empty space between them is deliberately photographic. */
.bvj-home { position: relative; isolation: isolate; height: 660px; background: var(--bvj-ground); }
.bvj-background-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 10%; z-index: -2; }
.bvj-upper-lintel { position: relative; width: 57%; max-width: 850px; padding: 34px 40px 32px 9.7%; background: var(--bvj-ground); box-shadow: 16px 16px 0 var(--bvj-clay); z-index: 4; }
.bvj-upper-lintel h1 { max-width: 660px; margin-bottom: 18px; }
.bvj-status-line { max-width: 560px; font-size: 17px; line-height: 1.6; margin-bottom: 0; }
.bvj-stage { position: static; }
.bvj-welcome { position: absolute; left: 0; bottom: 0; width: 28%; padding: 25px 28px 30px 5.55%; background: var(--bvj-ground); z-index: 3; }
.bvj-welcome strong { display: block; font: 600 32px/1.2 var(--bvj-display); margin-bottom: 13px; }
.bvj-welcome p { font-size: 17px; line-height: 1.65; max-width: 265px; }
.bvj-inscription { position: absolute; right: 0; bottom: 0; width: 31%; padding: 30px 34px 32px 25px; display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 20px; align-content: start; background: var(--bvj-surface); z-index: 4; }
.bvj-care-word { font: 500 72px/1 var(--bvj-display); writing-mode: vertical-rl; justify-self: start; align-self: start; position: relative; padding-bottom: 24px; }
.bvj-care-word::after { content: ''; position: absolute; bottom: 0; left: 3px; right: 3px; height: 12px; background: var(--bvj-rust); }
.bvj-inscription p { font-size: 16px; line-height: 1.58; margin: 0; }
.bvj-photo-opening { position: absolute; left: 28%; right: 31%; top: 40%; bottom: 0; border: 15px solid var(--bvj-ground); border-bottom: 0; z-index: 1; }
.bvj-photo-opening::before { content: ''; position: absolute; inset: 0; border: 13px solid var(--bvj-clay); border-bottom: 0; pointer-events: none; }
.bvj-photo-opening::after { content: ''; position: absolute; inset: 13px 13px 0; border: 11px solid var(--bvj-ground); border-bottom: 0; pointer-events: none; }
.bvj-shallow-photo { display: none; }
.bvj-crossing { position: absolute; z-index: 2; left: 26px; bottom: -45px; width: 160px; height: 182px; object-fit: cover; border: 9px solid var(--bvj-surface); box-shadow: 14px 14px 0 var(--bvj-rust), 24px 24px 0 var(--bvj-clay); }
.bvj-foundation { position: absolute; bottom: -14px; left: 0; height: 14px; width: 28%; background: var(--bvj-rust); }
/* The two open-bottom chambers recede by different amounts. Their large
   numerals sit across the jamb rather than in a row of content cards. */
.bvj-home-reading { padding-top: 102px; }
.bvj-chamber { position: relative; display: grid; grid-template-columns: .85fr 1.35fr; column-gap: 7%; border: 22px solid var(--bvj-clay); border-bottom: 0; padding: 46px 58px 76px; background: var(--bvj-surface); margin: 0 9% 0 6.6%; }
.bvj-room-marker { grid-column: 1 / -1; position: relative; display: flex; align-items: center; gap: 12px; min-height: 54px; padding-left: 82px; color: var(--bvj-rust); font-size: 16px; margin-bottom: 36px; }
.bvj-room-marker span { position: absolute; left: -100px; top: -65px; font: 500 156px/1 var(--bvj-display); background: var(--bvj-ground); padding: 8px 23px 0; color: var(--bvj-rust); }
.bvj-room-marker svg, .bvj-room-marker i { width: 25px; height: 25px; }
.bvj-chamber h2 { grid-column: 1; align-self: start; position: sticky; top: 32px; margin-bottom: 0; }
.bvj-reading-text { grid-column: 2; max-width: 710px; }
.bvj-chamber + .bvj-chamber { margin: 0 14% 0 13%; border-color: var(--bvj-ground); border-width: 28px; border-bottom: 0; padding-top: 65px; box-shadow: -28px 0 0 var(--bvj-surface), 28px 0 0 var(--bvj-surface); }
.bvj-chamber + .bvj-chamber .bvj-room-marker span { background: var(--bvj-clay); top: -25px; left: -130px; }
.bvj-exit { position: relative; padding: 76px 8% 84px; background: var(--bvj-clay); display: grid; grid-template-columns: .85fr 1.35fr; column-gap: 9%; border-top: 18px solid var(--bvj-surface); }
.bvj-exit .bvj-room-marker { grid-column: 1; padding-left: 0; margin: 0 0 28px; gap: 12px; }
.bvj-exit .bvj-room-marker span { position: static; background: transparent; font-size: 102px; padding: 0 9px 0 0; }
.bvj-exit h2 { grid-column: 1; }
.bvj-exit .bvj-reading-text { grid-column: 2; grid-row: 1 / span 3; padding-top: 15px; }
.bvj-exit a, .bvj-exit .bvj-room-marker { color: var(--bvj-ink); }
.bvj-exit .bvj-room-marker span { color: var(--bvj-rust); }
.bvj-directory { padding: 66px 6.6% 76px; }
.bvj-directory h2 { font-size: 38px; margin-bottom: 32px; }
.bvj-door-links { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 25px; }
.bvj-door-links a { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 22px; min-height: 152px; padding: 24px 18px 18px; color: var(--bvj-ink); border: 8px solid var(--bvj-clay); border-bottom: 0; font-size: 18px; text-decoration: none; }
.bvj-door-links svg, .bvj-door-links i { width: 30px; height: 30px; color: var(--bvj-rust); }
.bvj-door-links a::after { content: ''; position: absolute; right: -8px; top: 20px; bottom: 0; width: 8px; background: var(--bvj-rust); opacity: 0; }
.bvj-door-links a:hover, .bvj-door-links a:focus-visible { transform: translateY(-6px); background: var(--bvj-surface); border-color: var(--bvj-rust); text-decoration: underline; }
.bvj-door-links a:hover::after, .bvj-door-links a:focus-visible::after { opacity: 1; }
/* Inner headers keep the same architecture at a smaller scale. */
.bvj-inner-header { position: relative; isolation: isolate; padding: 38px 8% 58px; }
.bvj-inner-lintel { position: relative; max-width: 1000px; }
.bvj-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 16px; margin-bottom: 26px; }
.bvj-breadcrumb svg, .bvj-breadcrumb i { margin-left: auto; color: var(--bvj-rust); }
.bvj-inner-lintel h1 { max-width: 950px; margin-bottom: 20px; font-size: clamp(40px, 4.4vw, 63px); }
.bvj-inner-dek { max-width: 760px; font-size: 19px; line-height: 1.6; }
.bvj-has-photo { min-height: 432px; padding: 38px 0 50px 5.55%; }
.bvj-has-photo .bvj-inner-lintel { width: 65%; max-width: 930px; padding: 28px 38px 32px; background: var(--bvj-ground); box-shadow: 15px 15px 0 var(--bvj-clay); }
.bvj-has-photo .bvj-inner-lintel h1 { font-size: clamp(40px, 4.05vw, 59px); }
.bvj-photo-band { position: absolute; inset: 0; z-index: -1; }
.bvj-photo-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.bvj-photo-band::after { content: ''; position: absolute; right: 7%; bottom: -34px; width: 15%; height: 130px; border: 15px solid var(--bvj-ground); border-bottom: 0; box-shadow: 13px -13px 0 var(--bvj-rust); }
.bvj-body-jamb { position: relative; max-width: 1240px; margin: 0 auto 10px; border: 20px solid var(--bvj-clay); border-bottom: 0; background: var(--bvj-surface); padding: 64px 74px 18px; }
.bvj-has-photo + .bvj-body-jamb { margin-top: -20px; }
.bvj-chapter { position: relative; display: grid; grid-template-columns: .8fr 1.7fr; column-gap: 7%; padding: 8px 0 48px; }
.bvj-chapter + .bvj-chapter { padding-top: 44px; border-top: 8px solid var(--bvj-ground); }
.bvj-chapter h2 { grid-column: 1; grid-row: 1 / span 8; font-size: 32px; line-height: 1.2; margin-bottom: 24px; }
.bvj-chapter p { grid-column: 2; }
.bvj-chapter-number { position: absolute; left: -102px; top: -15px; color: var(--bvj-rust); background: var(--bvj-ground); padding: 10px 8px 0; font: 500 85px/1 var(--bvj-display); }
.bvj-chapter + .bvj-chapter .bvj-chapter-number { top: 27px; background: var(--bvj-clay); }
.bvj-shelf-entry { display: grid; grid-template-columns: 1fr 1.7fr; gap: 0 8%; border-top: 8px solid var(--bvj-ground); padding: 32px 0; }
.bvj-shelf-entry h2 { grid-row: 1 / span 2; font-size: 28px; line-height: 1.22; margin-bottom: 10px; }
.bvj-shelf-entry p { grid-column: 2; font-size: 17px; }
.bvj-shelf-entry .bvj-citation-line { font-size: 16px; line-height: 1.65; }
.bvj-foot { padding: 38px 6.6% 32px; background: var(--bvj-surface); display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px 45px; border-top: 14px solid var(--bvj-rust); }
.bvj-foot p { max-width: 660px; font-size: 16px; line-height: 1.65; margin: 0; }
.bvj-foot nav { display: flex; justify-content: flex-end; align-items: flex-start; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; }
.bvj-foot small { font-size: 14px; grid-column: 1 / -1; }
.bvj-missing { min-height: 55vh; padding: 65px 8%; }
.bvj-missing h1 { max-width: 850px; }
@media (min-width: 1700px) {
  .bvj-home { height: 720px; }
  .bvj-upper-lintel { padding-left: 80px; }
  .bvj-inscription { width: 30%; padding: 38px 45px; }
  .bvj-inscription p { font-size: 18px; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .bvj-home { height: 740px; }
  .bvj-upper-lintel { width: 66%; padding: 32px 30px 32px 5.55%; }
  .bvj-upper-lintel h1 { font-size: 55px; }
  .bvj-welcome { width: 32%; padding: 28px; }
  .bvj-inscription { width: 42%; padding: 28px 25px; grid-template-columns: 50px minmax(0,1fr); gap: 16px; }
  .bvj-care-word { font-size: 58px; }
  .bvj-photo-opening { left: 32%; right: 42%; top: 42%; border-width: 10px; border-bottom: 0; }
  .bvj-photo-opening::before { border-width: 8px; border-bottom: 0; }
  .bvj-photo-opening::after { inset: 8px 8px 0; border-width: 7px; border-bottom: 0; }
  .bvj-crossing { left: -22px; width: 124px; height: 148px; }
  .bvj-chamber { display: block; padding: 42px 40px 60px; }
  .bvj-chamber h2 { position: static; max-width: 600px; margin-bottom: 30px; }
  .bvj-reading-text { max-width: 740px; }
  .bvj-room-marker { padding-left: 40px; }
  .bvj-room-marker span { left: -80px; font-size: 112px; top: -38px; }
  .bvj-chamber + .bvj-chamber .bvj-room-marker span { left: -98px; }
  .bvj-body-jamb { margin-left: 5%; margin-right: 5%; padding: 50px 46px 12px; }
  .bvj-chapter { grid-template-columns: .9fr 1.4fr; gap: 0 6%; }
  .bvj-chapter-number { left: -75px; font-size: 64px; }
  .bvj-door-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bvj-has-photo .bvj-inner-lintel { width: 76%; padding: 24px 30px; }
}
@media (max-width: 700px) {
  body { font-size: 17px; line-height: 1.7; }
  .bvj-soffit { height: 70px; border-top-width: 10px; padding: 8px 89px 7px 20px; }
  .bvj-wordmark { gap: 10px; font-size: 21px; line-height: 1; }
  .bvj-wordmark img { width: 26px; height: 35px; }
  .bvj-face { top: -10px; bottom: 0; width: 76px; padding: 6px 9px; gap: 1px; box-shadow: -5px 5px 0 var(--bvj-surface); }
  .bvj-face a { font-size: 14px; line-height: 1.3; min-height: 18px; }
  .bvj-face i, .bvj-face svg { display: none; }
  .bvj-home { height: auto; padding-bottom: 0; }
  .bvj-background-photo { top: auto; bottom: 0; height: 100px; object-position: center 57%; }
  .bvj-upper-lintel { width: 100%; max-width: none; padding: 20px 20px 15px; box-shadow: none; }
  .bvj-upper-lintel h1 { font-size: 32px; line-height: 1.12; margin-bottom: 12px; letter-spacing: -.015em; }
  .bvj-status-line { font-size: 16px; line-height: 1.45; }
  .bvj-stage { display: flex; flex-direction: column; }
  .bvj-welcome { position: static; order: 1; width: 100%; padding: 0 20px 16px; font-size: 16px; line-height: 1.4; }
  .bvj-welcome strong { display: inline; font: 700 16px/1.4 var(--bvj-copy); margin: 0 7px 0 0; }
  .bvj-welcome p { display: inline; font-size: 16px; line-height: 1.4; max-width: none; }
  .bvj-inscription { position: static; order: 2; width: 100%; display: block; padding: 0 20px 20px; background: var(--bvj-ground); }
  .bvj-care-word { display: block; width: fit-content; writing-mode: horizontal-tb; font-size: 36px; line-height: 1; padding-bottom: 8px; margin-bottom: 10px; }
  .bvj-care-word::after { left: 0; right: 0; height: 6px; }
  .bvj-inscription p { font-size: 16px; line-height: 1.43; }
  .bvj-photo-opening { position: relative; order: 3; inset: auto; height: 100px; flex: 0 0 100px; margin: 0 20px; border-width: 9px; border-bottom: 0; }
  .bvj-shallow-photo { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; z-index: -1; }
  .bvj-photo-opening::before { border-width: 8px; border-bottom: 0; }
  .bvj-photo-opening::after { inset: 8px 8px 0; border-width: 7px; border-bottom: 0; }
  .bvj-crossing { width: 75px; height: 85px; left: 17px; bottom: -14px; border-width: 5px; box-shadow: 6px 6px 0 var(--bvj-rust), 11px 11px 0 var(--bvj-clay); }
  .bvj-foundation { bottom: 0; left: 0; width: 20px; height: 100px; background: var(--bvj-ground); }
  .bvj-home-reading { padding-top: 66px; }
  .bvj-chamber { display: block; margin: 0 14px; border-width: 12px; border-bottom: 0; padding: 28px 20px 40px; }
  .bvj-room-marker { min-height: 50px; padding-left: 43px; font-size: 15px; margin-bottom: 24px; gap: 9px; }
  .bvj-room-marker span { font-size: 76px; left: -43px; top: -47px; padding: 6px 14px 0; }
  .bvj-room-marker svg, .bvj-room-marker i { width: 21px; height: 21px; }
  .bvj-chamber h2 { position: static; font-size: 32px; margin-bottom: 25px; }
  .bvj-chamber + .bvj-chamber { margin: 0 26px; border-width: 10px; border-bottom: 0; padding: 35px 16px 40px; box-shadow: -12px 0 0 var(--bvj-surface), 12px 0 0 var(--bvj-surface); }
  .bvj-chamber + .bvj-chamber .bvj-room-marker span { left: -42px; top: -20px; }
  .bvj-chamber + .bvj-chamber .bvj-room-marker { margin-bottom: 26px; }
  .bvj-exit { display: block; padding: 28px 28px 44px; border-top-width: 12px; }
  .bvj-exit .bvj-room-marker { margin-bottom: 18px; }
  .bvj-exit .bvj-room-marker span { font-size: 72px; }
  .bvj-exit h2 { font-size: 33px; }
  .bvj-exit .bvj-reading-text { padding-top: 0; }
  .bvj-directory { padding: 38px 28px 46px; }
  .bvj-directory h2 { font-size: 32px; }
  .bvj-door-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 18px; }
  .bvj-door-links a { min-height: 150px; padding: 15px 9px; gap: 20px; border-width: 6px; border-bottom: 0; font-size: 16px; line-height: 1.45; }
  .bvj-door-links svg, .bvj-door-links i { width: 26px; height: 26px; }
  .bvj-door-links a::after { width: 6px; right: -6px; }
  .bvj-inner-header { padding: 25px 24px 32px; }
  .bvj-inner-lintel h1 { font-size: 36px; line-height: 1.12; }
  .bvj-inner-dek { font-size: 18px; line-height: 1.55; }
  .bvj-breadcrumb { font-size: 16px; line-height: 1.5; margin-bottom: 22px; }
  .bvj-breadcrumb svg, .bvj-breadcrumb i { display: none; }
  .bvj-has-photo { min-height: 0; padding: 0 0 150px; }
  .bvj-has-photo .bvj-inner-lintel { width: 100%; padding: 25px 24px 28px; box-shadow: none; }
  .bvj-has-photo .bvj-inner-lintel h1 { font-size: 36px; }
  .bvj-photo-band { top: auto; height: 150px; }
  .bvj-photo-band::after { right: 24px; bottom: -20px; width: 75px; height: 74px; border-width: 9px; border-bottom: 0; box-shadow: 8px -8px 0 var(--bvj-rust); }
  .bvj-body-jamb, .bvj-has-photo + .bvj-body-jamb { margin: 0 14px 0; border-width: 12px; border-bottom: 0; padding: 38px 20px 8px; }
  .bvj-chapter { display: block; padding: 4px 0 30px; }
  .bvj-chapter + .bvj-chapter { padding-top: 30px; }
  .bvj-chapter h2 { font-size: 29px; margin-bottom: 24px; }
  .bvj-chapter-number, .bvj-chapter + .bvj-chapter .bvj-chapter-number { position: relative; display: block; width: fit-content; left: -39px; top: auto; font-size: 54px; padding: 6px 10px 0; margin-bottom: 20px; }
  .bvj-shelf-entry { display: block; padding: 28px 0; }
  .bvj-shelf-entry h2 { font-size: 27px; margin-bottom: 18px; }
  .bvj-shelf-entry p { overflow-wrap: anywhere; }
  .bvj-foot { display: block; padding: 28px 26px; }
  .bvj-foot nav { justify-content: flex-start; margin: 24px 0 22px; }
  .bvj-foot small { display: block; font-size: 14px; }
  .bvj-missing { padding: 40px 24px; }
  .bvj-missing h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bvj-door-links a:hover, .bvj-door-links a:focus-visible { transform: none; }
}
