/* ---------- footer: the floor continues, the name rests in it as a trace ---------- */

.foot {
  --foot-trace: #1a1a20;
  --foot-ink: #ffffff;
  --foot-still: #26262d;
  position: relative;
  margin: 0;
  border-radius: 0;
  background: linear-gradient(180deg, var(--floor) 0%, var(--floor-end) 100%);
  color: var(--d-low);
  overflow: hidden;
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
}

/* the row and the name share one measure, so the name's first and last strokes sit on the row's edges */
.foot__row, .foot__mark { margin-inline: max(var(--gutter), calc((100% - var(--measure)) / 2)); }

.foot__row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  font-size: 14px;
}
.foot__brand { display: flex; align-items: center; gap: 10px; color: var(--d-low); }
.foot__brand .brand__mark { width: 20px; height: 20px; margin-left: -3.75px; color: var(--d-hi); }
.foot__links { display: flex; gap: 4px; }
.foot__links a, .foot__meta a {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--d-low);
  transition: color var(--t-out) var(--ease), background-color var(--t-out) var(--ease);
}
.foot__links a:hover, .foot__meta a:hover { color: var(--d-hi); background: var(--d-fill); transition-duration: var(--t-in); }
.foot__meta { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-right: -10px; font-variant-numeric: tabular-nums; }
.foot :focus-visible { outline: 2px solid var(--focus-dark); outline-offset: 2px; }

/* the name: sized so its ink spans the measure exactly, cut a little above the baseline by the island's edge */
.foot__mark {
  container-type: inline-size;
  padding-top: clamp(20px, 3vw, 44px);
  user-select: none;
  pointer-events: none;
}
.foot__mark > span {
  display: block;
  width: max-content;
  margin: 0 0 -0.225em -0.0704em;
  font-size: calc((100vw - 16px - var(--gutter) * 2) / 6.7512);
  font-size: calc(100cqi / 6.7512);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--foot-trace);
  will-change: transform;
}
.foot__mark > span > span { color: color-mix(in oklab, var(--foot-ink) calc(var(--f, 0) * 100%), var(--foot-trace)); }

@media (max-width: 760px) {
  .foot__row { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 14px; }
  .foot__links { margin-left: -10px; }
  .foot__meta { justify-content: flex-start; margin: 0 0 0 -10px; gap: 4px; }
  .foot__meta span { padding: 6px 10px; }
}


/* still: the name rests one tonal step up, whole and quiet */
@media (prefers-reduced-motion: reduce) {
  .foot__mark > span, .foot__mark > span > span { color: var(--foot-still); }
}

@media (prefers-contrast: more) {
  .foot { --foot-trace: #2e2e36; --foot-still: #3a3a42; }
}
