/* Shared site header, footer and reading pages. */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 550 24px/1 var(--f-body); letter-spacing: -1.1px; color: var(--ink); white-space: nowrap; text-decoration: none; }
.brand-dot { color: var(--accent); }
.brand-icon { height: 27px; width: 27px; fill: var(--accent); stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.top .wrap { min-height: 94px; max-width: 1240px; padding: 16px 48px; gap: 30px; }
.top .nav { gap: 28px; }
.top .nav a { font-size: 12px; color: var(--muted); }
.top .nav a:hover { color: var(--accent); }
.top #nav-start { color: var(--ink); }
.top .theme-toggle { flex: 0 0 auto; font-family: var(--f-mono); }
.top .acct-chip { color: var(--ink); }
.top .acct-chip i { background: var(--accent); color: var(--accent-ink); }
.skip-link { position: absolute; z-index: 30; top: -100px; left: 20px; padding: 12px; background: var(--accent); color: var(--accent-ink); }
.skip-link:focus { top: 12px; }
.site-footer .wrap { max-width: 1240px; padding: 30px 48px; gap: 20px 30px; font-size: 11px; }
.site-footer .brand { font-size: 22px; margin-right: auto; }
.site-footer a:not(.brand) { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.document-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.document-page h1 { letter-spacing: -.04em; }
.document-page h2 { letter-spacing: -.015em; }
.document-page .btn { color: var(--accent-ink); }
@media(max-width:820px) {
  .top .wrap { padding-inline: 32px; gap: 20px; }
  .top #nav-home .hide-sm { display: none; }
  .top .nav { gap: 18px; }
}
@media(max-width:640px) {
  .top .wrap { min-height: 77px; padding: 12px 24px; gap: 12px; }
  .top .brand { font-size: 21px; gap: 8px; }
  .top .brand-icon { width: 22px; height: 22px; }
  .top .nav { gap: 10px; }
  .top .nav a { font-size: 11px; }
  .top .theme-toggle { margin-left: 0; }
  .site-footer .wrap { padding: 29px 24px; gap: 20px; }
  .site-footer .brand { width: 100%; }
  .site-footer span { width: 100%; }
}
@media(max-width:360px) {
  .top .wrap { padding-inline: 16px; gap: 8px; }
  .top .brand { font-size: 19px; gap: 6px; }
  .top .brand-icon { width: 20px; height: 20px; }
  .document-header .brand { font-size: 21px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
