:root {
  color-scheme: light;
  --paper: #f5f2e9;
  --white: #fffdf8;
  --ink: #222720;
  --muted: #53594e;
  --line: #d3cfc1;
  --soft: #ece8dc;
  --forest: #293c31;
  --accent: #9e3d1d;
  --orange: #f2b18b;
  --serif: "Noto Serif CJK SC", "Songti SC", "SimSun", "STSong", Georgia, serif;
  --sans: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.75 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a, summary, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.27; font-weight: 700; }
p { color: var(--muted); }
.wrap { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: .08em; font-size: 11px; }
.eyebrow { color: var(--forest); font-size: 12px; font-weight: 700; letter-spacing: .105em; }
.eyebrow i, .release-link i { display: inline-block; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; margin-right: 7px; vertical-align: .12em; }
.skip { position: fixed; z-index: 4; top: 12px; left: 12px; transform: translateY(-150%); background: var(--white); padding: 8px 14px; }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 750; white-space: nowrap; line-height: 1.15; }
.brand img { flex: none; display: block; }
.site-nav { display: flex; gap: clamp(12px, 2.15vw, 33px); align-items: center; font-size: 13px; color: var(--muted); }
.site-nav a { white-space: nowrap; padding-block: 9px; }
.site-nav a:hover, .site-nav [aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 7px; }
.release-link { white-space: nowrap; border: 1px solid var(--line); padding: 7px 11px; font-size: 12px; font-weight: 700; }
.release-link:hover, .release-link[aria-current] { border-color: var(--ink); }
.release-link span { margin-left: 7px; }

.hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; padding-block: clamp(48px, 6.7vw, 104px) clamp(52px, 6vw, 96px); }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy .eyebrow span { color: var(--accent); margin-inline: 4px; }
.hero h1 { font-family: var(--serif); font-size: clamp(52px, 6.65vw, 101px); line-height: 1.13; letter-spacing: -.09em; }
.hero h1 span { color: var(--accent); }
.hero-copy > p:not(.eyebrow) { margin-block: 25px 31px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.85; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 25px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 16px; min-height: 46px; font-weight: 700; }
.primary { background: var(--forest); color: var(--white); }
.primary:hover { background: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: underline; text-decoration-color: #9c9e90; text-underline-offset: 5px; min-height: 38px; }
.text-link:hover { color: var(--accent); text-decoration-color: currentColor; }

.hero-figure { position: relative; isolation: isolate; padding: clamp(18px, 3vw, 40px) clamp(14px, 2.7vw, 34px) 0; min-width: 0; }
.hero-figure::before { content: ""; position: absolute; z-index: -1; inset: 0 0 27px; border: 1px solid #dbd6c7; background-color: #eae5d7; background-image: linear-gradient(#dcd6c580 1px, transparent 1px), linear-gradient(90deg,#dcd6c580 1px, transparent 1px); background-size: 22px 22px; }
.sheet { position: relative; border: 1px solid #bdbbad; background: var(--white); box-shadow: 6px 8px 0 #c3bfae; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding: 11px clamp(12px, 2vw, 23px); background: #f0eee4; font-size: 12px; font-weight: 700; }
.sheet-top i { display: inline-block; width: 7px; height: 7px; border: 1px solid var(--forest); border-radius: 50%; vertical-align: 1px; margin-right: 3px; }
.sheet-top .mono, figcaption { color: var(--muted); }
.sheet-inner { padding: clamp(13px, 2.2vw, 28px); }
.sheet-title { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; }
.sheet-title .mono { display: block; color: var(--muted); }
.sheet-title strong { display: block; font: 700 clamp(21px, 2.25vw, 30px)/1.28 var(--serif); }
.doc-icon { color: var(--forest); border: 1px solid #d8ddcf; background: #edf1e7; width: 45px; height: 49px; display: grid; place-items: center; flex: none; }
.doc-icon svg { width: 28px; height: 32px; }
.record-list { padding: 0; list-style: none; display: grid; gap: 5px; }
.record-list li { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 8px; border-bottom: 1px solid #e8e4db; }
.record-list strong, .record-list small { display: block; }
.record-list strong { font-size: 13px; }
.record-list small { font-size: 11px; color: var(--muted); line-height: 1.45; }
.tick { display: grid; place-items: center; background: #e6ebde; color: var(--forest); width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 700; }
.tick.wait { font: 700 10px var(--mono); color: #7c311a; background: #f6ddc8; }
.record-badge { font-size: 10px; color: var(--forest); white-space: nowrap; }
.record-list .record-active { background: #f9eee0; border: 1px solid #ecd0b6; }
.record-active .record-badge { color: #7c311a; }
.sheet-bottom { font-size: 11px; margin-top: 14px; color: var(--muted); }
.sheet-bottom span { color: var(--accent); margin-right: 4px; font-size: 17px; line-height: 1; }
.sheet-bottom code { margin-left: 4px; font-family: var(--mono); }
figcaption { margin: 18px -4px 0; font-size: 11px; text-align: right; }
figcaption .mono { color: var(--accent); margin-right: 6px; }

.essentials { border-top: 1px solid var(--line); padding-top: 31px; }
.section-head { display: grid; grid-template-columns: 1fr 3fr; align-items: start; gap: 12px; }
.section-label { display: inline-flex; gap: 9px; align-items: center; color: var(--forest); font-size: 12px; font-weight: 750; letter-spacing: .1em; white-space: nowrap; }
.section-label > span { font: 11px/1.4 var(--mono); color: var(--accent); border: 1px solid #b1ad9f; padding: 2px 6px; }
.section-head h2, .home-lower h2, .page-heading h1, .release-panel h2 { font-family: var(--serif); font-size: clamp(29px, 4vw, 56px); letter-spacing: -.045em; }
.section-head p { margin-top: 9px; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin-top: 32px; border-block: 1px solid var(--line); }
.strip li { padding: 22px 25px 26px; border-left: 1px solid var(--line); }
.strip li:first-child { padding-left: 0; border-left: 0; }
.strip .mono { color: var(--accent); }
.strip h3 { margin-block: 9px 7px; font-size: clamp(17px, 2vw, 23px); }
.strip p { font-size: 14px; }
.home-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; padding-block: 48px 68px; }
.home-lower > div + div { border-left: 1px solid var(--line); padding-left: 45px; }
.home-lower h2 { font-size: clamp(28px, 3vw, 43px); margin-block: 11px 6px; }
.home-lower .text-link { margin-top: 7px; }

main > .wrap:not(.hero):last-child { margin-bottom: 68px; }
main > .wrap.home-lower:last-child { margin-bottom: 0; }
.page-heading { padding-block: clamp(42px, 7vw, 90px) 30px; max-width: 820px; }
.page-heading h1 { font-size: clamp(38px, 5.5vw, 75px); margin-block: 13px 10px; }
.page-heading > p { font-size: clamp(15px, 1.5vw, 18px); max-width: 650px; }
.work-demo { background: var(--white); border: 1px solid var(--line); }
.demo-heading { padding: 19px 23px; display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--forest); color: var(--white); }
.demo-heading .eyebrow { color: #f4c9a7; }
.demo-heading h2 { margin-top: 4px; font: 700 clamp(21px, 3.2vw, 34px)/1.3 var(--serif); }
.step-controls { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.step-controls button, .filter-controls button { border: 0; background: transparent; color: var(--ink); padding: 10px 14px; min-height: 44px; }
.step-controls button:hover, .filter-controls button:hover { background: var(--soft); }
.step-controls button[aria-pressed="true"] { box-shadow: inset 0 -3px var(--accent); color: var(--accent); font-weight: 700; }
.step-panel { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; padding: clamp(17px, 3vw, 36px); }
.step-panel + .step-panel { border-top: 1px solid var(--line); }
.step-panel h3 { font: 700 clamp(23px, 3vw, 37px)/1.3 var(--serif); margin: 5px 0 9px; }
.demo-record, .note { background: var(--soft); border-left: 3px solid #a1694d; padding: 14px 16px; align-self: center; }
.demo-record .mono { color: var(--accent); }
.demo-record p { margin-top: 5px; overflow-wrap: anywhere; }
.note { margin-top: 24px; }
.note .eyebrow { margin-bottom: 3px; }
.spec-list { border-top: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: minmax(220px, 1fr) 1.8fr; gap: 16px; border-bottom: 1px solid var(--line); padding-block: 18px; }
.spec-list dt h2 { font-size: 19px; margin-bottom: 7px; }
.spec-list dd { color: var(--muted); align-self: center; }
.status-label { display: inline-block; background: #e3e9dc; color: #344b3c; font-size: 11px; padding: 2px 7px; }
.skill-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-block: 1px solid var(--line); padding-block: 8px; }
.filter-controls { display: flex; flex-wrap: wrap; gap: 3px; }
.filter-controls button[aria-pressed="true"] { background: var(--forest); color: var(--white); }
.skill-toolbar label { font-weight: 650; font-size: 13px; }
.skill-toolbar input { width: min(205px, 55vw); margin-left: 5px; padding: 7px 10px; color: var(--ink); background: var(--white); border: 1px solid #b6b1a4; }
.list-count { font-size: 13px; margin-block: 14px; }
.skill-list { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); border-top: 1px solid var(--line); }
.skill-list li { border-bottom: 1px solid var(--line); padding: 17px 20px; min-width: 0; }
.skill-list li > div { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.skill-list .mono { color: var(--muted); overflow-wrap: anywhere; }
.skill-list h2 { margin: 7px 0; font-size: 20px; }
.privacy-grid, .guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.privacy-grid article, .guide-list li { padding: 15px 0; border-top: 1px solid var(--line); }
.privacy-grid h2, .guide-list h2 { font-size: clamp(18px, 2.5vw, 25px); margin: 6px 0 8px; }
.guide-list { list-style: decimal-leading-zero inside; padding: 0; }
.guide-list li::marker { color: var(--accent); font: 12px var(--mono); }
.faq { max-width: 830px; margin-top: 32px; }
.faq > h2 { font: 700 32px/1.3 var(--serif); margin-bottom: 11px; }
.faq details { border-top: 1px solid var(--line); padding-block: 13px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq summary::marker { color: var(--accent); }
.faq details p { margin: 8px 0 0 18px; }
.release-panel { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; padding: clamp(20px, 4vw, 42px); background: var(--forest); color: var(--white); }
.release-panel p { color: #e2e5d9; }
.release-panel .eyebrow { color: #f5cfb0; }
.release-panel .eyebrow i { background: var(--orange); }
.release-panel h2 { margin-block: 7px 10px; }
.release-meta { align-self: center; border: 1px solid #829689; padding: 14px; }
.release-meta strong { display: block; font-size: 23px; }
.release-panel + .actions { margin-top: 20px; }
.release-files { margin-block: 28px; }
.release-files h2 { font-family: var(--serif); font-size: 26px; margin-block: 0 12px; }
.release-file { border: 1px solid var(--line); padding: clamp(15px, 3vw, 25px); margin-bottom: 12px; }
.release-file h3 { margin: 0 0 12px; }
.release-file dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px 16px; margin: 0 0 16px; }
.release-file dt { font-weight: 700; }
.release-file dd { color: var(--muted); margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.download-unavailable { cursor: default; color: var(--muted); background: transparent; border: 1px solid var(--line); font: inherit; }
.missing { min-height: 45vh; }

footer { border-top: 1px solid var(--line); background: #eeeadf; }
.footer-grid { display: grid; grid-template-columns: 1.75fr 1fr 1fr 1fr; gap: 18px; padding-block: 28px; }
.footer-grid > div > a:not(.brand) { display: block; font-size: 13px; width: fit-content; min-height: 28px; }
.footer-grid a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-grid p:not(.eyebrow) { font-size: 12px; }
.footer-grid .brand { margin-bottom: 4px; }
.footer-grid .eyebrow { margin-bottom: 5px; }
.footnote { padding-block: 11px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); font: 11px/1.4 var(--mono); color: var(--muted); }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 34px; }
  .site-nav { gap: 13px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; min-height: auto; gap: 9px 10px; padding-top: 13px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); flex-wrap: wrap; }
  .release-link { grid-row: 1; grid-column: 2; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 27px; padding-block: 34px 33px; }
  .hero h1 { font-size: clamp(39px, 9.3vw, 66px); }
  .hero-copy .eyebrow { margin-bottom: 12px; }
  .hero-copy > p:not(.eyebrow) { margin-block: 13px 18px; }
  .desktop-break { display: none; }
  .hero-figure { padding: 16px 15px 0; }
  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .strip { grid-template-columns: 1fr; margin-top: 18px; }
  .strip li, .strip li:first-child { border-left: 0; padding: 14px 0; }
  .strip li + li { border-top: 1px solid var(--line); }
  .home-lower { grid-template-columns: 1fr; gap: 20px; padding-block: 30px 40px; }
  .home-lower > div + div { border: 0; border-top: 1px solid var(--line); padding: 15px 0 0; }
  .step-panel, .release-panel, .spec-list > div { grid-template-columns: 1fr; gap: 10px; }
  .privacy-grid, .guide-list { grid-template-columns: 1fr; gap: 7px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
  .brand { gap: 6px; font-size: 14px; }
  .brand img { width: 28px; height: 28px; }
  .release-link { padding: 5px 7px; }
  .site-nav { font-size: 12px; }
  .actions { gap: 8px 15px; }
  .skill-list { grid-template-columns: 1fr; }
  .skill-list li { padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
