/* Shared page chrome for every page: a blue band with the logo at the top,
   grey pages, and a red-orange contact band at the bottom. Load it after any
   page stylesheet so these rules win. */

:root {
  --brand-grey: #ececec;
  --brand-ink: #111111;
  --brand-black: #040404;
  --brand-red: #ff2d09;
  --brand-blue: #699eff;
  --site-logo-w: 112px;
}

html {
  /* Overscroll shows blue above the page and red-orange below it. */
  background: linear-gradient(var(--brand-blue) 50%, var(--brand-red) 50%);
}

body.site-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  border-top: 0;
  padding-bottom: 0;
  background: var(--brand-grey);
  color: var(--brand-ink);
}

/* Keep the footer at the bottom of the window on short pages. */
body.site-page > main {
  flex: 1 0 auto;
}

body.site-page > main.reading-column {
  margin-block: 64px 96px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--brand-black);
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:hover {
  color: #fff;
}

.skip-link:focus-visible {
  transform: none;
  outline: 2px solid var(--brand-black);
  outline-offset: 2px;
}

.site-header {
  display: grid;
  place-items: center;
  padding: 44px 24px;
  background: var(--brand-blue);
}

.site-header__home {
  display: block;
}

.site-header__home:focus-visible {
  outline: 2px solid var(--brand-ink);
  outline-offset: 6px;
}

.site-header__logo {
  display: block;
  width: var(--site-logo-w);
  max-width: none;
  height: auto;
  aspect-ratio: 160 / 127.51;
}

.site-header--home {
  --site-logo-w: clamp(148px, calc(8vw + 112px), 216px);
  height: clamp(260px, 38vh, 420px);
  height: clamp(260px, 38svh, 420px);
  padding: 0 24px;
}

.site-footer {
  padding-block: 48px max(48px, calc(env(safe-area-inset-bottom) + 32px));
  padding-inline: 24px;
  background: var(--brand-red);
  color: var(--brand-ink);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.012em;
  text-align: center;
}

.site-footer__links a {
  color: inherit;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.site-footer__links a:focus-visible {
  outline: 2px solid var(--brand-ink);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  :root {
    --site-logo-w: 92px;
  }

  .site-header {
    padding-block: 32px;
  }

  body.site-page > main.reading-column {
    margin-block: 44px 72px;
  }
}

@media print {
  html,
  body.site-page {
    background: #fff;
  }

  .site-header,
  .site-footer {
    display: none;
  }
}
