@font-face {
  font-family: Inter;
  src: url("/assets/inter-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/inter-semibold.ttf") format("truetype");
  font-weight: 600 750;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --paper: #fff;
  --ink: #17171c;
  --muted: #626268;
  --rule: #dedee2;
  --secondary: #f5f5f6;
  --coral: #cf2500;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000;
    --ink: #f6f6f7;
    --muted: #b1b1b6;
    --rule: #37373b;
    --secondary: #1d1d20;
    --coral: #ff8368;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.65 Inter, system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: var(--coral); text-underline-offset: .19em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 44px); }
header { border-bottom: 1px solid var(--rule); }
.nav, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav { min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; letter-spacing: -.045em; font-size: 1.13rem; white-space: nowrap; text-decoration: none; }
.logo img { display: block; width: 30px; height: 30px; }
.home-link, .footer-inner a { color: var(--ink); font-size: .9rem; }
.home-link { display: flex; align-items: center; gap: .5rem; }
.layout { display: grid; grid-template-columns: minmax(180px, 220px) minmax(0, 730px); gap: clamp(34px, 7vw, 110px); margin-block: clamp(44px, 7vw, 88px) clamp(56px, 8vw, 110px); }
.sidebar { min-width: 0; }
.doc-nav { position: sticky; top: 28px; }
.doc-nav h2 { margin: 0 0 .8rem; color: var(--muted); font-size: .8rem; font-weight: 600; }
.doc-nav ul { padding: 0; margin: 0; list-style: none; }
.doc-nav a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; line-height: 1.45; font-size: .92rem; }
.doc-nav a:hover { background: var(--secondary); color: var(--ink); }
.doc-nav [aria-current="page"] { font-weight: 600; color: var(--ink); background: var(--secondary); }
.doc { max-width: 100%; min-width: 0; overflow-wrap: break-word; }
.doc h1 { margin: -.1em 0 .38em; font-size: clamp(2rem, 4.3vw, 3.6rem); line-height: 1.1; letter-spacing: -.055em; font-weight: 700; }
.doc h2 { margin: 2.1em 0 .58em; font-size: clamp(1.3rem, 2.3vw, 1.7rem); line-height: 1.22; letter-spacing: -.035em; }
.doc p { margin: 0 0 .9em; }
.doc .identity, .updated, .doc .note { color: var(--muted); font-size: .92rem; }
.doc .identity { margin-bottom: .3rem; }
.doc .lead { font-size: 1.07rem; }
.doc .english-jump { font-size: .88rem; display: inline-block; margin: .3rem 0 1.1rem; }
.doc ul, .doc ol { padding-inline-start: 1.55rem; margin: .7rem 0 1.4rem; }
.doc li { margin: .5rem 0; padding-inline-start: .18rem; }
.doc ol li::marker { font-weight: 600; }
.doc hr { margin-block: 2.8rem; border: 0; border-top: 1px solid var(--rule); }
.doc strong { font-weight: 600; }
footer { border-top: 1px solid var(--rule); }
.footer-inner { min-height: 95px; flex-wrap: wrap; padding-block: 24px; color: var(--muted); font-size: .86rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.skip-link { position: fixed; z-index: 1; top: 8px; left: 8px; padding: 8px 16px; transform: translateY(-160%); border-radius: 8px; color: var(--paper); background: var(--ink); }
.skip-link:focus { transform: none; }
@media (max-width: 760px) {
  .nav { min-height: 64px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 38px; }
  .sidebar { grid-row: 2; padding-top: 24px; border-top: 1px solid var(--rule); }
  .doc-nav { position: static; }
  .doc-nav ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 4px; }
}
@media print {
  :root { --paper: #fff; --ink: #000; --muted: #333; }
  .layout { display: block; margin-block: 1rem; }
  .wrap { max-width: none; padding: 0; }
  .nav { min-height: 0; padding-bottom: .5rem; }
  .sidebar, .home-link, .english-jump, footer, .skip-link { display: none !important; }
  .doc h2 { break-after: avoid; }
}
