.wrap {
  width: min(calc(100% - 80px), var(--site-wide-width));
  margin-inline: auto;
}

.jp,
[lang="ja"] {
  font-family: var(--site-font-japanese);
  font-weight: 400;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.kicker,
.overline {
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--site-text-muted);
}

.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.eyebrow-rule::before {
  content: "";
  flex: 0 0 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--site-action);
}

.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px 20px;
  z-index: 10;
  background: var(--site-button);
  color: var(--site-on-button);
}

.skip:focus {
  top: 75px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--site-button);
  box-shadow: 0 2px 0 var(--site-button-edge);
  color: var(--site-on-button);
  font-size: 0.9375rem;
  line-height: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  box-shadow: 0 3px 0 var(--site-button-edge);
}

.button:focus-visible {
  outline-color: var(--site-button-edge);
}

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--site-outline);
}

.brand {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.1875rem;
  line-height: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-control);
}

.nav-sections a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 0.9375rem;
  line-height: 1.125rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-sections a:hover {
  text-decoration: underline;
  text-decoration-color: var(--site-action);
  text-underline-offset: 6px;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--site-text);
}

.menu-toggle[hidden] {
  display: none;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  color: var(--site-text-muted);
  font-size: 0.875rem;
  line-height: 1.125rem;
  font-weight: 500;
}

.language-switch a,
.language-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 48px;
}

.language-switch a {
  text-decoration: none;
}

.language-switch a:hover {
  color: var(--site-text);
}

.language-current {
  color: var(--site-text);
  text-decoration: underline;
  text-decoration-color: var(--site-action);
  text-underline-offset: 6px;
}

.site-footer {
  border-top: 1px solid var(--site-outline);
}

.footer-brand p {
  color: var(--site-text-muted);
  font-size: 0.9375rem;
  line-height: 1.375rem;
}

.footer-brand .brand {
  gap: 12px;
  font-size: 1.0625rem;
  line-height: 1.375rem;
}

.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
}

.footer-column h2 {
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--site-text-muted);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 0.9375rem;
  line-height: 1.125rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--site-action);
  text-underline-offset: 5px;
}

.footer-socials svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.colophon {
  border-top: 1px solid var(--site-outline);
  color: var(--site-text-muted);
  font-size: 0.8125rem;
  line-height: 1rem;
}

.colophon-rights a {
  color: inherit;
  text-decoration: underline 1px;
  text-underline-offset: 3px;
}

.colophon-rights a:hover {
  color: var(--site-text);
}

.colophon-links,
.footer-languages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
}

.footer-languages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.footer-languages [aria-current] {
  color: var(--site-text);
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.store-badge img {
  display: block;
  width: auto;
  height: 52px;
}

.page-shell h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  max-width: 900px;
}

.page-shell .lede {
  color: var(--site-text-muted);
  font-size: 1.1rem;
}

.page-shell .meta {
  color: var(--site-text-muted);
  font-size: 0.85rem;
}

.eyebrow {
  color: var(--site-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid var(--site-outline);
  border-radius: var(--radius-control);
  text-decoration: none;
}

.page-link-primary {
  background: var(--site-button);
  color: var(--site-on-button);
  border-color: var(--site-button);
}

.notice {
  border-left: 3px solid var(--site-action);
  background: var(--site-surface);
  padding: 22px 24px;
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
}

.policy-content h2,
.release h2 {
  font-size: 1.8rem;
  letter-spacing: -0.035em;
}

.policy-content h3 {
  font-size: 1.15rem;
  margin-top: 26px;
}

.policy-content p,
.policy-content ul,
.policy-content ol,
.release ul {
  color: var(--site-text-muted);
}

.policy-content p + p,
.policy-content p + ul,
.policy-content p + ol {
  margin-top: 16px;
}

.policy-content h2 + p,
.policy-content h3 + p,
.policy-content h2 + ol,
.policy-content h2 + ul {
  margin-top: 18px;
}

.policy-content li + li,
.release li + li {
  margin-top: 10px;
}

.policy-content a,
.release a {
  color: var(--site-text);
}

.policy-section,
.release {
  border-top: 1px solid var(--site-outline);
}

.document-nav {
  position: sticky;
  top: 32px;
  align-self: start;
  max-height: calc(100vh - 64px);
  overflow: auto;
}

.document-nav p {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--site-text-muted);
  margin-bottom: 16px;
}

.document-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 9px 12px 9px 0;
  font-size: 0.85rem;
  color: var(--site-text-muted);
  text-decoration: none;
}

.document-nav a:hover {
  color: var(--site-text);
  text-decoration: underline;
}

.release-header p {
  color: var(--site-text-muted);
  font-size: 0.85rem;
}

.credits-open {
  overflow: hidden;
}

.credits-trigger,
.credits-fallback > summary {
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}

.credits-fallback > summary {
  display: inline-flex;
  align-items: center;
  list-style: none;
}

.credits-trigger[hidden],
.credits-close[hidden],
.credits-fallback[hidden] {
  display: none;
}

.credits-dialog {
  width: min(680px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  margin: auto;
  border: 1px solid var(--site-outline);
  border-radius: 20px;
  background: var(--site-paper);
  color: var(--site-text);
  overflow: hidden;
}

.credits-dialog::backdrop {
  background: var(--site-scrim);
}

.credits-content {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  min-width: 0;
}

.credits-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 20px 32px;
  border-bottom: 1px solid var(--site-outline);
  flex-shrink: 0;
}

.credits-header h2 {
  min-width: 0;
  overflow-wrap: break-word;
  text-wrap: wrap;
  padding-top: 8px;
  font-size: 1.8rem;
  line-height: 1.2;
}

.credits-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--site-outline);
  border-radius: 50%;
  background: transparent;
  color: var(--site-text);
  line-height: 1;
}

.credits-close:hover {
  background: var(--site-surface);
}

.credits-body {
  padding: 28px 32px 32px;
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
  font-size: 0.92rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.credits-body section + section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--site-outline);
}

.credits-body h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.credits-body p {
  color: var(--site-text-muted);
}

.credits-body p + p {
  margin-top: 12px;
}

.credits-body ul {
  padding-left: 20px;
  margin-block: 16px 0;
}

.credits-body li + li {
  margin-top: 16px;
}

.credits-body a {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  min-height: 48px;
  max-width: 100%;
  padding-block: 8px;
}

@media (max-width: 720px) {
  .credits-header {
    padding: 16px;
  }

  .credits-header h2 {
    font-size: 1.5rem;
  }

  .credits-body {
    padding: 20px;
  }
}

/* Home: appearance of the approved «Del trazo a la frase» blocks. */

.home h2 {
  font-size: 3.5rem;
  line-height: 3.75rem;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.home h3 {
  letter-spacing: 0;
}

/* Paper wraps greedily; balancing would move the approved line breaks. */
.home h1,
.home h2 {
  text-wrap: wrap;
}

.section-lede {
  color: var(--site-text-muted);
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.hero h1 {
  font-size: 5.25rem;
  line-height: 5.5rem;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.hero-lede {
  color: var(--site-text-muted);
  font-size: 1.25rem;
  line-height: 1.875rem;
}

.free-note {
  color: var(--site-text-muted);
  font-size: 0.9375rem;
  line-height: 1.375rem;
}

.free-note strong {
  color: var(--site-text);
  font-weight: 600;
}

.qr-card {
  border: 1px solid var(--site-outline);
  border-radius: var(--radius-tile);
  background: var(--site-paper);
}

.qr-code svg {
  fill: var(--site-ink);
}

.qr-code img {
  border-radius: var(--radius-corner);
}

.qr-card strong {
  font-size: 0.9375rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.qr-card span {
  color: var(--site-text-muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-write {
  border: 1px solid var(--site-outline);
  border-radius: 44px;
  background: var(--site-canvas);
  box-shadow:
    0 0 0 8px var(--site-paper),
    0 40px 80px -32px var(--site-shadow-medium);
}

/* Hero phone: the app's tracing screen (drawing_game, AdaptiveStrokeCanvas). */
.write-screen {
  color: var(--site-text);
}

.write-time {
  font-family: var(--site-font-system);
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
}

.write-status-icons {
  fill: var(--site-text);
}

.write-status-dim {
  opacity: 0.35;
}

.write-close path {
  fill: none;
  stroke: var(--site-text);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.write-count {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.write-progress,
.write-progress span {
  border-radius: 2px;
  background: var(--site-outline);
}

.write-progress span {
  background: var(--site-action);
}

.write-heading p {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
}

.write-help span {
  border: 1.5px solid var(--site-inverse-outline);
  border-radius: 16px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

.write-card {
  border: 1px solid var(--site-write-card-line);
  border-radius: var(--radius-control) var(--radius-folio) var(--radius-folio);
  background: var(--site-paper);
  box-shadow:
    0 8px 20px var(--site-write-shadow),
    0 2px 4px var(--site-write-shadow-near);
}

.write-glyph {
  font-family: var(--site-font-japanese);
  font-size: 22px;
  line-height: 28px;
}

.write-reading {
  color: var(--site-text-muted);
  font-size: 16px;
  line-height: 24px;
}

.write-marks span {
  border-radius: 2px;
  background: var(--site-outline);
}

.write-marks .is-done {
  background: var(--site-action);
}

.write-marks .is-current {
  background: var(--site-text);
}

.write-canvas {
  border: 1px solid var(--site-write-canvas-line);
  border-radius: var(--radius-corner) var(--radius-tile) var(--radius-tile);
  background: var(--site-paper);
}

.write-diagonal,
.write-centre {
  fill: none;
  stroke-width: 0.39;
}

.write-diagonal {
  stroke: var(--site-write-diagonal);
  stroke-dasharray: 1.17 1.95;
}

.write-centre {
  stroke: var(--site-write-centre);
  stroke-width: 0.47;
  stroke-dasharray: 2.34 1.95;
}

.write-guide {
  stroke: var(--site-write-guide);
  stroke-width: 5.45;
}

.write-done,
.write-current {
  stroke-width: 4.67;
}

.write-done {
  stroke: var(--site-action);
}

.write-current {
  stroke: var(--site-text);
}

.write-dot {
  fill: var(--site-text);
}

.write-position {
  color: var(--site-text-muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-align: center;
}

.write-skip {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.hoki-shadow {
  border-radius: 50%;
  background: var(--site-hoki-shadow);
}

.hoki-live .hoki-happy,
.hoki-live.is-happy .hoki-open {
  opacity: 0;
}

.hoki-live.is-happy .hoki-happy {
  opacity: 1;
}

.hoki {
  display: block;
  pointer-events: none;
}

/* Writing sheet (語) */
.sheet {
  border: 1px solid var(--site-outline);
  border-radius: var(--radius-tile);
  background: var(--site-paper);
  box-shadow: 0 24px 48px -24px var(--site-shadow-soft);
}

.sheet-closing {
  border-radius: var(--radius-folio);
  box-shadow: 0 40px 80px -36px var(--site-shadow-medium);
}

.sheet-head {
  border-bottom: 1px solid var(--site-outline);
}

.sheet-step {
  color: var(--site-text-muted);
  font-size: 0.6875rem;
  line-height: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.sheet-closing .sheet-step {
  color: var(--site-action);
}

.sheet-replay {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--site-action);
  font-size: 0.8125rem;
  line-height: 1rem;
  font-weight: 600;
  text-decoration: underline 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.sheet-closing .sheet-replay {
  font-size: 0.875rem;
  line-height: 1.125rem;
}

.sheet-replay[hidden] {
  display: none;
}

.sheet-word {
  font-size: 1.25rem;
  line-height: 1.5rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.sheet-closing .sheet-word {
  font-size: 1.375rem;
  line-height: 1.75rem;
}

.sheet-reading {
  color: var(--site-text-muted);
  font-size: 0.9375rem;
  line-height: 1.125rem;
}

.sheet-closing .sheet-reading {
  font-size: 1rem;
  line-height: 1.25rem;
}

.stroke-character {
  display: block;
  overflow: visible;
}

.stroke-sheet .sheet-cross {
  stroke: var(--site-guide);
  stroke-width: 0.6;
  stroke-dasharray: 2 2.5;
}

.stroke-sheet .is-done {
  stroke: var(--site-ink);
}

.stroke-sheet .is-guide {
  stroke: var(--site-guide);
}

.stroke-sheet .is-current,
.stroke-sheet .is-drawing {
  stroke: var(--site-action);
  stroke-width: 3.4;
}

.sheet-closing .stroke-sheet .is-current {
  stroke-width: 3;
}

.stroke-dot {
  fill: var(--site-action);
}

.stroke-glyph {
  color: var(--site-ink);
}

.stroke-glyph g {
  stroke-width: 3.6;
}

.stroke-glyph .is-new {
  stroke: var(--site-action);
}

/* Chapter index */
.chapters {
  border-block: 1px solid var(--site-outline);
  background: var(--site-paper);
}

.chapter {
  text-decoration: none;
}

.chapter + .chapter {
  border-left: 1px solid var(--site-outline);
}

.chapter-number {
  color: var(--site-text-muted);
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
}

.chapter-new .chapter-number {
  color: var(--site-action);
}

.chapter-glyph {
  font-size: 1.375rem;
  line-height: 1.5rem;
}

.chapter-title {
  font-size: 1.375rem;
  line-height: 1.75rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.chapter:hover .chapter-title {
  text-decoration: underline;
  text-decoration-color: var(--site-action);
  text-underline-offset: 6px;
}

.chapter-text {
  color: var(--site-text-muted);
  font-size: 0.9375rem;
  line-height: 1.375rem;
}

/* 01 · Pieces */
.stats dd {
  font-size: 2rem;
  line-height: 2.25rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.stats dt,
.access-note {
  color: var(--site-text-muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.tree-lines path {
  fill: none;
  stroke: var(--site-quiet-glyph);
  stroke-width: 1.5;
}

.tree-active path {
  fill: none;
  stroke: var(--site-action);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tree-node {
  border: 1px solid var(--site-outline);
  border-radius: var(--radius-tile);
  background: var(--site-paper);
  box-shadow: 0 2px 0 var(--site-outline);
  color: var(--site-text);
  font: inherit;
}

.tree-node > span {
  font-size: 0.875rem;
  line-height: 1.125rem;
  font-weight: 600;
}

button.tree-node {
  cursor: pointer;
}

button.tree-node:hover {
  border-color: var(--site-quiet-glyph);
}

.tree[data-active="王"] [data-node="王"],
.tree[data-active="寺"] [data-node="寺"],
.tree[data-active="玉"] [data-node="玉"],
.tree[data-active="時"] [data-node="時"],
.tree[data-active="持"] [data-node="持"] {
  border: 2px solid var(--site-action);
  box-shadow: 0 12px 24px -12px var(--site-shadow-soft);
}

.tree-card {
  border: 1px solid var(--site-outline);
  border-radius: var(--radius-tile);
  background: var(--site-paper);
  box-shadow: 0 20px 40px -16px var(--site-shadow-medium);
}

.tree-card-title {
  color: var(--site-text-muted);
  font-size: 0.6875rem;
  line-height: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.formula-part > span {
  color: var(--site-text-muted);
  font-size: 0.75rem;
  line-height: 1rem;
}

.formula-new > span {
  color: var(--site-action);
}

.formula-result > span {
  color: var(--site-text);
  font-weight: 600;
}

.formula-part .stroke-glyph g {
  stroke-width: 4;
}

.formula-new .stroke-glyph .is-new {
  stroke-width: 4.4;
}

.formula-sign {
  color: var(--site-text-muted);
  font-size: 1.125rem;
  line-height: 1.375rem;
  font-weight: 600;
}

.tree figcaption {
  color: var(--site-text-muted);
  font-size: 0.875rem;
  line-height: 1.125rem;
}

/* 02 · Library */
.library {
  border-block: 1px solid var(--site-outline);
}

.big-number {
  font-size: 11rem;
  line-height: 11rem;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.library-figure + .library-figure {
  border-left: 1px solid var(--site-outline);
}

.library-unit {
  font-size: 1.375rem;
  line-height: 1.75rem;
  font-weight: 500;
}

.library-counting {
  color: var(--site-text-muted);
}

.library-intro h2 {
  font-size: 2.5rem;
  line-height: 2.875rem;
  letter-spacing: -0.03em;
  text-align: center;
}

.search-tabs {
  border: 1px solid var(--site-outline);
  border-radius: var(--radius-control);
  background: var(--site-surface);
}

.search-tabs button {
  border: 0;
  border-radius: var(--radius-corner);
  background: transparent;
  color: var(--site-text-muted);
  font-size: 0.9375rem;
  line-height: 1.125rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.search-tabs button[aria-pressed="true"] {
  color: var(--site-text);
}

.search-tabs button:focus-visible {
  outline-offset: 2px;
}

.search-tabs-thumb {
  border: 1px solid var(--site-quiet-glyph);
  border-radius: var(--radius-corner);
  background: var(--site-paper);
  transition: transform 0.28s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.search-tabs[data-tab="words"] .search-tabs-thumb {
  transform: translateX(100%);
}

.search-field {
  border: 1px solid var(--site-quiet-glyph);
  border-radius: var(--radius-tile);
  background: var(--site-paper);
  box-shadow: 0 16px 32px -20px var(--site-shadow-soft);
}

.search-field:focus-within {
  outline: 3px solid var(--site-action);
  outline-offset: 3px;
}

.search-field input {
  border: 0;
  background: transparent;
  color: var(--site-text);
  caret-color: var(--site-action);
  font: inherit;
  font-size: 1.125rem;
  line-height: 1.375rem;
  outline: none;
  appearance: none;
}

.search-field input::-webkit-search-cancel-button {
  appearance: none;
}

.search-field .button:disabled {
  cursor: default;
}

.search-note {
  color: var(--site-text-muted);
  font-size: 0.875rem;
  line-height: 1.125rem;
  text-align: center;
}

.wall-tile {
  border: 1px solid var(--site-outline);
  border-radius: var(--radius-tile);
  background: var(--site-paper);
  color: var(--site-quiet-glyph);
}

.wall-tile > span {
  font-size: 2.5rem;
  line-height: 3rem;
}

.wall-tile small {
  font-size: 0.75rem;
  line-height: 1rem;
}

.wall-live .wall-tile {
  cursor: pointer;
}

.wall-tile.is-hover {
  border-color: var(--site-action);
  color: var(--site-text);
}

.wall-word > span:not(.wall-word-reading) {
  font-size: 1.875rem;
  line-height: 2.5rem;
}

.wall-word > .wall-word-reading {
  font-size: 0.6875rem;
  line-height: 0.875rem;
}

.wall-pause {
  padding: 0;
  border: 1px solid var(--site-outline);
  border-radius: var(--radius-control);
  background: var(--site-paper);
  color: var(--site-text);
}

.wall-pause:hover {
  background: var(--site-surface);
}

.wall-pause .wall-play-icon,
.wall-pause[data-paused] .wall-pause-icon {
  display: none;
}

.wall-pause[data-paused] .wall-play-icon {
  display: block;
}

/* Hover preview of a wall kanji: the open sheet's family, compact. */
.wall-preview {
  border: 1px solid var(--site-outline);
  border-radius: var(--radius-tile);
  background: var(--site-paper);
  box-shadow: 0 24px 48px -20px var(--site-shadow-medium);
  pointer-events: none;
  transition: opacity 0.15s ease-out;
}

.wall-preview[data-showing="false"] {
  opacity: 0;
}

.wall-preview-glyph {
  color: var(--site-text);
  font-size: 2.75rem;
  line-height: 3.25rem;
}

.wall-preview[data-kind="word"] .wall-preview-glyph {
  font-size: 1.875rem;
  line-height: 2.5rem;
}

.wall-preview-title {
  color: var(--site-text);
  font-size: 1rem;
  line-height: 1.375rem;
  font-weight: 600;
}

.wall-preview-reading {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.wall-preview-reading small,
.wall-preview-meta {
  color: var(--site-text-muted);
  font-size: 0.8125rem;
  line-height: 1.125rem;
}

.kanji-sheet {
  border: 1px solid var(--site-outline);
  border-radius: var(--radius-folio);
  background: var(--site-paper);
  box-shadow: 0 48px 96px -36px var(--site-shadow-strong);
}

.kanji-sheet-glyph {
  font-size: 7rem;
  line-height: 7.5rem;
}

.kanji-sheet h3 {
  font-size: 1.625rem;
  line-height: 1.875rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.kanji-sheet-also {
  color: var(--site-text-muted);
  font-size: 1rem;
  line-height: 1.375rem;
}

.kanji-sheet-meta {
  color: var(--site-text-muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.kanji-sheet-readings,
.kanji-sheet-examples {
  border-top: 1px solid var(--site-outline);
}

.kanji-sheet .overline,
.memory-card .overline {
  font-size: 0.6875rem;
  line-height: 0.875rem;
  letter-spacing: 0.12em;
}

.kanji-sheet-reading {
  font-size: 1.25rem;
  line-height: 1.5rem;
}

.kanji-sheet-reading small {
  color: var(--site-text-muted);
  font-size: 0.875rem;
  line-height: 1.125rem;
}

.kanji-sheet-examples ruby {
  font-size: 1.375rem;
  line-height: 1.75rem;
  ruby-position: over;
}

.kanji-sheet-examples rt {
  color: var(--site-text-muted);
  font-size: 0.6875rem;
  line-height: 0.875rem;
}

.kanji-sheet-examples li > span {
  font-size: 0.9375rem;
  line-height: 1.125rem;
  text-align: right;
}

.kanji-sheet-empty {
  color: var(--site-text-muted);
  font-size: 1rem;
  line-height: 1.5rem;
}

/* Switching tabs: the open sheet settles in as the other one fades out, and
   the stack eases to the new height so the rows below glide instead of jump. */
.sheet-stack {
  transition: height 0.32s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.sheet-stack > .kanji-sheet {
  transition:
    opacity 0.28s ease-out,
    transform 0.32s cubic-bezier(0.3, 0.7, 0.2, 1),
    visibility 0s linear 0s;
}

.sheet-stack > [data-inactive] {
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 0.18s ease-in,
    transform 0.18s ease-in,
    visibility 0s linear 0.18s;
}

.word-sheet-written {
  font-size: 5.5rem;
  line-height: 6.5rem;
}

.word-sheet-written[data-length="3"] {
  font-size: 4.25rem;
  line-height: 5.25rem;
}

.word-sheet-written[data-length="long"] {
  font-size: 2.75rem;
  line-height: 3.75rem;
}

.word-sheet-written rt {
  color: var(--site-text-muted);
  font-size: 1rem;
  line-height: 1.25rem;
}

.word-kanji {
  border: 0;
  background: transparent;
  color: var(--site-text);
  text-align: left;
}

.word-kanji-glyph {
  border: 1px solid var(--site-outline);
  border-radius: var(--radius-tile);
  background: var(--site-canvas);
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.word-kanji:hover .word-kanji-glyph {
  border-color: var(--site-action);
}

.word-kanji-text strong {
  font-size: 1rem;
  line-height: 1.375rem;
  font-weight: 600;
}

.word-kanji-text > span,
.word-kanji-level {
  color: var(--site-text-muted);
  font-size: 0.875rem;
  line-height: 1.125rem;
}

@media (prefers-reduced-motion: reduce) {
  .sheet-stack,
  .search-tabs-thumb {
    transition: none;
  }

  .sheet-stack > .kanji-sheet,
  .sheet-stack > [data-inactive] {
    transform: none;
    transition:
      opacity 0.15s linear,
      visibility 0s linear 0.15s;
  }

  .sheet-stack > .kanji-sheet:not([data-inactive]) {
    transition: opacity 0.15s linear;
  }
}

.levels-bar rect {
  stroke: var(--site-canvas);
  stroke-width: 3px;
  vector-effect: non-scaling-stroke;
}

.levels-jlpt {
  fill: var(--site-action);
}

.levels-extra {
  fill: var(--site-guide);
}

.levels-legend strong {
  font-size: 0.9375rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.levels-legend p > span {
  color: var(--site-text-muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.levels-key {
  display: none;
  width: 0.6em;
  height: 0.6em;
  border-radius: 1px;
}

.levels-key-jlpt {
  background: var(--site-action);
}

.levels-key-extra {
  background: var(--site-guide);
}

.features {
  border-top: 1px solid var(--site-outline);
}

.feature h3 {
  font-size: 1.125rem;
  line-height: 1.5rem;
  font-weight: 600;
}

.feature p {
  color: var(--site-text-muted);
  font-size: 1rem;
  line-height: 1.5rem;
}

/* 03 · Words band */
.words {
  background: var(--site-band);
  color: var(--site-on-band);
}

.words .overline,
.words .step-label,
.themes .overline {
  color: var(--site-on-band-muted);
}

.words .step-label,
.themes .overline {
  font-size: 0.6875rem;
  line-height: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.words .section-lede {
  color: var(--site-on-band-soft);
}

.words a:focus-visible {
  outline-color: var(--site-on-band);
}

.step-glyph {
  font-size: 5.5rem;
  line-height: 6rem;
}

.step-word .step-glyph {
  font-size: 3.5rem;
  line-height: 4.75rem;
}

.step-sentence .step-glyph {
  font-size: 2.125rem;
  line-height: 2.75rem;
}

.progression rt {
  color: var(--site-on-band-muted);
  font-size: 0.9375rem;
  line-height: 1.25rem;
}

.step-sentence rt {
  font-size: 0.8125rem;
  line-height: 1rem;
}

.step-gloss {
  color: var(--site-on-band-soft);
  font-size: 0.9375rem;
  line-height: 1.25rem;
}

.progression li + li::before {
  content: "→";
  color: var(--site-on-band-faint);
  font-size: 1.5rem;
  line-height: 1.875rem;
}

.theme {
  border: 1px solid var(--site-band-rule);
  border-radius: var(--radius-control);
  font-size: 0.9375rem;
  line-height: 1.25rem;
  font-weight: 500;
}

.theme-free,
.theme-mixed {
  border-color: var(--site-on-band);
  background: var(--site-on-band);
  color: var(--site-band);
  font-weight: 600;
}

.themes-start p {
  font-size: 1.0625rem;
  line-height: 1.5rem;
}

.band-action {
  border-radius: var(--radius-control);
  background: var(--site-on-band);
  color: var(--site-band);
  font-size: 0.9375rem;
  line-height: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.band-action:hover {
  background: var(--site-on-band-soft);
}

.words .band-action:focus-visible {
  outline-offset: 3px;
}

.cadence {
  border: 1px solid var(--site-band-panel-line);
  border-radius: var(--radius-tile);
  background: var(--site-band-panel);
}

.cadence-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.cadence-done {
  border-radius: 4px;
  background: var(--site-on-band);
}

.cadence-next {
  border: 1.5px dashed var(--site-band-next-1);
  border-radius: 4px;
}

.cadence-next + .cadence-next {
  border-color: var(--site-band-next-2);
}

.cadence-next + .cadence-next + .cadence-next {
  border-color: var(--site-band-next-3);
}

.cadence-text {
  color: var(--site-on-band-soft);
  font-size: 0.9375rem;
  line-height: 1.375rem;
}

.phone-forest {
  border-radius: 48px;
  background: var(--site-forest-screen);
  box-shadow: 0 0 0 10px var(--site-band-ring);
}

/* The app's forest inside the Words phone (GuidedTreePainter, V01/V02). */
.forest-ghost {
  fill: var(--site-forest-ghost);
  opacity: 0.42;
}

.forest-ink {
  fill: var(--site-forest-ink);
}

.forest-green {
  fill: var(--site-forest-green);
}

.forest-bloom {
  fill: var(--site-forest-bloom);
}

.forest-band {
  fill: none;
  stroke: var(--site-forest-band);
  stroke-width: 22;
  stroke-linecap: round;
}

.forest-dots {
  fill: none;
  stroke: var(--site-forest-dots);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 0.5 7.5;
}

.forest-walked {
  stroke: var(--site-forest-green);
  stroke-width: 3;
}

.forest-mask-line {
  fill: none;
  stroke: var(--site-mask-show);
}

.forest-mask-fill {
  fill: var(--site-mask-show);
}

.forest-off {
  opacity: 0;
}

.forest-subtitle {
  color: var(--site-text-muted);
  font-size: 0.9375rem;
  line-height: 1.25rem;
  white-space: nowrap;
}

.forest-plaque {
  border: 1px solid var(--site-forest-plaque-line);
  border-radius: var(--radius-tile);
  background: var(--site-paper);
  color: var(--site-text-muted);
  font-size: 0.75rem;
  line-height: 1rem;
  text-align: center;
}

.forest-plaque-title,
.forest-title {
  color: var(--site-text);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

.forest-callout {
  border: 1px solid var(--site-forest-green-edge);
  border-radius: var(--radius-tile);
  background: var(--site-forest-green);
  box-shadow: 0 2px 0 var(--site-forest-green-edge);
  color: var(--site-on-button);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  white-space: nowrap;
}

.forest-callout::before {
  background: var(--site-forest-green);
  content: "";
}

.forest-tile {
  border-radius: var(--radius-tile);
  font-family: var(--site-font-japanese);
  font-size: 2rem;
  line-height: 2.375rem;
}

[data-state="locked"] .forest-tile {
  border: 1px dashed var(--site-forest-dash);
  color: var(--site-text-muted);
}

[data-state="available"] .forest-tile,
[data-state="progress"] .forest-tile {
  border: 2px solid var(--site-forest-green);
  background: var(--site-paper);
  color: var(--site-text);
}

[data-state="complete"] .forest-tile {
  background: var(--site-forest-green);
  box-shadow: 0 2px 0 var(--site-forest-green-edge);
  color: var(--site-on-button);
}

[data-state="locked"] .forest-title {
  color: var(--site-text-muted);
}

.forest-text-start .forest-details {
  text-align: end;
}

.forest-counts,
.forest-blocks {
  color: var(--site-text-muted);
  font-size: 0.75rem;
  line-height: 1rem;
}

.forest-bar,
.forest-bar span {
  border-radius: var(--radius-corner);
  background: var(--site-forest-track);
}

.forest-bar span {
  background: var(--site-forest-green);
}

.forest-action {
  color: var(--site-forest-green);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

/* 04 · Memory */
.activities {
  border-top: 1px solid var(--site-outline);
}

.activities li {
  border-bottom: 1px solid var(--site-outline);
}

.activity-glyph {
  font-size: 1.875rem;
  line-height: 2.125rem;
}

.activities strong {
  font-size: 1.125rem;
  line-height: 1.5rem;
  font-weight: 600;
}

.activities li > span > span {
  color: var(--site-text-muted);
  font-size: 1rem;
  line-height: 1.5rem;
}

.card-back,
.memory-card {
  border: 1px solid var(--site-outline);
  border-radius: var(--radius-folio);
  background: var(--site-paper);
}

.card-back {
  box-shadow: 0 16px 32px -24px var(--site-shadow-soft);
}

.memory-card {
  box-shadow: 0 40px 80px -36px var(--site-shadow-strong);
}

.memory-glyph {
  font-size: 9.375rem;
  line-height: 10rem;
  font-weight: 300;
}

.memory-answer {
  border-top: 1px solid var(--site-outline);
}

.memory-reading [lang="ja"] {
  font-size: 1.5rem;
  line-height: 1.875rem;
}

.memory-reading > span:not([lang]) {
  color: var(--site-text-muted);
  font-size: 1rem;
  line-height: 1.25rem;
}

.memory-meaning {
  font-size: 1.625rem;
  line-height: 2rem;
  font-weight: 600;
}

.memory-other {
  color: var(--site-text-muted);
  font-size: 0.875rem;
  line-height: 1.125rem;
}

.session {
  font-size: 0.875rem;
  line-height: 1.125rem;
  font-weight: 600;
}

.session-bar {
  border-radius: 2px;
  background: var(--site-guide);
}

.session-bar > span {
  border-radius: 2px;
  background: var(--site-action);
}

.answer {
  border-radius: var(--radius-control);
  font-size: 1.0625rem;
  line-height: 1.375rem;
  font-weight: 600;
}

.answer-again {
  border: 1px solid var(--site-quiet-glyph);
  background: var(--site-paper);
  box-shadow: 0 2px 0 var(--site-outline);
}

.answer-know {
  background: var(--site-button);
  box-shadow: 0 2px 0 var(--site-button-edge);
  color: var(--site-on-button);
}

.mastery {
  font-size: 0.875rem;
  line-height: 1.125rem;
  font-weight: 600;
}

.mastery [lang="ja"] {
  font-size: 1.25rem;
  line-height: 1.5rem;
  font-weight: 400;
}

.mastery-meter > span {
  border-radius: 2px;
  background: var(--site-guide);
}

.mastery-meter > .is-filled {
  background: var(--site-action);
}

.mastery-meter > .is-next {
  border: 1.5px solid var(--site-action);
  background: transparent;
}

/* Free and Pro */
.plans-heading > p {
  color: var(--site-text-muted);
  font-size: 1rem;
  line-height: 1.5rem;
}

.plan {
  border: 1px solid var(--site-outline);
  border-radius: var(--radius-tile);
  background: var(--site-paper);
}

.plan-pro {
  border: 0;
  border-top: 4px solid var(--site-action);
}

.plan-tag {
  color: var(--site-text-muted);
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.plan-pro .plan-tag {
  color: var(--site-action);
}

.plan-price {
  font-size: 2.75rem;
  line-height: 3rem;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.plan-price span {
  color: var(--site-text-muted);
  font-size: 1rem;
  line-height: 1.25rem;
  letter-spacing: 0;
  font-weight: 400;
}

.plan-text {
  color: var(--site-text-muted);
  font-size: 1rem;
  line-height: 1.5rem;
}

.plan-lock {
  color: var(--site-action);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.plan-equivalent {
  font-size: 1.0625rem;
  line-height: 1.5rem;
  font-weight: 500;
}

/* Each half stays whole, so a narrow card breaks only at the separator. */
.plan-equivalent span {
  white-space: nowrap;
}

.plan-options > div {
  border-top: 1px solid var(--site-outline);
}

.plan-options > div:last-child {
  border-bottom: 1px solid var(--site-outline);
}

.plan-options dd {
  color: var(--site-text-muted);
  text-align: end;
}

.plan-options strong {
  color: var(--site-text);
  font-weight: 600;
}

.plan ul {
  border-top: 1px solid var(--site-outline);
  list-style: none;
}

.plan li {
  font-size: 1rem;
  line-height: 1.5rem;
}

.plan li svg {
  color: var(--site-action);
}

.plan-note {
  color: var(--site-text-muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Questions */
.faq {
  border-top: 1px solid var(--site-outline);
}

.faq-heading h2 {
  font-size: 3rem;
  line-height: 3.375rem;
}

.faq-contact {
  color: var(--site-text-muted);
  font-size: 1rem;
  line-height: 1.5rem;
}

.faq-contact a,
.faq-item a {
  color: var(--site-text);
  text-decoration: underline 1px;
  text-underline-offset: 3px;
}

.faq-list {
  border-top: 1px solid var(--site-ink);
}

.faq-item {
  border-bottom: 1px solid var(--site-outline);
}

.faq-item h3 {
  font-size: 1.1875rem;
  line-height: 1.625rem;
  font-weight: 600;
}

.faq-item p {
  color: var(--site-text-muted);
  font-size: 1rem;
  line-height: 1.5625rem;
}

/* Closing */
.closing {
  border-top: 1px solid var(--site-outline);
}

.closing h2 {
  font-size: 4.25rem;
  line-height: 4.5rem;
  letter-spacing: -0.04em;
}

.closing-text {
  color: var(--site-text-muted);
  font-size: 1.1875rem;
  line-height: 1.8125rem;
}

.closing .qr-card {
  border: 0;
  background: transparent;
}

.song-notes path {
  fill: var(--site-action);
}

.song-notes .note-1 {
  opacity: 0.85;
}

.song-notes .note-2 {
  opacity: 0.55;
}

.song-notes .note-3 {
  opacity: 0.35;
}

/* With motion the notes appear only while Hoki sings. */
.stroke-motion .song-notes {
  opacity: 0;
}

/* Narrow composition: one column (390 artboard). */
@media (max-width: 1179px) {
  .home h2 {
    font-size: 2.125rem;
    line-height: 2.375rem;
    letter-spacing: -0.03em;
  }

  .section-lede {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .hero h1 {
    font-size: 2.75rem;
    line-height: 3rem;
    letter-spacing: -0.04em;
  }

  .hero-lede {
    font-size: 1.0625rem;
    line-height: 1.625rem;
  }

  .free-note {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .store-badge img {
    height: 44px;
  }

  .phone-write {
    border-radius: 36px;
    box-shadow:
      0 0 0 7px var(--site-paper),
      0 30px 60px -28px var(--site-shadow-medium);
  }

  .sheet-word {
    font-size: 1.0625rem;
    line-height: 1.375rem;
  }

  .chapter + .chapter {
    border-left: 0;
  }

  .chapter:nth-child(odd) {
    border-right: 1px solid var(--site-outline);
  }

  .chapter:nth-child(-n + 2) {
    border-bottom: 1px solid var(--site-outline);
  }

  .chapter-number {
    font-size: 0.6875rem;
    line-height: 0.875rem;
  }

  .chapter-glyph {
    font-size: 1.125rem;
    line-height: 1.25rem;
  }

  .chapter-title {
    font-size: 1.125rem;
    line-height: 1.375rem;
  }

  .chapter-text {
    font-size: 0.8125rem;
    line-height: 1.125rem;
  }

  .tree-node > span {
    font-size: 0.75rem;
    line-height: 1rem;
  }

  .tree figcaption {
    font-size: 0.8125rem;
    line-height: 1.1875rem;
    text-align: center;
  }

  /* Both figures side by side in the column, as large as it allows. */
  .big-number {
    font-size: min(6.5rem, calc((100vw - 48px) / 7));
    line-height: 1.05;
  }

  .library-unit {
    font-size: 0.9375rem;
    line-height: 1.25rem;
  }

  .library-intro h2 {
    font-size: 1.75rem;
    line-height: 2.125rem;
    letter-spacing: -0.025em;
  }

  .search-field input {
    font-size: 1.0625rem;
  }

  .search-field .button {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 0.875rem;
  }

  .search-note {
    font-size: 0.8125rem;
    text-align: left;
  }

  .wall-tile > span {
    font-size: 1.75rem;
    line-height: 2.125rem;
  }

  .wall-word > span:not(.wall-word-reading) {
    font-size: 1.375rem;
    line-height: 1.75rem;
  }

  .word-sheet-written {
    font-size: 4rem;
    line-height: 4.75rem;
  }

  .word-sheet-written[data-length="3"] {
    font-size: 3.25rem;
    line-height: 4rem;
  }

  .word-sheet-written[data-length="long"] {
    font-size: 2.25rem;
    line-height: 3rem;
  }

  .kanji-sheet-glyph {
    font-size: 5.25rem;
    line-height: 5.75rem;
  }

  .kanji-sheet h3 {
    font-size: 1.375rem;
  }

  .levels-key {
    display: inline-block;
    margin-right: 0.4em;
  }

  .levels-legend p > span {
    font-size: 0.8125rem;
    line-height: 1.125rem;
  }

  .features {
    border-top: 0;
  }

  .feature {
    border-bottom: 1px solid var(--site-outline);
  }

  .feature h3 {
    font-size: 1.0625rem;
    line-height: 1.375rem;
  }

  .feature p {
    font-size: 0.9375rem;
    line-height: 1.375rem;
  }

  .progression {
    border-left: 1px solid var(--site-band-rule);
  }

  .progression li + li::before {
    content: none;
  }

  .step-glyph {
    font-size: 3.75rem;
    line-height: 4rem;
  }

  .step-word .step-glyph {
    font-size: 2.5rem;
    line-height: 3.125rem;
  }

  .step-sentence .step-glyph {
    font-size: 1.625rem;
    line-height: 2.125rem;
  }

  .progression rt {
    font-size: 0.75rem;
    line-height: 0.875rem;
  }

  .step-sentence rt {
    font-size: 0.6875rem;
  }

  .step-gloss {
    font-size: 0.875rem;
    line-height: 1.125rem;
  }

  .theme {
    font-size: 0.875rem;
  }

  .themes-start p {
    font-size: 1rem;
  }

  .cadence-title {
    font-size: 1.5rem;
    line-height: 1.875rem;
  }

  .cadence-done,
  .cadence-next {
    border-radius: 3px;
  }

  .cadence-text {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .phone-forest {
    border-radius: 38px;
    box-shadow: 0 0 0 8px var(--site-band-ring);
  }

  .memory-glyph {
    font-size: 7.5rem;
    line-height: 8.125rem;
  }

  .memory-meaning {
    font-size: 1.375rem;
  }

  .mastery {
    font-size: 0.8125rem;
    line-height: 1rem;
  }

  .plan-price {
    font-size: 2.5rem;
  }

  .plan-note {
    font-size: 0.8125rem;
    line-height: 1.1875rem;
  }

  .faq-heading h2 {
    font-size: 2.125rem;
    line-height: 2.375rem;
  }

  .faq-item h3 {
    font-size: 1.0625rem;
    line-height: 1.5rem;
  }

  .faq-item p {
    font-size: 0.9375rem;
    line-height: 1.4375rem;
  }

  .closing h2 {
    font-size: 2.5rem;
    line-height: 2.75rem;
    letter-spacing: -0.035em;
  }

  .closing-text {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .sheet-closing .sheet-word {
    font-size: 1.25rem;
  }

  .footer-socials a {
    min-height: 44px;
    padding-inline: 12px;
    border: 1px solid var(--site-outline);
    border-radius: var(--radius-control);
    gap: 8px;
  }
}

/* Visibility helpers for the two approved compositions. */
@media (min-width: 1180px) {
  .when-narrow,
  .tree-lines-narrow {
    display: none;
  }
}

@media (max-width: 1179px) {
  .when-wide,
  .tree-lines-wide {
    display: none;
  }
}

/* Motion (site.js adds .stroke-motion only when it can animate). */
.stroke-motion .sheet:not([data-playback="complete"]) .is-sequenced,
.stroke-motion .sheet:not([data-playback="complete"]) .stroke-dot {
  opacity: 0;
}

.tree-active path,
.tree-card {
  display: none;
}

/* site.js lights the stretches from the root to the active kanji. */
.tree-active path.is-lit,
.tree[data-active="王"] .tree-card[data-for="王"],
.tree[data-active="寺"] .tree-card[data-for="寺"],
.tree[data-active="玉"] .tree-card[data-for="玉"],
.tree[data-active="時"] .tree-card[data-for="時"],
.tree[data-active="持"] .tree-card[data-for="持"] {
  display: block;
}

/* Wide, the card shows beside the pointer or the kanji it builds. */
@media (min-width: 1180px) {
  .tree-float .tree-cards {
    pointer-events: none;
  }

  .tree-float .tree-cards:not(.is-shown) {
    opacity: 0;
  }

  .stroke-motion .tree-float .tree-cards {
    transition: opacity 0.12s ease-out;
  }
}

@media (max-width: 899px) {
  .menu-ready .site-nav {
    border-bottom: 1px solid var(--site-outline);
    background: var(--site-canvas);
    box-shadow: 0 16px 32px -24px var(--site-shadow-soft);
  }
}
