:root {
  --sand-50: #fbf5eb;
  --sand-100: #f2e5d2;
  --sand-200: #e6d2b6;
  --coral: #d9654f;
  --coral-dark: #9d3e31;
  --ink: #252825;
  --muted: #65655f;
  --olive: #68705a;
  --paper: #fffdf8;
  --line: rgba(37, 40, 37, 0.15);
  --shadow: 0 20px 60px rgba(79, 55, 37, 0.1);
  --radius: 28px;
  --shell: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--sand-50); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sand-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--coral-dark); }
button, input { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: #fff; }
.skip-link:focus { top: 1rem; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; min-width: 0; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 245, 235, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner { width: min(calc(100% - 40px), 1320px); min-height: 76px; margin: auto; display: flex; align-items: center; gap: 2rem; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; white-space: nowrap; }
.wordmark span { font-size: 1.15rem; font-weight: 850; letter-spacing: .02em; }
.wordmark small { margin-top: .35rem; color: var(--muted); font-size: .68rem; letter-spacing: .22em; }
.section-rail { margin-left: auto; display: flex; align-items: center; gap: .2rem; min-width: 0; }
.section-rail a { padding: .55rem .72rem; border-radius: 999px; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.section-rail a:hover { background: var(--paper); }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; padding: .55rem .9rem; color: var(--ink); background: var(--paper); }
main { min-height: 64vh; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(4rem, 9vw, 8rem); }
.hero-copy { min-width: 0; }
.eyebrow, .section-kicker { margin: 0 0 .9rem; color: var(--coral-dark); font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.025em; }
h1 { margin-bottom: 1.25rem; font-size: clamp(3rem, 8vw, 7.4rem); }
h2 { font-size: clamp(1.75rem, 3.7vw, 3rem); }
h3 { font-size: 1.12rem; }
.hero-lead { max-width: 760px; color: #3f423e; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.75; }
.hero-actions, .not-found-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: .72rem 1.1rem; border-radius: 999px; font-weight: 760; text-decoration: none; }
.button.primary { color: #fff; background: var(--coral-dark); }
.button.secondary { border: 1px solid var(--line); background: var(--paper); }
.truth-note { padding-left: 1rem; border-left: 3px solid var(--coral); color: var(--muted); font-size: .92rem; }
.feature-panel { position: relative; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.feature-panel::after { content: ""; position: absolute; width: 170px; height: 170px; right: -70px; top: -65px; border: 30px solid rgba(217, 101, 79, .13); border-radius: 50%; }
.panel-index { color: var(--coral-dark); font-weight: 800; letter-spacing: .2em; }
.feature-panel h2 { margin: 1rem 0 1.5rem; font-size: clamp(1.5rem, 3vw, 2.4rem); }
.feature-panel ol { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.feature-panel li { display: grid; grid-template-columns: 2rem 1fr; gap: .2rem .8rem; counter-increment: steps; }
.feature-panel li::before { grid-row: 1 / span 2; content: "0" counter(steps); color: var(--coral); font-weight: 850; }
.feature-panel li span { grid-column: 2; color: var(--muted); font-size: .9rem; }
.paper-band, .coral-band { padding-block: clamp(3.5rem, 7vw, 6rem); }
.paper-band { background: var(--paper); border-block: 1px solid var(--line); }
.coral-band { background: #e6816c; }
.section-space { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-intro { max-width: 720px; color: var(--muted); font-size: 1.07rem; }
.card-grid { display: grid; gap: 1rem; margin-top: 2rem; min-width: 0; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.soft-card { display: flex; min-width: 0; min-height: 220px; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 253, 248, .78); box-shadow: 0 10px 30px rgba(79, 55, 37, .06); }
.soft-card h3 a { text-decoration: none; }
.soft-card p { color: var(--muted); }
.text-link { margin-top: auto; font-weight: 760; color: var(--coral-dark); }
.split-section, .editorial-grid, .prose-grid, .tool-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.editorial-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr); }
.mini-ledger, .note-panel, .record-template { padding: 1.4rem; border: 1px solid rgba(37, 40, 37, .18); border-radius: 20px; background: rgba(255,255,255,.52); }
.mini-ledger p { display: grid; grid-template-columns: 1rem auto; column-gap: .65rem; }
.mini-ledger p b, .mini-ledger p span:not(.dot) { grid-column: 2; }
.dot { width: .7rem; height: .7rem; margin-top: .5rem; border-radius: 50%; background: var(--ink); }
.dot.conflict { background: var(--coral-dark); }
.dot.pending { background: var(--olive); }
.faq-list { display: grid; gap: .75rem; max-width: 900px; }
.faq-list details { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.faq-list summary { cursor: pointer; font-weight: 750; }
.faq-list p { margin: .85rem 0 0; color: var(--muted); }
.page-hero { padding-block: clamp(3.5rem, 8vw, 7rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 980px; font-size: clamp(2.4rem, 6vw, 5rem); }
.article-layout { padding-block: clamp(3rem, 7vw, 6rem); }
.article-header { max-width: 900px; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(2.2rem, 5.5vw, 4.8rem); }
.byline, .tag-row { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; color: var(--muted); font-size: .9rem; }
.tag { padding: .28rem .65rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--paper); }
.article-content { max-width: 820px; padding-block: 2.5rem; }
.article-content section { margin-bottom: 2.8rem; }
.article-content h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.article-content p, .info-article p { font-size: 1.05rem; }
.record-template { margin-top: 2rem; background: var(--sand-100); }
.related-section { padding-top: 2rem; border-top: 1px solid var(--line); }
.note-panel { position: sticky; top: 105px; background: var(--sand-100); }
.info-article { max-width: 840px; }
.info-article section { margin-bottom: 3rem; }
.check-tool { padding: 1.2rem; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.check-tool fieldset { display: grid; gap: .7rem; margin: 0; padding: 0; border: 0; }
.check-tool legend { margin-bottom: 1rem; font-size: 1.25rem; font-weight: 800; }
.check-item { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem; border-radius: 14px; background: var(--sand-50); cursor: pointer; }
.check-item input { width: 1.15rem; height: 1.15rem; margin-top: .28rem; accent-color: var(--coral-dark); }
.check-output { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.not-found { padding-block: clamp(5rem, 12vw, 10rem); }
.not-found h1 { font-size: clamp(2.6rem, 7vw, 6rem); }
.not-found > p { max-width: 760px; }
.site-footer { padding-block: 3rem; color: #f8f1e6; background: var(--ink); }
.footer-grid { width: min(calc(100% - 40px), var(--shell)); margin: auto; display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 2rem; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1rem; }
.site-footer a { color: #f8f1e6; }
.site-footer p { color: #cfcfc5; }
.status-note span { display: inline-block; margin-right: .4rem; padding: .15rem .4rem; border: 1px solid #888; border-radius: 999px; color: #fff; font-size: .7rem; }
@media (max-width: 980px) {
  .card-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .feature-panel { max-width: 680px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .status-note { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .header-inner { position: relative; min-height: 68px; }
  .nav-toggle { display: inline-flex; }
  .section-rail { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 1px); margin: 0; padding: .8rem 20px 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--sand-50); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .section-rail.is-open { display: grid; }
  .section-rail a { background: var(--paper); }
  .split-section, .editorial-grid, .prose-grid, .tool-layout { grid-template-columns: 1fr; }
  .note-panel { position: static; }
}
@media (max-width: 620px) {
  .shell, .header-inner, .footer-grid { width: min(calc(100% - 32px), var(--shell)); }
  .hero { padding-block: 3.5rem; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.7rem); }
  .page-hero h1, .article-header h1 { font-size: clamp(2.15rem, 11vw, 3.4rem); }
  .card-grid.three, .card-grid.two, .footer-grid { grid-template-columns: 1fr; }
  .soft-card { min-height: 0; }
  .site-footer nav { grid-template-columns: 1fr 1fr; }
  .status-note { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
