/* ==========================================================================
   Site chrome — the shell around every page.

   The system it documents is a light, near-white marketing frame, so the shell
   commits to that world rather than offering a theme it would have to fake.
   Everything here paints explicitly, so the pages hold on any host ground.
   ========================================================================== */

:root { color-scheme: light; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body.site {
  margin: 0;
  background: var(--neutral-white);
  color: var(--neutral-900);
  font-family: var(--font-sans);
}

.site-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--neutral-900); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.site-skip:focus { left: 0; }

/* ---- Top bar ------------------------------------------------------------- */

.site-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 0 32px;
  height: 64px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--neutral-200);
}

.site-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.site-brand__orb { width: 24px; height: 24px; display: block; flex: none; }
.site-brand__orb img { width: 100%; height: 100%; object-fit: contain; }
.site-brand__name { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }

.site-nav { display: flex; gap: 4px; overflow-x: auto; }
.site-nav__link {
  padding: 7px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--neutral-600); white-space: nowrap;
}
.site-nav__link:hover { background: var(--neutral-100); color: var(--neutral-900); }
.site-nav__link.is-current { background: var(--neutral-900); color: #fff; }
.site-nav__link:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }

/* ---- Page frame ---------------------------------------------------------- */

.site-main { max-width: 1120px; margin: 0 auto; padding: 56px 32px 96px; }
.site--wide .site-main { max-width: none; padding-inline: 0; }

.page-head { max-width: 720px; margin-bottom: 56px; }
.page-head__title { font-size: 44px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.page-head__lede { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--neutral-600); }

/* ---- Shared editorial pieces --------------------------------------------- */

.sec { margin-top: 72px; }
.sec__label {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 10px;
}
.sec__title { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.sec__lede { margin-top: 12px; max-width: 660px; font-size: 16px; line-height: 1.6; color: var(--neutral-600); }
.sec__body { margin-top: 28px; }

.rule { height: 1px; background: var(--neutral-200); border: 0; margin: 0; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

.panel {
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-2xl);
  padding: 24px;
  background: var(--neutral-white);
}
.panel__title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.panel__body { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--neutral-600); }

.figure { margin: 0; }
.figure img { width: 100%; height: auto; border-radius: var(--radius-2xl); border: 1px solid var(--neutral-200); }
.figure figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--neutral-400); }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  background: var(--neutral-100);
  padding: 1px 5px;
  border-radius: 4px;
}
pre {
  margin: 0;
  background: var(--neutral-900);
  color: #e6edf7;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.65;
}
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

/* ---- Footer -------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--neutral-200);
  padding: 28px 32px 56px;
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between;
  font-size: 13px; color: var(--neutral-400);
}
.site-foot a { color: var(--brand-600); font-weight: 500; }
.site-foot p { margin: 0; }

@media print {
  .site-bar, .site-foot, .site-skip { display: none; }
  .site-main { max-width: none; padding: 0; }
}
