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

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

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

.site-header__brand-link:any-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
}

.site-header__brand-link span {
  font-family: var(--font-heading);
  font-size: 1.45em;
  font-weight: var(--font-weight-heavy);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}

.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);
}

.site-header__menu-icon {
  inline-size: 1.2em;
  block-size: 1.2em;
  color: currentColor;
}

.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: var(--border-width-1) solid var(--color-chrome-border);
}

.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;
}
