:root {
  color-scheme: light;
  --paper: #faf4e9;
  --card: #fffdf8;
  --ink: #3d302a;
  --muted: #6d5e54;
  --line: #e3d7c8;
  --accent: #9b3e2e;
  --teal: #42665a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: .07em; }
a:hover { text-decoration-thickness: .13em; }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; border-radius: 2px; }
.skip { position: absolute; left: 1rem; top: -5rem; background: var(--ink); color: white; padding: .6rem 1rem; z-index: 5; }
.skip:focus { top: 1rem; }
.shell { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
header { border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); font-weight: 750; font-size: 1.32rem; text-decoration: none; letter-spacing: -.03em; }
.mark { display: block; flex: none; width: 52px; height: 52px; border-radius: 12px; object-fit: contain; image-rendering: pixelated; }
.language { font-size: .9rem; white-space: nowrap; }
.language span { color: var(--muted); }
.divider { margin: 0 .55rem; color: var(--line); }
.nav { display: flex; flex-wrap: wrap; gap: 5px 24px; padding: 0 0 16px; font-size: .88rem; }
.nav a { padding: 5px 0; color: var(--muted); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 650; border-bottom: 2px solid var(--accent); }
main.shell { padding-top: 56px; padding-bottom: 64px; }
.eyebrow { color: var(--teal); text-transform: uppercase; font-size: .75rem; font-weight: 700; letter-spacing: .14em; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 5.4vw, 3.25rem); line-height: 1.18; letter-spacing: -.04em; margin: 0 0 20px; font-weight: 750; }
.lead { max-width: 750px; font-size: 1.08rem; color: var(--muted); margin: 0 0 18px; }
.date { color: var(--muted); font-size: .82rem; margin: 0; }
.document { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 42px; margin-top: 42px; align-items: start; }
.toc { position: sticky; top: 24px; border-top: 3px solid var(--teal); padding-top: 15px; font-size: .83rem; }
.toc h2 { font-size: .82rem; margin: 0 0 12px; }
.toc ol { padding-left: 20px; margin: 0; }
.toc li { padding: 0 0 9px; line-height: 1.45; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose { min-width: 0; }
.prose section { border-top: 1px solid var(--line); padding: 24px 0 14px; scroll-margin-top: 24px; }
.prose h2 { font-size: 1.3rem; line-height: 1.4; letter-spacing: -.025em; margin: 0 0 14px; }
.prose h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 23px; margin: 12px 0 18px; }
.prose li { margin: 0 0 9px; }
.prose a { overflow-wrap: anywhere; }
code { font-size: .85em; background: #f0e5d7; padding: .14em .3em; border-radius: 3px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px 0; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 4px solid var(--accent); background: var(--card); padding: 27px 25px; text-decoration: none; color: var(--ink); }
.card:nth-child(2) { border-top-color: var(--teal); }
.card:nth-child(3) { border-top-color: #a4773f; }
.card .number { font-size: .78rem; color: var(--muted); font-family: ui-monospace, monospace; }
.card h2 { font-size: 1.22rem; line-height: 1.4; margin: 20px 0 12px; }
.card p { color: var(--muted); font-size: .9rem; margin: 0 0 24px; }
.card .read { margin-top: auto; color: var(--accent); font-size: .87rem; font-weight: 650; }
.support { border: 1px solid var(--line); border-left: 4px solid var(--teal); padding: 22px 26px; background: var(--card); max-width: 780px; }
.support h2 { font-size: 1.08rem; margin: 0 0 8px; }
.support p { margin: 0; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 24px 0 34px; font-size: .8rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer p { margin: 0; }
@media (max-width: 760px) {
  .shell { padding: 0 22px; }
  .topbar { min-height: 76px; gap: 14px; }
  .brand { font-size: 1.14rem; gap: 10px; }
  .mark { width: 44px; height: 44px; border-radius: 10px; }
  .nav { gap: 4px 20px; font-size: .82rem; }
  main.shell { padding-top: 38px; padding-bottom: 44px; }
  .document { grid-template-columns: 1fr; gap: 28px; margin-top: 30px; }
  .toc { position: static; padding-bottom: 9px; }
  .toc ol { columns: 2; column-gap: 28px; }
  .toc li { break-inside: avoid; }
  .cards { grid-template-columns: 1fr; gap: 14px; margin: 30px 0; }
  .card { padding: 22px; }
  .card h2 { margin-top: 12px; }
  .card p { margin-bottom: 16px; }
}
@media (max-width: 390px) {
  .shell { padding: 0 17px; }
  .language { font-size: .78rem; }
  .divider { margin: 0 .3rem; }
  .toc ol { columns: 1; }
}
@media print {
  header, footer, .skip, .toc { display: none; }
  :root { font-size: 11pt; background: white; color: black; }
  .shell { max-width: none; padding: 0; }
  main.shell { padding: 0; }
  .document { display: block; margin-top: 24px; }
  .prose section { break-inside: avoid; }
}
