@font-face {
  font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/mods/fonts/MPLUSRounded1c-500.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2199,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/mods/fonts/MPLUSRounded1c-800.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2199,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme: light;
  --field: #CFD6DE; --paper: #FAFBFC; --ink: #34344A; --soft: #4D4D66;
  --coral: #FF8F9C; --deep: #E86677; --mint: #A8E6CF;
  --gutter: clamp(24px, 6vw, 104px); --band: clamp(260px, 42svh, 360px);
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "M PLUS Rounded 1c", system-ui, sans-serif;
  font-weight: 500; font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3, strong { font-weight: 800; }
h1, h2 { line-height: .94; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(38px, 4.25vw, 72px); }
h2 { font-size: clamp(38px, 4.5vw, 68px); }
h3 { font-size: 20px; line-height: 1.05; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; border-radius: 3px; }
code { font: inherit; font-weight: 800; white-space: nowrap; }
::selection { color: var(--ink); background: var(--mint); }
.skip { position: fixed; top: 12px; left: 16px; transform: translateY(-180%); z-index: 50; padding: 10px 18px; background: white; }
.skip:focus { transform: none; }
.topbar { position: absolute; inset: 0 0 auto; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px var(--gutter); font-size: 13px; }
.topbar a { text-decoration: none; }
.brand { font-weight: 800; font-size: 15px; letter-spacing: .14em; }
.topnav { display: flex; align-items: center; gap: 26px; }
.topnav a { position: relative; padding: 6px 0; color: var(--soft); font-weight: 800; }
.topnav a:hover { color: var(--ink); }
.topnav a[aria-current] { color: var(--ink); }
.topnav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 2px; background: var(--mint); box-shadow: 0 1px var(--ink); }
.topnav .topnav-cta {
  margin-left: 6px; padding: 9px 16px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink);
  background: var(--coral); box-shadow: inset 0 -3px var(--deep); transition: box-shadow 180ms;
}
.topnav .topnav-cta:hover { box-shadow: inset 0 -5px var(--deep), 0 5px 18px #34344A15; }
.topnav .topnav-cta::after { display: none; }
.story { position: relative; isolation: isolate; background: var(--field); }
.stage {
  position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; z-index: 2;
  overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse at 76% 43%, #FFFFFFB3, transparent 48%), linear-gradient(155deg, var(--field), var(--paper) 78%);
}
.ghost {
  position: absolute; top: 30%; left: 31%; white-space: nowrap; line-height: 1;
  font-size: clamp(130px, 20vw, 360px); font-weight: 800; letter-spacing: -.07em; color: #34344A0C;
}
.portrait { position: absolute; inset: 82px 4% 112px 46%; }  /* clears the top bar */
.portrait::before {
  content: ""; position: absolute; bottom: -5px; left: 30%; width: 40%; height: 20px;
  background: radial-gradient(ellipse, #34344A19, transparent 70%);
}
.portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
  opacity: 0; transition: opacity 420ms ease; 
}
.portrait img.is-active { opacity: 1; }
.voice { position: absolute; bottom: 26px; left: 49%; right: 6%; text-align: center; }
.romaji { font-size: clamp(20px, 2.1vw, 32px); line-height: 1; font-weight: 800; letter-spacing: -.025em; }
.english { margin-top: 5px; font-size: 14px; color: var(--soft); }
.readout { position: absolute; top: 84px; right: 64px; width: 230px; }  /* top right of the stage: the chapter copy scrolls through the left column */
.readout-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.readout-top > span { font-size: 11px; letter-spacing: .14em; }
.readout strong { font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.meter { margin-top: 9px; height: 7px; border: 1px solid var(--ink); border-radius: 8px; overflow: hidden; background: #FFFFFF80; }
.meter-fill { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--ink); }
.readout.is-hot .meter-fill { background: var(--coral); box-shadow: inset 0 -2px var(--deep); border-right: 2px solid var(--ink); }
.demo-note { margin-top: 7px; font-size: 11px; color: var(--soft); }
.rail { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); display: grid; pointer-events: auto; }
.rail a { display: flex; justify-content: flex-end; align-items: center; width: 44px; height: 32px; padding: 7px; }
.rail span { width: 10px; height: 2px; background: var(--soft); transition: width 200ms; }
.rail a[aria-current] span { width: 28px; height: 3px; background: var(--ink); box-shadow: 0 4px var(--mint); }
.chapters { position: relative; z-index: 3; pointer-events: none; }
.chapter { min-height: 100svh; display: flex; align-items: center; padding: 100px 54% 145px var(--gutter); }
.copy { width: 100%; max-width: 590px; }
.copy a { pointer-events: auto; }
.kicker { margin-bottom: 22px; color: var(--soft); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.copy > p:not(.kicker) { margin-top: 24px; }
.copy > p:not(.scene, .fine, .identity, .kicker) { max-width: 40ch; color: var(--soft); }
.hero .lede { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 24px;
  min-height: 54px; padding: 13px 24px; margin-top: 28px; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--coral); color: var(--ink); font-size: 16px; font-weight: 800; text-decoration: none;
  box-shadow: inset 0 -3px var(--deep); transition: box-shadow 180ms;
}
.button:hover { box-shadow: inset 0 -5px var(--deep), 0 5px 18px #34344A15; }
.button span { font-size: 23px; line-height: 1; }
.copy > .fine { margin-top: 10px; color: var(--soft); font-size: 13px; }
.identity { color: var(--soft); font-size: 13px; }
.copy > .scene { margin-top: 34px; padding-left: 14px; border-left: 3px solid var(--mint); color: var(--soft); font-size: 14px; }
.windows { margin-top: 24px; font-size: 14px; }
.windows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #34344A26; }
.windows dd { flex-shrink: 0; font-weight: 800; }
.text-link { display: inline-block; margin-top: 24px; font-weight: 800; }
.wrap { width: min(1160px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.download { padding-block: 110px 80px; text-align: center; scroll-margin-top: 24px; }
.download > p:not(.kicker) { margin: 22px auto 0; color: var(--soft); }
.download .compatibility { max-width: 58ch; font-size: 14px; }
.steps { margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px; counter-reset: setup; text-align: left; list-style: none; }
.steps li { counter-increment: setup; border-top: 1px solid #34344A33; padding-top: 20px; }
.steps li::before { content: "0" counter(setup); display: block; margin-bottom: 24px; font-size: 13px; font-weight: 800; color: var(--soft); }
.steps p { margin-top: 12px; font-size: 15px; color: var(--soft); }
.footer { padding-block: 32px 40px; border-top: 1px solid #34344A33; display: flex; justify-content: space-between; gap: 32px; font-size: 12px; color: var(--soft); }
.footer p { max-width: 66ch; }
.footer nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 14px 22px; }
@media (min-width: 801px) and (max-height: 760px) {
  .hero h1 { font-size: clamp(36px, 3.8vw, 54px); }
  .hero .copy > p:not(.kicker) { margin-top: 14px; }
  .hero .button { margin-top: 18px; }
  .hero .kicker { margin-bottom: 16px; }
}
@media (max-width: 800px) {
  body { font-size: 16px; }
  .topbar { padding: 16px 24px; font-size: 11px; }
  .brand { font-size: 13px; }
  .topnav { gap: 14px; }
  .topnav .topnav-cta { padding: 8px 12px; }
  .topnav a[aria-current]::after { height: 2px; }
  .stage { height: var(--band); margin-bottom: 0; z-index: 5; border-bottom: 1px solid #34344A1A; }
  .ghost { top: 35%; left: 8%; font-size: 30vw; }
  .portrait { inset: 60px 16px 0 44%; }
  .voice { bottom: 22px; left: 24px; right: 53%; text-align: left; }
  .romaji { font-size: clamp(19px, 4.7vw, 25px); }
  .english { font-size: 12px; line-height: 1.45; }
  .readout { top: 62px; bottom: auto; left: 24px; right: auto; width: 132px; }
  .readout strong { font-size: 24px; }
  .readout-top > span { font-size: 9px; }
  .demo-note { font-size: 10px; line-height: 1.35; max-width: 15ch; }
  .rail { right: 0; }
  .rail a { width: 24px; height: 28px; padding: 4px; }
  .rail a[aria-current] span { width: 16px; }
  .chapter { min-height: calc(100svh - var(--band)); padding: 38px 24px 64px; scroll-margin-top: var(--band); }
  .copy { max-width: 580px; margin-inline: auto; }
  h1 { font-size: clamp(34px, 8.6vw, 52px); }
  h2 { font-size: clamp(34px, 8.4vw, 50px); }
  .hero .lede { font-size: 16px; }
  .kicker { font-size: 10px; margin-bottom: 18px; }
  .copy > p:not(.kicker) { margin-top: 20px; }
  .copy > .fine { margin-top: 10px; }
  .copy > .scene { margin-top: 28px; }
  .download { padding-block: 76px 56px; }
  .steps { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
  .steps li::before { margin-bottom: 12px; }
  .footer { flex-direction: column; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .ghost { transform: none !important; }
}
