@charset "UTF-8";

:root {
  color-scheme: light;
  --bg: #f8f8f5;
  --surface: #fff;
  --ink: #202620;
  --muted: #62675f;
  --line: #dedfd7;
  --orange: #bd3c18;
  --orange-bright: #ea633e;
  --orange-tint: #f9eee8;
  --green: #356148;
  --focus: #235eaf;
  --sidebar: 244px;
  --page-pad: clamp(28px, 4.2vw, 76px);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; font-size: 16px; line-height: 1.7; }
button, input, select, textarea { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, summary, select, input[type="range"], input[type="checkbox"] { cursor: pointer; }
button { color: inherit; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
button:disabled { cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
p, h1, h2, h3, h4 { margin: 0; }
svg.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 18px; color: white; background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.mobile-bar { display: none; }
.sidebar { width: var(--sidebar); position: fixed; inset: 0 auto 0 0; z-index: 30; border-right: 1px solid var(--line); background: #f0f1eb; padding: 32px 22px 20px; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 750; letter-spacing: -.035em; line-height: 1.2; }
.brand-mark { position: relative; display: grid; place-content: center; width: 40px; height: 43px; flex-shrink: 0; background: var(--ink); color: var(--bg); font: italic 700 42px/1 Georgia, serif; border-radius: 5px; padding: 0 6px 4px 0; }
.brand-mark span { color: var(--orange-bright); position: absolute; bottom: -1px; right: 6px; font-style: normal; }
.brand small { display: block; font-size: 9px; letter-spacing: .08em; margin-top: 7px; font-weight: 600; }
.sidebar-intro { font-size: 14px; color: var(--muted); line-height: 1.8; margin: 27px 8px 24px; }
.nav-label { margin: 6px 10px 10px; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.nav-label--chapters { margin-top: 27px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 43px; margin: 3px 0; padding: 9px 10px; border-radius: 5px; font-size: 14px; color: #50564e; transition: background .16s, color .16s; white-space: nowrap; }
.nav-item:hover { background: #e6e8df; color: var(--ink); }
.nav-item.active { background: #e9e4d9; color: #8b351c; font-weight: 650; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 20px; width: 20px; font-weight: 400; line-height: 1; }
.letter-icon { font: 16px Georgia, serif; }
.nav-tag { font-size: 10px; margin-left: auto; background: #e4e6de; padding: 0 4px; color: #62675f; border-radius: 3px; line-height: 1.8; }
.sidebar-bottom { margin-top: auto; padding: 26px 8px 0; }
.sidebar-note { border-top: 1px solid #d8dbd0; padding-top: 20px; display: flex; gap: 10px; align-items: center; }
.mini-spark { color: var(--orange); font-size: 26px; }
.sidebar-note p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.sidebar-bottom > a { display: flex; justify-content: space-between; margin-top: 20px; font-size: 13px; font-weight: 650; }
.sidebar-bottom > small { display: block; margin-top: 10px; font-size: 10px; color: var(--muted); }
.main { margin-left: var(--sidebar); padding: 0 var(--page-pad); max-width: 1840px; }
.topline { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); gap: 20px; }
.topline > div { display: flex; align-items: center; gap: 25px; }
.topline a { color: var(--ink); display: flex; align-items: center; gap: 10px; }
.edition { font: 12px "Segoe UI", sans-serif; letter-spacing: .03em; }
.hero { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: clamp(25px, 4vw, 75px); padding: 58px 0 48px; }
.eyebrow { font-size: 11px; font-weight: 650; line-height: 1.6; letter-spacing: .13em; color: var(--muted); }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 10px; white-space: nowrap; letter-spacing: .09em; font-size: 10px; }
.orange-line { background: var(--orange-bright); width: 22px; height: 3px; }
h1 { font-size: clamp(46px, 4.9vw, 79px); letter-spacing: -.065em; line-height: 1.23; font-weight: 750; margin: 27px 0 24px; position: relative; width: max-content; }
.hero-emphasis { color: var(--orange); position: relative; }
.hero-emphasis::after { content: ""; height: 9px; background: #e9bba7; position: absolute; inset: auto 7% -4px 0; clip-path: polygon(0 30%, 100% 0, 99% 45%, 4% 95%); }
.hero-asterisk { font-size: 51px; color: var(--orange-bright); display: inline-block; position: absolute; right: -37px; top: 12px; transform: rotate(8deg); font-weight: 400; }
.hero-description { color: var(--muted); font-size: 16px; line-height: 1.9; }
.text-link { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; background: transparent; padding: 0; font-weight: 600; line-height: 1.6; }
.text-link:hover, .source-note a:hover, .download-meta a:hover { color: var(--orange); }
.start-reading { margin-top: 26px; }
.keycap { display: grid; place-content: center; font-size: 17px; width: 25px; height: 26px; border: 1px solid #bfc4b8; border-radius: 4px; margin-left: 4px; font-weight: 400; }
.hero-topics { display: flex; gap: 0; margin-top: 35px; font-size: 12px; color: var(--muted); }
.hero-topics span + span::before { content: "/"; margin: 0 12px; color: #adb3a6; }
.download-card { border: 1px solid #d4d8cc; border-radius: 9px; padding: 22px 24px 0; background: #f0f2e9; align-self: stretch; box-shadow: 0 5px 0 #e9ebe2; }
.download-card-top { display: flex; align-items: center; justify-content: space-between; }
.label-caps { font-size: 12px; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.version-pill { font: 11px/1.3 Consolas, monospace; border: 1px solid #c7ccbd; color: #59614f; padding: 4px 6px; border-radius: 3px; }
.file-visual { padding: 20px 0 16px; display: flex; flex-direction: column; align-items: center; }
.file-sheet { position: relative; width: 131px; height: 145px; background: #fffcf5; border: 1px solid #bcc3af; border-radius: 4px; padding: 39px 18px 14px; transform: rotate(-7deg); box-shadow: 6px 7px 0 #dfe5d4; }
.file-corner { position: absolute; right: -1px; top: -1px; width: 27px; height: 27px; background: #e0e5d6; border-left: 1px solid #bcc3af; border-bottom: 1px solid #bcc3af; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.file-type { font: 700 23px/1 Consolas, monospace; letter-spacing: -.06em; }
.file-type > span { font-size: 13px; letter-spacing: -.06em; }
.file-lines { display: flex; flex-direction: column; gap: 8px; margin-top: 17px; }
.file-lines i { height: 3px; background: #cfd4c6; }
.file-lines i:nth-child(2) { width: 75%; }
.file-lines i:nth-child(3) { width: 88%; }
.file-spark { position: absolute; color: var(--orange-bright); bottom: -12px; right: -20px; font-size: 48px; line-height: 1; }
.file-caption { font-size: 10px; margin-top: 15px; color: #727967; }
.download-card h2 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 7px; }
.download-card > p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.button { min-height: 46px; padding: 11px 18px; border: 1px solid transparent; border-radius: 5px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.5; transition: background .15s, transform .15s; }
.button:active { transform: translateY(1px); }
.button--orange { background: var(--orange); color: white; }
.button--orange:hover { background: #a73314; }
.button--ink { background: var(--ink); color: white; }
.button--ink:hover { background: #3c483b; }
.button--outline { border-color: #bfc4b7; background: transparent; color: var(--ink); }
.button--outline:hover { background: #e7ebdf; }
.download-primary { display: flex; margin-top: 19px; width: 100%; }
.button-extension { margin-left: auto; opacity: .85; font-size: 12px; font-weight: 400; }
.download-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; margin-top: 11px; padding-bottom: 18px; color: var(--muted); }
.download-meta a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.install-guide { margin: 0 -24px; border-top: 1px solid #d7dccd; padding: 0 24px; }
.install-guide summary { font-size: 14px; display: flex; justify-content: space-between; padding: 11px 0; color: #4b5441; }
.install-guide ol { padding-left: 18px; font-size: 14px; color: var(--muted); }
.install-guide li + li { margin-top: 8px; }
.install-guide p { font-size: 14px; margin-bottom: 15px; color: var(--orange); }
code { font-family: Consolas, "SFMono-Regular", monospace; overflow-wrap: anywhere; }
.intro-strip { border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); padding: 20px 0; gap: 18px; }
.intro-strip p { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; line-height: 1.6; }
.strip-icon { grid-row: span 2; align-self: center; font-size: 24px; color: #737c68; }
.intro-strip strong { font-size: 13px; font-weight: 650; }
.intro-strip p > span:last-child { color: var(--muted); font-size: 11px; }
.section { padding: 59px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 { font-size: clamp(24px, 2.25vw, 34px); line-height: 1.45; letter-spacing: -.05em; font-weight: 700; margin-top: 10px; }
.accent-dot { color: var(--orange); }
.section-aside, .chapter-label { color: var(--muted); font-size: 12px; white-space: nowrap; margin-bottom: 6px; }
.chapter-label { border: 1px solid var(--line); border-radius: 3px; padding: 3px 8px; }
.section-lead { color: var(--muted); font-size: 16px; line-height: 1.9; margin-top: 14px; max-width: 58em; }
.compare-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 20px; gap: 15px; }
.segmented { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: #efefe9; }
.segmented button { background: transparent; color: var(--muted); padding: 7px 13px; font-size: 14px; border-radius: 3px; min-height: 36px; line-height: 1.5; white-space: nowrap; }
.segmented button[aria-pressed="true"] { background: white; color: var(--ink); box-shadow: 0 1px 4px #26301a12; font-weight: 650; }
.segmented button:hover { color: var(--orange); }
.demo-disclaimer { font-size: 10px; color: var(--muted); white-space: nowrap; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.comparison-card { min-width: 0; background: white; border: 1px solid #d8dbd1; border-radius: 6px; overflow: hidden; }
.comparison-card--good { border-color: #a8b9a0; }
.comparison-caption { display: flex; align-items: center; gap: 8px; padding: 13px 15px; font-size: 12px; }
.comparison-caption > span:last-child { font-size: 10px; margin-left: auto; color: var(--muted); }
.verdict { display: inline-flex; flex-shrink: 0; justify-content: center; align-items: center; width: 19px; height: 19px; border-radius: 50%; font-size: 14px; line-height: 1; }
.verdict--bad { color: #9b473a; background: #f5e7e3; }
.verdict--good { color: #2d5d40; background: #e3ecde; }
.browser-chrome { height: 29px; border-block: 1px solid #e3e5dc; background: #f3f4ef; display: flex; align-items: center; gap: 4px; padding: 0 12px; }
.browser-chrome > i { border: 1px solid #bfc4b7; border-radius: 50%; width: 5px; height: 5px; }
.browser-chrome > span { margin: auto; padding-right: 20px; color: #7b8273; font-size: 8px; font-family: Consolas, monospace; }
.example { position: relative; padding: 18px 24px; min-height: 322px; overflow: hidden; }
.example-nav { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.example-nav > strong { font-size: 17px; letter-spacing: -.055em; font-weight: 800; }
.example-nav > strong > span { font-size: 8px; vertical-align: super; margin-left: 1px; }
.example-nav > span { font-size: 8px; }
.example-body { position: relative; z-index: 1; padding-top: 25px; }
.example-eyebrow { font-size: 8px; display: block; margin-bottom: 9px; letter-spacing: .05em; }
.example h3 { font-size: clamp(20px, 1.8vw, 29px); line-height: 1.35; letter-spacing: -.06em; margin-bottom: 12px; font-weight: 700; }
.example-body > p { font-size: 9px; line-height: 1.9; max-width: 28em; }
.example-actions { display: flex; align-items: center; gap: 15px; margin-top: 20px; font-size: 8px; }
.example-cta { padding: 7px 11px; background: #edab68; color: #242a23; border-radius: 2px; font-weight: 650; }
.example-secondary { border-bottom: 1px solid #a9b6a3; padding: 3px 0; }
.example-footer { display: flex; gap: 17px; font-size: 7px; margin-top: 24px; opacity: .8; }
.example--good { background: #26332b; color: #f0f3e9; }
.example--good .example-eyebrow, .example--good .example-body > p { color: #c3cfbd; }
.example-art { position: absolute; right: -22px; bottom: 32px; width: 106px; height: 136px; z-index: 0; opacity: .88; }
.example-art > span { position: absolute; background: #e5a86a; width: 85px; height: 85px; border-radius: 50%; bottom: 0; right: 0; }
.example-art > i { position: absolute; border: 1px solid #88a07d; width: 85px; height: 85px; top: 0; left: 0; }
.example-art > b { position: absolute; background: #91a17e; height: 60px; width: 60px; bottom: 0; left: 0; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.example--bad { background: linear-gradient(135deg, #ede4fc, #dfeafa); color: #645798; padding: 18px 24px; }
.example--bad .example-body { text-align: center; padding-top: 19px; }
.example--bad h3 { font-size: 23px; letter-spacing: .02em; font-weight: 500; line-height: 1.4; margin-bottom: 4px; }
.example--bad .example-eyebrow { background: #fff9a6; color: #8a6f38; font-size: 11px; letter-spacing: 0; display: inline-block; padding: 1px 10px; border-radius: 15px; margin-bottom: 17px; }
.example--bad .example-body > p { font-size: 11px; line-height: 1.5; max-width: none; color: #7f78ad; }
.example--bad .example-actions { justify-content: center; margin-top: 9px; gap: 8px; }
.example--bad .example-cta { background: #9180ce; color: white; border-radius: 18px; font-size: 11px; padding: 8px 17px; }
.example--bad .example-secondary { background: #f4b3ba; color: #5e4b83; border: 0; border-radius: 18px; padding: 8px 17px; font-size: 11px; }
.example--bad .example-footer { justify-content: center; margin-top: 27px; gap: 10px; opacity: 1; color: #77679c; }
.example--bad .example-footer > span { background: #d9d2ef; padding: 4px 10px; border-radius: 3px; }
.example--bad .example-art { display: none; }
.comparison-takeaway { display: flex; gap: 8px; padding: 12px 14px; font-size: 11px; color: var(--muted); line-height: 1.6; border-top: 1px solid #e2e5da; }
.comparison-takeaway > span { color: var(--orange); font-weight: 700; }
[data-focus="hierarchy"] .example--bad { background: #26332b; color: #f0f3e9; }
[data-focus="hierarchy"] .example--bad .example-body { text-align: left; padding-top: 25px; }
[data-focus="hierarchy"] .example--bad .example-eyebrow { font-size: 17px; color: #f0f3e9; padding: 0; background: none; margin-bottom: 12px; }
[data-focus="hierarchy"] .example--bad h3 { font-size: 17px; line-height: 1.5; }
[data-focus="hierarchy"] .example--bad .example-body > p { font-size: 13px; color: #c3cfbd; margin-top: 12px; }
[data-focus="hierarchy"] .example--bad .example-actions { justify-content: start; margin-top: 20px; }
[data-focus="hierarchy"] .example--bad .example-cta, [data-focus="hierarchy"] .example--bad .example-secondary { font-size: 10px; padding: 6px 9px; border-radius: 2px; background: #edab68; color: #26332b; }
[data-focus="hierarchy"] .example--bad .example-footer { display: none; }
[data-focus="spacing"] .example--bad { background: #26332b; color: #f0f3e9; padding: 12px 9px; }
[data-focus="spacing"] .example--bad .example-body { padding-top: 5px; text-align: left; }
[data-focus="spacing"] .example--bad .example-eyebrow { background: none; color: #c3cfbd; padding: 0; font-size: 8px; margin: 0 0 28px; }
[data-focus="spacing"] .example--bad h3 { font-size: clamp(20px, 1.8vw, 29px); letter-spacing: -.06em; font-weight: 700; margin-bottom: 0; }
[data-focus="spacing"] .example--bad .example-body > p { font-size: 9px; color: #c3cfbd; margin-left: 20px; }
[data-focus="spacing"] .example--bad .example-actions { justify-content: start; margin: 3px 0 0; gap: 3px; }
[data-focus="spacing"] .example--bad .example-cta { background: #edab68; color: #26332b; border-radius: 2px; font-size: 8px; padding: 7px 11px; }
[data-focus="spacing"] .example--bad .example-secondary { background: none; color: white; border-bottom: 1px solid #a9b6a3; padding: 3px; border-radius: 0; font-size: 8px; }
[data-focus="spacing"] .example--bad .example-footer { justify-content: start; margin: 40px 0 0 17px; }
[data-focus="spacing"] .example--bad .example-footer span { padding: 0; background: none; color: #c3cfbd; }
[data-focus="color"] .example--bad { background: #f4ecf6; padding: 18px 24px; color: #87779e; }
[data-focus="color"] .example--bad .example-body { text-align: left; padding-top: 25px; }
[data-focus="color"] .example--bad .example-eyebrow { background: none; color: #b2a8b6; font-size: 8px; padding: 0; margin-bottom: 9px; }
[data-focus="color"] .example--bad h3 { font-size: clamp(20px, 1.8vw, 29px); letter-spacing: -.06em; font-weight: 700; margin-bottom: 12px; }
[data-focus="color"] .example--bad .example-body > p { color: #b4a7b9; font-size: 9px; line-height: 1.9; }
[data-focus="color"] .example--bad .example-actions { justify-content: start; gap: 15px; margin-top: 20px; }
[data-focus="color"] .example--bad .example-cta { background: #ccc1e2; color: #9384b1; font-size: 8px; padding: 7px 11px; border-radius: 2px; }
[data-focus="color"] .example--bad .example-secondary { background: #f2bf93; color: #876045; padding: 7px 11px; border-radius: 2px; font-size: 8px; }
[data-focus="color"] .example--bad .example-footer { justify-content: start; margin-top: 24px; gap: 17px; }
[data-focus="color"] .example--bad .example-footer > span { background: none; padding: 0; }
.principle-note { display: flex; align-items: start; gap: 14px; padding: 16px 19px; margin-top: 19px; background: #f0f1e9; border-left: 2px solid #a7b397; border-radius: 0 4px 4px 0; }
.note-symbol { color: #6a765d; font-size: 22px; line-height: 1.2; }
.principle-note p { font-size: 14px; color: var(--muted); line-height: 1.9; }
.principle-note strong { color: var(--ink); }
.source-note { margin-top: 22px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.source-note summary { color: #68705f; width: max-content; font-size: 11px; }
.source-note summary::before { content: "+"; margin-right: 7px; }
.source-note[open] summary { margin-bottom: 10px; }
.source-note[open] summary::before { content: "−"; }
.source-note a { color: #475e3e; text-decoration: underline; text-underline-offset: 3px; }
.editorial-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; margin-top: 30px; }
.editorial-copy h3 { font-size: 24px; letter-spacing: -.045em; line-height: 1.5; margin-bottom: 16px; }
.editorial-copy > p { color: var(--muted); font-size: 16px; line-height: 1.95; }
.plain-list { padding: 0; list-style: none; margin: 20px 0 0; }
.plain-list li { display: flex; gap: 13px; font-size: 14px; color: var(--muted); margin-top: 12px; }
.plain-list li > span { color: var(--ink); font-weight: 600; flex-shrink: 0; }
.route-panel { border: 1px solid var(--line); background: white; border-radius: 6px; padding: 22px; }
.segmented--full { display: flex; }
.segmented--full button { flex: 1; }
.route-kicker { font-size: 12px; color: var(--orange); margin: 22px 0 8px; }
.route-panel h3 { font-size: 18px; letter-spacing: -.03em; }
.route-panel > p:not(.route-kicker) { font-size: 15px; color: var(--muted); line-height: 1.9; margin-top: 10px; }
.brief-example { margin-top: 22px; border-top: 1px dashed #d2d8c8; padding-top: 16px; }
.brief-example > p { font-size: 15px; color: var(--muted); line-height: 1.9; margin: 8px 0 13px; }
.brief-example .text-link { font-size: 14px; }
.type-playground { margin-top: 28px; border: 1px solid var(--line); background: white; border-radius: 6px; overflow: hidden; }
.type-specimen { padding: 12px 25px; }
.specimen-line { padding: 20px 0; display: grid; grid-template-columns: 85px 1fr 70px; gap: 20px; align-items: baseline; }
.specimen-line + .specimen-line { border-top: 1px solid #e5e7df; }
.type-token, .type-value { color: var(--muted); font: 10px/1.6 Consolas, monospace; }
.type-value { text-align: right; }
.display-specimen { font-size: clamp(26px, 3vw, 45px); line-height: 1.3; letter-spacing: -.05em; font-weight: 700; }
.heading-specimen { font-size: 28px; line-height: 1.4; letter-spacing: -.04em; font-weight: 650; }
.specimen-line--body { align-items: start; }
#type-sample { font-size: 16px; line-height: 1.8; color: #4e5649; max-width: 38em; }
.playground-controls { background: #eeefe7; padding: 17px 25px; display: flex; align-items: center; gap: 35px; border-top: 1px solid var(--line); }
.playground-controls > div { flex: 1; }
label, .motion-controls label { font-size: 14px; }
.playground-controls label, .range-control label, .motion-controls label { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 8px; font-size: 14px; }
output { font-family: Consolas, monospace; font-size: 11px; color: var(--orange); }
input[type="range"] { display: block; width: 100%; margin: 0; accent-color: var(--orange); height: 20px; }
.playground-controls > .text-link { margin-left: 5px; font-size: 12px; white-space: nowrap; }
.rule-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 24px; }
.rule-row p { font-size: 14px; }
.rule-row strong { display: block; font-size: 14px; margin-bottom: 5px; }
.rule-row span { color: var(--muted); display: block; line-height: 1.9; }
.code-disclosure { margin-top: 25px; border: 1px solid var(--line); border-radius: 5px; background: #f1f2ec; overflow: hidden; }
.code-disclosure summary { display: flex; justify-content: space-between; padding: 13px 16px; font-size: 14px; gap: 20px; align-items: center; }
.code-disclosure summary > span:first-child { display: flex; gap: 10px; align-items: center; }
details[open] > summary > span:last-child:not(:first-child) { transform: rotate(45deg); }
.code-wrap { background: #232c25; color: #dce8ce; padding: 20px; position: relative; }
pre { margin: 0; overflow-x: auto; font-size: 13px; line-height: 1.8; padding-top: 20px; tab-size: 2; }
pre code { overflow-wrap: normal; }
.copy-code { position: absolute; top: 9px; right: 12px; border: 1px solid #66735f; border-radius: 3px; padding: 3px 8px; background: #303c30; color: #e2e9db; font-size: 11px; }
.system-grid { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.spacing-lab, .color-lab { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 22px; min-width: 0; }
.lab-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.lab-heading h3 { font-size: 17px; letter-spacing: -.025em; }
.lab-tag { font-size: 10px; white-space: nowrap; color: var(--muted); }
.spacing-lab > p, .color-lab > p { font-size: 15px; color: var(--muted); line-height: 1.9; margin-top: 10px; }
.spacing-preview { --demo-space: 16px; border: 1px solid #d9decf; background: #f3f5ee; margin-top: 22px; padding: calc(var(--demo-space) * 1.5); min-height: 200px; display: flex; align-items: start; flex-direction: column; }
.preview-label { color: #51623f; font-size: 10px; background: #e2e8d8; padding: 2px 5px; border-radius: 2px; margin-bottom: calc(var(--demo-space) / 2); }
.spacing-preview h4 { font-size: 19px; line-height: 1.5; letter-spacing: -.04em; margin-bottom: calc(var(--demo-space) / 2); }
.spacing-preview p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.tiny-button { background: var(--ink); color: white; font-size: 10px; padding: 6px 10px; border-radius: 3px; margin-top: var(--demo-space); }
.range-control { margin-top: 20px; }
.range-ticks { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-top: 5px; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 26px; }
.swatch { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: start; height: 92px; padding: 10px; border-radius: 4px; border: 1px solid transparent; position: relative; }
.swatch[aria-pressed="true"]::after { content: ""; position: absolute; inset: -4px; border: 1px solid var(--ink); border-radius: 7px; }
.swatch span { font: 24px/1.2 Georgia, serif; }
.swatch small { font-size: 10px; }
.swatch--ink { background: var(--ink); color: white; }
.swatch--paper { background: #f2f3ec; border-color: #dce0d1; }
.swatch--orange { background: var(--orange); color: white; }
.swatch--green { background: #356148; color: white; }
.color-explanation { margin-top: 23px; }
.color-explanation code { font-size: 11px; }
.color-explanation p { font-size: 14px; color: var(--muted); margin-top: 8px; min-height: 80px; line-height: 1.9; }
.color-lab p.contrast-note { font-size: 10px; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 15px; }
.state-list { padding: 0; margin: 22px 0 0; list-style: none; }
.state-list li { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.state-symbol { width: 30px; height: 30px; border: 1px solid #ced5c3; color: #536649; border-radius: 5px; display: grid; place-content: center; font-size: 16px; flex-shrink: 0; }
.state-list strong { display: block; font-size: 14px; }
.state-list li > div > span { color: var(--muted); display: block; font-size: 14px; line-height: 1.8; margin-top: 2px; }
.feedback-lab { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 25px; }
.feedback-lab h3 { font-size: 20px; margin: 20px 0; letter-spacing: -.025em; }
#note-form > label:first-child { display: block; font-size: 14px; }
#note-form > label:first-child span { color: var(--muted); font-weight: 400; }
#note-title { display: block; background: #fafbf7; color: var(--ink); border: 1px solid #bcc5b2; border-radius: 4px; padding: 10px 12px; width: 100%; margin-top: 7px; font-size: 14px; }
.check-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; accent-color: #3c5c32; margin: 0; }
.simulation-option { margin: 16px 0; }
#save-note { width: 100%; }
#save-note:disabled { background: #58644f; }
.form-status { min-height: 52px; margin-top: 13px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.form-status[data-state="success"] { color: #2d633b; }
.form-status[data-state="error"] { color: #a13120; }
.lab-footnote { font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.motion-lab { margin-top: 28px; border: 1px solid #cdd4c4; border-radius: 6px; background: white; overflow: hidden; }
.motion-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 8px; gap: 15px; }
.motion-preference { font-size: 12px; white-space: nowrap; }
.motion-preference-note { font-size: 10px; color: var(--muted); padding: 0 22px 16px; }
.motion-comparison { display: grid; grid-template-columns: 1fr 1fr; }
.motion-example { min-width: 0; border-block: 1px solid #e0e4d8; }
.motion-example + .motion-example { border-left: 1px solid #e0e4d8; }
.motion-example-heading { display: flex; align-items: center; gap: 7px; padding: 13px 18px; font-size: 11px; }
.motion-example-heading > span:last-child { font-size: 9px; margin-left: auto; color: var(--muted); }
.motion-stage { height: 205px; display: flex; align-items: center; justify-content: center; background-color: #f3f4ef; background-image: radial-gradient(#cfd5c7 .7px, transparent .7px); background-size: 14px 14px; overflow: hidden; padding: 25px; }
.demo-save { display: inline-flex; gap: 7px; align-items: center; border-radius: 5px; background: var(--ink); color: white; padding: 11px 20px; font-size: 13px; box-shadow: 0 4px 0 #c6cebd; }
.motion-example--bad .demo-save { background: #79669f; box-shadow: 0 4px 0 #d4c9e5; }
.reveal-card, .continuity-card { width: min(230px, 100%); border: 1px solid #c6cfbc; border-radius: 5px; background: #fff; padding: 15px; box-shadow: 0 4px 0 #dde3d3; }
.reveal-card strong, .continuity-card strong { font-size: 14px; display: block; }
.reveal-card p, .continuity-card p { font-size: 11px; margin-top: 5px; color: var(--muted); }
.reveal-card small { display: block; color: var(--green); font-size: 10px; margin-bottom: 5px; }
.continuity-card { display: flex; gap: 13px; align-items: center; }
.continuity-mark { color: var(--orange); background: #f9ece5; width: 42px; height: 47px; border: 1px solid #edcdbd; display: grid; place-content: center; font-size: 22px; flex-shrink: 0; }
.motion-controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 30px; align-items: center; padding: 21px 22px; background: #f5f6f0; }
.motion-controls > div { min-width: 0; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; border: solid #68705d; border-width: 0 1px 1px 0; width: 6px; height: 6px; position: absolute; right: 12px; top: 14px; transform: rotate(45deg); pointer-events: none; }
select { appearance: none; border: 1px solid #cbd3bf; width: 100%; background: white; border-radius: 4px; padding: 7px 30px 7px 9px; font-size: 13px; color: var(--ink); }
.motion-controls .button { min-height: 40px; font-size: 12px; align-self: end; margin-bottom: 1px; }
.motion-insight { border-top: 1px solid #dde2d5; padding: 17px 22px; font-size: 14px; background: #edf1e5; }
.motion-insight > p { font-size: 14px; margin-top: 4px; color: var(--muted); line-height: 1.9; }
.checklist-panel { display: grid; grid-template-columns: .65fr 1.35fr; margin-top: 28px; border: 1px solid #d1d8c8; border-radius: 6px; overflow: hidden; }
.checklist-progress { padding: 26px; background: #edf0e5; }
.checklist-progress strong { display: block; font-size: 17px; }
.checklist-progress span { font-size: 12px; color: #58654b; display: block; margin-top: 10px; }
progress { appearance: none; display: block; width: 100%; height: 5px; border: 0; border-radius: 4px; overflow: hidden; margin-top: 16px; background: #d6decc; }
progress::-webkit-progress-bar { background: #d6decc; }
progress::-webkit-progress-value { background: #506e3c; border-radius: 4px; }
progress::-moz-progress-bar { background: #506e3c; }
.checklist-progress p { font-size: 11px; color: var(--muted); line-height: 1.9; margin-top: 16px; }
.checklist-items { background: white; padding: 10px 23px 19px; }
.check-item { display: flex; align-items: start; gap: 12px; padding: 13px 0; }
.check-item + .check-item { border-top: 1px solid #e7eae0; }
.check-item input { margin-top: 3px; }
.check-item > span { font-size: 14px; line-height: 1.8; color: var(--muted); }
.check-item strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 1px; }
.check-item:has(input:checked) strong::after { content: "已检查"; font-size: 9px; font-weight: 400; color: #457035; margin-left: 10px; }
#reset-checklist { font-size: 11px; margin-top: 12px; color: var(--muted); }
.closing { display: flex; align-items: center; justify-content: space-between; background: #e9eddf; border: 1px solid #d3dac7; border-radius: 7px; padding: 38px 35px; margin-top: 45px; gap: 40px; position: relative; }
.closing-symbol { position: absolute; font-size: 60px; color: #97a783; top: 22px; right: 31px; line-height: 1; }
.closing h2 { font-size: clamp(27px, 2.7vw, 39px); letter-spacing: -.05em; line-height: 1.4; margin: 14px 0; }
.closing > div > p:last-child { font-size: 12px; color: var(--muted); }
.closing-actions { display: flex; flex-direction: column; gap: 11px; align-self: end; min-width: 225px; padding-top: 58px; }
.closing-actions small { font-size: 9px; color: var(--muted); text-align: center; }
.footer { display: flex; justify-content: space-between; align-items: center; padding: 29px 0 33px; gap: 25px; font-size: 10px; color: var(--muted); }
.footer-brand { color: var(--ink); font-weight: 650; font-size: 11px; }
.footer-brand span { color: #a7ae9f; margin: 0 6px; }
.footer p { font-size: 9px; line-height: 1.8; }
.footer > a:last-child { white-space: nowrap; }
.toast { position: fixed; bottom: 25px; left: calc(50% + var(--sidebar) / 2); transform: translateX(-50%); z-index: 80; max-width: calc(100vw - 40px); padding: 12px 20px; border-radius: 6px; background: #243023; color: white; box-shadow: 0 5px 25px #1c281c26; font-size: 14px; }
.toast[hidden] { display: none; }
.copy-dialog { width: min(580px, calc(100% - 32px)); border: 1px solid #c9d1be; border-radius: 8px; padding: 24px; background: var(--bg); color: var(--ink); }
.copy-dialog::backdrop { background: #17201699; }
.copy-dialog h2 { font-size: 22px; }
.copy-dialog p { font-size: 14px; color: var(--muted); margin: 12px 0; }
.copy-dialog textarea { width: 100%; min-height: 220px; font-size: 14px; line-height: 1.7; border: 1px solid #aebaa1; padding: 12px; resize: vertical; }
.copy-dialog form { display: flex; justify-content: end; margin-top: 14px; }
.no-js .js-only { display: none !important; }
.no-js .swatch { cursor: default; }
@media (min-width: 1700px) { :root { --page-pad: 76px; } .main { max-width: 1750px; } }
@media (max-width: 1250px) {
  :root { --sidebar: 218px; --page-pad: 34px; }
  .sidebar { padding-inline: 15px; }
  .brand { font-size: 20px; gap: 9px; }
  .brand small { font-size: 8px; }
  .hero { gap: 27px; grid-template-columns: 1.15fr 1fr; }
  h1 { font-size: 55px; }
  .hero-asterisk { font-size: 38px; right: -24px; }
  .hero-copy > .eyebrow { font-size: 8px; letter-spacing: .06em; }
  .hero-description { font-size: 14px; }
  .download-card { padding-inline: 20px; }
  .install-guide { margin-inline: -20px; padding-inline: 20px; }
  .comparison-caption > span:last-child { display: none; }
  .example { padding-inline: 18px; }
  .example-art { opacity: .45; right: -48px; }
  .editorial-split { gap: 30px; }
  .section-heading h2 { font-size: 27px; }
  .motion-example-heading { flex-wrap: wrap; }
  .motion-example-heading > span:last-child { width: 100%; margin-left: 26px; }
  .motion-controls { gap: 18px; }
  .segmented button { padding-inline: 10px; }
  .closing { padding-inline: 26px; gap: 22px; }
  .footer { flex-wrap: wrap; }
}
@media (max-width: 1000px) {
  :root { --sidebar: 0px; --page-pad: 34px; }
  html { scroll-padding-top: 84px; }
  .mobile-bar { display: flex; position: sticky; top: 0; z-index: 45; height: 65px; border-bottom: 1px solid var(--line); background: #f8f8f5f5; padding-inline: var(--page-pad); align-items: center; justify-content: space-between; }
  .mobile-bar .brand { font-size: 19px; }
  .mobile-bar .brand-mark { width: 30px; height: 32px; font-size: 32px; }
  .mobile-bar .brand-mark span { right: 4px; }
  .icon-button { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: white; border-radius: 4px; padding: 7px 11px; font-size: 12px; }
  .sidebar { inset: 65px 0 0 auto; width: 285px; transform: translateX(100%); visibility: hidden; box-shadow: -15px 15px 40px #20262014; transition: transform .2s, visibility .2s; }
  .sidebar.is-open { transform: none; visibility: visible; }
  .sidebar-intro, .desktop-brand { display: none; }
  .sidebar .nav-item { min-height: 44px; }
  .main { margin-left: 0; }
  .topline { height: 56px; font-size: 11px; }
  .topline > div { gap: 17px; }
  .hero { padding-top: 37px; }
  .hero-copy > .eyebrow { font-size: 9px; }
  .hero h1 { font-size: clamp(48px, 7.4vw, 68px); }
  .no-js .sidebar { display: none; }
}
@media (max-width: 700px) {
  :root { --page-pad: 22px; }
  .topline .edition { display: none; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 34px 0; }
  .hero-copy > .eyebrow { font-size: 9px; letter-spacing: .07em; }
  .hero h1 { font-size: clamp(47px, 11vw, 72px); margin-top: 22px; margin-bottom: 23px; }
  .hero-asterisk { right: -34px; font-size: 44px; }
  .hero-description { font-size: 15px; }
  .hero-topics { margin-top: 23px; font-size: 11px; }
  .download-card { padding-top: 20px; padding-inline: 22px; }
  .file-visual { padding: 15px 0 5px; position: absolute; right: 26px; top: 56px; }
  .file-sheet { width: 90px; height: 108px; padding: 31px 10px 10px; }
  .file-type { font-size: 17px; }
  .file-type > span { font-size: 10px; }
  .file-lines { gap: 6px; margin-top: 10px; }
  .file-lines i { height: 2px; }
  .file-spark { font-size: 33px; bottom: -7px; right: -10px; }
  .file-caption { display: none; }
  .download-card { position: relative; }
  .download-card h2 { font-size: 18px; margin-top: 28px; max-width: calc(100% - 100px); min-height: 27px; }
  .download-card > p { max-width: calc(100% - 95px); font-size: 12px; }
  .download-primary { margin-top: 28px; }
  .install-guide { margin-inline: -22px; padding-inline: 22px; }
  .download-meta { font-size: 10px; }
  .intro-strip { gap: 10px; padding: 18px 0; }
  .intro-strip p { display: flex; flex-direction: column; gap: 4px; }
  .strip-icon { display: none; }
  .intro-strip strong { font-size: 13px; }
  .intro-strip p > span:last-child { font-size: 10px; max-width: 7em; }
  .section { padding: 38px 0; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 26px; letter-spacing: -.05em; line-height: 1.5; }
  .section-heading .eyebrow { font-size: 9px; letter-spacing: .1em; }
  .section-aside, .chapter-label { display: none; }
  .section-lead { font-size: 16px; margin-top: 13px; }
  .compare-toolbar { flex-direction: column; align-items: start; gap: 10px; margin-top: 22px; }
  .segmented { max-width: 100%; }
  .segmented button { font-size: 13px; padding-inline: 9px; }
  .comparison-grid { grid-template-columns: 1fr; gap: 17px; }
  .comparison-caption > span:last-child { display: inline; font-size: 9px; }
  .example { min-height: 322px; padding: 19px 25px; }
  .example h3, [data-focus="spacing"] .example--bad h3, [data-focus="color"] .example--bad h3 { font-size: 27px; }
  .example-body > p { font-size: 10px; }
  .example-art { opacity: .8; right: -12px; }
  .example--bad h3 { font-size: 24px; }
  [data-focus="hierarchy"] .example--bad h3 { font-size: 17px; }
  .comparison-takeaway { font-size: 11px; }
  .principle-note { padding: 14px; gap: 8px; }
  .principle-note p { font-size: 14px; }
  .editorial-split { grid-template-columns: 1fr; gap: 25px; margin-top: 23px; }
  .editorial-copy h3 { font-size: 23px; }
  .route-panel { padding: 20px; }
  .route-panel > p:not(.route-kicker), .brief-example > p { font-size: 15px; }
  .route-kicker { font-size: 11px; }
  .type-specimen { padding: 0 17px; }
  .specimen-line { grid-template-columns: 1fr auto; gap: 9px; padding: 20px 0; }
  .type-token { grid-column: 1; font-size: 9px; }
  .type-value { grid-column: 2; grid-row: 1; }
  .specimen-line > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .heading-specimen { font-size: 23px; }
  .display-specimen { font-size: 33px; }
  .playground-controls { flex-wrap: wrap; gap: 20px; padding: 17px; }
  .playground-controls > div { flex-basis: 42%; }
  .playground-controls .text-link { margin-left: 0; font-size: 11px; }
  .rule-row { grid-template-columns: 1fr; gap: 17px; }
  .rule-row p { display: grid; grid-template-columns: 1fr; }
  .rule-row strong { font-size: 14px; }
  .rule-row span { font-size: 13px; }
  .system-grid { grid-template-columns: 1fr; gap: 18px; }
  .spacing-lab, .color-lab { padding: 20px; }
  .spacing-lab > p, .color-lab > p, .color-explanation p { font-size: 15px; }
  .swatch { height: 95px; }
  .color-explanation p { min-height: 0; }
  .feedback-lab { padding: 21px; }
  .state-list li > div > span { font-size: 14px; }
  .form-status { font-size: 14px; }
  .motion-toolbar { flex-direction: column; align-items: start; padding: 15px; gap: 15px; }
  .motion-preference-note { padding-inline: 15px; }
  .motion-comparison { grid-template-columns: 1fr; }
  .motion-example + .motion-example { border-left: 0; border-top: 0; }
  .motion-stage { height: 175px; }
  .motion-example-heading { flex-wrap: nowrap; }
  .motion-example-heading > span:last-child { width: auto; margin-left: auto; }
  .motion-controls { grid-template-columns: 1fr 1fr; padding: 18px 15px; gap: 20px 16px; }
  .motion-controls .button { grid-column: 1 / -1; width: 100%; }
  .motion-insight { padding: 16px; }
  .motion-insight p { font-size: 14px; }
  .checklist-panel { grid-template-columns: 1fr; }
  .checklist-progress { padding: 22px; }
  .checklist-progress > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .checklist-progress strong { font-size: 16px; }
  .checklist-progress span { margin: 0; white-space: nowrap; }
  .checklist-progress p { font-size: 12px; margin-top: 13px; }
  .checklist-items { padding-inline: 19px; }
  .check-item > span { font-size: 14px; }
  .check-item strong { font-size: 14px; }
  .closing { padding: 29px 23px; flex-direction: column; align-items: stretch; gap: 24px; margin-top: 30px; }
  .closing-symbol { font-size: 43px; right: 20px; top: 22px; }
  .closing .eyebrow { font-size: 8px; max-width: 80%; }
  .closing h2 { font-size: 33px; }
  .closing-actions { padding-top: 0; align-self: stretch; }
  .closing-actions small { font-size: 10px; }
  .footer { align-items: start; padding-top: 24px; gap: 15px; }
  .footer-brand { width: 100%; font-size: 11px; }
  .footer p { font-size: 10px; flex: 1; }
  .footer > a:last-child { font-size: 11px; }
  .source-note { font-size: 12px; }
}
@media (max-width: 360px) {
  :root { --page-pad: 16px; }
  .hero h1 { font-size: 45px; }
  .hero-asterisk { font-size: 34px; right: -22px; }
  .hero-topics span + span::before { margin-inline: 9px; }
  .hero-copy > .eyebrow { font-size: 8px; }
  .download-card { padding-inline: 17px; }
  .install-guide { margin-inline: -17px; padding-inline: 17px; }
  .file-visual { right: 24px; }
  .download-card h2 { font-size: 16px; }
  .download-card > p { font-size: 11px; }
  .download-meta { font-size: 9px; }
  .segmented button { padding-inline: 7px; font-size: 12px; }
  .comparison-caption { padding-inline: 12px; }
  .comparison-caption > span:last-child { font-size: 8px; }
  .motion-example-heading { padding-inline: 13px; font-size: 10px; }
  .motion-example-heading > span:last-child { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .button:active { transform: none; }
}
html[data-reduced-motion="true"] { scroll-behavior: auto; }
html[data-reduced-motion="true"] *, html[data-reduced-motion="true"] *::before, html[data-reduced-motion="true"] *::after { transition: none !important; }
html[data-reduced-motion="true"] .button:active { transform: none; }
@media print {
  .sidebar, .mobile-bar, .topline, .js-only, .closing-actions, .toast, .source-note, .code-disclosure { display: none !important; }
  .main { margin: 0; padding: 0; }
  .section { break-inside: avoid; padding-block: 25px; }
  .hero { padding-top: 0; }
  .download-card { box-shadow: none; }
  body { font-size: 12px; }
}
