:root {
  --paper: #f1eadb;
  --paper-deep: #e7dcc7;
  --ink: #201c18;
  --cinnabar: #a82c25;
  --cinnabar-deep: #6f211d;
  --gold: #a98449;
  --warm-white: #fffaf0;
  --line: rgba(32, 28, 24, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
}
button, a { color: inherit; }
button { font: inherit; }
img { display: block; width: 100%; }
img.image-pending { opacity: .12; }
img.image-retrying { opacity: .22; filter: saturate(.45); }
img.image-failed { opacity: .08; }
.gallery-item, .hero-photo, .hero-thumbs button, .story-feature button { background-color: #392e25; }
a { text-decoration: none; }

.hero {
  position: relative;
  min-height: 100svh;
  padding: 0 clamp(24px, 4vw, 72px) 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 20%, rgba(169,132,73,.13), transparent 24%),
    repeating-linear-gradient(86deg, rgba(55,42,30,.025) 0 1px, transparent 1px 6px),
    var(--paper);
}
.hero::before {
  content: "囍";
  position: absolute;
  left: -3vw;
  bottom: -16vw;
  color: rgba(168,44,37,.045);
  font: 42vw/1 "STKaiti", serif;
  pointer-events: none;
}
.masthead {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.brand { display: flex; align-items: center; gap: 12px; letter-spacing: .18em; font-weight: 600; }
.brand-seal {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--cinnabar); color: var(--paper); font-family: "STKaiti", serif;
}
.masthead nav { display: flex; gap: clamp(18px, 3vw, 48px); align-items: center; font-size: 12px; letter-spacing: .2em; }
.masthead nav a { padding: 10px 0; border-bottom: 1px solid transparent; }
.masthead nav a:hover { border-color: var(--cinnabar); }
.masthead nav span { color: var(--cinnabar); font-family: Georgia, serif; letter-spacing: .12em; }

.hero-layout {
  min-height: calc(100svh - 126px);
  display: grid;
  grid-template-columns: minmax(310px, 30%) minmax(0, 70%);
  position: relative;
  z-index: 1;
}
.hero-copy { position: relative; padding: clamp(64px, 9vh, 116px) 6vw 56px 48px; display: flex; flex-direction: column; align-items: flex-start; }
.vertical-mark {
  position: absolute; left: 0; top: clamp(64px, 9vh, 116px);
  writing-mode: vertical-rl; letter-spacing: .45em; color: var(--cinnabar); font-family: "STKaiti", serif;
}
.eyebrow { margin: 0 0 28px; font: 11px/1.4 Arial, sans-serif; letter-spacing: .28em; color: var(--gold); }
h1 { margin: 0; font-family: "STKaiti", "Kaiti SC", serif; font-weight: 400; font-size: clamp(54px, 5.6vw, 94px); line-height: .95; letter-spacing: .03em; }
h1 span { display: block; white-space: nowrap; }
h1 i { display: block; margin: 9px 0 8px 1.3em; color: var(--cinnabar); font: italic 34px/1 Georgia, serif; }
.hero-intro { margin: 34px 0 0; font-size: 16px; line-height: 2; letter-spacing: .14em; }
.date-lockup { margin-top: auto; display: flex; align-items: baseline; gap: 16px; border-top: 1px solid var(--gold); padding-top: 14px; }
.date-lockup span { color: #796851; font-size: 12px; letter-spacing: .3em; }
.date-lockup strong { color: var(--cinnabar); font-family: "STKaiti", serif; font-size: 24px; font-weight: 400; }
.view-button {
  margin-top: 24px; width: min(260px, 100%); border: 0; border-bottom: 1px solid var(--ink); background: transparent;
  padding: 14px 0; display: flex; justify-content: space-between; cursor: pointer; letter-spacing: .25em;
}
.view-button:hover { color: var(--cinnabar); border-color: var(--cinnabar); }

.hero-visual { min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) 146px; gap: 14px; padding: 28px 0 18px; }
.hero-photo { position: relative; overflow: hidden; padding: 0; border: 0; background: #221a14; cursor: zoom-in; }
.hero-photo img { height: 100%; object-fit: contain; background: #2a2019; transition: transform 1.1s ease; }
.hero-photo:hover img { transform: scale(1.018); }
.hero-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero-thumbs button { position: relative; border: 0; padding: 0; overflow: hidden; cursor: pointer; background: #d7c9b2; }
.hero-thumbs img { height: 100%; object-fit: cover; transition: transform .55s ease; }
.hero-thumbs button:hover img { transform: scale(1.045); }
.scroll-cue { position: absolute; left: clamp(24px, 4vw, 72px); bottom: 28px; display: flex; gap: 12px; align-items: center; font-size: 11px; letter-spacing: .25em; }
.scroll-cue b { width: 56px; height: 1px; background: var(--ink); position: relative; }
.scroll-cue b::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(-45deg); }

.story { max-width: 1460px; margin: 0 auto; padding: clamp(96px, 12vw, 180px) clamp(24px, 6vw, 96px); display: grid; grid-template-columns: 1fr 1fr; gap: 52px 8vw; }
.story-heading h2, .gallery-heading h2 { margin: 0; font: 400 clamp(38px, 5vw, 76px)/1.12 "STKaiti", "Kaiti SC", serif; }
.story-copy { align-self: end; padding-bottom: 6px; max-width: 540px; }
.story-copy p { margin: 0; font-size: clamp(16px, 1.4vw, 21px); line-height: 2; letter-spacing: .08em; }
.story-copy span { display: block; margin-top: 24px; color: var(--cinnabar); font: 11px Arial, sans-serif; letter-spacing: .3em; }
.story-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 0; align-items: stretch; }
.story-feature button { border: 0; padding: 0; overflow: hidden; cursor: zoom-in; }
.story-feature img { height: min(64vw, 720px); object-fit: cover; transition: transform 1s ease; }
.story-feature button:hover img { transform: scale(1.015); }
.story-note { background: var(--cinnabar); color: var(--warm-white); padding: 44px 34px; display: flex; flex-direction: column; justify-content: space-between; }
.story-note span { font: 92px/1 "STKaiti", serif; opacity: .85; }
.story-note p { margin: 0; font: 25px/1.75 "STKaiti", serif; }

.gallery-section { padding: clamp(90px, 10vw, 160px) clamp(18px, 4vw, 70px); background: #241d17; color: var(--warm-white); }
.gallery-heading { display: flex; justify-content: space-between; align-items: end; max-width: 1460px; margin: 0 auto 64px; gap: 36px; }
.gallery-heading .eyebrow { color: #c9a66d; }
.gallery-heading > p { margin: 0; color: #bfb4a5; text-align: right; font-size: 12px; line-height: 1.8; letter-spacing: .1em; }
.gallery { columns: 3 320px; column-gap: 18px; max-width: 1460px; margin: 0 auto; }
.chapters { max-width: 1460px; margin: 0 auto; }
.chapter + .chapter { margin-top: clamp(90px, 11vw, 160px); }
.chapter-heading {
  display: grid; grid-template-columns: 72px 1fr auto; align-items: end; gap: 24px;
  padding: 0 0 24px; margin-bottom: 22px; border-bottom: 1px solid rgba(255,250,240,.2);
}
.chapter-heading > span { color: #c9a66d; font: 38px/1 Georgia, serif; }
.chapter-heading p { margin: 0 0 7px; color: #a79a89; font: 10px/1 Arial, sans-serif; letter-spacing: .28em; }
.chapter-heading h3 { margin: 0; font: 400 clamp(34px, 4vw, 56px)/1 "STKaiti", "Kaiti SC", serif; }
.chapter-heading small { color: #8f8272; font: 10px/1 Arial, sans-serif; letter-spacing: .2em; }
.gallery-item { width: 100%; display: block; position: relative; margin: 0 0 18px; padding: 0; border: 0; break-inside: avoid; overflow: hidden; cursor: zoom-in; background: #392e25; }
.gallery-item img { width: 100%; height: auto; transition: transform .8s ease, filter .5s ease; }
.gallery-item:hover img { transform: scale(1.025); filter: brightness(.74); }
.gallery-item span { position: absolute; inset: auto 0 0; padding: 22px; display: flex; justify-content: space-between; align-items: end; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transform: translateY(8px); transition: .35s ease; }
.gallery-item:hover span, .gallery-item:focus-visible span { opacity: 1; transform: none; }
.gallery-item b { font: 12px Arial, sans-serif; letter-spacing: .2em; }
.gallery-item i { font-style: normal; font-family: "STKaiti", serif; letter-spacing: .16em; }

footer { min-height: 72vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; position: relative; overflow: hidden; background: var(--paper); }
footer::before { content: ""; position: absolute; inset: 9%; border: 1px solid rgba(169,132,73,.55); pointer-events: none; }
.footer-seal { display: grid; place-items: center; width: 94px; height: 94px; background: var(--cinnabar); color: var(--paper); font: 60px "STKaiti", serif; }
footer p { margin: 14px 0 0; font: 38px "STKaiti", serif; }
footer time { color: var(--cinnabar); font: 16px Georgia, serif; letter-spacing: .3em; }
footer small { margin-top: 22px; letter-spacing: .35em; color: #756551; }

.lightbox { position: fixed; z-index: 100; inset: 0; background: rgba(17,14,12,.96); color: var(--warm-white); display: grid; place-items: center; padding: 52px 88px 34px; animation: reveal .28s ease both; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; place-items: center; }
.lightbox figure img { width: 100%; height: 100%; max-height: calc(100svh - 120px); object-fit: contain; animation: imageIn .36s ease both; }
.lightbox figcaption { width: min(100%, 1100px); display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .2em; color: #cfc3b2; }
.lightbox-close { position: absolute; z-index: 2; right: 28px; top: 24px; border: 0; background: transparent; color: white; cursor: pointer; letter-spacing: .18em; }
.lightbox-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: white; cursor: pointer; font-size: 22px; }
.lightbox-arrow:hover { background: var(--cinnabar); border-color: var(--cinnabar); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@keyframes reveal { from { opacity: 0; } }
@keyframes imageIn { from { opacity: 0; transform: scale(.985); } }

button:focus-visible, a:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 4px; }

@media (max-width: 980px) {
  .hero { padding-inline: 24px; }
  .masthead nav a { display: none; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { padding: 64px 0 48px 46px; min-height: 630px; }
  .hero-visual { min-height: 680px; }
  .scroll-cue { display: none; }
  .story-feature { grid-template-columns: 1fr; }
  .story-note { min-height: 280px; }
  .story-note span { font-size: 68px; }
}

@media (max-width: 680px) {
  .masthead { height: 66px; }
  .masthead nav { gap: 0; }
  .masthead nav span { font-size: 10px; }
  .hero-copy { min-height: 580px; padding-top: 50px; }
  h1 { font-size: clamp(50px, 17vw, 72px); }
  .hero-visual { min-height: 600px; grid-template-rows: minmax(0, 1fr) 94px; }
  .hero-photo img { object-fit: cover; object-position: 48% center; }
  .hero-thumbs { gap: 7px; }
  .story { grid-template-columns: 1fr; padding-top: 96px; }
  .story-heading, .story-copy { grid-column: 1; }
  .story-heading h2, .gallery-heading h2 { font-size: 46px; }
  .story-feature img { height: 64vw; min-height: 300px; }
  .gallery-heading { display: block; }
  .gallery-heading > p { margin-top: 24px; text-align: left; }
  .gallery { columns: 2 145px; column-gap: 8px; }
  .chapter-heading { grid-template-columns: 46px 1fr; gap: 14px; }
  .chapter-heading > span { font-size: 26px; }
  .chapter-heading small { display: none; }
  .gallery-item { margin-bottom: 8px; }
  .gallery-item span { display: none; }
  footer { min-height: 62vh; }
  footer::before { inset: 24px 16px; }
  .lightbox { padding: 70px 16px 30px; }
  .lightbox-arrow { top: auto; bottom: 24px; width: 46px; height: 46px; }
  .lightbox-prev { left: 18px; }
  .lightbox-next { right: 18px; }
  .lightbox figcaption { padding: 0 56px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
