:root {
  --ink: #1b1b18;
  --paper: #f4f3ef;
  --white: #fff;
  --coral: #e45b3d;
  --sage: #7f8d7d;
  --line: rgba(27, 27, 24, 0.2);
  --serif: Georgia, "Times New Roman", "Songti SC", SimSun, serif;
  --sans: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --page-x: 5vw;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

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

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

p,
h1,
h2,
h3,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.6rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

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

.section-shell {
  padding-right: var(--page-x);
  padding-left: var(--page-x);
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-x);
  border-bottom: 1px solid rgba(27, 27, 24, 0.26);
}

.site-brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.brand-cn {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
}

.brand-en,
.site-nav,
.hero-kicker,
.eyebrow,
.edition,
.hero-location,
.section-index,
.footer-meta {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  gap: 2.4rem;
  letter-spacing: 0;
}

.site-nav a {
  position: relative;
  padding: 0.5rem 0;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  color: var(--ink);
  background: #b8b6b3;
}

.hero-image,
.hero-shade,
.interlude-image,
.interlude-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 50%;
  transform: translate3d(0, 0, 0) scale(1.035);
  will-change: transform;
}

.hero-shade {
  background: linear-gradient(180deg, rgba(255, 248, 232, 0.2) 0%, transparent 45%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(44rem, 70vw);
  padding-top: 17vh;
  margin-left: var(--page-x);
}

.hero-kicker {
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 7.2rem;
  font-weight: 400;
  line-height: 0.9;
}

.hero-intro {
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.65;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 2.1rem;
  left: var(--page-x);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 4.25rem;
  height: 1px;
  overflow: hidden;
  background: rgba(27, 27, 24, 0.35);
}

.scroll-cue i::after {
  position: absolute;
  inset: 0;
  background: var(--ink);
  content: "";
  animation: cue 2s ease-in-out infinite;
  transform: translateX(-100%);
}

.hero-location {
  position: absolute;
  z-index: 2;
  right: var(--page-x);
  bottom: 2rem;
  writing-mode: vertical-rl;
}

.hello {
  display: grid;
  min-height: 78vh;
  grid-template-columns: 1fr 5fr 2fr;
  gap: 3rem;
  align-items: start;
  padding-top: 10rem;
  padding-bottom: 10rem;
}

.section-index {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.section-index span:first-child {
  color: var(--coral);
}

.section-index span:last-child::before {
  display: inline-block;
  width: 2rem;
  height: 1px;
  margin-right: 0.8rem;
  vertical-align: middle;
  background: currentColor;
  content: "";
}

.eyebrow {
  margin-bottom: 1.7rem;
  color: var(--coral);
}

.hello h2,
.section-heading h2,
.notes-heading h2,
.about h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.18;
}

.hello h2 {
  max-width: 50rem;
  font-size: 4.4rem;
}

.hello-detail {
  align-self: end;
  max-width: 21rem;
  font-size: 0.94rem;
}

.edition {
  padding-top: 2rem;
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
}

.moments {
  padding-top: 2rem;
  padding-bottom: 11rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.section-heading h2,
.notes-heading h2 {
  font-size: 4.8rem;
}

.section-note {
  max-width: 15rem;
  color: rgba(27, 27, 24, 0.7);
  font-size: 0.9rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 5rem 2vw;
  align-items: start;
}

.photo-coffee {
  grid-column: 1 / span 7;
}

.photo-forest {
  grid-column: 9 / -1;
  margin-top: 9rem;
}

.photo-friends {
  grid-column: 3 / span 6;
}

.photo-interior {
  grid-column: 9 / -1;
  margin-top: 12rem;
}

.photo-frame {
  overflow: hidden;
  background: #d5d6d0;
}

.photo-coffee .photo-frame,
.photo-friends .photo-frame {
  aspect-ratio: 3 / 2;
}

.photo-forest .photo-frame {
  aspect-ratio: 3 / 4;
}

.photo-interior .photo-frame {
  aspect-ratio: 4 / 5;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-interior img {
  object-position: 68% center;
}

.photo:hover img {
  transform: scale(1.035);
}

.photo figcaption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
  margin-top: 0.8rem;
}

.photo figcaption span,
.photo figcaption small {
  font-size: 0.68rem;
}

.photo figcaption strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
}

.joke-copy {
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.65;
}

.notes {
  color: #f4f3ef;
  background: #1e211d;
}

.notes-inner {
  padding-top: 8.5rem;
  padding-bottom: 9rem;
}

.notes-heading {
  display: grid;
  grid-template-columns: 1fr 5fr 2fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 6rem;
}

.section-index-light {
  align-self: start;
}

.notes-heading > p {
  color: rgba(244, 243, 239, 0.68);
  font-size: 0.9rem;
}

.note-list {
  border-top: 1px solid rgba(244, 243, 239, 0.35);
}

.note-row {
  display: grid;
  grid-template-columns: 1fr 3fr 2fr;
  gap: 3rem;
  align-items: center;
  min-height: 11rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(244, 243, 239, 0.22);
  transition: padding 260ms ease, background 260ms ease;
}

.note-row:hover {
  padding-right: 1.25rem;
  padding-left: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
}

.note-row time {
  display: flex;
  align-items: end;
  gap: 0.7rem;
}

.note-row time b {
  color: var(--coral);
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 0.9;
}

.note-row time span,
.note-row > div > p {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.note-row h3 {
  margin-top: 0.55rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.35;
}

.note-summary {
  color: rgba(244, 243, 239, 0.62);
  font-size: 0.86rem;
}

.interlude {
  position: relative;
  display: grid;
  min-height: 90svh;
  overflow: hidden;
  place-items: center;
  color: var(--white);
  background: #133340;
}

.interlude-image {
  object-fit: cover;
  transform: scale(1.12);
  will-change: transform;
}

.interlude-shade {
  background: rgba(11, 29, 35, 0.35);
}

.interlude blockquote {
  position: relative;
  z-index: 1;
  width: min(56rem, 88vw);
  text-align: center;
}

.interlude blockquote p {
  font-family: var(--serif);
  font-size: 4.6rem;
  line-height: 1.25;
}

.interlude cite {
  display: block;
  margin-top: 2rem;
  font-size: 0.78rem;
  font-style: normal;
}

.about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 8vw;
  align-items: center;
  padding-top: 10rem;
  padding-bottom: 10rem;
  background: var(--paper);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 42%;
}

.about-photo > p {
  margin-top: 0.8rem;
  font-size: 0.64rem;
}

.about-copy .section-index {
  margin-bottom: 6rem;
}

.about h2 {
  max-width: 44rem;
  margin-bottom: 2.5rem;
  font-size: 3.8rem;
}

.about-copy > p:not(.eyebrow) {
  max-width: 35rem;
  color: rgba(27, 27, 24, 0.72);
}

.about-meta {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
}

.about-meta div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.about-meta dt {
  color: var(--coral);
}

.site-footer {
  padding: 7rem var(--page-x) 2rem;
  color: var(--paper);
  background: var(--coral);
}

.footer-main {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 7rem;
}

.footer-title {
  font-family: var(--serif);
  font-size: 5.6rem;
  line-height: 1.02;
}

.footer-main a {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.84rem;
}

.footer-main a span {
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 200ms ease;
}

.footer-main a:hover span {
  transform: translateY(-0.3rem);
}

.footer-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 243, 239, 0.5);
}

.footer-meta p:last-child {
  text-align: right;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 700ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.js .hero-kicker,
.js .hero h1,
.js .hero-intro {
  opacity: 0;
  transform: translateY(2rem);
}

.js .hero.is-ready .hero-kicker,
.js .hero.is-ready h1,
.js .hero.is-ready .hero-intro {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .hero.is-ready h1 {
  transition-delay: 120ms;
}

.js .hero.is-ready .hero-intro {
  transition-delay: 240ms;
}

@keyframes cue {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

@media (max-width: 980px) {
  :root { --page-x: 2rem; }

  .hero h1 { font-size: 5.8rem; }
  .hello { grid-template-columns: 1fr 5fr; }
  .hello-detail { grid-column: 2; margin-top: 1rem; }
  .hello h2 { font-size: 3.6rem; }
  .section-heading h2, .notes-heading h2 { font-size: 4rem; }
  .photo-forest, .photo-interior { grid-column: 8 / -1; }
  .photo-friends { grid-column: 2 / span 7; }
  .notes-heading { grid-template-columns: 1fr 4fr; }
  .notes-heading > p { grid-column: 2; }
  .note-row { grid-template-columns: 1fr 3fr; }
  .note-summary { grid-column: 2; }
  .about { gap: 5vw; }
  .about h2 { font-size: 3.2rem; }
  .footer-title { font-size: 4.6rem; }
}

@media (max-width: 680px) {
  :root { --page-x: 1.25rem; }

  html { scroll-padding-top: 4.25rem; }
  .site-header { height: 4.25rem; }
  .brand-en { display: none; }
  .site-nav { gap: 1.2rem; font-size: 0.72rem; }
  .hero { min-height: 90svh; }
  .hero-image { object-position: center 52%; }
  .hero-content { width: calc(100% - 2.5rem); padding-top: 18vh; }
  .hero-kicker { font-size: 0.58rem; }
  .hero h1 { font-size: 3.75rem; }
  .hero-intro { margin-top: 1.2rem; font-size: 1rem; }
  .hero-location { display: none; }

  .hello {
    display: block;
    min-height: 0;
    padding-top: 6.5rem;
    padding-bottom: 7rem;
  }

  .hello-copy { margin-top: 4rem; }
  .hello h2 { font-size: 2.65rem; }
  .hello-detail { margin-top: 3rem; }
  .eyebrow { margin-bottom: 1.2rem; }

  .moments { padding-bottom: 7rem; }
  .section-heading { display: block; margin-bottom: 2.5rem; }
  .section-heading h2, .notes-heading h2 { font-size: 3.25rem; }
  .section-note { margin-top: 1.5rem; }
  .photo-grid { display: block; }
  .photo { margin: 0 0 3.5rem; }
  .photo-coffee .photo-frame,
  .photo-friends .photo-frame { aspect-ratio: 4 / 3; }
  .photo-forest .photo-frame { aspect-ratio: 4 / 5; }
  .photo-interior .photo-frame { aspect-ratio: 4 / 3; }
  .photo figcaption { grid-template-columns: auto 1fr; }
  .photo figcaption small { grid-column: 2; }
  .joke-copy { font-size: 1.08rem; }

  .notes-inner { padding-top: 6.5rem; padding-bottom: 6rem; }
  .notes-heading { display: block; margin-bottom: 4rem; }
  .notes-heading > div:nth-child(2) { margin-top: 4rem; }
  .notes-heading > p { margin-top: 1.5rem; }
  .note-row {
    display: grid;
    min-height: 0;
    grid-template-columns: 4rem 1fr;
    gap: 1.5rem;
    padding: 2.3rem 0;
  }
  .note-row:hover { padding-right: 0; padding-left: 0; background: transparent; }
  .note-row time { display: block; }
  .note-row time b { display: block; margin-bottom: 0.55rem; font-size: 2.6rem; }
  .note-row time span { display: block; }
  .note-row h3 { font-size: 1.35rem; }
  .note-summary { grid-column: 2; }

  .interlude { min-height: 78svh; }
  .interlude blockquote p { font-size: 2.65rem; }

  .about {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    padding-top: 6.5rem;
    padding-bottom: 7rem;
  }
  .about-photo { width: 82%; align-self: flex-start; }
  .about-copy .section-index { margin-bottom: 4rem; }
  .about h2 { font-size: 2.55rem; }

  .site-footer { padding-top: 5rem; }
  .footer-main { display: block; padding-bottom: 5rem; }
  .footer-title { font-size: 3.45rem; }
  .footer-main a { display: inline-block; margin-top: 3rem; }
  .footer-meta { display: block; }
  .footer-meta p { margin-bottom: 0.5rem; }
  .footer-meta p:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .hero-image, .interlude-image { transform: none !important; }
}
