.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1em;
  padding: 0.3em 0.8em;
  border-bottom: 1px solid;
  height: var(--site-header-height);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}

.site-header__brand {
  justify-self: start;
}

.site-header__center {
  justify-self: center;
}

.site-header__end {
  justify-self: end;
}

.header-center-nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1em;
}

.site-header__brand-link:any-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.3em;
}

.site-header__end {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1em;
}

.site-header__desktop-actions ul,
.site-header__menu-links {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.site-header__desktop-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.site-header__desktop-actions ul {
  flex-direction: row;
}

.site-header__brand,
.site-header__center,
.site-header__end,
.site-header__desktop-actions,
.site-header__desktop-locale {
  position: relative;
  z-index: var(--z-header-chrome);
}

.site-header__menu {
  position: relative;
}

.site-header__menu-toggle {
  position: relative;
  z-index: var(--z-header-chrome);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35em;
  border: var(--border-width-1) solid;
}

.site-header__menu-icon {
  inline-size: 1.05em;
  block-size: 1.05em;
}

.site-header__menu-panel {
  display: none;
  position: fixed;
  z-index: var(--z-header-menu);
  inset-block-start: var(--site-header-height);
  inset-inline-end: 0;
  block-size: calc(100dvh - var(--site-header-height));
  inline-size: min(100%, 21rem);
  padding-block: 1.25em 1.5em;
  padding-inline: 1.25em;
  overflow: auto;
  border-left: var(--border-width-1) solid;
  flex-direction: column;
  gap: 1em;
}

.site-header__menu[data-open] .site-header__menu-panel {
  display: flex;
}

.site-header__menu-brand {
  margin-block-start: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
  padding-block-start: 1em;
  text-align: center;
}

.site-header__menu-brand-logo {
  inline-size: 2rem;
  block-size: 2rem;
  max-inline-size: 2rem;
  max-block-size: 2rem;
}

.site-footer {
  --footer-height: max(640px, 55vh);
  display: grid;
  align-items: stretch;
  padding: 2em;
  gap: 2em;
  border-top: 1px solid;
}

.site-footer > nav {
  block-size: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.site-footer > section {
  display: flex;
  gap: 1em;
  block-size: 100%;
  flex-direction: column;
  justify-content: space-between;
}

.page-footer__brand {
  justify-content: space-between;
}

.page-footer__logo {
  --brand-logo-size: clamp(3rem, 7vw, 4.5rem);
  inline-size: var(--brand-logo-size);
  block-size: var(--brand-logo-size);
  max-inline-size: var(--brand-logo-size);
  max-block-size: var(--brand-logo-size);
}

.page-footer__brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}

.site-footer > section.page-footer__meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25em;
}

.site-footer > section.page-footer__meta > section {
  display: flex;
  flex-direction: column;
}

.page-footer__auth ul {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25em;
  padding: 0;
}

.site-footer-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
  inline-size: 100%;
  text-align: center;
}

.site-footer-nav__group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75em 1.25em;
  padding: 0;
}
