@font-face { font-family: "Myriad Pro"; src: url("assets/fonts/myriad-pro-light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Myriad Pro"; src: url("assets/fonts/myriad-pro-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Myriad Pro"; src: url("assets/fonts/myriad-pro-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("assets/fonts/roboto-condensed-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("assets/fonts/inter-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("assets/fonts/inter-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("assets/fonts/inter-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* Chromatic Journal: a calm #fafafa journal around colorful, framed artwork.
   Measured source values (1440px): Roboto Condensed 27.37px titles, Myriad Pro
   Light 18.73px excerpts, Barlow Condensed metadata, 86.4px insets, 49px gutters,
   10px image radius, 0 8px 20px rgba(0,0,0,.1) image shadow. */
:root {
  color-scheme: light;
  --body: "Myriad Pro", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  --title: "Roboto Condensed", "Arial Narrow", -apple-system, "Hiragino Sans", sans-serif;
  --meta: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --canvas: #fafafa;
  --text: #2a2d30;
  --muted: #55595e;
  --rule: #dfe0e2;
  --accent: #b33a36;
  --accent-hover: #8e2a27;
  --inset: clamp(20px, 6vw, 86.4px);
  --gutter: clamp(28px, 3.4vw, 49px);
  --header: 70px;
  --art-radius: 10px;
  --art-shadow: 0 8px 20px rgb(0 0 0 / 10%);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 24px); }
body { margin: 0; background: var(--canvas); color: var(--text); font: 300 1.1705rem/1.5 var(--body); letter-spacing: .05em; -webkit-font-smoothing: antialiased; font-synthesis: none; }
html[data-menu-open="true"] { overflow: hidden; }
h1, h2, h3, p { margin: 0; overflow-wrap: break-word; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
button, a, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, .button, a { transition: background-color 140ms ease, color 140ms ease, text-decoration-color 140ms ease; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
svg { flex: none; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: #f6e3b4; }
:lang(ja) { font-feature-settings: normal; line-break: strict; letter-spacing: normal; }
ruby { ruby-align: center; }
rt { font-size: .52em; font-weight: 400; }
.container { width: min(100% - 2 * var(--inset), 1440px - 2 * 86.4px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 20px; height: 20px; fill: none; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 40; padding: 12px 18px; transform: translateY(-160%); background: var(--canvas); border: 2px solid var(--accent); }
.skip-link:focus { transform: none; }

/* Metadata sits tight above titles: condensed, uppercase, divided by a hairline. */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font: 400 .8125rem/1.2 var(--meta); letter-spacing: .02em; text-transform: uppercase; color: var(--text); }
.meta > span + span { margin-left: 10px; padding-left: 10px; border-left: 1px solid currentColor; }
.pro-note { color: var(--accent); font-weight: 500; }
.read-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 400; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; text-decoration-color: var(--text); }
.read-link:hover { color: var(--accent); text-decoration-color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 6px; color: #fff; background: var(--accent); font: 500 .9545rem/1.2 var(--title); letter-spacing: .03em; text-transform: uppercase; text-align: center; }
.button:hover { background: var(--accent-hover); }
.button .icon { width: 18px; height: 18px; }
.icon-button { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 10px; border: 0; border-radius: 6px; background: transparent; }
.icon-button:hover { background: rgb(0 0 0 / 5%); }

/* A compact translucent bar: small illustrated mark, uppercase condensed links. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; }
/* The blur lives on a pseudo-element: a backdrop filter on the header itself would
   become the containing block for the fixed mobile menu and clip it to the bar. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(250 250 250 / 82%); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }
.site-header[data-scrolled="true"] { box-shadow: 0 1px rgb(0 0 0 / 6%); }
.header-inner { display: flex; align-items: center; gap: 40px; min-height: var(--header); }
.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 500 1.25rem/1 var(--title); letter-spacing: .03em; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font: 400 .9545rem/1.3 var(--title); letter-spacing: .03em; text-transform: uppercase; text-underline-offset: 6px; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-updates { display: none; }
.header-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 400 .9545rem/1.3 var(--title); letter-spacing: .03em; text-transform: uppercase; }
.header-link:hover { color: var(--accent); }
.header-link .icon { width: 18px; height: 18px; }
.menu-toggle { display: none; }

/* A narrow announcement ribbon carries the page's loudest color, as one flat Kotoba red. */
main { padding-top: var(--header); }
.ribbon { display: block; color: #fff; background: #b33a36; }
.ribbon-inner { display: flex; align-items: center; gap: 22px; min-height: 84px; padding-block: 10px; }
.ribbon-mascot { width: 66px; flex: none; filter: drop-shadow(0 3px 6px rgb(0 0 0 / 22%)); }
.ribbon-text { font-size: 1.1705rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; transition: text-decoration-color 140ms ease; }
.ribbon:hover .ribbon-text { text-decoration-color: currentColor; }
.ribbon:focus-visible { outline-offset: -4px; outline-color: #fff; }

/* The opening uses the same two columns as the collection beneath it. */
.intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; padding-block: 88px 72px; }
.intro h1 { margin-top: 16px; font: 400 clamp(2.5rem, 1.6rem + 2.4vw, 3.5rem)/1.12 var(--title); letter-spacing: .01em; }
.intro-copy > p:first-child { max-width: 34em; color: var(--muted); }
.intro-action { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.availability { font: 400 .8125rem/1.2 var(--meta); letter-spacing: .02em; text-transform: uppercase; }
.definition { display: flex; align-items: baseline; gap: 18px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--rule); }
.definition-word { flex: none; font-size: 1.5rem; letter-spacing: .12em; white-space: nowrap; }
.definition-text { color: var(--muted); font-size: .9375rem; line-height: 1.55; }

/* Peer entries share a 3:2 frame, a fixed text order, and generous gutters. */
.journal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 72px; padding-bottom: 104px; }
@supports (grid-template-rows: subgrid) {
  .entry { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
}
.entry-art { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--art-radius); box-shadow: var(--art-shadow); }
.entry-text { padding-top: 22px; }
.entry h3 { margin-top: 8px; font: 400 clamp(1.38rem, 1.1rem + .8vw, 1.7105rem)/1.5 var(--title); letter-spacing: .03em; }
.entry-text > p:not(.meta) { max-width: 34em; margin-top: 8px; color: var(--muted); }
.entry .read-link { margin-top: 10px; }

/* Authentic Kotoba material supplies the color: captures, mascot poses, live samples,
   each on a flat tint. */
.art-peach { background: #ffc6a8; }
.art-sky { background: #b8d3fb; }
.art-sand { background: #f1d9a9; }
.art-mint { background: #b9e3ca; }
.art-lilac { background: #d2c3f7; }
.art-butter { background: #ffe39a; }
.art-shot { position: absolute; left: 50%; bottom: 0; width: 56%; height: 91%; transform: translateX(-50%); object-fit: cover; object-position: 50% 10%; border-radius: 14px 14px 0 0; box-shadow: 0 10px 30px rgb(40 20 10 / 18%); }
.art-mascot { position: absolute; top: 50%; left: 50%; width: 42%; transform: translate(-50%, -50%); filter: drop-shadow(0 10px 14px rgb(60 30 30 / 18%)); }
.art-live { display: flex; align-items: center; justify-content: center; aspect-ratio: auto; min-height: 100%; padding: clamp(24px, 3.4vw, 48px); overflow: visible; }
.live-stage { width: 100%; max-width: 470px; }
.stage-caption { margin-bottom: 14px; font: 500 .8125rem/1.2 var(--meta); letter-spacing: .04em; text-transform: uppercase; color: #3d2f17; }
.sample-caption { margin-top: 14px; font: 500 .8125rem/1.2 var(--meta); letter-spacing: .04em; text-transform: uppercase; text-align: center; color: #18392a; }

/* The mascot sheet is untouched; each pose is a crop of it. */
.mascot { display: block; aspect-ratio: var(--w) / var(--h); background-image: url("assets/mascot/kotoba-poses.png"); background-repeat: no-repeat; background-size: calc(125400% / var(--w)) calc(125400% / var(--h)); background-position: calc(100% * var(--x) / (1254 - var(--w))) calc(100% * var(--y) / (1254 - var(--h))); }
.mascot-talk { --x: 10; --y: 215; --w: 440; --h: 390; }
.mascot-wave { --x: 10; --y: 640; --w: 430; --h: 410; }
.mascot-map { --x: 447; --y: 670; --w: 374; --h: 380; }
.mascot-cards { --x: 824; --y: 668; --w: 420; --h: 380; }

/* Interactive product samples keep the app's Inter typography and neutral geometry. */
.app-ui { font-family: Inter, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif; font-weight: 400; line-height: 1.6; letter-spacing: normal; color-scheme: light; color: var(--app-text); --app-text: #37352f; --app-canvas: #fff; --app-surface: #f7f7f5; --app-selected: #efefeb; --app-secondary: #64635e; --app-border: #e8e7e3; --app-control: #84817a; --app-accent: #b33a36; }
.app-ui h2 { font-family: inherit; letter-spacing: normal; }
.demo { position: relative; width: 100%; border: 1px solid var(--app-border); border-radius: 8px; background: var(--app-canvas); box-shadow: 0 10px 30px rgb(60 40 10 / 14%); }
.demo-source { padding: 20px 22px 0; }
.field-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: .75rem; font-weight: 500; }
.field-label .icon { width: 16px; height: 16px; }
.demo-input { margin-top: 10px; padding: 12px; background: var(--app-surface); border-radius: 6px; font-size: 1.0625rem; line-height: 1.45; }
.tone-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 7px; border-bottom: 1px solid var(--app-border); font-size: .75rem; }
.tone-label { display: flex; align-items: center; gap: 6px; margin-right: auto; }
.tone-label .icon { width: 14px; height: 14px; }
.tone-options { display: flex; flex-wrap: wrap; gap: 4px; }
.tone-button { min-width: 60px; min-height: 44px; padding: 7px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: .75rem; font-weight: 500; }
.tone-button[aria-pressed="true"] { background: var(--app-selected); border-color: var(--app-control); }
.tone-button:hover { background: var(--app-selected); }
.demo-output { padding: 14px 22px 6px; }
.result-note { color: var(--app-secondary); font-size: .75rem; font-weight: 400; }
.translation { min-height: 86px; margin-top: 10px; font-size: 1.25rem; line-height: 2.1; }
.translation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.quiet-button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; min-width: 44px; padding: 5px 8px; border: 0; border-radius: 6px; background: transparent; font-size: .75rem; }
.quiet-button .icon { width: 17px; height: 17px; }
.quiet-button:hover { background: var(--app-surface); }
.quiet-button[aria-pressed="true"] { color: var(--app-accent); }
.action-status { display: block; flex-basis: 100%; min-height: 17px; color: var(--app-secondary); font-size: .75rem; }
.demo-vocabulary { margin-top: 5px; padding-top: 12px; border-top: 1px solid var(--app-border); }
.demo-vocabulary > .field-label { color: var(--app-secondary); font-size: .75rem; }
.word-button { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 0; border: 0; border-radius: 6px; background: transparent; text-align: left; }
.word-button:hover { background: var(--app-surface); }
.word-japanese { font-size: 1rem; font-weight: 500; }
.word-japanese > span { padding-left: 5px; font-size: .75rem; color: var(--app-secondary); font-weight: 400; }
.word-meaning { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--app-secondary); }
.word-meaning .icon { width: 15px; height: 15px; }
.demo-footer { display: flex; align-items: flex-start; gap: 7px; padding: 11px 22px; border-top: 1px solid var(--app-border); color: var(--app-secondary); font-size: .75rem; line-height: 1.5; }
.demo-footer .icon { width: 13px; height: 16px; }
.tag { display: inline-block; padding: 3px 7px; border-radius: 6px; background: var(--app-surface); font-size: .75rem; }
.practice-stage { max-width: 400px; }
.practice-preview { position: relative; width: 100%; padding: 24px; border: 1px solid var(--app-border); border-radius: 8px; background: var(--app-canvas); box-shadow: 0 10px 30px rgb(10 50 30 / 14%); }
.preview-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .75rem; font-weight: 500; }
.card-count { color: var(--app-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.flashcard { min-height: 232px; margin-top: 16px; padding: 18px 10px; border: 1px solid var(--app-border); border-radius: 8px; background: var(--app-surface); text-align: center; }
.flashcard-prompt { color: var(--app-secondary); font-size: .75rem; }
.flashcard-word { margin-top: 16px; font-size: 2.5rem; font-weight: 500; line-height: 1.4; }
.flashcard-answer, .flashcard-placeholder { display: flex; flex-direction: column; justify-content: center; min-height: 68px; color: var(--app-secondary); font-size: .8125rem; }
.flashcard-answer p:last-child { color: var(--app-text); font-size: 1rem; font-weight: 600; }
.app-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; width: 100%; padding: 10px; margin-top: 16px; border: 1px solid var(--app-control); border-radius: 6px; background: var(--app-canvas); font-size: .8125rem; font-weight: 500; }
.app-button:hover { background: var(--app-selected); }
.app-button .icon { width: 16px; height: 16px; }
.practice-hint { min-height: 32px; margin-top: 10px; color: var(--app-secondary); font-size: .75rem; line-height: 1.5; text-align: center; }

/* Reading sections switch to one centered column with uppercase Myriad headings. */
.reading-section { padding-block: 96px; border-top: 1px solid var(--rule); }
.reading { width: min(100% - 2 * var(--inset), 640px); margin-inline: auto; }
.reading h2 { margin-top: 12px; font-size: clamp(1.633rem, 1.3rem + 1.1vw, 2.1425rem); line-height: 1.5; letter-spacing: .02em; text-transform: uppercase; }
.reading-deck { margin-top: 8px; color: var(--muted); }
.plans { margin-top: 44px; }
.plan + .plan { margin-top: 52px; }
.plan-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding-bottom: 6px; border-bottom: 1px solid var(--text); }
.plan h3 { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.4945rem); line-height: 1.5; letter-spacing: .02em; text-transform: uppercase; }
.plan-label { font: 400 .8125rem/1.2 var(--meta); letter-spacing: .02em; text-transform: uppercase; }
.plan > p { margin-top: 14px; color: var(--muted); }
.plan ul { margin-top: 12px; }
.plan li { padding-block: 10px; border-bottom: 1px solid var(--rule); }
.plan > .plan-footnote { margin-top: 14px; font-size: .9375rem; }
.faq-list { margin-top: 32px; border-bottom: 1px solid var(--rule); }
.faq-list details { border-top: 1px solid var(--rule); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; padding-block: 18px; font-weight: 400; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent); }
summary .icon { width: 18px; height: 18px; transition: transform 150ms ease; }
details[open] > summary .icon { transform: rotate(45deg); }
details > p { padding: 0 34px 24px 0; color: var(--muted); }
details > p a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
details > p a:hover { color: var(--accent); }
.faq-list + .read-link { margin-top: 20px; }

/* A quiet ending, like the source's older-posts row: the next step, then small print. */
.closing { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 32px 48px; padding-block: 72px; border-top: 1px solid var(--rule); }
.closing-copy { display: flex; align-items: center; gap: 28px; }
.closing-mascot { width: 84px; flex: none; }
.closing h2 { font: 400 clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem)/1.25 var(--title); letter-spacing: .02em; }
.closing p { margin-top: 6px; color: var(--muted); }
.site-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; padding-block: 24px 32px; }
.copyright { color: var(--muted); font-size: .875rem; }
.footer-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.footer-nav a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; font: 400 .875rem/1.2 var(--title); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.footer-nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }

/* Dictionary example dialog */
.word-dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 24px 28px 28px; border: 1px solid var(--app-border); border-radius: 12px; background: #fff; box-shadow: 0 24px 64px rgb(0 0 0 / 18%); }
.word-dialog::backdrop { background: rgb(15 15 15 / 45%); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.dialog-eyebrow { color: var(--app-secondary); font-size: .75rem; font-weight: 500; }
.word-dialog h2 { font-size: 2.75rem; line-height: 1.3; font-weight: 500; }
.dialog-reading { margin-block: 8px 14px; color: var(--app-secondary); }
.dialog-definition { margin-top: 18px; font-size: 1.125rem; }
.dictionary-example { margin-top: 22px; padding-left: 14px; border-left: 2px solid var(--app-border); }
.dictionary-example > p:first-child { font-size: 1.0625rem; line-height: 2; }
.dictionary-example > p + p { color: var(--app-secondary); font-size: .875rem; }
.dialog-note { margin-top: 24px; color: var(--app-secondary); font-size: .8125rem; }

/* Entries settle into place as they scroll in. Content is never hidden: it starts
   at partial opacity, and the effect is skipped without support or with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .entry { animation: entry-in linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes entry-in { from { opacity: .4; transform: translateY(28px); } }
  }
}

@media (max-width: 1099px) {
  .site-nav { gap: 20px; }
  .header-inner { gap: 28px; }
}
@media (max-width: 899px) {
  :root { --header: 64px; }
  .header-inner { gap: 16px; }
  .menu-toggle { display: inline-grid; }
  .site-nav { display: none; }
  .js .site-nav[data-open="true"] { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: calc(var(--header) + 28px) var(--inset) 40px; overflow-y: auto; background: rgb(250 250 250 / 97%); }
  .js .site-nav[data-open="true"] a { font-size: 2.072rem; line-height: 1.25; min-height: 56px; }
  .js .site-nav[data-open="true"] .nav-updates { display: inline-flex; margin-top: 18px; color: var(--accent); font-size: 1.25rem; }
  html:not(.js) .site-nav { display: flex; }
  .intro { grid-template-columns: minmax(0, 1fr); row-gap: 24px; padding-block: 56px 52px; }
  .journal { grid-template-columns: minmax(0, 1fr); row-gap: 48px; padding-bottom: 72px; }
  .entry { grid-row: auto; display: block; }
  .entry-text { padding-top: 18px; }
  .art-live { min-height: 0; }
  .reading-section { padding-block: 72px; }
  .closing { padding-block: 56px; }
}
@media (max-width: 639px) {
  .header-link { font-size: .875rem; gap: 8px; }
  .header-link .icon { display: none; }
  body { font-size: 1.0633rem; }
  .ribbon-inner { gap: 16px; min-height: 72px; }
  .ribbon-mascot { width: 54px; }
  .ribbon-text { font-size: 1rem; line-height: 1.4; }
  .intro { padding-block: 44px 40px; }
  .intro h1 { font-size: 2.375rem; }
  .definition { gap: 14px; }
  .journal { row-gap: 40px; }
  .entry-text { padding-top: 16px; }
  .art-live { padding: 16px; }
  .demo-source { padding: 16px 16px 0; }
  .demo-output { padding: 14px 16px 6px; }
  .demo-footer { padding: 12px 16px; }
  .practice-preview { padding: 16px; }
  .art-mascot { width: 46%; }
  .reading-section { padding-block: 56px; }
  .plans { margin-top: 32px; }
  details > p { padding-right: 8px; }
  .closing { flex-direction: column; align-items: flex-start; padding-block: 48px; }
  .closing-copy { align-items: flex-start; gap: 18px; }
  .closing-mascot { width: 64px; }
  .site-footer { padding-block: 16px 28px; }
  .footer-nav { width: 100%; margin-left: -2px; gap: 18px; }
}
@media (max-width: 419px) {
  .header-link { display: none; }
  .word-japanese > span { display: block; padding-left: 0; }
}
@media (prefers-contrast: more) {
  :root { --text: #16181a; --muted: #3a3d41; --rule: #85888c; --accent: #8e2a27; --accent-hover: #6f1f1d; }
  .app-ui { --app-text: #201f1b; --app-surface: #f0f0ec; --app-selected: #e4e4de; --app-secondary: #4a4944; --app-border: #84817a; --app-control: #5b5953; --app-accent: #8e2a27; }
  .site-header::before { background: var(--canvas); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .button, .app-button, .tone-button[aria-pressed="true"] { border: 1px solid ButtonText; }
  .tone-button[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -3px; }
  .entry-art { border: 1px solid CanvasText; }
}
