:root {
  color-scheme: light;
  --canvas: #fffcf8;
  --paper: #ffffff;
  --ink: #363431;
  --body: #5b5955;
  --muted: #716e68;
  --line: #f3eae2;
  --line-strong: #ebe0d6;
  --accent: #b95024;
  --accent-soft: #f2a271;
  --tint: #fff6ee;
  --tint-hover: #fff2e6;
  --header-height: 72px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; color: var(--body); background: var(--canvas); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .2em; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; flex: 0 0 auto; }
::selection { color: var(--ink); background: #ffe1c5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 18px; color: white; background: var(--ink); }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 252, 248, .95); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { max-width: 1240px; height: var(--header-height); margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 18px; color: var(--ink); font-size: 26px; font-weight: 650; letter-spacing: -.7px; text-decoration: none; }
.brand-separator { height: 18px; width: 1px; background: var(--line-strong); }
.brand-context { color: var(--muted); font-size: 13px; font-weight: 450; letter-spacing: .06em; }
.header-nav { display: flex; align-items: center; font-size: 12px; }
.header-caption { color: var(--muted); font-size: 10px; letter-spacing: .15em; }
.back-link { padding: 10px 0 10px 12px; text-decoration: none; color: var(--muted); }
.back-link:hover { color: var(--accent); }
.site-footer { width: min(1160px, calc(100% - 80px)); margin: 0 auto; padding: 24px 0 32px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.collection-main { max-width: 1160px; margin: 0 auto; padding: 0 0 100px; }
.collection-hero { padding: 68px 0 56px; }
.hero-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eyebrow, .edition { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.edition { font-variant-numeric: tabular-nums; }
.collection-hero h1 { margin: 34px 0 24px; color: var(--ink); font-size: clamp(42px, 5.2vw, 68px); font-weight: 580; letter-spacing: -.055em; line-height: 1.25; }
.title-dot { color: var(--accent-soft); }
.hero-description { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.95; }
.hero-principle { display: flex; align-items: flex-start; gap: 18px; margin-top: 34px; padding-top: 26px; }
.principle-mark { color: var(--accent-soft); font-size: 28px; line-height: 1.3; }
.hero-principle p { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.65; letter-spacing: .03em; }
.section-label { display: flex; justify-content: space-between; align-items: center; padding: 19px 0; border-top: 1px solid var(--line-strong); }
.section-label h2 { margin: 0; color: var(--body); font-size: 12px; font-weight: 550; letter-spacing: .1em; }
.section-label > span { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.document-card { display: grid; grid-template-columns: 65px minmax(0, 1fr) auto; align-items: start; gap: 25px; padding: 34px; color: inherit; background: var(--tint); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; transition: background-color .2s, border-color .2s; }
.document-card:hover { background: var(--tint-hover); border-color: #efc7a5; }
.document-number { color: #9a8777; font-size: 30px; font-weight: 350; line-height: 1.3; font-variant-numeric: tabular-nums; }
.document-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 11px; }
.status-badge { display: inline-block; padding: 4px 8px; color: var(--accent); border: 1px solid #f1ceb1; border-radius: 3px; font-weight: 550; }
.document-card h3 { margin: 18px 0 12px; color: var(--ink); font-size: 26px; font-weight: 560; letter-spacing: -.025em; line-height: 1.4; }
.document-card p { margin: 0; color: var(--body); font-size: 14px; line-height: 1.8; }
.document-topics { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; color: var(--muted); font-size: 11px; }
.card-action { display: flex; align-items: center; align-self: center; gap: 12px; color: var(--accent); font-size: 12px; white-space: nowrap; }
.reader-layout { max-width: 1240px; display: grid; grid-template-columns: 230px minmax(0, 760px); justify-content: space-between; gap: 64px; padding: 56px 40px 100px; margin: 0 auto; }
.contents { position: sticky; top: 104px; align-self: start; max-height: calc(100dvh - 130px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.contents > summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; color: var(--muted); font-size: 11px; font-weight: 550; letter-spacing: .1em; list-style: none; cursor: default; }
.contents > summary::-webkit-details-marker { display: none; }
.contents-toggle { display: none; }
.toc-links { display: grid; gap: 2px; }
.toc-links a { position: relative; display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 7px; padding: 8px 8px 8px 12px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 12px; line-height: 1.65; }
.toc-links a:hover { color: var(--accent); }
.toc-links a[aria-current="location"] { color: var(--accent); border-left-color: var(--accent); background: var(--tint); }
.toc-number { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.toc-footer { padding: 20px 0 5px; margin-top: 20px; border-top: 1px solid var(--line); }
.toc-footer a { display: flex; gap: 5px; align-items: center; font-size: 11px; color: var(--muted); text-decoration: none; }
.toc-footer svg { width: 16px; height: 16px; }
.document { min-width: 0; color: var(--body); font-size: 16px; line-height: 1.95; overflow-wrap: break-word; }
.article-kicker { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; color: var(--accent); font-size: 11px; letter-spacing: .06em; }
.article-kicker > span:last-child { padding-left: 15px; border-left: 1px solid var(--line); color: var(--muted); }
.document h1 { margin: 0 0 26px; color: var(--ink); font-size: clamp(34px, 3.3vw, 46px); font-weight: 620; letter-spacing: -.04em; line-height: 1.3; text-wrap: balance; }
.document h1 + p { padding: 0 0 26px; margin-bottom: 25px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.9; }
.document-introduction > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.9; }
.document-section { padding-top: 52px; }
.document h2 { margin: 0 0 26px; padding-top: 23px; border-top: 1px solid var(--line-strong); color: var(--ink); font-size: 26px; font-weight: 620; line-height: 1.45; letter-spacing: -.02em; }
.document h3 { margin: 34px 0 14px; color: var(--ink); font-size: 19px; font-weight: 620; line-height: 1.6; }
.document p { margin: 15px 0; }
.document strong { color: var(--ink); font-weight: 650; }
.document blockquote { margin: 25px 0; padding: 18px 22px; color: var(--body); background: var(--tint); border-left: 3px solid var(--accent-soft); border-radius: 0 3px 3px 0; }
.document blockquote p { margin: 0; }
.document ul, .document ol { margin: 17px 0; padding-left: 1.55em; }
.document li { margin: 9px 0; padding-left: 3px; }
.document li::marker { color: var(--accent-soft); }
.document li > p { margin: 6px 0; }
.document hr { margin: 40px 0; height: 1px; border: 0; background: var(--line); }
.document code { padding: 2px 5px; font-size: .9em; background: #fff0e2; border-radius: 3px; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; margin: 26px 0; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.document table { width: 100%; min-width: 610px; border-collapse: collapse; font-size: 13px; line-height: 1.8; text-align: left; }
.document th { padding: 13px 16px; color: var(--body); font-size: 12px; font-weight: 650; background: var(--tint); }
.document td { padding: 15px 16px; vertical-align: top; border-top: 1px solid var(--line); }
.document th:first-child, .document td:first-child { width: 21%; color: var(--body); }
.document td:first-child { font-weight: 550; }
.article-end { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.article-end a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--accent); }
.reading-progress { position: fixed; top: 0; left: 0; z-index: 80; height: 2px; width: 100%; background: var(--accent-soft); transform: scaleX(0); transform-origin: left; pointer-events: none; }
@media (max-width: 1240px) {
  .collection-main { margin: 0 40px; }
  .reader-layout { gap: 40px; grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-height: 64px; }
  html { scroll-padding-top: 132px; }
  .header-inner { padding: 0 26px; }
  .site-footer { width: calc(100% - 52px); }
  .reader-layout { display: block; padding: 0 26px 70px; }
  .contents { top: var(--header-height); z-index: 40; margin: 0 -26px; padding: 0 26px; max-height: none; overflow: visible; background: var(--canvas); border-bottom: 1px solid var(--line); }
  .contents > summary { height: 47px; margin: 0; cursor: pointer; font-size: 12px; letter-spacing: .04em; }
  .contents-toggle { display: inline-block; font-size: 19px; font-weight: 350; }
  .contents[open] .contents-toggle { transform: rotate(45deg); }
  .contents[open] .toc-links { max-height: min(60dvh, 550px); overflow-y: auto; padding: 8px 0 12px; }
  .toc-links a { font-size: 13px; padding-top: 9px; padding-bottom: 9px; }
  .toc-footer { margin-top: 0; padding: 12px 0 16px; }
  .document { max-width: 720px; margin: 0 auto; padding-top: 34px; }
  .collection-main { margin: 0 26px; padding-bottom: 64px; }
  .collection-hero { padding-top: 44px; }
  .document-card { grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding: 26px; }
  .card-action { grid-column: 2; margin-top: 7px; }
}
@media (max-width: 540px) {
  .header-inner { padding: 0 21px; }
  .brand { font-size: 24px; gap: 12px; }
  .brand-context { font-size: 11px; letter-spacing: .03em; }
  .header-caption { font-size: 9px; }
  .back-link { font-size: 11px; }
  .collection-main { margin: 0 23px; }
  .collection-hero { padding: 38px 0 38px; }
  .eyebrow, .edition { font-size: 10px; }
  .collection-hero h1 { margin-top: 28px; font-size: clamp(31px, 8.5vw, 42px); letter-spacing: -.06em; line-height: 1.3; }
  .hero-description { font-size: 14px; line-height: 1.95; }
  .desktop-break { display: none; }
  .hero-principle { margin-top: 24px; padding-top: 13px; gap: 12px; }
  .hero-principle p { font-size: 16px; }
  .document-card { padding: 22px 18px; gap: 12px; grid-template-columns: 27px minmax(0, 1fr); }
  .document-number { font-size: 23px; }
  .document-meta { font-size: 10px; gap: 10px; }
  .status-badge { padding: 3px 6px; }
  .document-card h3 { margin: 15px 0 10px; font-size: 21px; }
  .document-card p { font-size: 13px; }
  .document-topics { gap: 10px 12px; font-size: 10px; margin-top: 18px; }
  .site-footer { width: calc(100% - 46px); font-size: 10px; }
  .reader-layout { padding-left: 23px; padding-right: 23px; }
  .contents { margin: 0 -23px; padding: 0 23px; }
  .document { font-size: 15px; line-height: 1.95; }
  .document h1 { font-size: 34px; letter-spacing: -.04em; line-height: 1.35; }
  .document h1 + p { font-size: 11px; padding-bottom: 22px; }
  .document-introduction > p:last-child { font-size: 12px; }
  .document-section { padding-top: 38px; }
  .document h2 { font-size: 23px; padding-top: 20px; margin-bottom: 21px; }
  .document h3 { font-size: 18px; margin-top: 28px; }
  .document blockquote { padding: 16px 17px; margin: 23px 0; }
  .document table { min-width: 590px; font-size: 12px; }
  .document th, .document td { padding: 12px 14px; }
  .article-end { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  :root { color-scheme: light; }
  html, body { background: #fff; color: #111; }
  .site-header, .contents, .site-footer, .reading-progress, .skip-link, .article-end { display: none; }
  .reader-layout { display: block; max-width: none; padding: 0; }
  .document { max-width: none; padding: 0; font-size: 10pt; line-height: 1.7; }
  .document h1 { font-size: 26pt; }
  .document h2 { font-size: 16pt; break-after: avoid; }
  .document h3 { font-size: 12pt; break-after: avoid; }
  .document-section { padding-top: 24px; }
  .document blockquote { break-inside: avoid; }
  .table-scroll { overflow: visible; }
  .document table { min-width: 0; font-size: 8pt; }
  .document th, .document td { padding: 8px; }
  .document tr { break-inside: avoid; }
}
