/*
 * The shared footer's tokens (4thcltr.com docs/design/footer.md, "Every site"). css/site-footer.css is
 * copied whole and names no face and no colour: this file maps what it reads onto this site's own
 * faces and colours, once, in both themes (the colour tokens below point at tokens that
 * [data-theme] already switches). Nothing in site-footer.css is overridden here.
 *
 * Faces: Archivo carries every word and the AI use bar's label, IBM Plex Mono sets the tag in the
 * panel. Archivo is the label face, so the mark's size and drop stay Archivo's (1.065em, 0.185em).
 */

.site-footer {
  --line: 1.75rem;
  --text-lede: 1.25rem;
  --text-label: 0.75rem;
  --text-label--line-height: 0.875rem;
  --text-panel: 0.875rem;
  --text-panel-mono: 0.8125rem;
  --text-panel--line-height: calc(var(--line) * 3 / 4);
  --tracking-label: 0.06em;
  --font-sans: var(--font-ui);
  --font-label: var(--font-ui);
  --color-copy: var(--ink);
  --color-muted: var(--ink-muted);
  --color-faint: var(--ink-faint);
  --color-bone: var(--ink-strong);
  --color-line: var(--line-hair);
  --color-line-soft: var(--line-hair);
  --color-ground-lift: var(--surface-raised);
  --grid-gap: var(--space-md);

  /* Where the footer sits in the page: after the content, full width, on the sunken surface the faint ink is measured against. */
  flex-shrink: 0;
  align-self: stretch;
  margin-top: auto;
  background: var(--surface-sunken);
}

/* The footer's two class names that the site's own stylesheet has no equivalent for. */
.site-footer .shell {
  --shell-inline-space: 1.125rem;
  --shell-gutter: max(var(--shell-inline-space), env(safe-area-inset-left), env(safe-area-inset-right));
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--shell-gutter);
}

@media (min-width: 640px) {
  .site-footer .shell {
    --shell-inline-space: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .site-footer .shell {
    --shell-inline-space: 2.5rem;
  }
}

.site-footer .label {
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 500;
  line-height: var(--text-label--line-height);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

/* The lockup is the site's wordmark face, the one display serif. */
.site-footer .lockup {
  font-family: var(--font-display);
  font-size: var(--text-display-sm);
  line-height: 1.1;
  color: var(--color-bone);
}
