@charset "UTF-8";

:root {
  --paper: #f4f0e6;
  --paper-light: #f8f5ed;
  --paper-deep: #e9e2d3;
  --ink: #292723;
  --ink-soft: #5e5a52;
  --ink-faint: #8c867b;
  --cinnabar: #9f3427;
  --cinnabar-dark: #74271f;
  --line: #cbc2b1;
  --line-dark: #9f9789;
  --song: "Songti SC", "STSong", "SimSun", serif;
  --fangsong: "FangSong", "STFangsong", "FangSong_GB2312", serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", serif;
  --sans: "PingFang SC", "Microsoft YaHei", sans-serif;
  --shell: min(1040px, calc(100% - 64px));
  --header-height: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("paper-texture.svg");
  background-repeat: repeat;
  font-family: var(--song);
  font-size: 17px;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open,
body.intro-playing {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

::selection {
  color: var(--paper-light);
  background: var(--cinnabar);
}

:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 5px;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 8px 14px;
  color: var(--paper-light);
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-intro[hidden] {
  display: none;
}

.scroll-intro {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: flex;
  padding: 40px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  background: #24211d;
  transition: opacity 240ms ease;
}

.scroll-intro::before,
.scroll-intro::after {
  position: absolute;
  top: 30px;
  bottom: 30px;
  width: 1px;
  content: "";
  background: #5d564c;
}

.scroll-intro::before {
  left: 30px;
}

.scroll-intro::after {
  right: 30px;
}

.scroll-intro.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.scroll-stage {
  width: min(900px, calc(100vw - 80px));
  height: min(440px, calc(100svh - 140px));
}

.scroll-sheet {
  position: relative;
  display: flex;
  width: 74px;
  height: 100%;
  margin: 0 auto;
  align-items: stretch;
  justify-content: center;
  overflow: visible;
  background: var(--paper-light);
  border-top: 2px solid var(--cinnabar-dark);
  border-bottom: 2px solid var(--cinnabar-dark);
  transition: width 1050ms cubic-bezier(0.65, 0, 0.2, 1) 180ms;
}

.scroll-sheet::before,
.scroll-sheet::after {
  position: absolute;
  z-index: 2;
  top: 12px;
  bottom: 12px;
  width: 1px;
  content: "";
  background: #c6bba8;
  opacity: 0;
  transition: opacity 350ms ease 1050ms;
}

.scroll-sheet::before {
  left: 27px;
}

.scroll-sheet::after {
  right: 27px;
}

.scroll-intro.is-playing .scroll-sheet {
  width: min(820px, calc(100vw - 120px));
}

.scroll-intro.is-playing .scroll-sheet::before,
.scroll-intro.is-playing .scroll-sheet::after {
  opacity: 1;
}

.scroll-rod {
  position: absolute;
  z-index: 4;
  top: -18px;
  bottom: -18px;
  width: 26px;
  background: #382a22;
  border-right: 1px solid #17110e;
  border-left: 1px solid #665044;
}

.scroll-rod-left {
  left: -13px;
}

.scroll-rod-right {
  right: -13px;
}

.scroll-rod i {
  position: absolute;
  top: -14px;
  bottom: -14px;
  left: 50%;
  width: 8px;
  border-top: 14px solid #221813;
  border-bottom: 14px solid #221813;
  transform: translateX(-50%);
}

.scroll-rod i::before,
.scroll-rod i::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 4px;
  content: "";
  background: #765845;
  border: 1px solid #1d1511;
  transform: translateX(-50%);
}

.scroll-rod i::before {
  top: -16px;
}

.scroll-rod i::after {
  bottom: -16px;
}

.scroll-copy {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 46px 80px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  color: var(--ink);
  white-space: nowrap;
  transition: opacity 430ms ease 1180ms;
}

.scroll-intro.is-playing .scroll-copy {
  opacity: 1;
}

.scroll-copy::before,
.scroll-copy::after {
  position: absolute;
  top: 28px;
  bottom: 28px;
  width: 12px;
  content: "";
  border-top: 1px solid var(--cinnabar);
  border-bottom: 1px solid var(--cinnabar);
}

.scroll-copy::before {
  left: 42px;
  border-left: 1px solid var(--cinnabar);
}

.scroll-copy::after {
  right: 42px;
  border-right: 1px solid var(--cinnabar);
}

.scroll-copy p {
  margin: 0 0 24px;
  color: var(--cinnabar);
  font-family: var(--fangsong);
  font-size: 13px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
}

.scroll-copy strong {
  color: var(--ink);
  font-family: var(--song);
  font-size: clamp(36px, 6vw, 66px);
  font-weight: 400;
  letter-spacing: 0.18em;
}

.scroll-copy time {
  margin-top: 23px;
  color: var(--ink-soft);
  font-family: var(--fangsong);
  font-size: 13px;
  letter-spacing: 0.22em;
}

.scroll-copy > span {
  position: absolute;
  right: 64px;
  bottom: 44px;
  display: flex;
  width: 40px;
  height: 40px;
  padding: 3px;
  align-items: center;
  justify-content: center;
  color: var(--cinnabar);
  border: 1px solid var(--cinnabar);
  font-family: var(--kai);
  font-size: 12px;
  line-height: 1.05;
}

.intro-skip {
  position: absolute;
  right: 44px;
  bottom: 37px;
  padding: 6px 2px;
  color: #bcb3a5;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #625b52;
  font-family: var(--fangsong);
  font-size: 12px;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  background: rgba(244, 240, 230, 0.96);
  border-bottom: 1px solid transparent;
  transition: height 200ms ease, border-color 200ms ease;
}

.site-header.is-scrolled {
  height: 60px;
  border-color: var(--line);
}

.header-inner {
  display: flex;
  width: var(--shell);
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-seal {
  display: inline-flex;
  width: 39px;
  height: 39px;
  padding: 3px;
  align-items: center;
  justify-content: center;
  color: var(--cinnabar);
  border: 1px solid var(--cinnabar);
  font-family: var(--kai);
  font-size: 13px;
  line-height: 1.1;
  text-align: center;
}

.brand-title {
  color: var(--ink);
  font-family: var(--song);
  font-size: 15px;
  letter-spacing: 0.25em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(25px, 4vw, 48px);
}

.site-nav a {
  position: relative;
  padding: 5px 0;
  color: var(--ink-soft);
  font-family: var(--song);
  font-size: 14px;
  letter-spacing: 0.2em;
}

.site-nav a::after {
  position: absolute;
  right: 100%;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--cinnabar);
  transition: right 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  right: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero {
  position: relative;
  display: flex;
  min-height: max(700px, 100svh);
  padding: calc(var(--header-height) + 70px) 32px 72px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper-light);
  text-align: center;
}

.hero::before,
.hero::after {
  position: absolute;
  top: 100px;
  bottom: 56px;
  width: 1px;
  content: "";
  background: var(--line);
}

.hero::before {
  left: max(28px, calc((100vw - 1180px) / 2));
}

.hero::after {
  right: max(28px, calc((100vw - 1180px) / 2));
}

.hero-page-mark {
  position: absolute;
  top: calc(var(--header-height) + 42px);
  left: max(50px, calc((100vw - 1080px) / 2));
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-faint);
  font-family: var(--fangsong);
  font-size: 12px;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
}

.hero-page-mark i {
  width: 1px;
  height: 54px;
  background: var(--line-dark);
}

.hero-heading {
  position: relative;
  z-index: 1;
}

.hero-preface {
  margin: 0 0 36px;
  color: var(--cinnabar);
  font-family: var(--kai);
  font-size: 17px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
}

.hero h1 {
  display: flex;
  margin: 0;
  align-items: center;
  color: var(--ink);
  font-family: var(--song);
  font-size: clamp(56px, 8vw, 94px);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.15;
}

.hero h1 small {
  margin: 0 clamp(22px, 4vw, 58px);
  color: var(--cinnabar);
  font-family: var(--kai);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-date {
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-family: var(--fangsong);
  font-size: 16px;
  letter-spacing: 0.25em;
}

.hero-rule {
  display: flex;
  width: min(440px, 70vw);
  margin: 42px 0 32px;
  align-items: center;
}

.hero-rule span {
  width: 50%;
  height: 1px;
  background: var(--line);
}

.hero-rule i {
  width: 7px;
  height: 7px;
  margin: 0 13px;
  border: 1px solid var(--cinnabar);
  transform: rotate(45deg);
}

.love-counter > p {
  margin: 0 0 9px;
  color: var(--ink-faint);
  font-family: var(--fangsong);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.counter-grid {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(18px, 4vw, 45px);
}

.counter-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.counter-item strong {
  min-width: 2ch;
  color: var(--ink);
  font-family: var(--song);
  font-size: clamp(27px, 3.4vw, 40px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.counter-item:first-child strong {
  min-width: 3ch;
}

.counter-item small {
  color: var(--cinnabar);
  font-family: var(--fangsong);
  font-size: 13px;
}

.hero-note {
  margin: 37px 0 0;
  color: var(--ink-soft);
  font-family: var(--kai);
  font-size: 16px;
  letter-spacing: 0.12em;
  line-height: 2;
}

.read-link {
  margin-top: 34px;
  padding-bottom: 3px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--fangsong);
  font-size: 13px;
  letter-spacing: 0.18em;
  transition: color 180ms ease, border-color 180ms ease;
}

.read-link:hover {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
}

.hero-inscription {
  position: absolute;
  right: max(52px, calc((100vw - 1080px) / 2));
  bottom: 74px;
  display: flex;
  width: 44px;
  border: 1px solid var(--cinnabar);
  flex-direction: column;
  color: var(--cinnabar);
}

.hero-inscription span {
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  font-family: var(--kai);
  font-size: 17px;
}

.hero-inscription span + span {
  border-top: 1px solid var(--cinnabar);
}

.chapter {
  position: relative;
  padding: clamp(100px, 11vw, 150px) 0;
  border-top: 1px solid var(--line);
}

.page-shell {
  position: relative;
  width: var(--shell);
  margin: 0 auto;
}

.page-shell::before {
  position: absolute;
  top: -38px;
  bottom: -38px;
  left: -22px;
  width: 7px;
  content: "";
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.page-shell::after {
  position: absolute;
  z-index: 2;
  top: -39px;
  left: -29px;
  width: 21px;
  height: 21px;
  content: "";
  border-top: 1px solid var(--cinnabar);
  border-left: 1px solid var(--cinnabar);
}

.chapter-heading {
  max-width: 650px;
  margin: 0 auto 78px;
  text-align: center;
}

.chapter-number {
  margin: 0 0 20px;
  color: var(--cinnabar);
  font-family: var(--fangsong);
  font-size: 13px;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
}

.chapter-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--song);
  font-size: clamp(46px, 6vw, 68px);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  line-height: 1.25;
}

.chapter-heading > p:last-child {
  margin: 23px auto 0;
  color: var(--ink-soft);
  font-family: var(--fangsong);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.chapter-about {
  background: var(--paper);
}

.people-spread {
  display: grid;
  align-items: stretch;
  grid-template-columns: 1fr 88px 1fr;
}

.person-entry {
  position: relative;
  min-height: 330px;
  padding: 42px 52px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.entry-order {
  margin: 0 0 42px;
  color: var(--cinnabar);
  font-family: var(--kai);
  font-size: 13px;
  letter-spacing: 0.25em;
}

.person-entry h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--song);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.2em;
}

.entry-caption {
  min-height: 62px;
  margin: 16px 0 34px;
  color: var(--ink-soft);
  font-family: var(--fangsong);
  font-size: 15px;
}

.person-entry dl {
  padding: 14px 0 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.person-entry dl div {
  display: grid;
  padding: 7px 0;
  grid-template-columns: 58px 1fr;
}

.person-entry dt {
  color: var(--cinnabar);
  font-family: var(--kai);
  font-size: 13px;
}

.person-entry dd {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--fangsong);
  font-size: 14px;
}

.people-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--cinnabar);
  font-family: var(--kai);
}

.people-divider::before,
.people-divider::after {
  width: 1px;
  height: 50px;
  content: "";
  background: var(--line-dark);
}

.people-divider span {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--cinnabar);
  border-left: 1px solid var(--cinnabar);
  font-size: 13px;
}

.people-divider span:first-of-type {
  border-top: 1px solid var(--cinnabar);
}

.people-divider span:last-of-type {
  border-bottom: 1px solid var(--cinnabar);
}

.chapter-quote {
  max-width: 720px;
  padding: 42px 60px 0;
  margin: 90px auto 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.chapter-quote p {
  margin: 0;
  color: var(--ink);
  font-family: var(--kai);
  font-size: clamp(20px, 2.3vw, 27px);
  letter-spacing: 0.09em;
}

.chapter-quote footer {
  margin-top: 18px;
  color: var(--ink-faint);
  font-family: var(--fangsong);
  font-size: 12px;
  letter-spacing: 0.25em;
}

.chapter-story {
  color: var(--paper-light);
  background: #25231f;
  border-color: #25231f;
}

.chapter-story .chapter-number {
  color: #c26a59;
}

.chapter-story .chapter-heading h2 {
  color: var(--paper-light);
}

.chapter-story .chapter-heading > p:last-child {
  color: #b9b1a3;
}

.chapter-story .page-shell::before {
  border-color: #59554e;
}

.chapter-story .page-shell::after {
  border-color: #c26a59;
}

.story-list {
  max-width: 840px;
  padding: 0;
  margin: 0 auto;
  list-style: none;
}

.story-entry {
  display: grid;
  min-height: 210px;
  padding: 42px 0;
  border-top: 1px solid #5a564f;
  align-items: center;
  grid-template-columns: 180px 1fr;
}

.story-entry:last-child {
  border-bottom: 1px solid #5a564f;
}

.story-date {
  color: #c5bcae;
  font-family: var(--fangsong);
  font-size: 13px;
  letter-spacing: 0.18em;
  line-height: 2;
  text-align: center;
}

.story-copy {
  padding: 0 24px 0 55px;
  border-left: 1px solid #5a564f;
}

.story-order {
  margin: 0 0 11px;
  color: #c26a59;
  font-family: var(--kai);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.story-copy h3 {
  margin: 0;
  color: var(--paper-light);
  font-family: var(--song);
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.story-copy > p:last-child {
  margin: 15px 0 0;
  color: #b9b1a3;
  font-family: var(--fangsong);
  font-size: 15px;
  line-height: 2;
}

.chapter-daily {
  background: var(--paper-light);
}

.chapter-heading-side {
  max-width: none;
  margin: 0;
  text-align: left;
}

.chapter-heading-side h2 {
  letter-spacing: 0.15em;
  text-indent: 0;
}

.chapter-heading-side > p:last-child {
  margin-right: 0;
  margin-left: 0;
}

.chapter-daily .page-shell {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(60px, 10vw, 130px);
}

.daily-list {
  border-top: 1px solid var(--ink);
}

.daily-entry {
  display: grid;
  min-height: 145px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-content: center;
  align-items: baseline;
  grid-template-columns: 48px 190px 1fr;
}

.daily-number {
  margin: 0;
  color: var(--cinnabar);
  font-family: var(--kai);
  font-size: 13px;
}

.daily-entry h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--song);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0.09em;
}

.daily-entry > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--fangsong);
  font-size: 14px;
}

.chapter-promise {
  background: var(--paper-deep);
}

.promise-layout {
  display: grid;
  align-items: start;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(60px, 10vw, 130px);
}

.promise-list {
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.promise-list li {
  display: grid;
  min-height: 88px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line-dark);
  align-items: center;
  grid-template-columns: 48px 1fr;
}

.promise-list li span {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: var(--cinnabar);
  border: 1px solid var(--cinnabar);
  font-family: var(--kai);
  font-size: 12px;
}

.promise-list li p {
  margin: 0;
  color: var(--ink);
  font-family: var(--fangsong);
  font-size: 16px;
  letter-spacing: 0.05em;
}

.promise-closing {
  padding-top: 32px;
  margin: 0;
  border-top: 1px solid var(--cinnabar);
  color: var(--cinnabar-dark);
  font-family: var(--kai);
  font-size: 18px;
  letter-spacing: 0.12em;
  text-align: right;
  grid-column: 2;
}

.chapter-letter {
  padding-top: clamp(110px, 13vw, 180px);
  padding-bottom: clamp(110px, 13vw, 180px);
  background: var(--paper);
}

.letter-sheet {
  position: relative;
  max-width: 840px;
  padding: clamp(55px, 8vw, 94px) clamp(35px, 9vw, 105px);
  background: var(--paper-light);
  border: 1px solid var(--line);
}

.letter-sheet::before,
.letter-sheet::after {
  position: absolute;
  width: 54px;
  height: 54px;
  content: "";
}

.letter-sheet::before {
  top: 18px;
  left: 18px;
  border-top: 1px solid var(--cinnabar);
  border-left: 1px solid var(--cinnabar);
}

.letter-sheet::after {
  right: 18px;
  bottom: 18px;
  border-right: 1px solid var(--cinnabar);
  border-bottom: 1px solid var(--cinnabar);
}

.letter-heading {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.letter-heading p {
  margin: 0 0 12px;
  color: var(--cinnabar);
  font-family: var(--fangsong);
  font-size: 13px;
  letter-spacing: 0.3em;
}

.letter-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--song);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 400;
  letter-spacing: 0.2em;
}

.letter-heading time {
  display: block;
  margin-top: 17px;
  color: var(--ink-faint);
  font-family: var(--fangsong);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.letter-body {
  padding: 42px 0 15px;
}

.letter-body p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-family: var(--fangsong);
  font-size: 17px;
  letter-spacing: 0.06em;
  line-height: 2.15;
}

.letter-body p:first-child {
  color: var(--ink);
  font-family: var(--kai);
  font-size: 19px;
}

.letter-signature {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: right;
}

.letter-signature p {
  margin: 0;
  color: var(--ink-faint);
  font-family: var(--fangsong);
  font-size: 13px;
}

.letter-signature strong {
  display: block;
  margin-top: 5px;
  color: var(--cinnabar-dark);
  font-family: var(--kai);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.closing {
  display: flex;
  min-height: 590px;
  padding: 100px 32px;
  align-items: center;
  justify-content: center;
  color: var(--paper-light);
  background: #25231f;
  border-top: 1px solid #4c4942;
  text-align: center;
}

.closing-inner {
  position: relative;
  width: min(620px, 100%);
  padding: 65px 40px;
  border-top: 1px solid #625e56;
  border-bottom: 1px solid #625e56;
}

.closing-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  margin: 0 0 28px;
  align-items: center;
  justify-content: center;
  color: #c26a59;
  border: 1px solid #c26a59;
  font-family: var(--kai);
  font-size: 12px;
}

.closing h2 {
  margin: 0;
  color: var(--paper-light);
  font-family: var(--song);
  font-size: clamp(40px, 5.5vw, 61px);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.55;
  text-indent: 0.16em;
}

.closing-inner > p:not(.closing-mark) {
  margin: 25px 0 35px;
  color: #b9b1a3;
  font-family: var(--fangsong);
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 2;
}

.closing a {
  display: inline-block;
  padding-bottom: 3px;
  color: #d2c8b9;
  border-bottom: 1px solid #777168;
  font-family: var(--fangsong);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.site-footer {
  color: #999286;
  background: #1d1b18;
  border-top: 1px solid #3e3a34;
  font-family: var(--fangsong);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.footer-inner {
  display: flex;
  width: var(--shell);
  min-height: 75px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.noscript-note {
  position: fixed;
  z-index: 120;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 9px 14px;
  margin: 0;
  color: var(--paper-light);
  background: var(--ink);
  border: 1px solid var(--line-dark);
  font-family: var(--fangsong);
  font-size: 13px;
  text-align: center;
}

.reveal {
  opacity: 1;
}

.js .reveal {
  opacity: 0;
  transition: opacity 700ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
}

@media (max-width: 860px) {
  :root {
    --shell: min(100% - 40px, 680px);
  }

  .site-nav {
    position: fixed;
    z-index: 89;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(76vw, 330px);
    padding: 98px 34px 40px;
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
    background: var(--paper-light);
    border-left: 1px solid var(--line);
    transform: translateX(102%);
    transition: transform 230ms ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .scroll-stage {
    width: calc(100vw - 34px);
    height: min(390px, calc(100svh - 150px));
  }

  .scroll-intro.is-playing .scroll-sheet {
    width: calc(100vw - 70px);
  }

  .scroll-copy {
    padding: 40px 54px;
  }

  .scroll-copy strong {
    font-size: clamp(30px, 7vw, 48px);
  }

  .scroll-copy::before {
    left: 28px;
  }

  .scroll-copy::after {
    right: 28px;
  }

  .nav-toggle {
    position: relative;
    z-index: 91;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
  }

  .nav-toggle > span:not(.sr-only) {
    width: 22px;
    height: 1px;
    background: var(--ink);
    transition: transform 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .hero h1 {
    font-size: clamp(48px, 10vw, 72px);
  }

  .hero h1 small {
    margin: 0 24px;
  }

  .hero-inscription {
    right: 42px;
  }

  .hero-page-mark {
    left: 40px;
  }

  .people-spread {
    grid-template-columns: 1fr;
  }

  .person-entry {
    max-width: 610px;
    width: 100%;
    margin: 0 auto;
  }

  .people-divider {
    padding: 18px 0;
    flex-direction: row;
  }

  .people-divider::before,
  .people-divider::after {
    width: 50px;
    height: 1px;
  }

  .people-divider span {
    width: 30px;
    height: 30px;
    border-top: 1px solid var(--cinnabar);
    border-right: 0;
    border-bottom: 1px solid var(--cinnabar);
    border-left: 0;
  }

  .people-divider span:first-of-type {
    border-left: 1px solid var(--cinnabar);
  }

  .people-divider span:last-of-type {
    border-right: 1px solid var(--cinnabar);
  }

  .chapter-daily .page-shell,
  .promise-layout {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .chapter-heading-side {
    max-width: 600px;
  }

  .promise-closing {
    grid-column: 1;
  }
}

@media (max-width: 580px) {
  :root {
    --shell: calc(100% - 30px);
    --header-height: 61px;
  }

  body {
    font-size: 16px;
  }

  .site-header.is-scrolled {
    height: 56px;
  }

  .brand-seal {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .brand-title {
    font-size: 13px;
  }

  .scroll-intro {
    padding: 18px;
  }

  .scroll-intro::before,
  .scroll-intro::after {
    top: 15px;
    bottom: 15px;
  }

  .scroll-intro::before {
    left: 15px;
  }

  .scroll-intro::after {
    right: 15px;
  }

  .scroll-stage {
    width: calc(100vw - 30px);
    height: min(430px, calc(100svh - 120px));
  }

  .scroll-intro.is-playing .scroll-sheet {
    width: calc(100vw - 58px);
  }

  .scroll-copy {
    padding: 34px 43px;
  }

  .scroll-copy p {
    margin-bottom: 18px;
    font-size: 11px;
  }

  .scroll-copy strong {
    font-size: clamp(25px, 7.8vw, 38px);
    letter-spacing: 0.1em;
  }

  .scroll-copy time {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .scroll-copy > span {
    right: 39px;
    bottom: 34px;
    width: 32px;
    height: 32px;
    font-size: 10px;
  }

  .scroll-copy::before {
    left: 21px;
  }

  .scroll-copy::after {
    right: 21px;
  }

  .intro-skip {
    right: 23px;
    bottom: 19px;
  }

  .hero {
    min-height: 720px;
    padding: 110px 20px 70px;
  }

  .hero::before,
  .hero::after {
    top: 83px;
    bottom: 25px;
  }

  .hero::before {
    left: 14px;
  }

  .hero::after {
    right: 14px;
  }

  .hero-page-mark {
    top: 88px;
    left: 27px;
    font-size: 10px;
  }

  .hero-page-mark i {
    height: 32px;
  }

  .hero-preface {
    margin-bottom: 27px;
    font-size: 14px;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
  }

  .hero h1 {
    display: grid;
    font-size: clamp(48px, 15vw, 65px);
    letter-spacing: 0.12em;
  }

  .hero h1 small {
    margin: 11px 0;
    font-size: 15px;
  }

  .hero-date {
    margin-top: 23px;
    font-size: 13px;
    letter-spacing: 0.12em;
  }

  .hero-rule {
    margin: 30px 0 27px;
  }

  .counter-grid {
    width: 100%;
    gap: 11px;
  }

  .counter-item {
    gap: 3px;
  }

  .counter-item strong {
    font-size: clamp(24px, 8vw, 31px);
  }

  .counter-item small {
    font-size: 10px;
  }

  .hero-note {
    margin-top: 29px;
    font-size: 14px;
  }

  .read-link {
    margin-top: 27px;
    font-size: 11px;
  }

  .hero-inscription {
    right: 27px;
    bottom: 39px;
    width: 30px;
  }

  .hero-inscription span {
    height: 29px;
    font-size: 12px;
  }

  .chapter {
    padding: 84px 0;
  }

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

  .chapter-number {
    font-size: 11px;
  }

  .chapter-heading h2 {
    font-size: 43px;
  }

  .chapter-heading > p:last-child {
    font-size: 13px;
  }

  .person-entry {
    min-height: auto;
    padding: 34px 23px;
  }

  .entry-order {
    margin-bottom: 27px;
  }

  .person-entry h3 {
    font-size: 35px;
  }

  .entry-caption {
    min-height: 0;
    font-size: 14px;
  }

  .chapter-quote {
    padding: 34px 10px 0;
    margin-top: 68px;
  }

  .chapter-quote p {
    font-size: 19px;
  }

  .story-entry {
    min-height: auto;
    padding: 35px 0;
    align-items: start;
    grid-template-columns: 92px 1fr;
  }

  .story-date {
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  .story-copy {
    padding: 0 0 0 23px;
  }

  .story-copy h3 {
    font-size: 21px;
  }

  .story-copy > p:last-child {
    font-size: 13px;
  }

  .daily-entry {
    min-height: 0;
    padding: 25px 0;
    grid-template-columns: 35px 1fr;
  }

  .daily-entry h3 {
    font-size: 20px;
  }

  .daily-entry > p:last-child {
    margin-top: 8px;
    font-size: 13px;
    grid-column: 2;
  }

  .promise-list li {
    grid-template-columns: 41px 1fr;
  }

  .promise-list li p {
    font-size: 14px;
  }

  .promise-closing {
    font-size: 16px;
    text-align: left;
  }

  .letter-sheet {
    width: calc(100% - 30px);
    padding: 57px 27px;
  }

  .letter-sheet::before,
  .letter-sheet::after {
    width: 38px;
    height: 38px;
  }

  .letter-heading h2 {
    font-size: 38px;
  }

  .letter-body p {
    font-size: 15px;
    line-height: 2.05;
  }

  .closing {
    min-height: 520px;
    padding: 70px 23px;
  }

  .closing-inner {
    padding: 54px 10px;
  }

  .closing h2 {
    font-size: 38px;
    letter-spacing: 0.1em;
    text-indent: 0.1em;
  }

  .footer-inner {
    min-height: 0;
    padding: 24px 0;
    align-items: center;
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

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

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

  .js .reveal {
    opacity: 1;
  }

  .scroll-intro {
    display: none !important;
  }
}

@media print {
  .site-header,
  .read-link,
  .nav-toggle {
    display: none !important;
  }

  .hero,
  .chapter,
  .closing {
    min-height: auto;
    padding: 45px 20px;
    break-inside: avoid;
  }

  body,
  .hero,
  .chapter,
  .chapter-story,
  .closing,
  .site-footer {
    color: #222;
    background: #fff;
  }
}
