/* The one header every page shares: a wordmark and three destinations.
   Flat, the colour of the page, one hairline; the current page is simply bold. */
.site-nav { position: sticky; top: 0; z-index: 50; background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-line); }
.site-nav-inner { height: 64px;
  padding: 0 max(var(--gut), env(safe-area-inset-right)) 0 max(var(--gut), env(safe-area-inset-left));
  display: flex; align-items: center; gap: 28px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-size: 24px; font-weight: 400; letter-spacing: .005em; line-height: 1; }
.site-mark { width: 24px; height: 24px; flex: none; display: block; }
.site-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* The mark: a zero drawn as a loop of road, with one car on it. The car laps
   once as the page arrives and settles at the top; hovering the name keeps it
   going -- traffic that never has to stop. Still, for anyone who asks the
   system for less motion. */
.site-mark .ring { fill: none; stroke: currentColor; stroke-width: 1.5; }
.site-mark .car { fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round;
  stroke-dasharray: 6 42; stroke-dashoffset: 3; animation: zs-drive 1.8s linear infinite paused; }
.site-mark .orbit { transform-origin: 12px 12px; animation: zs-arrive 1.4s cubic-bezier(.22, .8, .24, 1) .15s both; }
.site-brand:hover .car, .site-brand:focus-visible .car { animation-play-state: running; }
@keyframes zs-arrive { from { transform: rotate(-360deg); } }
@keyframes zs-drive { to { stroke-dashoffset: -45; } }
@media (prefers-reduced-motion: reduce) { .site-mark .orbit, .site-mark .car { animation: none; } }
.site-links { display: flex; gap: 28px; margin-left: auto; }
.site-links a { color: var(--ink-2); text-decoration: none; font-size: 17px; font-weight: 400; padding: 6px 0;
  white-space: nowrap; transition: color .15s; }
.site-links a:hover { color: var(--ink); }
.site-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-signout { font: inherit; font-size: 17px; color: var(--ink-2); background: none; border: 0; padding: 6px 0;
  cursor: pointer; white-space: nowrap; width: auto; min-height: 0; border-radius: 0; }
.site-signout:hover { color: var(--ink); background: none; }
/* Light / dark: a moon to go dark, a sun to go light, turning as they swap. */
.site-theme { width: 36px; height: 36px; min-height: 0; padding: 0; margin: -6px -6px -6px 0; border: 0; border-radius: 50%;
  background: none; color: var(--ink-2); cursor: pointer; display: inline-grid; place-items: center; flex: none; align-self: center; }
.site-theme:hover { color: var(--ink); background: var(--seg-track); }
.site-theme svg { grid-area: 1 / 1; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.site-theme .sun, .site-theme[aria-pressed="true"] .moon { opacity: 0; transform: rotate(-90deg) scale(.6); }
.site-theme[aria-pressed="true"] .sun { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .site-theme svg { transition: none; } }

/* Desktop: the header tucks up out of the way and slides down when the pointer
   reaches the top edge (theme.js). The page takes the space it gave up. */
html.nav-auto .site-nav { position: fixed; left: 0; right: 0; top: 0; transform: translateY(-100%);
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s; }
html.nav-auto.nav-shown .site-nav { transform: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
html.nav-auto { --nav-height: 0px; }
@media (prefers-reduced-motion: reduce) { html.nav-auto .site-nav { transition: none; } }
@media (pointer: coarse) { .site-links a, .site-signout { min-height: 44px; display: inline-flex; align-items: center; } }
.site-nav :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 560px) {
  .site-nav-inner { height: 56px; gap: 14px; }
  .site-brand { font-size: 21px; }
  .site-links { gap: 16px; }
  .site-links a, .site-signout { font-size: 15px; }
}
@media (max-width: 380px) { .site-brand .site-word { display: none; } }
