@font-face {
  font-family: Halo Rounded;
  src: url("rounded.woff") format("woff");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Journal Title;
  src: url("journal-title.woff") format("woff");
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --paper: #f6f2ea;
  --ink: #3a342e;
  --secondary: #675e53;
  --rule: #d9d0c1;
  --card: #fffcf6;
  --gold: #e8a33a;
  --amber: #89550f;
  --button: #39332e;
  --button-text: #fffaf1;
  --display: "Halo Rounded", ui-rounded, "Hiragino Maru Gothic ProN", "PingFang SC", "PingFang TC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 1rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "PingFang TC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: min(74rem, calc(100% - 7rem)); margin-inline: auto; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
.masthead { border-bottom: 1px solid var(--rule); }
.mast-inner, .foot-inner { display: flex; align-items: center; gap: 2rem; }
.mast-inner { min-height: 5rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; font: 600 1.9rem/1 var(--display); letter-spacing: -.055em; }
.brand img { border-radius: 26%; border: 1px solid #d8cbb7; }
.main-nav, footer nav { display: flex; gap: clamp(1rem, 2.8vw, 2.25rem); align-items: center; }
.main-nav { margin-left: auto; }
.main-nav a, footer nav a { font-size: .9375rem; font-weight: 550; text-decoration: none; padding-block: .5rem; }
.main-nav a:hover, footer nav a:hover, .main-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.language { position: relative; z-index: 5; }
.language summary, .outline summary { cursor: pointer; list-style: none; }
.language summary::-webkit-details-marker, .outline summary::-webkit-details-marker { display: none; }
.language summary {
  display: flex; align-items: center; gap: .5rem; padding: .35rem .75rem;
  min-height: 2.4rem; border: 1px solid var(--rule); border-radius: 1.3rem; font-size: .875rem;
}
.language summary::after, .outline summary::after { content: ""; width: .38rem; height: .38rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); margin-inline: .12rem; }
.language[open] summary::after, .outline[open] summary::after { transform: translateY(2px) rotate(225deg); }
.globe { position: relative; width: 1rem; height: 1rem; border: 1.5px solid; border-radius: 50%; }
.globe::before { content: ""; position: absolute; inset: -1px 2.5px; border: 1px solid; border-radius: 50%; }
.globe::after { content: ""; position: absolute; top: 45%; inset-inline: 0; border-top: 1px solid; }
.language nav { position: absolute; right: 0; top: calc(100% + .45rem); min-width: 10rem; border-radius: .8rem; border: 1px solid var(--rule); background: var(--card); padding: .35rem; box-shadow: 0 9px 28px #30271920; }
.language nav a { display: block; border-radius: .5rem; padding: .45rem .8rem; text-decoration: none; }
.language nav a:hover, .language nav a[aria-current] { background: var(--paper); color: var(--amber); }
.hero { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(2.5rem, 5vw, 5rem); padding: clamp(3rem, 5.7vw, 6rem) 0; }
.hero-copy { padding: 1rem 0; }
.eyebrow { display: flex; align-items: center; gap: .6rem; font-size: .9375rem; font-weight: 650; color: var(--secondary); }
.eyebrow > span { width: 1rem; height: 1rem; border: 2.5px solid var(--gold); outline: 1px solid #8e6728; outline-offset: -1px; border-radius: 48% 50% 46% 51%; }
.hero h1 { font-weight: 570; font-size: clamp(3rem, 5.75vw, 5.7rem); line-height: 1.03; letter-spacing: -.055em; margin: 1.1rem 0 1.4rem; overflow-wrap: break-word; }
.hero h1 em { position: relative; font-style: normal; z-index: 0; }
.hero h1 em::after { content: ""; position: absolute; z-index: -1; inset: auto -2% -.03em 0; height: .16em; border-radius: 70% 30% 50% 20%; background: #ebbd60; transform: rotate(-2deg); }
:lang(zh) .hero h1 { font-family: "Journal Title", var(--display); font-weight: 400; line-height: 1.12; letter-spacing: -.04em; font-size: clamp(4rem, 6.8vw, 6.35rem); }
:lang(ja) .hero h1, :lang(ko) .hero h1 { font-weight: 750; }
.intro { font-size: clamp(1.05rem, 1.35vw, 1.19rem); line-height: 1.8; max-width: 36ch; color: var(--secondary); }
:lang(zh) .intro, :lang(ja) .intro { max-width: 25em; }
.store-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; background: var(--button); color: var(--button-text); border: 1px solid var(--button); font-weight: 650; border-radius: .9rem; padding: .82rem 1.45rem; min-height: 3.25rem; margin-top: 1.6rem; }
.store-link:hover { background: var(--amber); border-color: var(--amber); color: var(--card); }
.platform { font-size: .875rem; margin-top: .6rem; color: var(--secondary); }
.platform span { padding-inline: .23rem; }
.spread { position: relative; isolation: isolate; aspect-ratio: 1.17; margin: .75rem 0; }
.graph-paper, .scene-window { position: absolute; inset: 1% 1% 1% 4%; border-radius: 4% 4% 8% 4% / 4% 3% 2% 3%; overflow: hidden; }
.graph-paper {
  transform: rotate(1.6deg); border: 1px solid #bd9b61;
  background-color: #f1d99e; background-image: linear-gradient(#b9934c36 1px, transparent 1px),linear-gradient(90deg,#b9934c36 1px,transparent 1px);
  background-size: 1.15rem 1.15rem; box-shadow: 1px 4px 0 #aa8c5423;
}
.scene-window { bottom: 1.4%; transform: rotate(1.6deg); }
.phone { position: absolute; width: 53%; top: 5%; right: 10%; overflow: hidden; border: clamp(3px,.39vw,6px) solid #373330; border-radius: 14% / 6.5%; background: #1c1b1a; box-shadow: 2px 1px 0 1px #8c8170, 9px 14px 26px #634b2852; transform: rotate(6deg); }
.phone img { width: 100%; }
.tape-back { position: absolute; width: 28%; right: 1%; top: -1.8%; transform: rotate(14deg); z-index: 1; }
.scrap {
  position: absolute; bottom: 6.5%; left: 0; width: 44%; background: #fffdf7; border: 1px solid #c7bca8;
  padding: 5% 2.4% 2.8%; box-shadow: 2px 5px 9px #634b2835; transform: rotate(-8deg); color: #40382f;
}
.scrap span { display: block; text-align: center; font: 600 clamp(.85rem, 1.4vw, 1.15rem)/1.5 var(--display); margin-bottom: .35rem; }
.scrap img { width: 100%; border-radius: .4rem; }
.note-tape { position: absolute; width: 48%; aspect-ratio: 3.9; left: 23%; top: 0; transform: translateY(-50%) rotate(-1deg); background: url(gold-tape.webp) center/contain no-repeat; }
.rays { position: absolute; width: 13%; left: 15%; top: 15%; transform: rotate(-30deg); }
.hearts { position: absolute; width: 16%; bottom: 7%; right: -1.5%; transform: rotate(-8deg); filter: drop-shadow(1px 1px 0 #fff9e4); }
.features { padding: 2.5rem 0 5rem; border-top: 1px dashed var(--rule); }
.features > h2 { font-size: clamp(1.9rem,3vw,2.7rem); margin: 0 0 1.65rem; line-height: 1.2; letter-spacing: -.035em; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.9rem,2vw,1.5rem); }
.feature { background: var(--card); border: 1px solid var(--rule); border-radius: 1.1rem; overflow: hidden; }
.sample { position: relative; height: auto; aspect-ratio: 1.85; overflow: hidden; display: grid; place-items: center; border-bottom: 1px solid #77634222; }
.sample img { position: absolute; width: 83%; border: 4px solid #fffaf1; border-radius: .65rem; box-shadow: 0 3px 9px #4c41212b; }
.rings .sample { background: #e1ead3; }
.rings .sample img { transform: rotate(-3deg); }
.focus .sample { background: #f3dfd7; }
.focus .sample img { width: auto; height: 111%; top: 2%; transform: rotate(4deg); }
.stickers .sample { background: #e7e0ef; }
.stickers .sample img { width: 70%; top: 11%; transform: rotate(-4deg); }
.feature-copy { padding: 1.3rem 1.4rem 1.6rem; }
.tab-label { color: var(--amber); font-size: .875rem; font-weight: 650; }
.feature h3 { font-size: clamp(1.25rem,1.8vw,1.65rem); line-height: 1.3; margin: .4rem 0 .6rem; }
.feature-copy > p:last-child { color: var(--secondary); }
footer { border-top: 1px solid var(--rule); }
.foot-inner { justify-content: space-between; padding: 1.6rem 0 2rem; }
footer .brand { font-size: 1.5rem; }
footer .brand img { width: 2rem; }
.document { max-width: 67rem; padding: 3.4rem 0 5rem; }
.doc-heading { padding-bottom: 2rem; border-bottom: 1px dashed var(--rule); }
.doc-heading h1, .missing h1 { margin: .5rem 0; font-size: clamp(2.5rem,4.5vw,4rem); line-height: 1.12; letter-spacing: -.045em; }
.updated { color: var(--secondary); font-size: .9375rem; }
.reading { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2.65fr); gap: clamp(1.5rem,4vw,4rem); padding-top: 2rem; align-items: start; }
.reading aside { position: sticky; top: 1.5rem; }
.wide-outline, .outline { border-left: 3px solid var(--gold); padding: .25rem 0 .25rem 1rem; }
.wide-outline strong, .outline summary { font-size: 1rem; }
.reading nav a { display: block; text-decoration: none; color: var(--secondary); line-height: 1.45; font-size: .9375rem; padding: .42rem 0; }
.reading nav a:hover { color: var(--ink); text-decoration: underline; }
.outline { display: none; }
.reading article { background: var(--card); border: 1px solid var(--rule); border-radius: 1.15rem; padding: clamp(1.4rem,4vw,3.4rem); overflow-wrap: anywhere; }
.reading article section + section, .reading article .lead + section { border-top: 1px solid var(--rule); padding-top: 1.4rem; margin-top: 1.4rem; }
.reading h2 { font-size: clamp(1.22rem,2vw,1.55rem); line-height: 1.38; margin-bottom: .5rem; scroll-margin-top: 1rem; }
.reading article p { line-height: 1.85; }
.reading article p + p { margin-top: .5em; }
.reading .lead { font-size: 1.12rem; }
.reading article a, .missing > a:not(.store-link) { color: var(--amber); }
.missing { padding-block: 15vh; }
.missing .store-link { margin-right: 1rem; }
@media (max-width: 55rem) {
  .wrap { width: min(46rem,calc(100% - 3rem)); }
  .hero { gap: 1.5rem; grid-template-columns: 1fr 1fr; padding: 3.2rem 0; }
  .spread { aspect-ratio: .85; }
  .phone { width: 68%; right: 9%; }
  .scrap { width: 53%; }
  .cards { gap: .75rem; }
  .feature-copy { padding: 1rem; }
}
@media (max-width: 44rem) {
  .wrap { width: calc(100% - 2.25rem); }
  .mast-inner { min-height: 4rem; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; }
  .brand { font-size: 1.65rem; height: 3.7rem; }
  .brand img { width: 2.05rem; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: flex-start; margin: 0; gap: 1.5rem; padding-bottom: .3rem; }
  .main-nav a { font-size: .875rem; padding-block: .3rem; }
  .hero { grid-template-columns: minmax(0,1fr); gap: 1.7rem; padding: 2.1rem 0 2.5rem; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(3.05rem,11vw,4.6rem); margin: .7rem 0 1rem; }
  :lang(zh) .hero h1 { font-size: clamp(3.7rem,14vw,5rem); }
  .intro { max-width: 36rem; }
  .store-link { margin-top: 1.15rem; }
  .spread { aspect-ratio: 1.24; width: min(100%,29rem); margin: .4rem auto 0; }
  .phone { width: 52%; right: 10%; }
  .scrap { width: 43%; }
  .cards { grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
  .sample { aspect-ratio: 2.35; }
  .feature-copy { padding: 1.15rem 1.4rem 1.4rem; }
  .features { padding: 1.8rem 0 3rem; }
  .foot-inner { flex-wrap: wrap; gap: .35rem 1rem; padding-block: 1rem; }
  .document { padding: 2rem 0 3rem; }
  .doc-heading { padding-bottom: 1.3rem; }
  .reading { display: block; padding-top: 1.1rem; }
  .reading aside { position: static; margin-bottom: 1rem; }
  .wide-outline { display: none; }
  .outline { display: block; }
  .outline summary { display: flex; align-items: center; gap: .6rem; min-height: 2.3rem; font-weight: 650; }
  .reading article { padding: 1.3rem; }
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #14161f; --ink: #f2ecdd; --secondary: #b8b7be; --rule: #3b3d4b; --card: #1f2231; --amber: #f3cf8e; --button: #f2ecdd; --button-text: #25232a; }
  .hero h1 em::after { background: #9c6a27; }
  .graph-paper { background-color: #c1a777; }
  .store-link:hover { color: #282321; }
}
@media print {
  .masthead, footer, .reading aside { display: none; }
  body, .reading article { background: white; color: black; }
  .wrap { width: 100%; }
  .document { padding: 0; }
  .reading { display: block; }
  .reading article { border: 0; padding: 0; }
  .reading section { break-inside: avoid; }
}
