:root {
  color-scheme: dark;
  --bg: #0b1117;
  --panel: #111b24;
  --panel-soft: #14212b;
  --line: #263846;
  --text: #eef3f6;
  --muted: #adbac4;
  --accent: #f0b44e;
  --accent-ink: #1a1409;
  --warning: #392818;
  --warning-line: #8b642e;
  --content: 980px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% -20%, #1c2a33 0, var(--bg) 62%);
  color: var(--text);
  font: 16px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: #ffd27e; text-underline-offset: .2em; }
a:hover { color: #ffe3ad; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.site-header, main, .site-footer { width: min(var(--content), calc(100% - 36px)); margin-inline: auto; }
.site-header { padding: 24px 0 18px; border-bottom: 1px solid var(--line); }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .08em; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--accent); border-radius: 12px; color: var(--accent); font-size: 19px; }
.brand-name { font-size: 13px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.site-nav a { padding: 7px 11px; border: 1px solid transparent; border-radius: 999px; color: var(--muted); font-size: 14px; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: var(--line); background: var(--panel); color: var(--text); }
main { padding: 48px 0 72px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { color: var(--text); line-height: 1.2; }
h1 { margin: 0; font-size: clamp(2.3rem, 6vw, 4.2rem); letter-spacing: -.045em; }
.lede { max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: 1.12rem; }
.updated { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.notice { margin: 28px 0; padding: 18px 20px; border: 1px solid var(--warning-line); border-radius: 14px; background: var(--warning); }
.notice strong { color: #ffe0a6; }
.notice p { margin: 6px 0 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 30px 0; }
.card { display: block; min-height: 170px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, var(--panel-soft), var(--panel)); color: var(--text); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.card h2 { margin: 0 0 10px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 245px; align-items: start; gap: 36px; margin-top: 32px; }
article { min-width: 0; }
article section { padding: 0 0 24px; margin: 0 0 24px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
article section:last-child { border-bottom: 0; }
article h2 { margin: 0 0 12px; font-size: 1.4rem; }
article h3 { margin: 22px 0 8px; font-size: 1.04rem; }
article p { margin: 0 0 12px; color: #d5dee4; }
article ul, article ol { padding-left: 1.35rem; color: #d5dee4; }
article li { margin: 6px 0; }
.toc { position: sticky; top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(17, 27, 36, .92); }
.toc strong { display: block; margin-bottom: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.toc a { display: block; padding: 5px 0; color: var(--muted); font-size: 13px; text-decoration: none; }
.toc a:hover { color: var(--accent); }
.disclaimer { margin: 26px 0 0; padding: 15px 17px; border-left: 3px solid var(--accent); background: var(--panel); color: var(--muted); font-size: .92rem; }
.operator { margin-top: 34px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.operator h2 { margin: 0 0 8px; font-size: 1.05rem; }
.operator p { margin: 6px 0; color: var(--muted); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--muted); }
@media (max-width: 760px) {
  .brand-row { align-items: flex-start; flex-direction: column; gap: 14px; }
  main { padding-top: 34px; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .content-grid { grid-template-columns: 1fr; gap: 22px; }
  .toc { position: static; order: -1; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
