:root {
  color-scheme: dark;
  font: 16px/1.65 system-ui, sans-serif;
  --paper: #000;
  --ink: #dedede;
  --muted: #a0a0a0;
  --link: #51b5ff;
  --line: #303030;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
.wrap { width: min(100% - 40px, 760px); margin-inline: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--link); outline-offset: 5px;
}
[hidden] { display: none !important; }
h1, h2, h3 { color: #f5f5f5; line-height: 1.3; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2rem); font-weight: 600; letter-spacing: -.025em; margin: 0 0 16px; }
h2 { font-size: 1.3rem; font-weight: 600; margin: 0 0 14px; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 26px 0 10px; }
p { margin: 0 0 16px; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
code, pre { font-family: ui-monospace, monospace; font-size: .9em; }
code { overflow-wrap: anywhere; }
pre { background: #151515; padding: 16px; overflow: auto; }
pre code { font-size: inherit; }
ul, ol { padding-left: 24px; margin: 0 0 18px; }
li + li { margin-top: 8px; }
button { font: inherit; color: var(--ink); background: #181818; border: 1px solid var(--line); padding: 3px 10px; cursor: pointer; }
summary { cursor: pointer; }
.muted { color: var(--muted); font-size: .875rem; }
.skip-link { position: absolute; top: -100px; left: 20px; background: #000; padding: 8px; }
.skip-link:focus { top: 8px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 40px 48px; }
.brand { display: block; flex: none; }
.wordmark { display: flex; align-items: center; width: 130px; height: 38px; }
/* Lighten the lettering and shift the inverted red accents from cyan to blue. */
.wordmark img { display: block; width: 100%; filter: invert(1) hue-rotate(32deg); }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: .875rem; }
.site-header nav a { color: var(--muted); }
main > section { margin-bottom: 42px; }
.site-footer { margin-top: 48px; padding-block: 24px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.site-footer p { margin-bottom: 8px; }
.site-footer a { color: var(--muted); }

.site-page {
  --paper: #151a21;
  --muted: #b4bdc8;
  --line: #303944;
  --band: #171d25;
  --accent: #c4def6;
}
.site-page .shell { width: min(100% - 80px, 1200px); margin-inline: auto; }
.site-page .header-band { background: var(--band); }
.site-page .site-header { padding-block: 24px; }
.site-page .site-header nav { gap: 12px 26px; }
.site-page .site-header nav a { color: #d9e0e8; font-weight: 600; }
.site-page .site-header a, .site-page .site-footer a { text-decoration: none; }
.site-page .site-header nav a:hover, .site-page .site-footer a:hover { color: #fff; }
.site-page h1, .site-page h2, .site-page h3 { font-family: Arial, Helvetica, sans-serif; }
.site-page h1 { margin: 0; font-size: clamp(2.75rem, 4.8vw, 4.25rem); line-height: 1; letter-spacing: -.06em; text-wrap: balance; }
.site-page h2 { margin: 0 0 24px; font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.1; letter-spacing: -.04em; }
.site-page .site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 0; padding-block: 22px; }
.site-page .site-footer p { margin: 0; }

.guide-intro {
  padding-block: clamp(32px, 5vw, 72px) clamp(28px, 4vw, 56px);
  background: var(--band);
  border-bottom: 1px solid var(--line);
}
.guide-intro p { max-width: 68ch; margin: 18px 0 0; color: var(--muted); }
.guide-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 760px);
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(28px, 5vw, 64px);
}
.guide-nav { position: sticky; top: 24px; font-size: .875rem; }
.guide-nav h2 { margin-bottom: 8px; color: var(--accent); font: 650 1rem/1.4 system-ui, sans-serif; letter-spacing: normal; }
.guide-nav > div { display: grid; max-height: calc(100dvh - 90px); overflow-y: auto; padding: 5px; }
.guide-nav a { padding: 5px 0; color: var(--muted); text-decoration: none; }
.guide-nav a:hover { color: var(--accent); text-decoration: underline; }
.guide-nav a:focus-visible { outline-offset: 0; }
.guide-content section { scroll-margin-top: 24px; }
.guide-content section + section { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.guide-content h2 { margin-bottom: 16px; font-size: clamp(1.5rem, 3vw, 2rem); }
.guide-content h3 { color: var(--accent); }
.guide-content figure { margin-block: 22px; }
.guide-content figure img { display: block; border: 1px solid #455361; border-radius: 8px; }
.guide-content figcaption { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.guide-content pre { background: #1b232d; border: 1px solid var(--line); border-radius: 8px; }
.notice { border-left: 2px solid var(--accent); padding-left: 16px; }
.table-wrap { overflow-x: auto; margin-block: 20px; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .875rem; }
th, td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: #f5f5f5; }
.guide-content details { margin-block: 18px; }
.guide-content details p { margin-top: 12px; }
.back-link { display: inline-block; margin-top: 24px; }
@media (max-width: 820px) {
  .site-page .shell { width: calc(100% - 48px); }
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-nav { position: static; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .guide-nav > div { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  .site-page .shell { width: calc(100% - 36px); }
  .site-page .site-header { padding-block: 18px; gap: 12px; }
  .site-page .site-header .wordmark { width: 110px; }
  .site-page .site-header nav { justify-content: flex-end; gap: 4px 12px; }
}
@media (max-width: 520px) {
  .site-header { padding-block: 28px 36px; gap: 16px; align-items: flex-start; }
  .site-header nav { justify-content: flex-end; gap: 8px 16px; }
  .wordmark { width: 112px; height: 34px; }
  .guide-content { font-size: .9375rem; }
}
