@font-face {
  font-family: 'Fusion Pixel Mono';
  src: url('/font/fusion-pixel-mono.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #080808;
  --surface: #151515;
  --line: #343434;
  --text: #f2f1ee;
  --muted: #b4b4b1;
  --pixel: 'Fusion Pixel Mono', ui-monospace, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --corner: polygon(0 4px, 2px 4px, 2px 2px, 4px 2px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 2px) calc(100% - 4px), calc(100% - 2px) calc(100% - 2px), calc(100% - 4px) calc(100% - 2px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 4px), 0 calc(100% - 4px));
}
*, *::before, *::after { box-sizing: border-box }
html { scroll-padding-top: 5.5rem }
body { margin: 0; color: var(--muted); background: var(--bg); font: 1.0625rem/1.6 var(--sans) }
h1, h2, h3, .brand, .install, .btn, .locale, .demo-bar, .demo-caption { font-family: var(--pixel); font-weight: 400; font-synthesis: none }
h1, h2, h3, strong, b, summary { color: var(--text) }
h1, h2 { text-wrap: balance }
h1 { margin: 0; font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1.12 }
h2 { margin: 0 0 1.4rem; font-size: clamp(1.875rem, 3.6vw, 2.625rem); line-height: 1.18 }
h3 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 .55rem }
p { margin: 0 0 1rem }
img { max-width: 100%; height: auto }
a { color: var(--text); text-underline-offset: .22em; text-decoration-thickness: 1px }
a:hover { color: white; text-decoration-thickness: 2px }
:focus-visible { outline: 2px solid #ffe19d; outline-offset: 4px }
.wrap { width: min(100% - 2.5rem, 58rem); margin-inline: auto }
.site-top { position: sticky; top: 0; z-index: 3; background: var(--bg); border-bottom: 2px solid #202020 }
.bar, .bar nav, .brand, .hero-action, .demo-bar, .view-switch, .foot .wrap, .foot nav { display: flex; align-items: center }
.bar { min-height: 4.5rem; justify-content: space-between; gap: .8rem }
.brand { gap: .7rem; text-decoration: none; font-size: 1.5rem; line-height: 1; white-space: nowrap }
.brand img { image-rendering: pixelated }
.bar nav { gap: 1.25rem }
.install, .btn { display: inline-flex; align-items: center; justify-content: center; background: var(--text); color: #101010; clip-path: var(--corner); padding: .75rem 1.35rem; font-size: 1.5rem; line-height: 1; text-align: center; text-decoration: none }
.install:hover, .btn:hover { color: black; background: #dcdcd7 }
.install.android { background: #2c2c2b; color: var(--text) }
.install.android:hover { background: #444 }
.install:focus-visible, .btn:focus-visible { outline: 0; box-shadow: inset 0 0 0 4px #89702b }
.bar .install { min-height: 2.35rem; font-size: 1.125rem; padding: .45rem .85rem }
.locale { position: relative; font-size: 1.125rem; color: var(--text) }
.locale summary { cursor: pointer; display: flex; align-items: center; gap: .35rem; padding: .4rem 0; list-style: none }
.locale summary::-webkit-details-marker { display: none }
.locale summary::after { content: ''; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); margin-inline-start: .2rem }
.locale summary span { font-family: var(--sans) }
.locale-list { position: absolute; top: 100%; right: 0; z-index: 4; min-width: 11rem; max-height: 65vh; overflow-y: auto; padding: .4rem; background: #191919; border: 1px solid #454545; box-shadow: 0 8px 24px #000a }
.locale-list a { display: block; padding: .22rem .55rem; font-family: var(--sans); font-size: 1rem; text-decoration: none }
.locale-list a:hover, .locale-list [aria-current] { background: #333 }
.home-hero { padding: clamp(2.3rem, 5vw, 4rem) 0 2.15rem; text-align: center }
.home-hero h1 { max-width: 51rem; margin: 0 auto }
.home-hero > p { max-width: 43rem; margin: 1.25rem auto 0; font-size: 1.2rem; line-height: 1.5; text-wrap: pretty }
.hero-action { justify-content: center; flex-wrap: wrap; gap: .65rem 1.2rem; margin-top: 1.6rem }
.hero-action span, .stamp { font-size: .95rem; color: #aaa }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; margin: -1px; clip-path: inset(50%); white-space: nowrap }
.demo { margin: 0; padding: 0; min-inline-size: 0; border: 1px solid #464643; background: var(--surface) }
.demo-bar { min-height: 2.8rem; padding: .4rem .85rem; gap: .4rem 1rem; justify-content: space-between; flex-wrap: wrap; font-size: 1.125rem; color: #deddd7 }
.view-switch { gap: .2rem; padding: .12rem; border: 1px solid #4a4a47 }
.view-switch label { padding: .18rem .7rem; cursor: pointer; line-height: 1.22 }
#original:checked ~ .demo-bar label[for=original], #translated:checked ~ .demo-bar label[for=translated] { background: #e5e5de; color: #131310 }
#original:focus-visible ~ .demo-bar label[for=original], #translated:focus-visible ~ .demo-bar label[for=translated] { outline: 2px solid #ffe19d; outline-offset: 2px }
.poster { position: relative; overflow: hidden; container-type: inline-size; background: #e2d4bf }
.poster img { display: block; width: 100%; aspect-ratio: 2.65; object-fit: cover }
.poster-type { position: absolute; left: 7%; top: 50%; transform: translateY(-50%); width: 49%; color: #233820; font-family: Georgia, 'Times New Roman', serif; line-height: 1.04 }
.poster-type span { display: block; margin-bottom: .8em; font: 600 clamp(.75rem, 2.15cqw, 1.2rem)/1.1 var(--sans); letter-spacing: .075em; text-transform: uppercase }
.poster-type b { display: block; font-size: clamp(1.5rem, 6.4cqw, 4rem); font-weight: 500; color: inherit; text-wrap: balance }
.poster-type strong { display: inline-block; margin-top: .55em; font-weight: 500; font-size: clamp(1.05rem, 3.6cqw, 2.25rem); color: inherit }
#original:checked ~ .poster .result, #translated:checked ~ .poster .source { display: none }
.demo-caption { padding: .3rem .85rem; color: #babbb4; font-size: 1rem; text-align: right }
.block { padding-top: clamp(2.9rem, 7vw, 5.1rem) }
.block > p { max-width: 45rem }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 32%); gap: clamp(1.5rem, 7vw, 5rem); align-items: start }
.instructions > div, .use-grid > div { border-top: 2px solid var(--line); padding: 1.15rem 0 }
.instructions p, .use-grid p { margin: 0 }
.real-panel { display: block; width: 100%; max-width: 300px; margin-inline: auto; border: 1px solid #393645 }
.use-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem }
.question { padding: .95rem 0; border-top: 1px solid var(--line) }
.question:last-of-type { border-bottom: 1px solid var(--line) }
.question summary { position: relative; padding-left: 1.6rem; cursor: pointer; list-style: none; font-weight: 550 }
.question summary::-webkit-details-marker { display: none }
.question summary::before { content: '+'; position: absolute; left: .1rem; font-family: monospace; color: #bbb }
.question[open] summary::before { content: '−' }
.question p { margin: .6rem 0 0 1.6rem }
.more-help, .contact { margin-top: 1.5rem }
.document { max-width: 44rem; margin: 3.2rem auto 0 }
.document .stamp { margin-top: .8rem }
.document .doc-intro { margin: 1.4rem 0 }
.document h2 { margin-top: 2.1rem; font-size: 1.875rem }
.document .question + p { margin-top: 1.5rem }
.foot { border-top: 2px solid #252525; margin-top: 4rem; padding: 1.5rem 0 2.5rem }
.foot .wrap { flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between }
.foot nav { flex-wrap: wrap; gap: .7rem 1.15rem; font-size: .95rem }
.foot .brand { font-size: 1.15rem }
.foot a { color: #ccc }
/* Long-form guides and benchmark tables migrated from the previous site. */
.guide .hero { padding: 3rem 0 1rem }
.guide h2 { margin: 2.6rem 0 1rem }
.guide .lead { font-size: 1.25rem; margin: 1rem 0 }
.guide .shot { display: block; margin: 1.5rem 0; border: 1px solid var(--line) }
.guide .actions, .chips { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1rem 0 }
.chips { list-style: none; padding: 0 }
.chips li { border: 1px solid var(--line); padding: .24rem .6rem }
.cards, .ways, .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.2rem }
.card, .way, .stat { display: block; background: var(--surface); padding: 1.2rem; text-decoration: none }
.card .more { text-decoration: underline }
.stat b { display: block; font: 2rem/1.2 var(--pixel) }
.scroll { overflow-x: auto }
table { border-collapse: collapse; width: 100%; font-size: 1rem }
th, td { padding: .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top }
th { color: var(--text) }
.qa, .guide .cta { margin-top: 1.6rem }
.prose { max-width: 47rem }
kbd, code { background: #242424; padding: .1em .3em }
@media (max-width: 640px) {
  .wrap { width: calc(100% - 2rem) }
  .bar { min-height: 3.8rem }
  .bar nav { gap: .75rem }
  .locale-list { position: fixed; top: 3.8rem; left: 1rem; right: 1rem; min-width: 0 }
  .bar .brand span { display: none }
  .home-hero { text-align: left; padding-top: 2rem }
  .home-hero > p { font-size: 1.0625rem; margin: 1rem 0 0 }
  .hero-action { justify-content: flex-start }
  .how-grid, .use-grid { grid-template-columns: 1fr; gap: 0 }
  .real-panel { max-width: 250px; margin-top: .8rem }
  .demo-bar { font-size: 1rem; padding-inline: .5rem }
  .view-switch label { padding-inline: .4rem }
  .poster img { aspect-ratio: 2.2 }
  .demo-caption { font-size: .9375rem }
  .foot .wrap { align-items: flex-start; flex-direction: column }
}
