:root {
  --paper: #f4f1ea;
  --paper-deep: #ebe5d9;
  --ink: #14130f;
  --soft-ink: #68645a;
  --faint: rgba(20, 19, 15, 0.12);
  --line: rgba(20, 19, 15, 0.22);
  --accent: #6c4e37;
  --black: #0d0d0a;
  --white: #fbfaf5;
  --max: 1760px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cormorant Garamond", Garamond, Georgia, serif;
  font-size: 16px;
  letter-spacing: 0;
}

body.lang-zh {
  font-family: "Cormorant Garamond", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

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

section,
#plates {
  scroll-margin-top: 72px;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 86px;
  padding: clamp(16px, 2.4vw, 34px) clamp(18px, 3vw, 44px) 0;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(9, 9, 7, 0.44), rgba(9, 9, 7, 0));
  color: var(--white);
  transition:
    background 240ms ease,
    backdrop-filter 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease,
    color 240ms ease,
    min-height 240ms ease,
    padding 240ms ease;
}

.site-header.is-cover-glass {
  border-bottom: 1px solid rgba(251, 250, 245, 0.16);
  background: linear-gradient(180deg, rgba(14, 14, 11, 0.42), rgba(14, 14, 11, 0.24));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px) saturate(1.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.22);
}

.site-header.is-scrolled {
  min-height: 64px;
  padding-top: 0;
  border-bottom: 1px solid rgba(20, 19, 15, 0.14);
  background: rgba(244, 241, 234, 0.94);
  color: var(--ink);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand,
.header-volume,
.nav,
.language-button,
.language-options button {
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  text-align: center;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

body.lang-zh .brand,
body.lang-zh .nav,
body.lang-zh .language-button,
body.lang-zh .language-options button {
  letter-spacing: 0.08em;
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.header-volume {
  margin: 0;
  color: rgba(251, 250, 245, 0.72);
}

.site-header.is-scrolled .header-volume {
  color: var(--soft-ink);
}

.language-menu {
  position: relative;
}

.language-menu::after {
  position: absolute;
  z-index: 0;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 12px;
  content: "";
}

.language-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.language-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  border: 1px solid currentColor;
  padding: 3px 6px 2px;
  font-size: 0.62rem;
  line-height: 1;
}

.language-options {
  position: absolute;
  z-index: 3;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 118px;
  border: 1px solid rgba(251, 250, 245, 0.22);
  background: rgba(13, 13, 10, 0.88);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled .language-options {
  border-color: rgba(20, 19, 15, 0.14);
  background: rgba(244, 241, 234, 0.98);
  color: var(--ink);
}

.language-menu:hover .language-options,
.language-menu:focus-within .language-options,
.language-menu.is-open .language-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-options button {
  border: 0;
  padding: 12px 14px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: none;
}

.language-options button:hover,
.language-options button:focus-visible,
.language-options button.is-active {
  background: rgba(251, 250, 245, 0.12);
}

.site-header.is-scrolled .language-options button:hover,
.site-header.is-scrolled .language-options button:focus-visible,
.site-header.is-scrolled .language-options button.is-active {
  background: rgba(108, 78, 55, 0.08);
}

.nav {
  display: flex;
  justify-self: start;
  gap: clamp(14px, 2vw, 32px);
}

.nav a,
.cover-link,
.contact-links a {
  position: relative;
}

.nav a::after,
.cover-link::after,
.contact-links a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav a:hover::after,
.cover-link:hover::after,
.contact-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.cover {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  isolation: isolate;
}

.cover-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: url("assets/photos/coastal-cape-town-rocks.jpg") center / cover;
  transform: scale(1.01);
}

.cover-media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 9, 7, 0.34), rgba(9, 9, 7, 0.06) 42%, rgba(9, 9, 7, 0.74)),
    linear-gradient(90deg, rgba(9, 9, 7, 0.68), rgba(9, 9, 7, 0.2) 44%, rgba(9, 9, 7, 0.18) 82%);
}

.cover-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-frame {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 100svh;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(134px, 15vh, 188px) clamp(30px, 7vw, 124px) 150px;
  text-align: left;
}

.cover::after {
  position: absolute;
  z-index: 1;
  inset: 98px clamp(18px, 3vw, 44px) 28px;
  border: 1px solid rgba(251, 250, 245, 0.16);
  content: "";
  pointer-events: none;
}

.cover-kicker,
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cover-kicker {
  color: rgba(251, 250, 245, 0.78);
}

h1,
h2,
h3,
.quote-spread p,
.cover-footer,
.contents-row strong,
.cover-line,
.contents-copy p:last-child,
.chapter-note,
.about-copy p:not(.eyebrow),
.contact-links,
p {
  margin-top: 0;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(5.5rem, 15vw, 16rem);
  font-weight: normal;
  line-height: 0.75;
}

.cover h1 {
  width: min(860px, 100%);
  margin-bottom: 24px;
  font-size: clamp(2.9rem, 6.2vw, 6.6rem);
  font-weight: 500;
  line-height: 0.92;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(3.2rem, 7vw, 9.6rem);
  font-weight: normal;
  line-height: 0.88;
}

h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: normal;
  line-height: 0.95;
}

.cover-line {
  width: min(650px, 100%);
  margin: 0 0 28px;
  color: rgba(251, 250, 245, 0.78);
  font-size: clamp(1.06rem, 1.9vw, 1.46rem);
  line-height: 1.42;
}

.cover-link {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
}

.cover-footer {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 5vw, 90px);
  right: clamp(28px, 5vw, 90px);
  bottom: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 32px);
  color: rgba(251, 250, 245, 0.76);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.cover-footer span {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(251, 250, 245, 0.36);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-spread {
  display: grid;
  min-height: 72svh;
  padding: clamp(74px, 11vw, 150px) clamp(26px, 6vw, 120px);
  place-items: center;
}

.quote-spread blockquote {
  width: min(1180px, 100%);
  margin: 0;
}

.quote-spread p {
  margin: 0;
  color: var(--soft-ink);
  font-size: clamp(3rem, 7.8vw, 9rem);
  line-height: 0.94;
}

.quote-copy {
  display: grid;
  position: relative;
}

.quote-measure {
  grid-area: 1 / 1;
  visibility: hidden;
}

.quote-live {
  display: block;
  grid-area: 1 / 1;
  min-width: 0;
}

.quote-caret {
  display: inline-block;
  width: max(2px, 0.045em);
  height: 0.78em;
  margin-left: 0.08em;
  background: currentColor;
  vertical-align: -0.05em;
  animation: quoteCaretBlink 980ms steps(1, end) infinite;
}

.quote-copy.is-pending .quote-live {
  opacity: 0;
}

.quote-copy.is-pending .quote-caret {
  animation: none;
}

.quote-emphasis {
  color: inherit;
  font-style: italic;
  font-weight: 700;
  transition:
    color 420ms ease var(--quote-emphasis-delay, 0ms),
    text-shadow 420ms ease var(--quote-emphasis-delay, 0ms);
}

.quote-copy.is-emphasized .quote-emphasis {
  color: var(--accent);
  text-shadow: 0 0 1px rgba(108, 78, 55, 0.2);
}

@keyframes quoteCaretBlink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

.quote-spread cite {
  display: block;
  margin-top: clamp(26px, 4vw, 46px);
  color: var(--accent);
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  font-style: normal;
}

.quote-spread cite::before {
  content: "- ";
}

.contents,
.index-section,
.about-section {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(70px, 9vw, 136px) clamp(22px, 4vw, 72px);
}

.contents {
  display: grid;
  grid-template-columns: 120px minmax(0, 0.9fr) minmax(330px, 0.8fr);
  gap: clamp(28px, 5vw, 78px);
  border-top: 1px solid var(--line);
}

.section-marker {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contents-copy p:last-child {
  width: min(680px, 100%);
  margin: clamp(24px, 3vw, 38px) 0 0;
  color: var(--soft-ink);
  font-size: clamp(1.15rem, 1.7vw, 1.65rem);
  line-height: 1.45;
}

.contents-list {
  align-self: end;
  border-top: 1px solid var(--line);
}

.contents-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  color: var(--soft-ink);
}

.contents-row strong {
  color: var(--ink);
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: normal;
}

.contents-row span:last-child {
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
}

.chapter {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(78px, 10vw, 160px) clamp(22px, 3vw, 52px);
  border-top: 1px solid var(--line);
}

.chapter:nth-child(even) {
  background: linear-gradient(90deg, rgba(235, 229, 217, 0.58), rgba(244, 241, 234, 0));
}

.chapter-heading {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: clamp(24px, 5vw, 78px);
  align-items: end;
  margin-bottom: clamp(42px, 7vw, 96px);
}

.chapter-number {
  align-self: start;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chapter-note {
  margin: 0;
  color: var(--soft-ink);
  font-size: clamp(1.08rem, 1.5vw, 1.36rem);
  line-height: 1.52;
}

.chapter-gallery {
  --gallery-gap: clamp(10px, 1.1vw, 20px);
  display: grid;
  gap: clamp(32px, 4.5vw, 68px);
}

.gallery-row {
  display: flex;
  align-items: flex-start;
  gap: var(--gallery-gap);
  width: 100%;
}

.plate {
  container-type: inline-size;
  flex: 0 0 var(--photo-width);
  width: var(--photo-width);
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}

.plate-image {
  display: block;
  height: var(--photo-height);
  overflow: hidden;
  background: rgba(108, 78, 55, 0.08);
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
  transition: transform 520ms ease, filter 520ms ease;
}

.plate:hover img {
  transform: scale(1.025);
  filter: saturate(1.02) contrast(1.06);
}

.plate[data-reveal-plate] {
  opacity: 0;
  transform: translate3d(var(--reveal-x, 0), 36px, 0) scale(0.985);
  clip-path: inset(0 0 12% 0);
  transition:
    opacity 1100ms ease var(--reveal-delay, 0ms),
    transform 1400ms cubic-bezier(0.19, 1, 0.22, 1) var(--reveal-delay, 0ms),
    clip-path 1400ms cubic-bezier(0.19, 1, 0.22, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform, clip-path;
}

.plate[data-reveal-plate].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  clip-path: inset(0);
}

.plate[data-reveal-plate] img {
  transform: scale(1.04);
  transition:
    transform 1400ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 520ms ease;
}

.plate[data-reveal-plate].is-visible img {
  transform: scale(1);
}

.plate[data-reveal-plate].is-visible:hover img {
  transform: scale(1.025);
}

.plate-caption {
  display: grid;
  grid-template-columns: minmax(12ch, 1fr) minmax(0, max-content);
  gap: 16px;
  align-items: start;
  padding-top: 9px;
  color: var(--soft-ink);
  font-size: 0.93rem;
  line-height: 1.25;
}

.plate-caption span {
  min-width: 0;
}

.plate-caption span:last-child {
  justify-self: end;
  max-width: min(28ch, 48cqw);
  text-align: right;
  overflow-wrap: break-word;
}

@container (max-width: 360px) {
  .plate-caption {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .plate-caption span:last-child {
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }
}

.plate[data-reveal-plate] .plate-caption {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 760ms ease calc(var(--reveal-delay, 0ms) + 260ms),
    transform 920ms cubic-bezier(0.19, 1, 0.22, 1) calc(var(--reveal-delay, 0ms) + 260ms);
}

.plate[data-reveal-plate].is-visible .plate-caption {
  opacity: 1;
  transform: translateY(0);
}

.plate-title {
  color: var(--ink);
  font-weight: bold;
}

.index-section {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 78px);
  border-top: 1px solid var(--line);
}

.index-heading {
  margin-bottom: clamp(34px, 5vw, 74px);
}

.index-table {
  grid-column: 2;
  border-top: 1px solid var(--line);
}

.index-row {
  display: grid;
  grid-template-columns: 56px 1.1fr 1fr 0.8fr;
  gap: 20px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  color: var(--soft-ink);
  font-size: 1.02rem;
}

.index-row button {
  display: contents;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.index-title {
  color: var(--ink);
  font-weight: bold;
}

.index-row:hover {
  background: rgba(108, 78, 55, 0.06);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(320px, 0.9fr);
  gap: clamp(34px, 7vw, 112px);
  align-items: center;
  border-top: 1px solid var(--line);
  padding-bottom: clamp(86px, 10vw, 154px);
}

.about-image {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: rgba(108, 78, 55, 0.08);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy p:not(.eyebrow) {
  margin: clamp(24px, 3vw, 42px) 0 0;
  color: var(--soft-ink);
  font-size: clamp(1.18rem, 1.6vw, 1.46rem);
  line-height: 1.58;
}

.contact-links {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-top: clamp(28px, 4vw, 52px);
  color: var(--accent);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
}

.signature-section {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(78px, 10vw, 150px) clamp(22px, 4vw, 72px) clamp(70px, 9vw, 124px);
  border-top: 1px solid var(--line);
  text-align: center;
}

.signature-kicker {
  margin: 0 0 clamp(22px, 3vw, 38px);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signature-wrap {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

.signature-image {
  width: 100%;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 900ms ease, transform 900ms ease;
}

.signature-section.is-visible .signature-image {
  opacity: 1;
  transform: translateY(0);
}

.signature-note {
  width: min(520px, 100%);
  margin: clamp(22px, 3vw, 36px) auto 0;
  color: var(--soft-ink);
  font-size: clamp(1.12rem, 1.7vw, 1.48rem);
  line-height: 1.4;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease 700ms, transform 700ms ease 700ms;
}

.signature-section.is-visible .signature-note {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 28px clamp(22px, 4vw, 72px) 34px;
  border-top: 1px solid var(--line);
  color: var(--soft-ink);
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

.not-found-page {
  background: var(--black);
  color: var(--white);
}

.not-found-main {
  min-height: 100svh;
}

.not-found-cover {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.not-found-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 9, 7, 0.12), rgba(9, 9, 7, 0.18) 52%, rgba(9, 9, 7, 0.78)),
    linear-gradient(90deg, rgba(9, 9, 7, 0.74), rgba(9, 9, 7, 0.24) 58%, rgba(9, 9, 7, 0.58)),
    url("assets/photos/coastal-cape-town-rocks.jpg") center / cover;
  transform: scale(1.01);
}

.not-found-cover::after {
  position: absolute;
  z-index: 1;
  inset: 76px clamp(18px, 3vw, 44px) 24px;
  border: 1px solid rgba(251, 250, 245, 0.2);
  content: "";
  pointer-events: none;
}

.not-found-monogram {
  position: absolute;
  z-index: 2;
  top: clamp(96px, 13vh, 132px);
  left: clamp(40px, 8vw, 112px);
  width: clamp(54px, 6vw, 82px);
  height: clamp(54px, 6vw, 82px);
  border: 1px solid rgba(251, 250, 245, 0.22);
  border-radius: 50%;
  filter: invert(1) grayscale(1) brightness(1.8);
  opacity: 0.86;
}

.not-found-frame {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 100svh;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(130px, 16vh, 170px) clamp(34px, 8vw, 118px) 142px;
}

.not-found-kicker {
  margin: 0 0 22px;
  color: rgba(251, 250, 245, 0.7);
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.not-found-frame h1 {
  max-width: 840px;
  margin-bottom: 28px;
  font-size: clamp(4.8rem, 11vw, 11rem);
  line-height: 0.82;
}

.not-found-copy {
  width: min(620px, 100%);
  margin: 0 0 34px;
  color: rgba(251, 250, 245, 0.78);
  font-size: clamp(1.12rem, 1.8vw, 1.5rem);
  line-height: 1.48;
}

.not-found-link {
  display: inline-flex;
}

.not-found-footer {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 5vw, 90px);
  right: clamp(28px, 5vw, 90px);
  bottom: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 32px);
  color: rgba(251, 250, 245, 0.64);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.not-found-footer span {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(251, 250, 245, 0.28);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  gap: 12px;
  padding: 72px clamp(18px, 4vw, 56px) 38px;
  background: rgba(12, 12, 10, 0.96);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-stage {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(22px, 3vw, 42px);
  align-items: center;
  min-width: 0;
  max-height: calc(100svh - 110px);
}

.lightbox figure {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin: 0;
  min-width: 0;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 176px);
  object-fit: contain;
}

.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 28px;
  width: min(980px, 100%);
  color: rgba(251, 250, 245, 0.72);
  font-size: 1rem;
  line-height: 1.35;
}

.lightbox figcaption [data-lightbox-title] {
  color: var(--white);
  font-weight: bold;
}

.lightbox-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
  text-align: right;
}

.lightbox-details [data-lightbox-progress] {
  color: var(--white);
  font-weight: bold;
  white-space: nowrap;
}

.lightbox-share {
  border: 0;
  border-bottom: 1px solid rgba(251, 250, 245, 0.34);
  padding: 0 0 4px;
  background: transparent;
  color: rgba(251, 250, 245, 0.78);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
  text-transform: uppercase;
}

.lightbox-share:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.photo-interactions {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: calc(100svh - 128px);
  border-left: 1px solid rgba(251, 250, 245, 0.16);
  padding-left: clamp(18px, 2.4vw, 34px);
  color: rgba(251, 250, 245, 0.76);
}

.photo-interactions-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.photo-interactions h2,
.comments-head h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.04rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.interaction-status {
  min-height: 1.2em;
  color: rgba(251, 250, 245, 0.58);
  font-size: 0.88rem;
  line-height: 1.3;
}

.interaction-status.is-error {
  color: #e8b8a6;
}

.interaction-status.is-success {
  color: #d8d0a7;
}

.interactions-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 18px;
}

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(251, 250, 245, 0.26);
  border-radius: 999px;
  padding: 0 15px;
  background: rgba(251, 250, 245, 0.05);
  color: var(--white);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.like-button:hover {
  background: rgba(251, 250, 245, 0.13);
}

.like-button.is-liked {
  border-color: rgba(251, 250, 245, 0.62);
  background: rgba(251, 250, 245, 0.16);
}

.like-button:disabled,
.photo-comment-form button:disabled,
.photo-comment-form input:disabled,
.photo-comment-form textarea:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.like-mark {
  color: rgba(251, 250, 245, 0.9);
  font-size: 1.02rem;
  line-height: 1;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.like-button.is-liked .like-mark {
  color: #e3483f;
  transform: scale(1.08);
}

.like-count {
  color: rgba(251, 250, 245, 0.62);
  font-size: 0.94rem;
}

.photo-comment-form {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.photo-comment-form input,
.photo-comment-form textarea {
  width: 100%;
  border: 1px solid rgba(251, 250, 245, 0.18);
  border-radius: 0;
  padding: 10px 12px;
  background: rgba(251, 250, 245, 0.06);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
}

.photo-comment-form input::placeholder,
.photo-comment-form textarea::placeholder {
  color: rgba(251, 250, 245, 0.46);
}

.photo-comment-form input:focus,
.photo-comment-form textarea:focus {
  outline: 1px solid rgba(251, 250, 245, 0.52);
  outline-offset: 2px;
}

.photo-comment-form textarea {
  min-height: 104px;
  max-height: 190px;
  resize: vertical;
}

.photo-comment-form button {
  justify-self: start;
  min-height: 38px;
  border: 1px solid rgba(251, 250, 245, 0.26);
  border-radius: 999px;
  padding: 0 15px;
  background: rgba(251, 250, 245, 0.1);
  color: var(--white);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-comment-form button:hover {
  background: rgba(251, 250, 245, 0.18);
}

.interaction-honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.comments-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  border-top: 1px solid rgba(251, 250, 245, 0.16);
  padding-top: 16px;
  color: rgba(251, 250, 245, 0.5);
  font-size: 0.84rem;
}

.comments-list {
  display: grid;
  gap: 0;
  min-height: 0;
  margin-top: 4px;
  overflow-y: auto;
  padding-right: 4px;
}

.comment-item,
.comment-empty {
  border-top: 1px solid rgba(251, 250, 245, 0.1);
  margin: 0;
  padding: 13px 0;
}

.comment-empty {
  color: rgba(251, 250, 245, 0.5);
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(251, 250, 245, 0.56);
  font-size: 0.82rem;
  line-height: 1.3;
}

.comment-meta strong {
  color: var(--white);
}

.comment-meta time {
  white-space: nowrap;
}

.comment-text {
  margin: 7px 0 0;
  color: rgba(251, 250, 245, 0.78);
  font-size: 0.98rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(251, 250, 245, 0.25);
  border-radius: 999px;
  background: rgba(251, 250, 245, 0.04);
  color: var(--white);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: bold;
  text-transform: uppercase;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: clamp(18px, 4vw, 56px);
  min-height: 38px;
  padding: 0 16px;
}

.lightbox-nav {
  width: 62px;
  height: 62px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(251, 250, 245, 0.14);
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-volume {
    display: none;
  }

  .header-actions {
    justify-self: start;
    grid-column: 1;
    grid-row: 2;
  }

  .brand {
    justify-self: end;
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .contents,
  .chapter-heading,
  .index-section,
  .about-section {
    grid-template-columns: 1fr;
  }

  .index-table {
    grid-column: auto;
  }

  .section-marker,
  .chapter-number {
    margin-bottom: 4px;
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    overflow: hidden;
  }

  .lightbox-stage {
    grid-column: 1 / -1;
    order: -1;
    grid-template-columns: 1fr;
    align-self: stretch;
    max-height: calc(100svh - 148px);
    overflow-y: auto;
    padding-right: 4px;
  }

  .lightbox img {
    max-height: min(58svh, calc(100svh - 300px));
  }

  .photo-interactions {
    max-height: none;
    border-top: 1px solid rgba(251, 250, 245, 0.16);
    border-left: 0;
    padding-top: 18px;
    padding-left: 0;
  }

  .lightbox-prev,
  .lightbox-next {
    justify-self: stretch;
    width: auto;
    height: 48px;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr;
    min-height: 112px;
    align-items: center;
    justify-items: center;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }

  .header-actions {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
  }

  .nav {
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-self: center;
    gap: 0 12px;
    font-size: 0.64rem;
  }

  .language-button {
    padding: 0;
    font-size: 0.64rem;
  }

  .language-options {
    right: 50%;
    transform: translate(50%, -4px);
  }

  .language-menu:hover .language-options,
  .language-menu:focus-within .language-options,
  .language-menu.is-open .language-options {
    transform: translate(50%, 0);
  }

  .cover::after {
    inset: 124px 14px 18px;
  }

  .not-found-cover::after {
    inset: 88px 14px 18px;
  }

  .not-found-monogram {
    top: 104px;
    left: 28px;
    width: 58px;
    height: 58px;
  }

  .cover-frame {
    padding: 152px 22px 160px;
  }

  .not-found-frame {
    padding: 148px 22px 156px;
  }

  h1,
  .cover h1 {
    font-size: clamp(5rem, 24vw, 7.6rem);
  }

  .cover h1 {
    font-size: clamp(2.65rem, 12vw, 4.75rem);
    line-height: 0.94;
  }

  .not-found-frame h1 {
    font-size: clamp(4.6rem, 20vw, 6.8rem);
  }

  .cover-footer {
    left: 22px;
    right: 22px;
    bottom: 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 1rem;
  }

  .not-found-footer {
    left: 22px;
    right: 22px;
    bottom: 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 1rem;
  }

  .quote-spread {
    min-height: 58svh;
  }

  .quote-spread p {
    line-height: 1;
  }

  .contents-row {
    grid-template-columns: 34px 1fr;
  }

  .contents-row span:last-child {
    grid-column: 2;
  }

  .chapter {
    padding-top: clamp(58px, 16vw, 84px);
    padding-bottom: clamp(62px, 16vw, 92px);
  }

  .chapter-heading {
    margin-bottom: 30px;
  }

  .chapter-gallery {
    --gallery-gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px var(--gallery-gap);
  }

  .gallery-row {
    display: contents;
  }

  .plate {
    width: 100%;
    flex-basis: auto;
  }

  .plate-image {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .plate-caption {
    grid-template-columns: 1fr;
    gap: 3px;
    padding-top: 7px;
    font-size: 0.82rem;
    line-height: 1.18;
  }

  .plate-caption span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .plate-caption span:last-child {
    color: var(--soft-ink);
    font-size: 0.76rem;
  }

  .index-row {
    grid-template-columns: 34px 1fr;
    gap: 12px;
    padding: 12px 0;
  }

  .index-category {
    display: none;
  }

  .index-place {
    grid-column: 2;
  }

  .lightbox {
    padding-top: 68px;
  }

  .lightbox-stage {
    gap: 14px;
    max-height: calc(100svh - 146px);
  }

  .lightbox img {
    max-height: 44svh;
  }

  .lightbox figcaption {
    display: grid;
    gap: 6px;
  }

  .lightbox-details {
    justify-content: start;
    text-align: left;
  }

  .photo-interactions-heading,
  .interactions-summary,
  .photo-comment-form {
    margin-bottom: 14px;
  }

  .photo-comment-form textarea {
    min-height: 92px;
  }

  .comment-meta {
    display: grid;
    gap: 3px;
  }

  .comment-meta time {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .signature-image,
  .signature-note,
  .plate[data-reveal-plate],
  .plate[data-reveal-plate] .plate-caption {
    opacity: 1;
    transform: none;
    clip-path: inset(0);
  }

  .plate[data-reveal-plate] img {
    transform: none;
  }

  .quote-caret {
    animation: none;
    opacity: 1;
  }

  .cover-video {
    display: none;
  }
}
