:root {
  color-scheme: light;
  --paper: #fcf6ed;
  --ink: #342d25;
  --brick: #923f2c;
  --muted: #534d43;
  --rule: #cfc3ae;
  --gutter: clamp(1.25rem, 5vw, 3.25rem);
  color: var(--ink);
  font: 100%/1.75 "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fffdfa; font-size: 1.1875rem; overflow-wrap: anywhere; }
h1, h2, h3, p, ol, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #075749; outline-offset: 4px; }
.width { width: min(57rem, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: .5rem; transform: translateY(-165%); padding: .5rem; background: #fff; z-index: 2; }
.skip:focus-visible { transform: none; }
.mast, .cover { background: var(--paper); }
.mast-inner, .site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; }
.mast-inner { padding-block: .85rem; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-size: 1.375rem; font-weight: 700; }
.brand span { white-space: nowrap; }
.brand img { border-radius: 22%; }
.cover-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0 2rem; padding-block: clamp(2.75rem, 5vw, 4.75rem); }
.cover-art { width: 100%; height: auto; grid-column: 2; grid-row: 1 / span 2; mix-blend-mode: darken; mask-image: radial-gradient(ellipse 72% 74%, #000 61%, transparent 100%); }
.cover-copy { grid-column: 1; grid-row: 1; align-self: end; container-type: inline-size; }
.cover-action { grid-column: 1; grid-row: 2; align-self: start; }
h1, h2 { font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif; font-weight: 700; }
h1 { font-size: min(clamp(1.9rem, 9.45cqi, 3.9rem), 16.5cqi); letter-spacing: -.04em; line-height: 1.17; }
.headline-line, .headline-emphasis { display: block; }
.headline-phrase { display: inline-block; white-space: nowrap; }
.headline-emphasis { white-space: nowrap; color: var(--brick); font-size: 1.22em; }
.cover-copy > p:first-of-type { margin-top: 1rem; }
.install { display: inline-flex; justify-content: center; align-items: center; min-height: 3.6rem; max-width: 100%; padding: .68rem 1.75rem; border-radius: .55rem; background: var(--brick); color: #fff; font-size: 1.235rem; font-weight: 700; text-decoration: none; }
.install { text-wrap: balance; }
.install:hover { background: #713120; text-decoration: underline; }
.cover .install { margin-top: 1.35rem; }
.price { margin-top: .45rem; color: var(--muted); font-size: 1rem; }
.chapter { padding-block: clamp(2.75rem, 6vw, 5rem); }
.chapter-head h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.32; }
.chapter-head > p { color: var(--muted); margin-top: .6rem; }
.before .chapter-head > p { text-wrap: balance; }
.steps { margin-top: 1.6rem; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; counter-increment: step; display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: center; column-gap: clamp(1.25rem, 4vw, 3.25rem); row-gap: .85rem; padding-block: clamp(1.4rem, 3vw, 2.25rem); border-top: 1px solid var(--rule); }
.instruction h3 { display: flex; align-items: baseline; column-gap: .6rem; font-size: clamp(1.25rem, 1.06rem + .8vw, 1.65rem); line-height: 1.5; }
.instruction h3::before { content: counter(step) "."; flex: none; font-family: Georgia, serif; font-weight: 700; font-size: 1.35em; color: var(--brick); }
.instruction p { margin-top: .35rem; }
.phrase { display: inline-block; max-width: 100%; }
.screen { width: 100%; overflow: hidden; border: 1px solid #c4c1af; border-radius: .7rem; background: #faf9f3; }
.screen img { width: 100%; height: auto; object-fit: cover; }
.start img, .save img { aspect-ratio: 3.45; object-position: center 96%; }
.start img { aspect-ratio: 4.05; object-position: center 96.1%; }
.speak img { aspect-ratio: 2.33; object-position: center 50.7%; }
.read img { aspect-ratio: 1.6; object-position: center 21.5%; }
.shop { background: #f1f2e8; }
.result { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 1.25rem clamp(1.25rem, 4vw, 3.25rem); align-items: center; }
.questions { margin-top: 2rem; }
details { border-top: 1px solid #bfbfad; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding-block: .7rem; list-style: none; cursor: pointer; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; margin-right: .3rem; width: .67rem; height: .67rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.2rem) rotate(45deg); }
details[open] summary::after { transform: translateY(.18rem) rotate(225deg); }
details p { padding-bottom: 1rem; max-width: 38em; color: var(--muted); }
.closing { padding-block: 2.25rem; text-align: center; background: var(--paper); }
.setup { margin: 1.5rem auto 0; max-width: 32rem; text-align: left; }
.site-footer { padding-block: .6rem; font-size: 1rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.language-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1rem;
  flex-basis: 100%;
  border-bottom: 1px solid var(--rule);
}
.language-nav [aria-current="page"] { font-weight: 700; }

html[lang="en"] {
  font-family: system-ui, sans-serif;
}
html[lang="en"] :is(h1, h2) { font-family: Georgia, serif; }
html[lang="en"] h1 {
  font-size: clamp(1.8rem, 9.5cqi, 3.9rem);
  letter-spacing: -.025em;
  text-wrap: balance;
}
html[lang="en"] .headline-emphasis { white-space: normal; }
html[lang="en"] .start img { aspect-ratio: 3.4; object-position: center 95.7%; }

html[lang="zh-Hans"] { font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
html[lang="zh-Hant"] { font-family: "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; }
html[lang="zh-Hans"] :is(h1, h2) { font-family: "Songti SC", SimSun, serif; }
html[lang="zh-Hant"] :is(h1, h2) { font-family: "Songti TC", PMingLiU, serif; }
html[lang|="zh"] .cover h1 { font-size: min(clamp(1.65rem, 9.45cqi, 3.9rem), 14cqi); }

@media (max-width: 44rem) {
  :root { --gutter: clamp(16px, 5vw, 2rem); }
  .cover-inner, .steps li, .result { grid-template-columns: minmax(0, 1fr); }
  .cover-inner { gap: .35rem; text-align: center; padding-block: 1rem 2rem; }
  .cover-copy, .cover-art, .cover-action { grid-column: auto; grid-row: auto; }
  .cover .install { margin-top: .2rem; }
  .cover-art { width: min(64%, 14rem); margin-inline: auto; }
  .cover h1 { font-size: min(clamp(1.65rem, 9.45cqi, 2.9rem), 16.5cqi); line-height: 1.3; }

  .cover-copy > p:first-of-type { margin-top: .65rem; }
  .mast-inner { font-size: .95rem; }
  .brand img { width: 2rem; height: 2rem; }
  .brand { font-size: 1.125rem; }
  .install { width: min(100%, 22rem); }
  .chapter { padding-block: 2.6rem; }
  .steps { margin-top: 1.2rem; }
  .steps li:last-child { padding-bottom: 0; }
  .questions { margin-top: 1.35rem; }
}
