@font-face {
  font-family: 'Caveat';
  src: url('assets/caveat.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Ivo';
  src: url('assets/ivo.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Bea';
  src: url('assets/bea.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Handlee';
  src: url('assets/Handlee-Regular.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Xiaolai';
  src: url('assets/Xiaolai-Typefarer.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Zhi Mang Xing';
  src: url('assets/Typefarer-Voyage-Hand.woff2') format('woff2');
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #414e61;
  --soft-ink: #604f46;
  --paper: #faedde;
  --dusk-wash: #b2b9c575;
  --blue-hour-wash: #a3aec3db;
  --night: #182438;
  --brick: #805b4a;
  --title: 'Caveat', 'Bradley Hand', cursive;
  --body: Georgia, serif;
  --hand: 'Ivo', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper) url('assets/paper-grain.webp');
  color: var(--ink);
  font: 1rem/1.65 var(--body);
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:is(a, button):focus-visible {
  outline: none;
  text-decoration: underline 2px currentColor;
  text-underline-offset: .28em;
}

:is(.download, .nav-download, .next-section, .close-letter):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  text-decoration: none;
}

:is(.next-section, .close-letter) { border-radius: 50%; }

#letter-title:focus { outline: none; }

.masthead, .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem max(5vw, calc((100vw - 1320px) / 2));
}

.masthead {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  min-height: 72px;
  padding-block: .72rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .26em;
  font: 600 clamp(1.65rem, 2.4vw, 2.25rem)/1 var(--title);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-star { flex: none; width: .86em; height: .86em; }
.masthead nav {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 2.4vw, 2.65rem);
  padding: .24rem .48rem .24rem .85rem;
  background: linear-gradient(100deg, #faeedf00, #faeedfc9 14% 90%, #faeedf82);
  border-radius: 10px 13px 11px 8px;
}
.masthead nav a {
  font: 600 clamp(1.08rem, 1.38vw, 1.35rem)/1.1 var(--title);
  text-decoration-color: transparent;
  text-underline-offset: .32em;
  transition: text-decoration-color 250ms ease;
  white-space: nowrap;
}
.masthead nav a:is(:hover, :focus-visible) { text-decoration-color: currentColor; }
.masthead nav a:focus-visible { transition: none; }
.nav-download {
  border: 1px solid currentColor;
  border-radius: 20px 18px 19px 21px;
  padding: .33rem .7rem;
  text-decoration: none;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(425px, 36vw, 720px);
}

.hero-copy {
  width: 39%;
  padding: 2rem 1.35% 2rem 8.1%;
  margin-top: clamp(1.5rem, 4.2vw, 4.5rem);
  position: relative;
  z-index: 1;
}

.postscript {
  margin: 0 0 .75rem;
  color: var(--brick);
  font: 1.23rem/1.25 var(--hand);
  transform: rotate(-3deg);
  transform-origin: left;
}

h1, h2 {
  margin: 0;
  font-family: var(--title);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: .93;
}

h1 {
  width: fit-content;
  position: relative;
  font-size: clamp(4.4rem, 8vw, 10rem);
  transform: rotate(-4deg);
  margin-left: -.045em;
}

h1::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 6%;
  bottom: -.08em;
  height: .08em;
  background: #aa856f87;
  clip-path: polygon(0 62%, 9% 23%, 29% 10%, 42% 0%, 59% 12%, 80% 48%, 100% 74%, 94% 89%, 62% 72%, 29% 76%, 13% 100%);
  transform: rotate(2deg);
}

h2 { font-size: clamp(2.75rem, 4.65vw, 4.95rem); text-wrap: balance; }
.slogan {
  margin: .77em 0 .93em;
  color: var(--soft-ink);
  font: 500 clamp(1.55rem, 2.34vw, 2.65rem)/1.02 var(--title);
  letter-spacing: .025em;
}

.download {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: .59rem 1.1rem;
  background: #505c72;
  color: #fff7e8;
  font: 400 1rem/1.15 var(--hand);
  text-decoration: none;
  border-radius: 26px 24px 25px 23px;
  transition: background-color 230ms ease;
}
.download[hidden], .availability[hidden] { display: none; }
.download:hover { background: #354252; }

.hero-picture {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: clip;
}

.hero-picture picture, .hero-picture picture img { width: 100%; height: 100%; display: block; }
.hero-picture picture img { object-fit: fill; }
.hero::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: -2px;
  height: clamp(14px, 2vw, 34px);
  pointer-events: none;
  background: var(--paper) url('assets/paper-grain.webp');
  clip-path: polygon(0 45%, 8% 53%, 16% 34%, 24% 29%, 34% 44%, 44% 57%, 53% 47%, 60% 53%, 68% 29%, 76% 37%, 87% 23%, 94% 34%, 100% 19%, 100% 100%, 0 100%);
}

.next-section {
  position: absolute;
  z-index: 2;
  bottom: 1.15rem;
  left: calc(50% - 22px);
  padding: 0;
  width: 44px;
  height: 44px;
  color: #fff5e6;
}

.next-section::after {
  content: '';
  position: absolute;
  top: 41%;
  left: 37%;
  width: 12px;
  height: 12px;
  border-right: 2px solid;
  border-bottom: 2px solid;
  transform: rotate(45deg);
}

.postbird {
  display: none;
}

@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .postbird {
    position: absolute;
    display: block;
    pointer-events: none;
    top: 28%;
    left: 63%;
    width: 2.2%;
    aspect-ratio: 1;
    opacity: 0;
    animation: postbird-flight 3.05s 1.2s ease-in-out both;
  }

  .postbird::before, .postbird::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/postbird-down.webp') center / contain no-repeat;
  }

  .postbird::after {
    background-image: url('assets/postbird-up.webp');
    animation: postbird-wings 460ms 1.2s steps(1) 7;
  }
}

@keyframes postbird-flight {
  0% { opacity: 0; transform: translate(-65%, 10%); }
  20% { opacity: .58; }
  75% { opacity: .58; }
  100% { opacity: 0; transform: translate(700%, -86%); }
}

@keyframes postbird-wings {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.hero-letter-link {
  display: block;
  margin-top: .65rem;
  padding: .45rem 0;
  border: 0;
  background: none;
  color: var(--soft-ink);
  cursor: pointer;
  font: 500 1.15rem/1.2 var(--title);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}

.hero-letter-link:hover { color: var(--ink); }

.mail-trigger {
  position: absolute;
  z-index: 1;
  top: var(--mail-top, 48%);
  left: var(--mail-left, 40%);
  width: var(--mail-width, 11%);
  height: 28%;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.hero-picture {
  --envelope-cut: polygon(41.56% 61.63%, 47.02% 63.26%, 47.02% 75.25%, 41.17% 74.43%);
  --envelope-pivot: 44% 70%;
  --envelope-lift: translate(-.9%, -5.5%) rotate(-4deg);
  --envelope-pull: translate(-2.4%, -14%) rotate(-8deg);
}

picture.mail-envelope-motion,
.mail-slot-interior {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0s linear 200ms;
}

.mail-slot-interior {
  /* Registered to the mailbox crop in the original hero illustration. */
  top: 40%;
  left: 37.619%;
  width: 17.143%;
  height: 51.429%;
  background: url('assets/mailbox-interior.webp') center / 100% 100% no-repeat;
}

picture.mail-envelope-motion {
  inset: 0;
  clip-path: var(--envelope-cut);
  transform-origin: var(--envelope-pivot);
  transition: transform 200ms cubic-bezier(.2,.7,.25,1), opacity 0s linear 200ms;
}

@media (prefers-reduced-motion: no-preference) {
  .hero:not(.is-pulling-letter):is(.is-letter-hovered, :has(.hero-letter-link:focus-visible))
    :is(.mail-envelope-motion, .mail-slot-interior) { opacity: 1; transition-delay: 0s; }

  .hero:not(.is-pulling-letter):is(.is-letter-hovered, :has(.hero-letter-link:focus-visible))
    .mail-envelope-motion { transform: var(--envelope-lift); }
}

.hero.is-pulling-letter :is(.mail-envelope-motion, .mail-slot-interior) { opacity: 1; transition-delay: 0s; }
.hero.is-pulling-letter .mail-envelope-motion { transform: var(--envelope-pull); }

@media (max-width: 760px) {
  .hero-picture {
    --envelope-cut: polygon(14.8% 61.5%, 26.2% 63%, 26.2% 75.45%, 14.12% 74.25%);
    --envelope-pivot: 20.5% 70%;
    --envelope-pull: translate(-3.4%, -15%) rotate(-8deg);
  }

  .mail-slot-interior {
    left: 6.865%;
    width: 35.461%;
  }
}

.spread {
  width: min(1220px, 90%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(2rem, 5vw, 5rem) 0;
}

.section-copy p {
  max-width: 31ch;
  margin: 1.3rem 0 0;
  color: var(--soft-ink);
  font: 500 clamp(1.4rem, 2vw, 2rem)/1.15 var(--title);
}

.sheet-pile, .object-pile { position: relative; min-width: 0; }
.sheet-pile { aspect-ratio: .96; container-type: inline-size; }
.letters {
  width: min(1450px, 92%);
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(1.35rem, 3vw, 3.5rem);
  padding-block: clamp(1rem, 2.05vw, 2.25rem) clamp(2.5rem, 7vw, 7rem);
}
.letters .section-copy { align-self: center; }
.letters h2 {
  width: fit-content;
  font-size: clamp(2.55rem, 3.35vw, 3.85rem);
  line-height: .97;
  padding-bottom: .24em;
  background: linear-gradient(177deg, transparent 91%, #cf9d726a 92% 96%, transparent 97%) left bottom / 86% 100% no-repeat;
}
.postcards { position: relative; aspect-ratio: 1.13; }
.postcards img {
  position: absolute;
  width: 65%;
  height: auto;
  padding: 1.8% 1.8% 5%;
  background: #fff0dc;
  filter: saturate(.75);
  box-shadow: 1px 3px 6px #6b554846;
}
.postcard-island { top: 32%; left: 1%; transform: rotate(-11deg); }
.postcard-away { top: 13%; right: 1%; transform: rotate(9deg); }
.sheet, .letter-envelope, .stamp, .object { position: absolute; }
.sheet {
  aspect-ratio: 2 / 3;
  margin: 0;
  padding: 8% 7%;
  isolation: isolate;
  line-height: 1.3;
}
.sheet::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--stationery) center / contain no-repeat;
  filter: drop-shadow(1px 2px 2px #65492e27) drop-shadow(2px 7px 7px #62513e24);
}
.sheet p { margin: 0 0 .65em; }
.sheet p:last-child { margin-bottom: 0; }
.sheet-english {
  width: 54%;
  top: 17%;
  left: 2%;
  transform: rotate(-6deg);
  --stationery: url('assets/paper-civic.webp');
  color: #303e48;
  font-family: var(--hand);
  font-size: clamp(.72rem, 4.25cqi, 1.23rem);
}
.sheet-chinese {
  width: 51%;
  top: 3%;
  right: 1%;
  transform: rotate(6deg);
  --stationery: url('assets/paper-town.webp');
  color: #4a3a2e;
  font-family: 'Bea', 'Xiaolai', sans-serif;
  font-size: clamp(.72rem, 3.75cqi, 1.1rem);
}
.sheet-bea-en { font-family: 'Handlee', cursive; }

.letters .sheet {
  padding: 9% 7% 7%;
  font-size: clamp(.5rem, 3.05cqi, 1.12rem);
  line-height: 1.35;
}
.letters .sheet-chinese { padding-inline: 11.5% 5.5%; }
.letters .sheet-bea-en { font-size: clamp(.46rem, 2.9cqi, 1.06rem); }
.letters .sheet p + p { margin-top: .85em; }
.letters .sheet .signature { margin-top: 1.12em; }

.signature { text-align: right; }
.letter-envelope {
  width: 45%;
  height: auto;
  bottom: 11%;
  right: 6%;
  transform: rotate(13deg);
  filter: drop-shadow(1px 5px 4px #64513b35);
}
.stamp { width: 22%; height: auto; left: 2%; top: 5%; transform: rotate(-13deg); opacity: .6; }

.parcels {
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.3fr);
  padding-top: 1rem;
  padding-bottom: clamp(4rem, 9vw, 9rem);
}
.parcels .section-copy { padding-left: 12%; }
.object-pile { aspect-ratio: 1.44; }
.object { height: auto; filter: drop-shadow(2px 6px 5px #45392438); }
.route { width: 57%; left: 14%; top: 14%; transform: rotate(-10deg); }
.notebook { width: 35%; right: 10%; bottom: 8%; transform: rotate(9deg); }
.seeds { width: 23%; right: 13%; top: 5%; transform: rotate(13deg); }
.compass { width: 24%; left: 4%; bottom: 11%; transform: rotate(-14deg); }
.cup { width: 30%; left: 42%; top: 30%; transform: rotate(3deg); }
.key { width: 12%; left: 29%; bottom: 8%; transform: rotate(-59deg); }
.marble { width: 11%; right: 4%; bottom: 29%; }

.desktop {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  background: linear-gradient(to bottom, transparent, #bebfc529 46%, var(--dusk-wash));
  padding: clamp(3.5rem, 8vw, 8rem) max(6vw, calc((100vw - 1220px) / 2));
}
.desktop-shot { margin: 0; text-align: center; }
.desktop-shot video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3.5% / 5%;
  box-shadow: 0 14px 36px #26313d40;
}
.desktop-shot figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 .85rem;
  margin-top: .45rem;
  color: #3c4e56;
  font-size: .82rem;
}
.desktop-play {
  padding: .55rem .15rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.quiet {
  padding: clamp(4rem, 8vw, 8rem) max(6vw, calc((100vw - 1220px) / 2));
  background: linear-gradient(to bottom, var(--dusk-wash), #aeb8ca9e 52%, var(--blue-hour-wash));
}
.quiet-header { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2.2rem; }
.light-controls { display: flex; align-items: center; gap: .8rem; }
.light-controls button {
  padding: .5rem .2rem;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.light-controls button[aria-pressed='true'] { border-color: currentColor; }
.quiet-spread { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .75fr); align-items: center; gap: clamp(2rem, 5vw, 6rem); }
.quiet-window { margin: 0; }
.quiet-window img { width: 100%; height: auto; }
.quiet-notes { margin: 0; }
.quiet-notes > div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: .85rem 0;
}
.quiet-notes img { justify-self: center; max-height: 70px; width: auto; height: auto; }
.quiet-notes dt { font: 700 clamp(1.35rem, 2.1vw, 1.85rem)/1 var(--title); }
.quiet-notes dd { margin: .25rem 0 0; font: 400 1rem/1.3 var(--hand); }

.farewell {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(510px, 48vw, 680px);
  color: #faf0d7;
  isolation: isolate;
  background: linear-gradient(to bottom, var(--blue-hour-wash), #8190a5 15%, #52627b 30%, #2e3a4f 49%, var(--night) 99%);
  padding: clamp(8rem, 14vw, 13rem) max(7vw, calc((100vw - 1200px) / 2)) 3rem;
}
.night-art, .farewell::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  mask-image: linear-gradient(to bottom, transparent 3%, #000 43%, #000 91%, transparent 99%);
}
.night-art { object-fit: cover; object-position: 100% 68%; }
.farewell::after { content: ''; background: linear-gradient(90deg, #182438bf 0%, #1824384d 63%, transparent 100%); }
.farewell p { font: 600 clamp(1.3rem, 2.2vw, 2.15rem)/1.1 var(--title); }
.farewell .availability { display: inline-block; margin-top: .5rem; padding: .35rem 0; border-bottom: 1px solid #f9e9cc86; font-size: 1rem; }

.footer { background: var(--night); color: #f8edd6; min-height: 80px; }
.footer span { font-size: .81rem; text-align: right; }

dialog {
  position: fixed;
  padding: 0;
  width: min(92vw, 525px);
  max-width: none;
  max-height: 88dvh;
  border: 0;
  background: #fbf1d9 url('assets/paper-civic.webp') center / 100% 100%;
  color: var(--ink);
  box-shadow: 0 15px 55px #18223166;
}
dialog::backdrop { background: #18243894; }
dialog[open] { animation: unfold 330ms ease-out both; }
@keyframes unfold {
  from { opacity: 0; transform: translateY(6px) rotate(-1.5deg); }
  to { opacity: 1; transform: none; }
}
.window-letter-paper { padding: clamp(2rem, 7vw, 3.9rem); font-family: var(--hand); font-size: 1.17rem; line-height: 1.4; }
.window-letter-paper h2 { font-size: clamp(2rem, 6vw, 3.25rem); }
.window-letter-paper .signature { margin: 1.4rem 0 0; }
.close-letter {
  position: absolute;
  top: .5rem;
  right: .65rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.6rem;
}

@media (max-width: 1050px) {
  .letters { gap: 1.4rem; }
  .letters .sheet { padding-block: 8%; }
  .wide-only { display: none; }
}

@media (max-width: 760px) {
  .masthead { position: relative; min-height: 58px; align-items: center; }
  .masthead nav { gap: .75rem; padding: 0; background: none; }
  .masthead nav a { font-size: 1.05rem; }
  .masthead nav a[href="#quiet"], .masthead nav a[href="#keepsakes"] { display: none; }
  .hero { min-height: 0; display: block; }
  .hero-copy { width: 100%; margin: 0; padding: .95rem 6% 1.55rem; }
  h1 { font-size: clamp(4.25rem, 14vw, 6.5rem); }
  .slogan { margin: .68em 0 .7em; font-size: clamp(1.45rem, 6vw, 2.1rem); }
  .hero-picture { position: relative; z-index: auto; }
  .hero-picture picture img { height: auto; aspect-ratio: 1.45; object-fit: cover; }
  .mail-trigger { top: var(--mobile-mail-top, 50%); left: var(--mobile-mail-left, 11%); width: var(--mobile-mail-width, 22%); }
  .next-section { display: none; }
  .spread, .desktop, .quiet-spread { grid-template-columns: minmax(0, 1fr); }
  .spread { width: 88%; gap: 1.3rem; padding: 2.3rem 0; }
  .letters .section-copy { grid-row: 1; }
  .letters .sheet-pile { margin: 0 -.25rem; }
  .postcards { width: 58%; aspect-ratio: 1.7; margin: -1.6rem 0 0 auto; }
  .postcard-island { top: 24%; }
  .postcard-away { top: 8%; }
  .parcels .section-copy { padding-left: 0; }
  .parcels { padding-bottom: 3rem; }
  .section-copy p { margin-top: .62rem; }
  .desktop { padding: 3.6rem 6vw 3.25rem; }
  .quiet { padding: 3.6rem 6vw; }
  .quiet-header { flex-wrap: wrap; margin-bottom: 1.4rem; gap: .65rem; }
  .quiet-spread { gap: 1.35rem; }
  .quiet-notes > div { padding: .65rem 0; }
  .farewell { padding-top: 8.5rem; min-height: 460px; }
  .night-art { object-position: 94% center; }
  .farewell::after { background: linear-gradient(150deg, #182438d9 0%, #1824388c 45%, transparent 85%); }
}

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

@font-face {
  font-family: 'Typefarer WenKai';
  src: url('assets/WenKai-Typefarer.woff2') format('woff2');
  font-display: swap;
}

html[lang="zh-Hans"] {
  --body: 'PingFang SC', 'Noto Sans SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  --reading: 'Typefarer WenKai', var(--body);
  --title: 'Zhi Mang Xing', var(--reading);
  --hand: var(--body);
}

html[lang="zh-Hans"] :is(.wordmark, #hero-title) {
  font-family: 'Caveat', 'Bradley Hand', cursive;
}

html[lang="zh-Hans"] :is(.slogan, h2, .letters h2) {
  font-weight: 400;
  letter-spacing: .025em;
}

html[lang="zh-Hans"] .slogan { line-height: 1.4; }
html[lang="zh-Hans"] :is(h2, .letters h2) {
  font-size: clamp(1.7rem, 3.5vw, 3.4rem);
  line-height: 1.24;
}

html[lang="zh-Hans"] :is(.masthead nav a, .hero-letter-link, .section-copy p, .quiet-notes dt, .farewell p) {
  font-family: var(--body);
  font-weight: 400;
  letter-spacing: normal;
}

html[lang="zh-Hans"] .masthead nav a { font-size: 1rem; }
html[lang="zh-Hans"] :is(.section-copy p, .farewell p) { line-height: 1.5; }
html[lang="zh-Hans"] :is(.letters, .parcels) .section-copy p,
html[lang="zh-Hans"] .farewell-copy p:not(.availability),
html[lang="zh-Hans"] .window-letter-paper {
  font-family: var(--reading);
}

html[lang="zh-Hans"] .window-letter-paper { line-height: 1.65; }
html[lang="zh-Hans"] .quiet-notes dt { font-weight: 600; }
html[lang="zh-Hans"] .quiet-notes dd { line-height: 1.55; }

.sheet-ivo-zh {
  font-family: 'Xiaolai', 'Bea', sans-serif;
  font-size: clamp(.72rem, 3.75cqi, 1.12rem);
}

.masthead nav .language-switch {
  font: 600 .88rem/1.2 system-ui, sans-serif;
  padding-block: .35rem;
}

@media (max-width: 375px) {
  .masthead { gap: .5rem; padding-inline: 4%; }
  .masthead nav { gap: .48rem; }
  .masthead nav a { font-size: .94rem; }
}

.footer { flex-wrap: wrap; }
.footer-details,
.footer-details nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .6rem;
}
.footer-details { font-size: .86rem; }
.footer-details a { text-underline-offset: .25em; }
.footer-details a[aria-current="page"] { text-decoration-thickness: 2px; }

.information-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.information-header {
  position: static;
  border-bottom: 1px solid #805b4a29;
}
.information-header nav { background: none; padding-inline: 0; }
.information-copy {
  flex: 1;
  width: min(100% - 2.5rem, 42rem);
  margin-inline: auto;
  padding-block: clamp(2.6rem, 7vw, 6rem);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.75;
  overflow-wrap: break-word;
}
.information-copy h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 6.8vw, 4.6rem);
  transform: none;
  line-height: 1.14;
}
.information-copy h1::after { display: none; }
.information-page .information-copy h2 {
  margin-top: 2.35em;
  font-size: clamp(1.32rem, 3.4vw, 1.95rem);
  line-height: 1.3;
  text-wrap: wrap;
}
.information-copy p { margin: .8em 0 1.25em; }
.information-copy :is(ul, ol) { padding-inline-start: 1.55em; }
.information-copy li + li { margin-top: .35em; }
.information-copy a { text-underline-offset: .2em; overflow-wrap: anywhere; }

html[lang="zh-Hans"] .information-copy :is(h2, h3) {
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: normal;
}
