
:root {
  color-scheme: light dark;
  --paper: #f8f6f1;
  --ink: #171614;
  --muted: #625f59;
  --line: #d7d0c4;
  --accent: #9e2b2b;
  --panel: #efebe3;
  --shadow: 0 14px 40px rgba(21, 19, 16, .09);
  --measure: 69ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171614;
    --ink: #f4f0e8;
    --muted: #c1b9ad;
    --line: #433f39;
    --accent: #ef6a61;
    --panel: #211f1c;
    --shadow: 0 14px 40px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --paper: #171614;
  --ink: #f4f0e8;
  --muted: #c1b9ad;
  --line: #433f39;
  --accent: #ef6a61;
  --panel: #211f1c;
  --shadow: 0 14px 40px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); color: var(--ink); }
body {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.68;
}
a { color: inherit; }
img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* browser crop only; source bytes remain untouched */
}
.skip {
  position: fixed; top: .5rem; left: .5rem; z-index: 100;
  transform: translateY(-160%);
  background: var(--ink); color: var(--paper); padding: .7rem 1rem;
}
.skip:focus { transform: none; }
.sitebar {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
}
.sitebar__inner {
  max-width: 1240px; margin: 0 auto; padding: .7rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 750; text-decoration: none; }
.sitebar nav { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.sitebar nav a, .theme {
  border: 0; background: transparent; color: var(--ink); font: inherit;
  padding: .45rem .65rem; border-radius: .3rem; cursor: pointer;
}
.sitebar nav a[aria-current="page"] { background: var(--panel); }
.sitebar a:focus-visible, .theme:focus-visible, .photo a:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
.hero {
  max-width: 1240px; margin: 0 auto; padding: clamp(3rem, 8vw, 8rem) 1rem 3rem;
}
.kicker {
  font-family: ui-sans-serif, system-ui, sans-serif; letter-spacing: .15em;
  text-transform: uppercase; font-size: .75rem; font-weight: 800; color: var(--accent);
}
h1 {
  font-size: clamp(3.1rem, 8.4vw, 7.8rem);
  line-height: .91; letter-spacing: -.055em; margin: .5rem 0 1.1rem;
  max-width: 10ch; font-weight: 500;
}
.deck { max-width: 34ch; font-size: clamp(1.2rem, 2.2vw, 2rem); color: var(--muted); }
main { max-width: 1240px; margin: 0 auto; padding: 0 1rem 5rem; }
.prose { max-width: var(--measure); font-size: clamp(1.06rem, 1.5vw, 1.22rem); }
.prose h2, .chapter h2 {
  font-size: clamp(2rem, 4vw, 4.5rem); line-height: 1; letter-spacing: -.035em;
  font-weight: 500; margin: 4rem 0 1.4rem;
}
.prose p { margin: 0 0 1.18rem; }
.prose .question {
  margin: .15rem 0; font-size: clamp(1.2rem, 2vw, 1.7rem); font-style: italic;
}
.photo {
  margin: 0; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.photo a {
  display: block; overflow: hidden; background: #ddd; height: 100%;
}
.photo figcaption {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .78rem; line-height: 1.35; color: var(--muted); padding: .55rem .65rem;
}
.photo figcaption span { display: block; font-size: .7rem; opacity: .75; }
.photo--portrait a { aspect-ratio: 3 / 4; }
.photo--landscape a { aspect-ratio: 16 / 10; }
.photo--square a { aspect-ratio: 1; }
.photo--natural img { object-fit: contain; background: var(--panel); }
.photo--natural a { height: auto; }
.photo--natural img { height: auto; }
.notice {
  margin: 2rem 0; padding: 1rem 1.1rem; border-left: 4px solid var(--accent);
  background: var(--panel); font-family: ui-sans-serif, system-ui, sans-serif;
}
.notice strong { display: block; }
.footer {
  border-top: 1px solid var(--line); padding: 2rem 1rem 4rem; color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.footer__inner { max-width: 1240px; margin: 0 auto; }
@media (max-width: 760px) {
  .sitebar__inner { align-items: flex-start; }
  .sitebar nav { justify-content: flex-end; }
  h1 { font-size: clamp(3.1rem, 16vw, 5.4rem); }
}
@media print {
  .sitebar, .skip, .theme { display: none !important; }
  body { background: #fff; color: #000; }
  .photo { box-shadow: none; break-inside: avoid; }
  a { text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


.emotional-hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 6rem); align-items: end;
}
.emotional-hero .photo a { aspect-ratio: 4 / 5; }
.room {
  border-top: 1px solid var(--line); padding: clamp(3rem, 7vw, 7rem) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.room:nth-child(even) .room__photos { order: -1; }
.room__photos { display: grid; gap: 1rem; }
.room__photos.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.absence { min-height: 72vh; align-items: center; }
.absence .prose { max-width: 55ch; }
@media (max-width: 800px) {
  .emotional-hero, .room { grid-template-columns: 1fr; }
  .room:nth-child(even) .room__photos { order: initial; }
  .room__photos.two { grid-template-columns: 1fr; }
}

.illustration { border: 2px solid var(--accent); }
.illustration figcaption strong {
  display: block;
  margin-top: .2rem;
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, sans-serif;
}



/* v3 layout hardening: figures own their height; captions remain in flow. */
.photo {
  position: relative;
  min-width: 0;
  align-self: start;
  overflow: clip;
  isolation: isolate;
}
.photo a {
  height: auto;
  min-height: 0;
}
.photo figcaption {
  position: relative;
  z-index: 1;
  background: var(--paper);
  overflow-wrap: anywhere;
}
.room__photos,
.chapter__gallery,
.stop__body .photos {
  align-items: start;
  grid-auto-rows: max-content;
}
.room__photos > *,
.chapter__gallery > *,
.stop__body .photos > * {
  min-width: 0;
}
.room,
.chapter,
.stop {
  isolation: isolate;
}


/* Exact hosted CSP projection of locked style attributes. */
[data-bichon-inline-style="0"] { object-position:50% 38% }
[data-bichon-inline-style="1"] { object-position:50% 54% }
[data-bichon-inline-style="2"] { object-position:52% 52% }
[data-bichon-inline-style="3"] { object-position:50% 55% }
[data-bichon-inline-style="4"] { object-position:50% 50% }
[data-bichon-inline-style="5"] { object-position:50% 46% }
[data-bichon-inline-style="6"] { object-position:50% 48% }
[data-bichon-inline-style="7"] { object-position:50% 48% }
[data-bichon-inline-style="8"] { object-position:50% 50% }
[data-bichon-inline-style="9"] { object-position:50% 50% }
[data-bichon-inline-style="10"] { object-position:50% 45% }
[data-bichon-inline-style="11"] { object-position:50% 44% }
[data-bichon-inline-style="12"] { object-position:50% 50% }
[data-bichon-inline-style="13"] { object-position:55% 45% }
