:root {
  --ivory: #f5f2e7;
  --sand: #d8cab2;
  --ink: #302b27;
  --muted: #766c60;
  --rule: #302b272a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: 'Helvetica Neue', 'Apple SD Gothic Neo', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
figure, p { margin: 0; }
:focus-visible { outline: 2px solid #79664a; outline-offset: 5px; }
.skip-link { position: fixed; left: 20px; top: -80px; padding: 14px; background: var(--ivory); z-index: 30; }
.skip-link:focus { top: 15px; }
.site-header { height: 86px; padding: 0 4.5%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); gap: 25px; }
.brand { font-size: 32px; font-weight: 850; letter-spacing: -1.8px; line-height: 1; }
.brand span { font-weight: 450; }
.site-header nav { display: flex; align-items: center; gap: 32px; font-size: 11px; font-weight: 550; }
.inquiry { padding: 10px 0; border-bottom: 1px solid; }
.eyebrow { font-size: 9px; letter-spacing: 1.8px; font-weight: 500; }
.portrait-title { text-align: center; padding: 45px 24px 36px; }
.portrait-title h1 { font: italic 60px/1.05 Georgia, 'Times New Roman', serif; letter-spacing: -2px; margin: 14px 0 16px; }
.portrait-title h1 span { font-style: normal; font-size: .73em; letter-spacing: -1px; }
.portrait-title p { font-size: 10px; letter-spacing: 1.3px; color: var(--muted); }
.portrait-title p span { padding: 0 12px; }
.chapter-nav { position: sticky; top: 0; z-index: 10; height: 58px; padding: 0 4.5%; display: flex; align-items: center; justify-content: space-between; background: rgba(245,242,231,.97); backdrop-filter: blur(10px); border-block: 1px solid var(--rule); gap: 20px; }
.chapter-nav__label, .chapter-nav__count { font-size: 8px; letter-spacing: 1.3px; width: 180px; }
.chapter-nav__count { text-align: right; }
.chapter-links { height: 100%; display: flex; align-items: stretch; gap: 34px; }
.chapter-links a { display: flex; gap: 9px; align-items: center; font-size: 9px; letter-spacing: 1px; color: var(--muted); position: relative; white-space: nowrap; }
.chapter-links a:after { content: ''; position: absolute; height: 2px; background: var(--ink); bottom: -1px; inset-inline: 0; transform: scaleX(0); transition: transform .2s; }
.chapter-links a[aria-current] { color: var(--ink); }
.chapter-links a[aria-current]:after, .chapter-links a:hover:after { transform: scaleX(1); }
.chapter-links span { font-family: Georgia, serif; font-style: italic; font-size: 13px; }
.cover-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.photo { display: block; position: relative; cursor: zoom-in; }
.photo img { width: 100%; height: auto; display: block; }
.photo-expand { position: absolute; right: 16px; bottom: 16px; background: var(--ivory); color: var(--ink); padding: 11px 14px; font-size: 10px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.photo:hover .photo-expand, .photo:focus-visible .photo-expand { opacity: 1; transform: none; }
.image-note { padding: 19px 4.5%; display: flex; align-items: center; justify-content: space-between; font-size: 8px; letter-spacing: 1.4px; color: var(--muted); }
.editorial-intro { text-align: center; padding: 108px 24px 100px; }
.editorial-intro h2 { font-size: clamp(27px, 3.2vw, 43px); font-weight: 450; letter-spacing: -1.6px; line-height: 1.5; margin: 24px 0 30px; }
.intro-line { display: block; width: 1px; height: 42px; background: #a69c8f; margin: auto; }
.chapter-light { padding: 0 8% 120px; }
.chapter-heading { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #302b2750; padding-top: 26px; margin-bottom: 44px; gap: 20px; }
.chapter-heading h2 { font: italic clamp(32px, 3.5vw, 50px)/1.1 Georgia, 'Times New Roman', serif; margin: 0; letter-spacing: -1px; }
.chapter-heading .eyebrow { min-width: 95px; }
.chapter-heading .eyebrow:last-child { text-align: right; }
.offset-pair { display: grid; grid-template-columns: 1.12fr .88fr; gap: 11%; align-items: start; }
.offset-pair figure:last-child { margin-top: 27%; }
figcaption { display: flex; justify-content: space-between; padding: 16px 0 0; font-size: 8px; letter-spacing: 1.5px; color: var(--muted); }
.chapter-shadow { background: var(--sand); padding: 72px 4.5% 45px; }
.chapter-shadow .chapter-heading { margin-inline: 3.8%; }
.shadow-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.credits { text-align: center; font-size: 8px; letter-spacing: 1.7px; padding-top: 54px; }
.credits span { padding-inline: 13px; }
.portrait-end { padding: 105px 24px 112px; text-align: center; }
.portrait-end h2 { font-size: clamp(30px, 3.5vw, 46px); font-weight: 500; letter-spacing: -1.6px; margin: 24px 0 18px; }
.portrait-end p { color: var(--muted); font-size: 13px; }
.end-actions { display: flex; justify-content: center; align-items: center; gap: 32px; margin-top: 36px; font-size: 12px; }
.primary-link { padding: 18px 23px; border: 1px solid var(--ink); }
.primary-link span { padding-left: 30px; }
.primary-link:hover { background: #eae3d5; }
.text-link { border-bottom: 1px solid; padding-block: 8px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; padding: 30px 4.5%; border-top: 1px solid var(--rule); gap: 20px; font-size: 10px; }
.site-footer .brand { font-size: 24px; letter-spacing: -1px; }
.photo-viewer { border: 0; padding: 0; margin: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; background: var(--ivory); color: var(--ink); }
.photo-viewer[open] { display: grid; grid-template-rows: 62px minmax(0,1fr) 68px; }
.photo-viewer::backdrop { background: var(--ivory); }
.viewer-top, .viewer-bottom { display: flex; align-items: center; justify-content: space-between; padding-inline: 28px; }
.viewer-top form { margin: 0; }
.viewer-top button, .viewer-bottom button { background: transparent; border: none; cursor: pointer; min-height: 44px; padding: 10px 12px; font-size: 12px; }
.viewer-close span { font-size: 24px; vertical-align: -2px; padding-left: 15px; }
.viewer-stage { min-height: 0; display: grid; place-items: center; padding-inline: 24px; }
.viewer-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer-count { font-size: 11px; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.viewer-prev span { margin-left: 12px; }
.viewer-next span { margin-right: 12px; }
@media (max-width: 850px) {
  .chapter-nav__label, .chapter-nav__count { display: none; }
  .chapter-nav { justify-content: center; }
  .chapter-links { gap: 45px; }
  .chapter-heading .eyebrow:last-child { display: none; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 66px; }
  .site-header { height: 74px; padding-inline: 20px; gap: 15px; }
  .site-header .brand { font-size: 26px; }
  .site-header nav { gap: 15px; font-size: 10px; }
  .site-header nav a:not(.inquiry) { display: none; }
  .portrait-title { padding: 34px 20px 28px; }
  .portrait-title h1 { font-size: 47px; margin-block: 14px; }
  .portrait-title p { font-size: 9px; }
  .chapter-nav { height: 52px; padding-inline: 20px; }
  .chapter-links { gap: 28px; }
  .chapter-links a { font-size: 8px; gap: 7px; }
  .cover-pair { grid-template-columns: 1fr; gap: 5px; }
  .photo-expand { right: 12px; bottom: 12px; font-size: 9px; padding: 9px 11px; }
  .image-note { padding: 17px 20px; }
  .image-note span:last-child { display: none; }
  .editorial-intro { padding: 75px 24px 70px; }
  .editorial-intro h2 { letter-spacing: -1px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.3px; }
  .chapter-light { padding: 0 20px 65px; }
  .chapter-heading { padding-top: 23px; margin-bottom: 28px; }
  .chapter-heading h2 { font-size: 33px; }
  .chapter-heading .eyebrow { min-width: 0; }
  .offset-pair { grid-template-columns: 1fr; gap: 38px; }
  .offset-pair figure:last-child { width: 85%; margin: 0 0 0 auto; }
  .chapter-shadow { padding: 48px 20px 36px; }
  .chapter-shadow .chapter-heading { margin-inline: 0; }
  .chapter-shadow .chapter-heading h2 { font-size: 30px; }
  .shadow-pair { grid-template-columns: 1fr; gap: 34px; }
  .credits { font-size: 7px; letter-spacing: 1.1px; line-height: 1.8; padding-top: 38px; }
  .credits span { padding-inline: 5px; }
  .portrait-end { padding: 70px 20px 75px; }
  .portrait-end p { font-size: 12px; }
  .end-actions { flex-direction: column; gap: 18px; margin-top: 30px; }
  .site-footer { padding: 25px 20px; flex-wrap: wrap; }
  .site-footer .brand { width: 100%; margin-bottom: 6px; }
  .viewer-top, .viewer-bottom { padding-inline: 12px; }
  .viewer-stage { padding-inline: 0; }
  .viewer-top .eyebrow { font-size: 8px; }
}
@media (hover: none) { .photo-expand { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; }
}

/* Shared layout for the remaining work archives, including one-photo stories. */
.cover-pair.is-single { grid-template-columns:1fr; max-width:760px; margin:0 auto; }
.offset-pair.is-single,.shadow-pair.is-single { grid-template-columns:1fr; max-width:760px; margin-inline:auto; }
.offset-pair.is-single figure:last-child { width:100%; margin:0; }
.generated-chapter + .generated-chapter { padding-top:76px; }
.chapter-links--many { gap:clamp(14px,2.6vw,34px); max-width:100%; overflow-x:auto; scrollbar-width:none; }
.chapter-links--many::-webkit-scrollbar { display:none; }
@media(max-width:600px) {
  .chapter-links--many { gap:18px; }
  .generated-chapter + .generated-chapter { padding-top:48px; }
}
