:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5f6774;
  --line: #d9dee7;
  --soft: #f4f6f9;
  --blue-soft: #edf3ff;
  --blue: #315dcc;
  --nav: #111827;
  --orange: #ff5f46;
  --white: #ffffff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); line-height: 1.65; }
a { color: #234fae; text-underline-offset: 0.18em; }
a:hover { color: #17377b; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 10; padding: .6rem .9rem; background: white; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 5; display: flex; min-height: 58px; align-items: center; justify-content: space-between; padding: 0 1.5rem; color: white; background: var(--nav); border-bottom: 1px solid #283244; }
.brand, .repo-link { color: white; text-decoration: none; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; }
.brand-mark { width: .68rem; height: .68rem; border-radius: 2px; background: var(--orange); }
.repo-link { font-size: .88rem; color: #d8deea; }
.site-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); max-width: 1480px; margin: 0 auto; }
.sidebar { position: sticky; top: 58px; height: calc(100vh - 58px); padding: 2rem 1.35rem; border-right: 1px solid var(--line); overflow-y: auto; }
.sidebar nav { display: grid; gap: .18rem; }
.sidebar a { display: block; padding: .42rem .65rem; border-radius: 6px; color: #273142; font-size: .92rem; text-decoration: none; }
.sidebar a:hover { background: var(--soft); }
.nav-label { margin: 1.2rem .65rem .35rem; color: #737c8b; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-label:first-child { margin-top: 0; }
.content { width: min(100%, 1040px); padding: 3.25rem clamp(1.5rem, 5vw, 5rem) 5rem; }
.content > h1 { margin: 0 0 1rem; max-width: 18ch; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.045em; }
.content > h1 + p { max-width: 760px; color: var(--muted); font-size: 1.18rem; }
h2 { margin-top: 3.3rem; padding-top: .6rem; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.02em; }
h3 { margin-top: 2.2rem; font-size: 1.18rem; }
p, li { max-width: 820px; }
li + li { margin-top: .35rem; }
table { display: block; width: 100%; margin: 1.5rem 0; border-collapse: collapse; overflow-x: auto; }
th, td { padding: .75rem .85rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); font-size: .82rem; letter-spacing: .03em; }
code { padding: .12rem .3rem; border-radius: 4px; background: #eef0f4; font: .88em ui-monospace, SFMono-Regular, Menlo, monospace; }
pre { padding: 1rem 1.15rem; border-radius: 8px; color: #f7f9fc; background: #182131; overflow-x: auto; }
pre code { padding: 0; color: inherit; background: transparent; }
blockquote { margin: 1.5rem 0; padding: .85rem 1.1rem; border-left: 4px solid var(--blue); background: var(--blue-soft); }
.eyebrow { margin: 0 0 .9rem; color: #31508f; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-image, .guide-image { display: block; width: 100%; margin: 2rem 0; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 50px rgba(26, 39, 63, .13); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.card { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 9px; background: white; }
.card h3 { margin: 0 0 .45rem; }
.card p { margin: 0; color: var(--muted); }
.callout { margin: 1.5rem 0; padding: 1rem 1.15rem; border: 1px solid #b9c9ed; border-radius: 8px; background: var(--blue-soft); }
.page-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }

@media (max-width: 860px) {
  .site-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-label { grid-column: 1 / -1; }
  .content { padding: 2.5rem 1.25rem 4rem; }
  .card-grid { grid-template-columns: 1fr; }
  .site-header { padding: 0 1rem; }
  .repo-link { display: none; }
}

