/* The header and footer every page shares (partials/header.html and partials/footer.html, put in by the build).
   The pages define the colour tokens (--bg, --text, --accent and so on); this file only lays out the chrome. */
.chrome { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-header { border-bottom: 1px solid var(--border); }
.site-header nav { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.site-header .links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; }
.site-header .links > a:not(.download) { color: var(--soft); text-decoration: none; padding: 10px 0; }
.site-header .links > a:not(.download):hover { color: var(--text); }
.site-header .links > a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.site-header .theme { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: none; color: var(--text); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.site-header .download { display: inline-flex; align-items: center; text-decoration: none; font-weight: 600; border-radius: 8px; padding: 11px 18px; font-size: 15px; background: var(--accent); color: var(--on-accent); }
.site-footer { border-top: 1px solid var(--border); }
.site-footer .chrome { padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 12px; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--accent); }
.site-footer a[aria-current="page"] { color: var(--text); text-decoration: none; }
@media (max-width: 640px) {
  .chrome { padding-left: 16px; padding-right: 16px; }
  .site-header .links { gap: 16px; }
  .site-header .links > a.hide-sm { display: none; }
}
