/* Layout: a framed 12-column page with hairline rules and crosshairs; full-bleed logo-blue bands carry a pixel field drawn from the real bits of Chinese text. */
@font-face { font-family: "Noto Sans TC"; src: url("fonts/noto-sans-tc.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --blue: #3756AE;
  --blue-deep: #283F80;
  --blue-ink: #FFFFFF;
  --blue-soft: rgb(255 255 255 / .92);
  --paper: #F3F4F7;
  --panel: #FFFFFF;
  --ink: #141A2E;
  --ink-2: #5B6378;
  --rule: #D8DCE5;
  --off: #E2E5EC;
  --hi: #3756AE;
  --hi-ink: #FFFFFF;

  --f-head: "Noto Sans TC", "PingFang TC", sans-serif;
  --f-body: "Noto Sans TC", "PingFang TC", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, "Noto Sans TC", monospace;
  --f-system: "PingFang TC", "Noto Sans TC", sans-serif;
}
@media (prefers-color-scheme: dark) { :root {
  --paper: #0C1018; --panel: #131927; --ink: #E6E9F0; --ink-2: #939BB0; --rule: #252C3C; --off: #1F2636;
  --hi: #91A8EE; --hi-ink: #0C1018;
} }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(3.75rem + env(safe-area-inset-top, 0px)); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
body { background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.75 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; }
:is(header, .blue) :focus-visible { outline-color: #fff; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 900; margin: 0; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.ln { display: inline-block; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 76rem; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.tag { font: 500 .8125rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.tag::before { content: "[ "; content: "[ " / ""; } .tag::after { content: " ]"; content: " ]" / ""; }

/* bit tile from docs/logo.svg proportions */
.tile { container-type: inline-size; aspect-ratio: 1; display: block; max-width: 100%; background: var(--panel); border-radius: 22.45%; }
.tile .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4.37cqi; padding: 17.23cqi; height: 100%; }
.tile i { border-radius: 3.28cqi; background: var(--off); transition: background-color .25s; }
.tile i.on { background: var(--hi); }

.btn { display: inline-flex; align-items: center; gap: .625rem; padding: .875rem 1.375rem; font: 700 1rem/1 var(--f-body); text-decoration: none; border: 1px solid currentColor; }
.btn .m { font: 500 .75rem/1 var(--f-mono); letter-spacing: .1em; }

/* header sits on the blue hero */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--blue); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; background: var(--blue); color: var(--blue-ink); border-bottom: 1px solid rgb(255 255 255 / .18); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-block-size: 3.75rem; }
.header-inner > * { flex-shrink: 0; white-space: nowrap; }
.brand { display: flex; align-items: center; gap: .625rem; text-decoration: none; font: 900 1.0625rem/1 var(--f-head); letter-spacing: .02em; }
.brand .tile { width: 26px; background: #fff; }
.brand .tile i { background: rgb(55 86 174 / .16); } .brand .tile i.on { background: var(--blue); }
.site-nav { margin-left: auto; font: 500 .8125rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.menu-button { anchor-name: --menu-button; font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 1px solid rgb(255 255 255 / .55); padding: .625rem .875rem; cursor: pointer; }
.site-menu { list-style: none; margin: 0; padding: .375rem; position: fixed; inset: auto; inset-block-start: calc(4.25rem + env(safe-area-inset-top, 0px)); inset-block-start: anchor(--menu-button bottom); inset-inline-end: max(20px, env(safe-area-inset-right, 0px)); inline-size: min(80dvw, 14rem); max-block-size: calc(100dvh - 6rem); margin-block-start: .5rem; overflow: auto; background: var(--panel); color: var(--ink); border: 1px solid var(--rule); box-shadow: 10px 10px 0 rgb(14 18 48 / .35); }
.site-menu a { display: block; padding: .875rem 1rem; text-decoration: none; }
.site-menu a:hover { background: var(--paper); }
.site-header:not(.is-wide) .site-menu :focus-visible { outline-color: var(--hi); outline-offset: -2px; }
.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-menu { position: static; display: flex; align-items: center; gap: 1.75rem; inline-size: auto; max-block-size: none; overflow: visible; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; box-shadow: none; }
.site-header.is-wide .site-menu a { padding: 0; opacity: .85; }
.site-header.is-wide .site-menu a:hover { background: none; opacity: 1; }
.header-inner > .btn { background: #fff; color: var(--blue); border-color: #fff; padding: .625rem 1rem; font: 700 .875rem/1 var(--f-body); }

/* blue bands */
.blue { position: relative; background: var(--blue); color: var(--blue-ink); overflow: hidden; isolation: isolate; }
.blue canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.blue .tag { color: var(--blue-soft); }

.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem); }
.hero h1 { font-size: clamp(2.75rem, 1.375rem + 4.95vw, 5.5rem); margin-top: 1.5rem; }
.hero .lede { margin-top: 1.5rem; font-size: clamp(1.125rem, .5625rem + .91vw, 1.3125rem); line-height: 1.7; color: var(--blue-soft); max-width: 24em; text-wrap: pretty; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.25rem; }
.hero .cta .btn { background: #fff; color: var(--blue); border-color: #fff; }
.hero .cta .req { font: 500 .75rem/1.6 var(--f-mono); letter-spacing: .1em; color: var(--blue-soft); text-transform: uppercase; }
@media (max-width: 56.25em) { .hero .wrap { grid-template-columns: 1fr; } }

/* the Mac window */
.win { background: #FFFFFF; color: #0E1230; border: 1px solid #0E1230; box-shadow: 10px 10px 0 rgb(14 18 48 / .35); min-width: 0; }
.win .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 6px 8px 6px 14px; border-bottom: 1px solid #D9DCEA; font: 500 .75rem/1 var(--f-mono); letter-spacing: .1em; color: #5A6080; }
.win .dots { display: flex; gap: 7px; } .win .dots i { width: 11px; height: 11px; border-radius: 50%; background: #E3E6F2; }
.win .motion { justify-self: end; font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 1px solid #D9DCEA; padding: .375rem .625rem; cursor: pointer; }
.win .motion:hover { color: #0E1230; border-color: #5A6080; }
.win .motion:focus-visible { outline-color: var(--blue); outline-offset: 1px; }
.note { padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3.5vw, 2.5rem); font: 500 clamp(1.25rem, .625rem + 1.42vw, 1.625rem)/1.95 var(--f-body); min-height: 12.5rem; }
.note .line { white-space: pre-wrap; overflow-wrap: anywhere; }
.comp { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: #3756AE; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: #3756AE; vertical-align: -.15em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.still .caret { animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.win .foot { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid #D9DCEA; padding: 10px 14px; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .06em; color: #5A6080; }
.win .foot b { color: #3756AE; font-weight: 700; }
.keyrow { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 1.25rem; min-height: 2.25rem; }
.key { min-width: 2.25rem; height: 2.25rem; padding-inline: .5rem; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .45); color: var(--blue-soft); font: 500 .875rem/1 var(--f-mono); transition: background-color .12s, color .12s; }
.key.hit { background: #fff; color: var(--blue); border-color: #fff; }
.key.space { min-width: 4.5rem; font-size: .625rem; letter-spacing: .12em; }

/* framed body: hairline columns with crosshairs at section joins */
.frame { border-inline: 1px solid var(--rule); max-width: 76rem; margin-inline: auto; }
.sec { position: relative; border-top: 1px solid var(--rule); }
.frame > .sec:first-child { border-top: 0; }
.sec::before, .sec::after { content: "+"; content: "+" / ""; position: absolute; top: -.8em; font: 400 1rem/1 var(--f-mono); color: var(--ink-2); background: var(--paper); padding-inline: 2px; }
.sec::before { left: -.45em; } .sec::after { right: -.45em; }
.sec .in { padding: clamp(3.5rem, 8vw, 6rem) clamp(20px, 4vw, 3.5rem); }
@media (max-width: 76rem) { .frame { border-inline: 0; } .sec::before, .sec::after { display: none; } }

.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spec { padding: 1.75rem clamp(20px, 3vw, 2.25rem); border-left: 1px solid var(--rule); display: grid; gap: .375rem; }
.spec:first-child { border-left: 0; }
.spec .v { font: 700 clamp(2rem, 1rem + 2.55vw, 2.75rem)/1 var(--f-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.spec .v small { font-size: .45em; letter-spacing: 0; color: var(--ink-2); margin-left: .25em; }
.spec p { color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 45em) { .specs { grid-template-columns: 1fr; } .spec { border-left: 0; border-top: 1px solid var(--rule); } .spec:first-child { border-top: 0; } }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split h2 { font-size: clamp(2rem, 1rem + 3.14vw, 3.5rem); margin-top: 1.25rem; }
.split .body { margin-top: 1.25rem; color: var(--ink-2); font-size: 1.125rem; max-width: 26em; }
@media (max-width: 53.75em) { .split { grid-template-columns: 1fr; } }

/* bordered tables used as visuals */
.tbl { width: 100%; border-collapse: collapse; border: 1px solid var(--rule); background: var(--panel); }
.tbl th, .tbl td { padding: 1.125rem 1.25rem; text-align: start; vertical-align: middle; border-top: 1px solid var(--rule); }
.tbl thead th { font: 500 .75rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); background: var(--paper); border-top: 0; }
.tbl thead th:first-child, .tbl tbody th { width: 11rem; border-right: 1px solid var(--rule); }
.tbl tbody th { font: 500 1rem/1.5 var(--f-body); letter-spacing: .08em; color: var(--ink-2); word-break: keep-all; }
.tbl tbody th b { color: var(--ink); font-weight: 700; }
.tbl td { font: 900 clamp(1.75rem, .875rem + 2.34vw, 2.5rem)/1.2 var(--f-head); letter-spacing: -.01em; }
.tbl .chg { background: var(--hi); color: var(--hi-ink); padding-inline: .06em; }
.tbl td small { display: block; font: 400 .8125rem/1.5 var(--f-body); letter-spacing: 0; color: var(--ink-2); margin-top: .25rem; }
@media (max-width: 32.5em) {
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: auto; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl tbody th { width: auto; border-right: 0; padding-bottom: 0; }
  .tbl td { border-top: 0; }
  .tbl tbody tr:first-child th { border-top: 0; }
}

.mix { border: 1px solid var(--rule); background: var(--panel); }
.mix ul { list-style: none; margin: 0; padding: 0; }
.mix li { padding: 1.125rem 1.25rem; border-top: 1px solid var(--rule); font: 700 clamp(1.25rem, .625rem + 1.48vw, 1.625rem)/1.5 var(--f-body); overflow-wrap: anywhere; }
.mix li:first-child { border-top: 0; }
.mix .en { font: 700 .82em/1 var(--f-mono); background: var(--hi); color: var(--hi-ink); padding: .2em .35em; vertical-align: .08em; }
.mix .note2 { padding: .875rem 1.25rem; border-top: 1px solid var(--rule); font: 500 .75rem/1.5 var(--f-mono); letter-spacing: .08em; color: var(--ink-2); background: var(--paper); text-transform: uppercase; }

/* accuracy as a 10x10 bitmap */
.acc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.acc h2 { font-size: clamp(2rem, 1rem + 3.14vw, 3.5rem); margin-top: 1.25rem; }
.acc .body { margin-top: 1.25rem; color: var(--ink-2); font-size: 1.125rem; max-width: 26em; }
.bitmap { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; padding: 14px; border: 1px solid var(--rule); background: var(--panel); }
.bitmap i { aspect-ratio: 1; border-radius: 25%; background: var(--hi); }
.bitmap i.miss { background: var(--off); }
.legend { display: flex; justify-content: space-between; margin-top: .75rem; font: 500 .75rem/1 var(--f-mono); letter-spacing: .1em; color: var(--ink-2); text-transform: uppercase; }
@media (max-width: 47.5em) { .acc { grid-template-columns: 1fr; } }

/* logo story on blue */
.story .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; padding-block: clamp(4rem, 9vw, 7rem); }
.story h2 { font-size: clamp(2rem, 1rem + 3.14vw, 3.5rem); margin-top: 1.25rem; }
.story .body { margin-top: 1.25rem; font-size: 1.125rem; color: var(--blue-soft); max-width: 26em; }
.specimen { position: relative; max-width: 26rem; padding-right: 5rem; }
.specimen .tile { position: relative; background: #fff; box-shadow: 10px 10px 0 rgb(14 18 48 / .35); }
.specimen .tile i { background: #E3E6F2; } .specimen .tile i.on { background: #3756AE; }
.rows { position: absolute; left: calc(100% + .875rem); top: 17.23cqi; bottom: 17.23cqi; display: grid; grid-template-rows: repeat(4, 1fr); row-gap: 4.37cqi; font: 500 clamp(.75rem, .375rem + .84vw, .9375rem)/1 var(--f-mono); letter-spacing: .16em; color: var(--blue-soft); }
.rows span { display: flex; align-items: center; }
.try { margin-top: 2rem; }
.try label { display: block; margin-bottom: .625rem; }
.try input { width: 100%; max-width: 22rem; font: 500 1.25rem/1.4 var(--f-system); padding: .75rem 1rem; border: 1px solid rgb(255 255 255 / .55); background: rgb(255 255 255 / .1); color: #fff; border-radius: 0; }
.try input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.strip { display: flex; gap: .625rem; overflow-x: auto; list-style: none; margin: 0; padding: 1rem .25rem .25rem; }
.chip { flex: none; display: grid; justify-items: center; gap: .375rem; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; font: 700 1rem/1 var(--f-system); }
.chip .tile { width: 48px; background: #fff; }
.chip .tile i { background: #E3E6F2; } .chip .tile i.on { background: #3756AE; }
.chip[aria-pressed="true"] .tile { outline: 2px solid #fff; outline-offset: 3px; }
.strip .empty { font-size: .875rem; color: var(--blue-soft); }
@media (max-width: 53.75em) { .story .wrap { grid-template-columns: 1fr; } }

/* more */
.more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; border: 1px solid var(--rule); background: var(--panel); margin: 2.5rem 0 0; }
.more > li { padding: 1.5rem; border-left: 1px solid var(--rule); display: grid; align-content: start; gap: .5rem; }
.more > li:first-child { border-left: 0; }
.more .tile { width: 36px; background: transparent; margin-bottom: .75rem; }
.more h3 { font-size: 1.125rem; letter-spacing: 0; }
.more p { color: var(--ink-2); font-size: .9375rem; line-height: 1.7; }
.more kbd { font: 500 .8125em/1 var(--f-mono); border: 1px solid var(--rule); padding: .15em .4em; }
.more-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.more-head h2 { font-size: clamp(2rem, 1rem + 3.14vw, 3.5rem); margin-top: 1.25rem; }
@media (max-width: 60em) { .more { grid-template-columns: repeat(2, minmax(0, 1fr)); } .more > li:nth-child(3) { border-left: 0; } .more > li:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 32.5em) { .more { grid-template-columns: 1fr; } .more > li { border-left: 0; border-top: 1px solid var(--rule); } .more > li:first-child { border-top: 0; } }

/* privacy line */
.priv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: center; }
.priv .tile { width: clamp(64px, 10vw, 104px); }
.priv h2 { font-size: clamp(1.75rem, .875rem + 2.21vw, 2.5rem); }
.priv p { margin-top: .75rem; color: var(--ink-2); font-size: 1.0625rem; max-width: 34em; }
@media (max-width: 35em) { .priv { grid-template-columns: 1fr; } }

/* final band */
.final .wrap { padding-block: clamp(5rem, 12vw, 9rem); display: grid; justify-items: start; gap: 1.5rem; }
.final h2 { font-size: clamp(2.75rem, 1.375rem + 5.4vw, 6rem); }
.final .btn { background: #fff; color: var(--blue); border-color: #fff; }
.final .req { font: 500 .75rem/1.6 var(--f-mono); letter-spacing: .1em; color: var(--blue-soft); text-transform: uppercase; }

footer { background: var(--blue-deep); color: rgb(255 255 255 / .72); }
footer .wrap { padding-block: 2rem; font-size: .8125rem; line-height: 1.9; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer b { color: #fff; font-weight: 500; }
footer .mono { font: 500 .75rem/1.9 var(--f-mono); letter-spacing: .1em; }

@media (forced-colors: active) {
  .tile i, .bitmap i { background: Canvas; border: 1px solid GrayText; }
  .tile i.on, .bitmap i:not(.miss) { background: CanvasText; border-color: CanvasText; }
  .tbl .chg, .mix .en, .key.hit { background: Highlight; color: HighlightText; }
  .caret { background: CanvasText; }
}
