/* ---------------------------------------------------------------
   Adeia — closing CTA and footer

   The last two blocks of the page, both on --forest. Everything here is
   scoped under .closing or .site-footer; tokens and shared classes come
   from tokens.css and base.css.

   Contrast on --forest (#1f2d1d), measured:
     --mist       #eddfee  11.29:1   body copy
     --on-forest  #e4ecdf  11.96:1   links, labels, the processor note
     --orchid     #cd8dbd   5.61:1   display heading, plus mark
   All clear WCAG AA at their sizes.
   --------------------------------------------------------------- */

/* ---------- CTA ---------- */
.closing {
  display: grid;
  align-items: center;
  min-height: min(100svh, 56rem);
  padding-block: calc(var(--sec-y) * 1.35);
  overflow: hidden;
  isolation: isolate;
}

/* The dot bowl. Sized by dither.js; it never takes the pointer, the
   section listens for that instead. */
.closing__field {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Holds the text off the densest part of the bowl. Without this the
   pale dots eat into the contrast of the heading. */
.closing__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    60% 44% at 50% 40%,
    rgba(31, 45, 29, 0.95) 0%,
    rgba(31, 45, 29, 0.88) 42%,
    rgba(31, 45, 29, 0) 76%
  );
  background: radial-gradient(
    60% 44% at 50% 40%,
    color-mix(in srgb, var(--forest) 95%, transparent) 0%,
    color-mix(in srgb, var(--forest) 88%, transparent) 42%,
    color-mix(in srgb, var(--forest) 0%, transparent) 76%
  );
}

.closing__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1rem, 1.8vw, 1.75rem);
}

.closing__eyebrow {
  color: var(--orchid);
}

.closing__title {
  max-width: 16ch;
}

.closing__body {
  max-width: 52ch;
  color: var(--mist);
}

.closing__cta {
  margin: 0;
  margin-top: clamp(0.5rem, 1.5vw, 1.5rem);
}

/* ---------- footer ---------- */
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--rule);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.site-footer__link {
  text-decoration: none;
  font-size: var(--t-body);
  line-height: 1.4;
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
  transition:
    color var(--d-hover) var(--ease-out),
    border-color var(--d-hover) var(--ease-out);
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--orchid);
  border-bottom-color: var(--orchid);
}

.site-footer__meta {
  margin: 0;
  color: var(--quiet);
}

/* The one sentence on this page that is a disclosure rather than a
   pitch. It gets the accent rule and full-contrast ink so it cannot be
   read as fine print. */
.site-footer__note {
  margin: 0;
  max-width: 62ch;
  font-size: var(--t-body);
  line-height: var(--lh-body);
  border-left: 1px solid var(--orchid);
  padding-left: clamp(0.75rem, 1.5vw, 1.25rem);
}

@media (min-width: 48rem) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: baseline;
  }

  .site-footer__meta {
    justify-self: end;
    text-align: right;
  }

  .site-footer__note {
    grid-column: 1 / -1;
  }
}
