@font-face {
  font-family: "Courier Prime";
  src: url("fonts/courier-prime.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("fonts/baloo-2.woff") format("woff");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "WenKai";
  src: url("fonts/wenkai.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --paper: #F5EDDB;
  --card: #FBF6EA;
  --ink: #3B382E;
  --ink-soft: #6E6653;
  --orange: #BA5C33;
  --olive: #6F7B4B;
  --line: #DFD4BB;
  --shadow: rgba(59,56,46,.10);
  --grain-blend: multiply;
  --grain-opacity: .55;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #2A2722;
    --card: #332F28;
    --ink: #F2EDE0;
    --ink-soft: #B6AC97;
    --orange: #E9A26B;
    --olive: #95A06B;
    --line: #474035;
    --shadow: rgba(0,0,0,.34);
    --grain-blend: soft-light;
    --grain-opacity: .16;
  }
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
html:lang(zh-Hans) body { font-family: "Baloo 2", "WenKai", system-ui, sans-serif; }
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url("img/paper.jpg") center/cover no-repeat;
  mix-blend-mode: var(--grain-blend);
  opacity: var(--grain-opacity);
}
.page { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: var(--orange); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--olive); outline-offset: 5px; border-radius: 3px; }
.skip-link { position: absolute; left: 24px; top: -100px; z-index: 2; padding: 12px 20px; background: var(--card); }
.skip-link:focus { top: 12px; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 2px 8px var(--shadow); }
.brand b { font-size: 1.18rem; font-weight: 700; }
.brand span { display: block; font-size: .82rem; color: var(--ink-soft); line-height: 1.2; }
.ship { font-family: "Courier Prime", ui-monospace, monospace; font-size: .8rem; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: 999px; padding: 6px 14px; }
.site-nav { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; padding: 7px 16px; border: 1px solid transparent; border-radius: 9px; }
.site-nav a:hover { color: var(--ink); background: var(--card); }
.site-nav a[aria-current] { color: var(--orange); background: var(--card); border-color: var(--line); box-shadow: 0 2px 3px var(--shadow); }
.site-nav .language { border-radius: 0; border: 0; border-left: 1px solid var(--line); padding: 2px 0 2px 20px; margin-left: 12px; font-size: .85rem; }
.site-nav .language:hover { color: var(--orange); background: transparent; }
.eyebrow { font-family: "Courier Prime", ui-monospace, monospace; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin: 0 0 14px; }
.document-hero { display: flex; align-items: center; justify-content: center; gap: 36px; min-height: 236px; padding: 42px 0; border-bottom: 1px solid var(--line); }
.hero-copy { min-width: 0; }
h1, h2 { font-weight: 700; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 3.7rem); letter-spacing: -.025em; margin: 0; }
.date { color: var(--ink-soft); font-size: .85rem; margin: 14px 0 0; line-height: 1.7; }
.date span:last-child { white-space: nowrap; }
.date-separator { padding: 0 6px; color: var(--orange); }
.hero-cat { object-fit: contain; width: 132px; height: 132px; flex-shrink: 0; }
.document-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 64px; padding: 42px 0 64px; }
.contents { align-self: start; position: sticky; top: 32px; }
.contents .eyebrow { color: var(--olive); }
.contents ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.contents li { margin: 0; }
.contents a { display: block; padding: 7px 0 7px 18px; color: var(--ink-soft); text-decoration: none; font-size: .9rem; line-height: 1.5; }
.contents a:hover { color: var(--orange); }
article { min-width: 0; }
article:focus { outline: none; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 30px; box-shadow: 0 4px 16px var(--shadow); }
.summary strong { display: block; font-size: 1.5rem; line-height: 1.3; }
.summary p { margin: 12px 0 0; }
.summary p:first-child { margin: 0; color: var(--ink); }
.document-section { padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.document-section:last-child { padding-bottom: 0; border-bottom: 0; }
.section-number { display: block; font-family: ui-monospace, monospace; font-size: .72rem; letter-spacing: .12em; color: var(--olive); margin-bottom: 9px; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 0 0 14px; }
article p { margin: 0 0 16px; color: var(--ink-soft); overflow-wrap: anywhere; }
article p:last-child { margin-bottom: 0; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--ink-soft); font-size: .9rem; }
footer a { color: var(--ink-soft); text-decoration: none; }
@media (max-width: 820px) {
  .document-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 32px; }

}
@media (max-width: 640px) {
  .page { padding-inline: 20px; }
  .site-nav { gap: 6px; justify-content: center; }
  .site-nav a { padding: 5px 14px; }
  .site-nav .language { margin-left: 8px; padding-left: 16px; }
  .document-hero { gap: 12px; min-height: 194px; padding: 30px 0; }
  h1 { font-size: clamp(2rem, 8vw, 2.7rem); }
  .date { font-size: .78rem; margin-top: 12px; }
  .date span:last-child { display: block; }
  .date-separator { display: none; }
  .hero-cat { width: 84px; height: 100px; }
  .document-layout { display: flex; flex-direction: column; gap: 28px; padding-top: 28px; }
  .contents { position: static; width: 100%; }
  .contents ol { display: flex; gap: 8px; overflow-x: auto; border: 0; padding-bottom: 12px; }
  .contents a { white-space: nowrap; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .85rem; }
  .summary { padding: 22px; }
  .document-section { padding-block: 28px; }
}
@media print {
  .grain, .contents, .hero-cat, .site-nav, .skip-link { display: none; }
  :root { --paper: #fff; --card: #fff; --ink: #000; --ink-soft: #333; --shadow: transparent; }
  .document-layout { display: block; }
  .document-section { break-inside: avoid; }
}
