/* Dispatch footers (round 1 of the close, kept beside the four round-2 closes in footer.css; root class .ftd so
   the two sets never collide): an index, a two-tone title with the sign-up, link lists, then
   one colour block holding the figures and a wordmark that fills the width and runs off the bottom edge.
   The reference draws its grid in hairlines; here every cell boundary is a change of ground or a gap. */

.ftd {
  min-height: auto;
}

.ft__top {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr) minmax(0, 1.4fr);
  gap: var(--sp-stack-lg);
  padding: var(--sp-section) var(--lay-gutter) calc(var(--sp-section) * 0.8);
}

.ft__index {
  display: grid;
  align-content: start;
  gap: var(--sp-stack-sm);
  font-size: var(--text-small);
  line-height: var(--text-small--line-height);
}

.ft__index a {
  display: flex;
  gap: var(--sp-inset-md);
}

.ft__index span {
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}

.ft__title {
  font-size: var(--type-title);
}

.ft__title span {
  display: block;
}

.ft__title span + span {
  color: var(--loud);
}

.ft__lede {
  max-width: var(--ms-sm);
  margin-top: var(--sp-stack-md);
  color: var(--quiet);
}

.ft__form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-inset-xs);
  max-width: var(--ms-sm);
  margin-top: var(--sp-stack-lg);
}

.ft__form input {
  flex: 1 1 calc(var(--sp-section) * 2);
  min-height: var(--ctl-xl);
  padding-inline: var(--sp-inset-md);
  border-width: 0;
  border-radius: var(--r-containers);
  background: var(--background);
  color: var(--foreground);
  font: inherit;
}

.ft__form .btn {
  background: var(--ink);
  color: var(--ground);
}

.ftd.ground-paper .ft__form input {
  background: var(--palette-jodhpuri-blue);
  color: var(--palette-lapis-blue);
}

.ft__lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-stack-lg);
}

.ft__lists h2 {
  margin-bottom: var(--sp-stack-md);
  font-family: var(--font-display);
  font-size: var(--text-h3);
  line-height: 1;
  color: var(--loud);
}

.ft__lists ul {
  display: grid;
  gap: var(--sp-stack-sm);
}

/* The block: figures and a statement on top, the wordmark filling the width below. */
.ft__block {
  position: relative;
  overflow: clip;
  background: var(--block-ground);
  color: var(--block-ink);
}

.ft__figures {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--sp-stack-lg);
  padding: var(--sp-inset-lg) var(--lay-gutter) 0;
}

.ft__figure b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--type-heading);
  line-height: 1;
}

.ft__figure span,
.ft__statement {
  font-size: var(--text-small);
  line-height: var(--text-small--line-height);
}

.ft__statement {
  max-width: var(--ms-sm);
  justify-self: end;
}

.ft__wordmark {
  display: block;
  padding-inline: var(--lay-gutter);
  font-family: var(--font-display);
  font-size: var(--wordmark, 23.5vw);
  line-height: 0.78;
  letter-spacing: var(--text-display--letter-spacing);
  white-space: nowrap;
  transform: translateY(14%);
}

.ft__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-stack-md);
  padding: var(--sp-inset-md) var(--lay-gutter);
  font-size: var(--text-small);
  line-height: var(--text-small--line-height);
}

.ft__legal ul {
  display: flex;
  gap: var(--sp-inset-lg);
}

/* Grounds: the upper area takes the variant's ground, the block its own. */
.ft--crimson-turmeric {
  --block-ground: var(--accent);
  --block-ink: var(--accent-foreground);
  --ground: var(--primary);
}

.ft--lapis-jodhpuri {
  --block-ground: var(--palette-jodhpuri-blue);
  --block-ink: var(--palette-lapis-blue);
  --ground: var(--palette-lapis-blue);
}

.ft--paper-crimson {
  --block-ground: var(--primary);
  --block-ink: var(--palette-dusty-rose);
  --ground: var(--background);
}

.ft--paper-crimson .ft__figure span,
.ft--paper-crimson .ft__statement {
  color: var(--palette-rose-tint);
}

@media (max-width: 899px) {
  .ft__top {
    grid-template-columns: 1fr;
  }

  .ft__index {
    display: none;
  }

  .ft__figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ft__statement {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
