:root {
  color-scheme: dark;
  --bg: #081116;
  --panel: #0e1d24;
  --ink: #edf5f7;
  --muted: #acc0c7;
  --accent: #64f5d0;
  --line: #233a43;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, Aptos, system-ui, sans-serif; line-height: 1.75; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: #b4fff0; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.nav-wrap { max-width: 1180px; margin: auto; padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 750; letter-spacing: -.04em; }
.brand img { width: 36px; height: 36px; object-fit: contain; border-radius: 10px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 5px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
main { max-width: 1180px; margin: 0 auto; padding: 64px 28px 88px; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.08; letter-spacing: -.055em; font-weight: 700; margin: 0 0 22px; }
.lead { max-width: 720px; font-size: 19px; color: var(--muted); margin: 0 0 20px; line-height: 1.65; }
.meta { font-size: 13px; color: var(--muted); margin: 0 0 40px; }
.document-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 36px; border-top: 1px solid var(--line); }
.contents { position: sticky; top: 24px; font-size: 14px; }
.contents h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 18px; }
.contents ol { list-style: none; padding: 0; margin: 0; }
.contents li { margin: 0 0 12px; }
.contents a { text-decoration: none; color: var(--muted); }
.contents a:hover { color: var(--accent); }
.document { max-width: 760px; min-width: 0; }
.document section + section { margin-top: 38px; }
h2 { font-size: 23px; line-height: 1.35; letter-spacing: -.025em; margin: 0 0 14px; }
h3 { font-size: 17px; line-height: 1.4; margin: 24px 0 10px; }
p, li { color: var(--muted); }
p { margin: 0 0 16px; }
li { margin: 8px 0; }
ul, ol { padding-left: 22px; }
strong { color: var(--ink); font-weight: 650; }
code { color: #d9f0ed; overflow-wrap: anywhere; font-size: .92em; }
.note { border-left: 3px solid var(--accent); background: var(--panel); padding: 20px 24px; margin: 0 0 34px; border-radius: 0 12px 12px 0; }
.note p:last-child { margin-bottom: 0; }
.action { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #05221e; padding: 12px 20px; border-radius: 10px; text-decoration: none; font-weight: 700; line-height: 1.4; min-height: 48px; }
.action:hover { background: #8bf5e0; color: #05221e; }
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; color: var(--ink); font-weight: 650; padding-right: 16px; }
details p { margin: 14px 0 0; }
.site-footer { border-top: 1px solid var(--line); }
.footer-wrap { max-width: 1180px; margin: auto; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }
.footer-wrap p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); }
@media (max-width: 780px) {
  .nav-wrap { padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-nav { gap: 5px 20px; }
  main { padding: 40px 20px 56px; }
  .document-layout { grid-template-columns: minmax(0,1fr); gap: 32px; padding-top: 28px; }
  .contents { position: static; }
  .contents ol { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .contents li { margin: 0; }
  .lead { font-size: 17px; }
  .footer-wrap { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .note { padding: 18px; }
  h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  :root { color-scheme: light; --ink: #111; --muted: #333; --accent: #064e43; --panel: #f4f6f6; --line: #bbb; }
  body { background: white; }
  .site-header, .contents, .site-footer { display: none; }
  main { padding: 0; }
  .document-layout { display: block; }
  .document { max-width: none; }
  a { color: #064e43; }
}
