/* Peesuto website. Warm neutrals, one accent, two families (system sans, Peesuto Mono).
   Pages are generated by scripts/site.ts; this file is written by hand. */

@font-face { font-family: "Peesuto Mono"; src: url("fonts/peesuto-mono-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Peesuto Mono"; src: url("fonts/peesuto-mono-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root, [data-theme="light"] {
  --paper: #F6F3EE; --surface: #EDE8E0; --sheet: #FCFAF6; --raised: #FFFFFF; --line: #DCD5CA;
  --ink: #1F1B17; --ink-2: #57504A; --ink-3: #6B6359;
  --accent: #B23E1C;
  --key: #FFFFFF; --key-edge: #CBC3B7;
  --btn: #1F1B17; --btn-ink: #F6F3EE;
  --sel: rgba(84, 72, 200, .22);
  --shadow: 0 1px 2px rgba(31,27,23,.06), 0 10px 30px rgba(31,27,23,.08);
  --shadow-lg: 0 2px 6px rgba(20,16,40,.12), 0 24px 60px rgba(20,16,40,.28);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --mono: "Peesuto Mono", ui-monospace, "SF Mono", Menlo, "PingFang SC", monospace;
  --gutter: clamp(16px, 5vw, 40px);
  --wide: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161412; --surface: #201D1A; --sheet: #1B1917; --raised: #2A2622; --line: #36312C;
    --ink: #EEE9E2; --ink-2: #BDB5AA; --ink-3: #A0978B;
    --accent: #F08A66;
    --key: #2C2824; --key-edge: #0E0C0B;
    --btn: #EEE9E2; --btn-ink: #161412;
    --sel: rgba(150, 140, 255, .30);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
[data-theme="dark"] {
  --paper: #161412; --surface: #201D1A; --sheet: #1B1917; --raised: #2A2622; --line: #36312C;
  --ink: #EEE9E2; --ink-2: #BDB5AA; --ink-3: #A0978B;
  --accent: #F08A66;
  --key: #2C2824; --key-edge: #0E0C0B;
  --btn: #EEE9E2; --btn-ink: #161412;
  --sel: rgba(150, 140, 255, .30);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .9em; }
kbd { font-family: var(--mono); }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
[lang="zh-Hans"] p, [lang="zh-Hans"] li, [lang="zh-Hans"] dd { text-wrap: wrap; }
html[lang="ja"] { --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif; --mono: "Peesuto Mono", ui-monospace, "SF Mono", Menlo, "Hiragino Sans", "Noto Sans JP", monospace; }
html[lang="ja"] body { line-height: 1.7; }
[lang="ja"] p, [lang="ja"] li, [lang="ja"] dd { text-wrap: wrap; line-break: strict; }
[lang="ja"] h1, [lang="ja"] h2, [lang="ja"] h3 { word-break: auto-phrase; }
[lang="ja"] .display, [lang="ja"] .h2 { letter-spacing: 0; line-height: 1.18; font-weight: 700; }
[lang="ja"] .display { font-size: clamp(36px, 6.4vw, 84px); }
[lang="ja"] .h2 { font-size: clamp(28px, 4vw, 46px); }
[lang="ja"] .tab, [lang="ja"] .chips span, [lang="ja"] .flow .opt p { font-family: var(--sans); }
.langs { display: inline-flex; gap: clamp(10px, 1.6vw, 18px); }
.wrap { max-width: var(--wide); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--btn); color: var(--btn-ink); padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header nav { height: 60px; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav-link { color: var(--ink-2); text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"] { font-weight: 600; }
@media (max-width: 760px) { .hide-sm { display: none !important; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 16px; padding: 13px 21px; border-radius: 10px; white-space: nowrap; border: 1px solid transparent; transition: opacity .15s, background-color .15s; }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { color: var(--btn-ink); opacity: .86; }
.btn-ghost { color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); background: var(--surface); }
.btn-sm { font-size: 14px; padding: 7px 13px; border-radius: 8px; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* Type */
.display { margin: 0; font-family: var(--mono); font-weight: 700; letter-spacing: -0.035em; line-height: .98; font-size: clamp(44px, 8vw, 104px); }
.h2 { margin: 0; font-family: var(--mono); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(30px, 4.4vw, 52px); }
[lang="zh-Hans"] .display, [lang="zh-Hans"] .h2 { letter-spacing: -0.01em; line-height: 1.12; font-weight: 600; }
[lang="zh-Hans"] .display { font-size: clamp(40px, 7vw, 88px); }
.lede { margin: 18px 0 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.meta { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
section { position: relative; }
.pad { padding-block: clamp(64px, 10vw, 128px); }

/* Hero */
.hero { padding-top: clamp(48px, 7vw, 96px); }
.hero-head { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: end; justify-content: space-between; }
.hero-side { max-width: 25em; display: flex; flex-direction: column; gap: 26px; }
.hero-side p.intro { margin: 0; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Demo panel on the Indigo night field */
.demo { margin: clamp(40px, 6vw, 72px) 0 0; }
.field { position: relative; border-radius: 24px; overflow: hidden; background-color: #3b2f8f;
  background-image: url("field-indigo.jpg");
  background-image: image-set(url("field-indigo.webp") type("image/webp"), url("field-indigo.jpg") type("image/jpeg"));
  background-size: cover; background-position: center; }
.field::after { content: ""; position: absolute; inset: 0; background-image: url("grain.png"); background-size: 128px; opacity: .55; pointer-events: none; mix-blend-mode: overlay; }
.demo .field { padding: clamp(18px, 3.4vw, 44px) clamp(12px, 3vw, 40px) 0; }
.stage-wrap { position: relative; z-index: 1; margin: 0 auto; width: 100%; max-width: 1000px; height: 520px; }
.stage { position: absolute; left: 0; top: 0; width: 1000px; height: 520px; transform-origin: 0 0; font-size: 14px; }
.stage.narrow { width: 440px; height: 730px; }
.demo-bar { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 14px 0 16px; color: rgba(255,255,255,.78); font-family: var(--mono); font-size: 13px; }
.steps { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 auto 0 0; padding: 0; list-style: none; }
.steps li { transition: color .3s; }
.steps li.on { color: #fff; }
.play { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 6px 13px 6px 11px; font: 500 13px var(--sans); cursor: pointer; }
.play:hover { background: rgba(255,255,255,.22); }
.play svg { width: 10px; height: 12px; }
.demo figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.demo video { width: 100%; border-radius: 16px; }

.win { position: absolute; display: flex; flex-direction: column; background: var(--raised); color: var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.win-bar { flex: none; height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); font: 600 13px var(--sans); color: var(--ink-2); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.win-bar b { margin-left: 10px; font-weight: 600; }
.src { left: 30px; top: 70px; width: 400px; height: 290px; }
.src pre { position: relative; margin: 0; padding: 22px 22px; font: 14px/1.7 var(--mono); color: var(--ink); white-space: pre-wrap; flex: 1; display: flex; align-items: center; }
.src pre > span { width: 100%; }
.sel { background-image: linear-gradient(var(--sel), var(--sel)); background-repeat: no-repeat; background-size: 0% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .8s cubic-bezier(.3,.1,.2,1); border-radius: 2px; }
.is-selected .sel { background-size: 100% 100%; }
.is-landed .sel { background-size: 0% 100%; transition-duration: .3s; }
.toast { position: absolute; right: 12px; top: 6px; display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--sans); color: var(--ink-2); background: var(--surface); border-radius: 999px; padding: 4px 10px 4px 6px; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; }
.toast kbd { font-size: 11px; background: var(--raised); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.is-copied .toast { opacity: 1; transform: none; }
.is-keys .toast, .is-landed .toast { opacity: 0; }

.keys { position: absolute; left: 30px; top: 392px; width: 400px; display: flex; justify-content: center; gap: 10px; }
.cap { font-family: var(--mono); font-size: 22px; min-width: 58px; height: 58px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--key); color: var(--ink); border: 1px solid var(--key-edge); border-bottom-width: 3px; border-radius: 11px; transition: transform .12s, border-bottom-width .12s, opacity .3s; }
.cap-enter { margin-left: 14px; opacity: .0; }
.is-keys .cap-mod { transform: translateY(2px); border-bottom-width: 1px; }
.is-chooser .cap-mod { transform: none; border-bottom-width: 3px; }
.is-chooser .cap-enter { opacity: 1; }
.is-enter .cap-enter { transform: translateY(2px); border-bottom-width: 1px; }
.is-landed .cap-enter { opacity: 0; }

.chat { left: 480px; top: 20px; width: 490px; height: 480px; }
.thread { flex: 1; min-height: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: grid; grid-template-columns: 32px 1fr; gap: 0 10px; align-items: start; }
.avatar { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font: 700 14px var(--sans); color: #fff; background: #1F7A68; grid-row: span 2; }
.avatar.you { background: #5B3FC4; }
.msg b { font: 600 14px var(--sans); }
.msg b small { margin-left: 6px; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.msg p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink); }
.msg img { margin-top: 6px; width: 240px; height: 240px; border-radius: 10px; box-shadow: var(--shadow); }
.msg-new { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.is-landed .msg-new { opacity: 1; transform: none; }
.composer { flex: none; margin: 0 14px 14px; height: 44px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; padding: 0 12px; font-size: 14px; color: var(--ink-3); transition: border-color .3s, box-shadow .3s; }
.caret { width: 1.5px; height: 18px; background: var(--ink); margin-right: 2px; opacity: 0; }
.is-copied .composer { border-color: color-mix(in srgb, #5B3FC4 60%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, #5B3FC4 18%, transparent); }
.is-copied .caret { opacity: 1; animation: blink 1s steps(1) infinite; }
.is-landed .composer { border-color: var(--line); box-shadow: none; }
@keyframes blink { 50% { opacity: 0; } }

.stage .chooser { position: absolute; left: 52px; bottom: 64px; width: 280px; opacity: 0; transform: translateY(6px) scale(.97); transform-origin: 20% 100%; transition: opacity .22s ease, transform .3s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.is-chooser .chooser { opacity: 1; transform: none; }
.is-landed .chooser { opacity: 0; transform: scale(.98); }
.is-fade .src, .is-fade .msg-new, .is-fade .keys { opacity: 0; transition: opacity .45s; }

/* narrow stage: stacked */
.stage.narrow .src { left: 20px; top: 16px; width: 400px; height: 196px; }
.stage.narrow .src pre { padding: 14px 18px; font-size: 13px; line-height: 1.6; }
.stage.narrow .keys { left: 20px; top: 226px; width: 400px; }
.stage.narrow .chat { left: 20px; top: 300px; width: 400px; height: 420px; }
.stage.narrow .thread { gap: 12px; padding: 14px 16px; }
.stage.narrow .msg img { width: 220px; height: 220px; }
.stage.narrow .chooser { left: 40px; bottom: 58px; width: 264px; }
.stage.narrow .ch-prev { height: 100px; }
.stage.narrow .ch-prev img { width: 86px; height: 86px; }

/* Chooser (mirrors native/Sources/Peesuto/ChooserWindow.swift) */
.chooser { background: rgba(30, 28, 33, .985); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #F2F0EE; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 50px rgba(8,6,20,.5); font-family: var(--sans); font-size: 13px; }
.ch-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px 9px; font-weight: 600; }
.ch-head span { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: 11px; color: rgba(242,240,238,.62); }
.ch-prev { margin: 0 11px; height: 132px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); display: grid; place-items: center; }
.ch-prev img { width: 116px; height: 116px; border-radius: 6px; }
.ch-rows { list-style: none; margin: 0; padding: 7px 6px 6px; }
.ch-rows li { display: flex; align-items: center; gap: 10px; padding: 3px 8px; border-radius: 7px; height: 30px; }
.ch-rows li svg { width: 16px; height: 16px; color: rgba(242,240,238,.6); flex: none; }
.ch-rows li.on { background: rgba(120, 140, 255, .18); }
.ch-rows li.sep { margin-top: 9px; position: relative; }
.ch-rows li.sep::before { content: ""; position: absolute; left: 6px; right: 6px; top: -6px; border-top: 1px solid rgba(255,255,255,.1); }
.ch-rows kbd, .ch-head kbd { margin-left: auto; min-width: 24px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; font: 600 12px var(--sans); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 6px; color: #F2F0EE; }
.ch-head kbd { margin-left: 0; }
.is-enter .ch-rows li.on { background: rgba(120, 140, 255, .32); }
.is-enter .ch-rows li.on kbd { background: rgba(255,255,255,.22); }

/* Card strip under the hero */
.strip { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.strip ul { list-style: none; margin: 0; padding: 12px var(--gutter) 20px; display: flex; gap: clamp(12px, 1.6vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; justify-content: safe center; }
.strip ul::-webkit-scrollbar { display: none; }
@media (min-width: 761px) { .strip ul { -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 120px), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 120px), transparent); } }
.strip li { flex: none; width: clamp(150px, 16vw, 208px); scroll-snap-align: center; }
.strip li:nth-child(even) { transform: translateY(14px); }
.strip img { width: 100%; aspect-ratio: 1; border-radius: 14px; box-shadow: var(--shadow); }
.strip p { margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--ink-3); }

/* Reads: light paper */
.reads { background: var(--sheet); color: var(--ink); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.tab { font: 500 14px var(--mono); padding: 9px 16px; border-radius: 999px; white-space: nowrap; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--ink-2); }
.tab:hover { color: var(--ink); border-color: var(--ink-3); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[lang="zh-Hans"] .tab { font-family: var(--sans); }
.tabpanel { margin-top: 24px; border-radius: 24px; padding: clamp(20px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; background: color-mix(in oklch, var(--tint, #8A7F70) 11%, var(--paper)); transition: background-color .4s ease; }
.tabpanel[hidden] { display: none; }
.tabpanel .from { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.tabpanel pre { margin: 0; font: 15px/1.65 var(--mono); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; min-height: 170px; }
.tabpanel .arrow { flex: none; width: 48px; color: var(--ink-3); }
.tabpanel .to { flex: 0 1 320px; display: flex; flex-direction: column; gap: 12px; }
.tabpanel .to img { width: 100%; aspect-ratio: 1; border-radius: 14px; box-shadow: var(--shadow); }
.tabpanel .eyebrow { color: var(--ink-2); }
.tabpanel .note { flex: 1 1 100%; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); font-size: 15px; color: var(--ink-2); }
.tabpanel .note strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .tabpanel .arrow { display: none; } }
[data-tint="code"] { --tint: #5B3FC4; } [data-tint="chat"] { --tint: #127A68; } [data-tint="table"] { --tint: #1F6A4B; }
[data-tint="info"] { --tint: #3A4150; } [data-tint="diagram"] { --tint: #2340A0; } [data-tint="quote"] { --tint: #C0622A; }
[data-tint="changelog"] { --tint: #3C8A3A; }

/* Templates: warm paper */
.gallery { background: #EFE9DF; color: var(--ink); }
.gallery-head { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: end; justify-content: space-between; }
.gallery-head p { margin: 0; font-size: 16px; color: var(--ink-2); max-width: 26em; }
.grid { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); grid-auto-flow: dense; gap: 28px 20px; }
.grid li { margin: 0; }
.grid li.big { grid-column: span 2; grid-row: span 2; }
.grid img { width: 100%; aspect-ratio: 1; border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(31,27,23,.06); transition: transform .25s ease; }
.grid li:hover img { transform: translateY(-3px); }
.grid p { margin: 10px 0 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.grid p span { font-weight: 400; color: var(--ink-3); }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; } .grid li.big { grid-column: auto; grid-row: auto; } .grid p { font-size: 14px; } }

/* Shortcuts */
.keys-grid { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; }
.keys-copy { flex: 1 1 400px; min-width: 0; }
.keys-list { margin: 36px 0 0; padding: 0; list-style: none; }
.keys-list > li { display: grid; grid-template-columns: 132px 1fr; gap: 4px 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.keys-list > li:last-child { border-bottom: 1px solid var(--line); }
.caps { display: flex; gap: 5px; }
.caps kbd, .inline-cap { font-size: 15px; min-width: 34px; height: 34px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--key); color: var(--ink); border: 1px solid var(--key-edge); border-bottom-width: 2px; border-radius: 7px; }
.inline-cap { font-size: 12px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 5px; vertical-align: 1px; }
.keys-list h3 { margin: 5px 0 0; font-size: 17px; font-weight: 600; }
.keys-list p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; grid-column: 2; }
.keys-list dl { grid-column: 2; margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: 15px; color: var(--ink-2); }
.keys-list dt { justify-self: start; }
.keys-list dd { margin: 0; }
.keys-list dd strong { color: var(--ink); font-weight: 600; }
.keys-note { margin: 20px 0 0; font-size: 15px; color: var(--ink-2); }
.keys-art { flex: 1 1 320px; display: flex; justify-content: center; }
.keys-art .field { width: min(100%, 440px); min-height: min(440px, 100vw); padding: 40px 20px; display: grid; place-items: center; }
.keys-art .chooser { position: relative; z-index: 1; width: 292px; }
@media (max-width: 520px) { .keys-list > li { grid-template-columns: 1fr; } .keys-list p, .keys-list dl { grid-column: 1; } }

/* Privacy: dark */
.privacy { background: #100E0C; color: var(--ink); }
.flow { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.flow .mac { flex: 3 1 420px; border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: #161412; }
.chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { font-family: var(--mono); font-size: 14px; padding: 10px 14px; border-radius: 10px; background: var(--raised); }
[lang="zh-Hans"] .chips span { font-family: var(--sans); }
.flow .link { flex: 1 1 160px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.flow .link svg { width: 100%; max-width: 180px; height: 14px; color: var(--ink-3); }
.flow .opt { flex: 1 1 200px; border: 1px dashed var(--ink-3); border-radius: 20px; padding: 24px; }
.flow .opt p { margin: 14px 0 0; font-family: var(--mono); font-size: 14px; }
[lang="zh-Hans"] .flow .opt p { font-family: var(--sans); }
.flow .opt p + p { margin-top: 6px; font-family: var(--sans); font-size: 13px; color: var(--ink-2); }
.facts { margin: 56px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 48px; }
.facts div { padding: 20px 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 600; font-size: 17px; }
.facts dd { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }

/* FAQ */
.faq { background: var(--surface); }
.faq .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px 80px; }
.faq-list { min-width: 0; grid-column: span 2; }
@media (max-width: 800px) { .faq-list { grid-column: auto; } }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary svg { flex: none; width: 14px; height: 14px; margin-top: 5px; color: var(--ink-3); transition: transform .2s; }
details[open] summary svg { transform: rotate(45deg); }
details p { margin: 0 0 22px; color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 38em; }

/* Closing */
.closing { background: #CC3D24; color: #fff; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; padding-block: clamp(72px, 11vw, 140px); }
.closing .h2 { font-size: clamp(34px, 6vw, 72px); letter-spacing: -0.035em; }
.closing .btn { background: #fff; color: #1F1B17; }
.closing .btn:hover { color: #1F1B17; opacity: .9; }
.closing .meta { color: #fff; }
.closing :focus-visible { outline-color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.site-footer .wrap { padding-block: 48px 40px; display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.site-footer .who { display: flex; flex-direction: column; gap: 8px; }
.site-footer .who b { font-family: var(--mono); font-size: 18px; }
.site-footer .who span { font-size: 14px; color: var(--ink-3); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; align-items: start; }
.site-footer nav a { color: var(--ink-2); }
.site-footer nav a[aria-current="page"] { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer small { width: 100%; font-size: 13px; color: var(--ink-3); }

/* Prose pages (privacy, changelog, 404) */
.page { padding-block: clamp(56px, 8vw, 96px) clamp(64px, 10vw, 120px); }
.page h1 { color: var(--ink); margin: 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 650; }
.prose { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.prose h2 { margin: 56px 0 0; font-size: 24px; line-height: 1.25; font-weight: 650; color: var(--ink); }
.prose p { margin: 16px 0 0; }
.prose ul { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 10px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .big { margin-top: 32px; font-size: 20px; line-height: 1.5; color: var(--ink); }
.prose .updated { margin: 12px 0 0; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.table-scroll { margin: 24px 0 0; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 520px; }
.prose th { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--ink-3); color: var(--ink); font-weight: 600; }
.prose td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose td:first-child { color: var(--ink); }

.log { max-width: 1120px; margin: 0 auto; }
.log > p { margin: 16px 0 0; font-size: 18px; color: var(--ink-2); max-width: 36em; }
.release { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 48px; }
.release header { flex: 1 1 180px; align-self: start; position: sticky; top: 92px; }
.release h2 { margin: 0; font-size: 22px; font-weight: 650; }
.release header p { margin: 6px 0 0; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.release header .tag { display: inline-block; margin-top: 10px; font: 600 12px var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.release .body { flex: 3 1 min(100%, 480px); max-width: 42em; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.release .body > :first-child { margin-top: 0; }
.release .body p { margin: 16px 0 0; }
.release .body h3 { margin: 28px 0 0; font-size: 15px; font-weight: 650; color: var(--ink); }
.release .body ul { margin: 12px 0 0; padding: 0 0 0 18px; display: grid; gap: 12px; }
.release .body li { padding-left: 4px; }
.release .body code { font-size: 14px; background: var(--surface); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .release header { position: static; } }

.notfound { text-align: center; }
.notfound p { margin: 18px auto 0; max-width: 28em; color: var(--ink-2); font-size: 18px; }
.notfound .cta-row { justify-content: center; margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
