/* The header identifies the author; the footer contains only site utilities. */
.site-header .brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-header .brand-avatar { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.site-header .brand-name { font-weight: 750; }
.site-header .brand-name > span { font-weight: 500; }
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 24px; }
.footer-content { display: grid; grid-template-columns: auto minmax(0, 1fr) 36px; align-items: center; gap: 20px 36px; }
.footer-copyright { color: var(--muted); font-size: .75rem; }
.footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 22px; font-size: .8125rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .back-top { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; }
@media (max-width: 900px) {
  .header-inner { height: 72px; gap: 10px; flex-wrap: wrap; position: relative; }
  .header-tools { margin-left: auto; gap: 4px; }
  .search-link > span { display: none; }
  .menu-toggle { display: flex; }
  .main-nav { display: none; height: auto; position: absolute; top: 72px; left: 0; right: auto; width: 100%; padding: 12px 20px; margin: 0; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; flex-direction: column; gap: 0; }
  .main-nav > a { font-size: .9375rem; padding: 12px 0; min-height: 46px; }
  .main-nav > a[aria-current=page]::after { width: 24px; bottom: 6px; }
  html:not(.js) .site-header { position: relative; }
  html:not(.js) .header-inner { height: auto; padding-top: 20px; }
  html:not(.js) .main-nav { display: flex; position: static; width: 100%; flex-wrap: wrap; padding: 0; gap: 0 20px; border: 0; box-shadow: none; }
  html:not(.js) .header-tools { position: absolute; right: 0; top: 16px; }
  .footer-content { grid-template-columns: minmax(0, 1fr) 36px; gap: 16px 20px; }
  .footer-copyright { grid-column: 1; }
  .footer-links { grid-column: 1; justify-content: flex-start; }
  .site-footer .back-top { grid-column: 2; grid-row: 1 / 3; align-self: end; }
}
@media (max-width: 640px) {
  .footer-content { column-gap: 12px; }
  .footer-links { gap: 2px 18px; }
}
@media (max-width: 380px) {
  .site-header .brand { gap: 7px; font-size: 18px; }
  .site-header .brand-avatar { width: 26px; height: 26px; border-radius: 7px; }
  .header-tools .icon-button { width: 34px; }
  .header-tools .search-link { min-width: 24px; justify-content: center; }
  .header-tools { gap: 2px; }
}

.hero-actions { flex-wrap: wrap; }
.explore-grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-intro a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.blog-page .prose > h2:first-of-type { margin-top: 0; }
@media (max-width: 640px) {
  .explore-grid-pair { grid-template-columns: 1fr; }
}
