:root {
  color-scheme: light;
  --paper: #faf7f0;
  --ink: #242420;
  --muted: #595951;
  --line: #cbc7bb;
  --vermilion: #a73729;
  --serif: "Hiragino Mincho ProN", "Songti SC", "Songti TC", "Baskerville", Georgia, serif;
  font: 100%/1.55 "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.25rem; }
body, figure, h1, h2, h3, p, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
button, summary { font: inherit; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 3px solid var(--vermilion); outline-offset: 5px; }
::selection { background: #eed0bc; color: #31241c; }
.wrap { width: min(89%, 1320px); margin-inline: auto; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
h2 { font: 600 clamp(2.25rem, 4.7vw, 4.65rem)/1.12 var(--serif); letter-spacing: -.037em; }
:lang(zh), :lang(ja), :lang(ko) { line-break: strict; }
:lang(ar) { letter-spacing: normal; }
.skip { position: absolute; inset-block-start: -6rem; inset-inline-start: 1rem; z-index: 5; background: white; padding: .8rem; }
.skip:focus { inset-block-start: 1rem; }
.mast, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mast { min-height: 76px; border-bottom: 1px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: .62rem; font-size: 1.18rem; text-decoration: none; }
.brand img { width: 37px; height: 37px; border-radius: 9px; }
.mast nav, .footer nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.7rem); }
.mast nav > a, .languages summary, .footer nav a { font-size: .91rem; text-decoration: none; padding-block: .68rem; }
.mast nav > a:hover, .footer nav a:hover { text-decoration: underline; }
.languages { position: relative; z-index: 4; }
.languages summary { cursor: pointer; white-space: nowrap; }
.languages i { font-style: normal; margin-inline-start: .35rem; }
.languages > div { position: absolute; inset-inline-end: 0; inset-block-start: 100%; background: var(--paper); border: 1px solid var(--line); padding: .5rem; width: 15rem; }
.languages[open] > div { display: grid; grid-template-columns: 1fr 1fr; }
.languages a { padding: .55rem; text-decoration: none; font-size: .88rem; }
.languages a[aria-current], .languages a:hover { background: #ede8db; }
.hero { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.17fr); align-items: center; gap: 1.8rem 4%; padding-block: clamp(3.2rem,6vw,6.2rem) 1rem; }
.platform { font-size: .87rem; font-weight: 650; }
.platform span { color: var(--vermilion); padding-inline: .25em; }
.hero h1 { font-size: clamp(3.25rem,6.8vw,7.3rem); line-height: 1.01; letter-spacing: -.04em; margin: .17em 0 .26em; }
.hero h1:lang(zh), .hero h1:lang(ja), .hero h1:lang(ko) { line-height: 1.12; }
h1:lang(ar), h2:lang(ar), h3:lang(ar) { line-height: 1.34; letter-spacing: 0; }
.hero-copy > p { max-width: 36rem; color: var(--muted); font-size: clamp(1.03rem,1.45vw,1.3rem); text-wrap: pretty; }
.install { display: inline-block; margin-block-start: 1.55rem; border-radius: 8px; }
.install img { width: auto; height: 50px; max-width: 100%; }
.install:hover { opacity: .88; }
.hero-stage { position: relative; isolation: isolate; direction: ltr; aspect-ratio: 1.39; }
.sun { position: absolute; right: 5%; top: -3%; width: 52%; aspect-ratio: 1; background: #cd4b3b; border-radius: 50%; z-index: -1; }
.pad-frame, .phone-frame, .screen-frame { background: #252624; border: clamp(3px,.4vw,6px) solid #282927; box-shadow: 0 0 0 1px #8f8d85, 0 13px 24px -12px #29221970; overflow: hidden; }
.pad-frame { position: absolute; width: 83%; top: 8%; left: 1%; border-radius: clamp(12px,1.6vw,24px); transform: rotate(-2deg); }
.phone-frame { position: absolute; width: 26%; right: 0; bottom: 0; border-radius: clamp(12px,1.5vw,25px); transform: rotate(2deg); }
.hero-stage img, .screen-frame img { width: 100%; }
.scroll-cue { grid-column: 1/-1; justify-self: center; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; margin-top: .3rem; color: var(--muted); font-size: .84rem; text-decoration: none; }
.scroll-cue svg { width: 16px; height: 20px; transition: transform .22s ease-out; }
.scroll-cue:hover svg { transform: translateY(3px); }
.reader { background: #eeede4; border-block: 1px solid var(--line); padding-block: clamp(3.4rem,7vw,7rem); }
.chapter-index { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 1.35rem 0 2.1rem; }
.chapter-index a { min-height: 38px; display: inline-flex; align-items: center; font-size: .9rem; color: #56584e; text-decoration-color: #b1afa1; }
.chapter-index a:hover, .chapter-index a[aria-current] { color: var(--vermilion); text-decoration-color: currentColor; }
.chapter { --wash: #dde1cf; padding: 1.7rem 0; border-top: 1px solid #aaa998; scroll-margin-block-start: 1.4rem; }
.chapter h3 { font: 650 clamp(1.65rem,2.6vw,2.6rem)/1.15 var(--serif); letter-spacing: -.025em; }
.chapter dl { margin-top: 1.15rem; }
.chapter dl > div + div { margin-top: .82rem; }
.chapter dt { font-weight: 675; line-height: 1.45; }
.chapter dd { margin-top: .12rem; color: var(--muted); font-size: .95rem; line-height: 1.59; }
.screen-strip { display: flex; gap: 1.2rem; padding: 1.6rem 1.35rem 1.05rem; margin-top: 1.15rem; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 1.35rem; scrollbar-color: #898c78 transparent; background: var(--wash); border-radius: 3px; }
.screen-strip figure { flex: 0 0 clamp(125px,28vw,170px); scroll-snap-align: start; }
.screen-frame { border-radius: clamp(11px,1.4vw,23px); }
.screen-strip figcaption { margin-top: .6rem; font-size: .8rem; line-height: 1.4; }
[data-scene="reading"] { --wash: #e9d7c5; }
[data-scene="atmosphere"] { --wash: #dbdce5; }
[data-scene="detail"] { --wash: #d4e1db; }
.scene-stage { display: none; }
@media (min-width: 900px) and (min-height: 540px) {
  .is-sticky { display: grid; grid-template-columns: minmax(0,.81fr) minmax(0,1.19fr); gap: clamp(2rem,5.5vw,5.5rem); align-items: start; }
  .is-sticky .chapter { min-height: min(64vh,590px); display: flex; flex-direction: column; justify-content: center; padding-block: 2rem; }
  .is-sticky .screen-strip { display: none; }
  .is-sticky .scene-stage { display: block; position: sticky; top: max(20px,9vh); height: min(76vh,660px); min-height: 390px; isolation: isolate; }
  .stage-layer { --wash: #dce1cf; position: absolute; inset: 0; overflow: hidden; background: var(--wash); opacity: 0; pointer-events: none; transition: opacity .36s ease-out; }
  .stage-layer[data-scene="reading"] { --wash: #e9d7c5; }
  .stage-layer[data-scene="atmosphere"] { --wash: #dbdce5; }
  .stage-layer[data-scene="detail"] { --wash: #d4e1db; }
  .stage-layer.is-current { opacity: 1; z-index: 1; }
  .stage-images { position: absolute; inset: 8% 6% 13%; display: flex; align-items: center; justify-content: center; direction: ltr; }
  .stage-images > img { width: auto; height: auto; max-height: 97%; max-width: 47%; border: 4px solid #2c2b29; border-radius: clamp(13px,1.6vw,25px); box-shadow: 0 14px 30px -13px #302a2570; }
  .stage-images > img:first-child { z-index: 1; transform: translateY(-3%) rotate(-2deg); }
  .stage-images > img + img { max-width: 40%; max-height: 79%; margin-left: -3%; transform: translateY(9%) rotate(3deg); }
  .stage-images[data-count="3"] > img { max-width: 31%; max-height: 74%; }
  .stage-images[data-count="3"] > img:first-child { transform: translateY(5%) rotate(-3deg); }
  .stage-images[data-count="3"] > img:nth-child(2) { z-index: 2; margin-left: -1%; max-width: 40%; max-height: 97%; transform: translateY(-3%); }
  .stage-images[data-count="3"] > img:last-child { margin-left: -1%; }
  .stage-layer figcaption { position: absolute; inset-inline: 6%; bottom: 4%; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding-block-start: .48rem; border-top: 1px solid #888979; font-size: .82rem; }
  .stage-layer figcaption span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
}
.books, .editions { padding-block: clamp(3.4rem,7vw,7rem); }
.plates { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr); gap: clamp(.8rem,2.6vw,2.8rem); margin-top: 2rem; }
.plates article { min-width: 0; padding-top: .75rem; border-top: 1px solid var(--ink); }
.plates article > a:first-child { display: block; text-decoration: none; }
.plates img { width: 100%; height: clamp(155px,20vw,310px); object-fit: cover; object-position: 50% 35%; }
.plates article:first-child img { object-position: 50% 43%; }
.plates b, .plates span, .plates .lic { display: block; }
.plates b { font: 650 clamp(1.05rem,1.9vw,1.6rem)/1.18 var(--serif); margin: .7rem 0 .25rem; overflow-wrap: anywhere; }
.plates span, .plates .lic { font-size: .8rem; color: var(--muted); }
.plates a:hover b { text-decoration: underline; }
.colophon { background: #edd6bd; color: #552e35; overflow: hidden; }
.colophon-inner { min-height: min(57vh,460px); display: grid; grid-template-columns: .7fr 1.3fr; gap: 3%; align-items: center; padding-block: 2.4rem; }
.colophon h2 { max-width: 10ch; font-size: clamp(2.8rem,6.2vw,6.5rem); }
.colophon img { width: 100%; mix-blend-mode: multiply; }
@media (min-width: 900px) {
  .editions { min-height: min(88svh, 850px); display: flex; flex-direction: column; justify-content: center; }
  .faq-grid { min-height: min(86svh, 820px); align-content: center; }
}
.edition-heading { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6%; padding-bottom: 1.25rem; }
.edition-heading h2 { max-width: 16ch; }
.bookplate { width: min(32%,320px); max-height: 175px; object-fit: contain; object-position: center; mix-blend-mode: multiply; }
.twoplans { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--ink); }
.twoplans article { min-width: 0; padding: clamp(1.4rem,3vw,2.8rem); padding-inline-start: 0; }
.twoplans article + article { padding-inline-start: clamp(1.4rem,3vw,2.8rem); border-inline-start: 1px solid var(--line); }
.twoplans h3 { font-size: .97rem; color: var(--muted); margin-bottom: .75rem; }
.twoplans strong { display: block; font: 600 clamp(1.5rem,2.6vw,2.5rem)/1.17 var(--serif); }
.twoplans p, .answers p, .rights p { margin-top: .8rem; max-width: 61ch; color: var(--muted); line-height: 1.65; }
.availability { margin-top: .85rem; color: var(--muted); font-size: .85rem; }
.questions { background: #e8ece5; }
.faq-grid { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1fr); gap: 8%; padding-block: clamp(3.5rem,8vw,8rem); }
.faq-art img { margin-top: 2rem; width: min(83%,320px); mix-blend-mode: multiply; }
.faq { border-top: 1px solid #afb5a9; }
.faq summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; font-weight: 620; }
.faq summary::after { content: ""; flex: none; width: .55rem; height: .55rem; border-inline-end: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); }
[dir="rtl"] .faq summary::after { transform: rotate(-45deg); }
.faq[open] summary::after { transform: rotate(225deg); }
[dir="rtl"] .faq[open] summary::after { transform: rotate(135deg); }
.faq p { margin-top: 0; padding-bottom: 1rem; }
#support { border-top: 1px solid #afb5a9; padding-top: 1.8rem; }
#support h3 { font: 600 1.55rem/1.2 var(--serif); }
.contact { display: inline-flex; align-items: center; min-height: 44px; gap: .55rem; margin-top: .65rem; font-weight: 630; }
.contact svg { width: 19px; height: 19px; }
.footer { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.footer-row { min-height: 45px; }
.footer nav { flex-wrap: wrap; }
.rights { margin-top: .45rem; font-size: .82rem; }
.rights summary { display: inline-flex; align-items: center; min-height: 40px; text-decoration: underline; text-underline-offset: .22em; }
.rights p { margin: 0 0 .7rem; }
@media(max-width: 900px) { .wrap { width: 91%; } .mast { min-height: 65px; } }
@media(max-width: 690px) {
  .mast { min-height: 59px; } .mast nav { gap: .85rem; } .mast nav > a { display: none; } .mast nav > a:first-child { display: inline; }
  .brand { font-size: 1rem; } .brand img { width: 32px; height: 32px; }
  .hero { grid-template-columns: 1fr; gap: 1.8rem; padding-block: 2.75rem .65rem; }
  .hero h1 { font-size: clamp(2.85rem,11vw,4.7rem); } .hero-copy > p { font-size: 1.05rem; } .install { margin-top: 1.1rem; } .install img { height: 45px; }
  .hero-stage { width: min(94%,480px); margin: .5rem auto 0; } .scroll-cue { margin: -.3rem 0 0; }
  .chapter-index { gap: .12rem 1.05rem; margin-bottom: 1.2rem; }
  .screen-strip { gap: 1.1rem; } .screen-strip figure { flex-basis: clamp(139px,41vw,195px); }
  .plates { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem 1rem; }
  .plates article:first-child { grid-column: 1/-1; } .plates article:first-child img { aspect-ratio: 2.5; height: auto; }
  .plates img { height: clamp(135px,37vw,225px); }
  .colophon-inner { min-height: 0; grid-template-columns: 1fr; gap: 1.35rem; padding-block: 2.4rem 1.2rem; } .colophon h2 { max-width: none; }
  .edition-heading { gap: .75rem; } .bookplate { width: 26%; } .twoplans { grid-template-columns: 1fr; }
  .twoplans article { padding: 1.35rem 0; } .twoplans article + article { border-inline-start: none; border-top: 1px solid var(--line); padding-inline-start: 0; }
  .faq-grid { grid-template-columns: 1fr; gap: 1.25rem; } .faq-art { display: flex; align-items: center; justify-content: space-between; }
  .faq-art h2 { min-width: 0; }
  .faq-art img { flex: 0 0 auto; width: min(30%,130px); margin: 0; }
  .footer-row { align-items: flex-start; flex-direction: column; gap: .5rem; } .footer nav { gap: .65rem 1.2rem; }
}
@media(max-width:365px) { .mast nav > a:first-child { display: none; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
