/* The end of the page: a moving pixel field behind the last call to action and the footer. */

.closing {
  position: relative;
  overflow: hidden;
}

/* Fills the whole section behind the content. The faint grid of dots is its background;
   the lit shapes are drawn on it by pixel-field.js. The 9px size must match
   DOT_SPACING_PX there, so the shapes land exactly on the grid.
   The mask fades grid and shapes out towards the top, so there is no hard edge with
   the section above (the same idea as the bottom of the hero). */
.pixel-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, var(--color-grid-dot) 0.9px, transparent 1.2px);
  background-size: 9px 9px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 35%);
}

.closing-content,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Call to action ---------- */

.closing-content {
  position: relative;
  z-index: 1; /* above the film grain (.grain in css/base.css) */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 112px var(--gutter) 128px;
  text-align: center;
}

/* The last line in the serif, like the headline at the top: ivory, the second line in
   italic. */
.closing-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.closing-title em {
  font-style: italic; /* the italic alone is the emphasis, like the headline at the top */
}

.closing-actions {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.pill-button {
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  transition:
    background-color 200ms var(--ease-in-out),
    color 200ms var(--ease-in-out);
  /* premium look: small spaced capitals */
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pill-button-outline {
  box-shadow: inset 0 0 0 1.5px var(--color-text);
}

.pill-button-outline:hover {
  background: var(--color-hover);
}

.pill-button-muted {
  background: var(--color-pill);
  color: var(--color-text-muted);
}

.pill-button-muted:hover {
  color: var(--color-text);
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: calc(1000px + 2 * var(--gutter));
  margin-inline: auto;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--color-line);
}

.site-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer-links,
.site-footer-legal,
.site-footer-social {
  display: flex;
  align-items: center;
}

.site-footer-links {
  gap: 20px;
  color: var(--color-text-soft);
  font-size: 15px;
  font-weight: 500;
}

/* FEELPIXELS in spaced serif capitals, like the top bar. */
.site-footer-wordmark {
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.site-footer-links a:hover,
.site-footer-legal a:hover,
.site-footer-social a:hover {
  color: var(--color-text);
}

.site-footer-social {
  gap: 16px;
  color: var(--color-text-soft);
}

.site-footer-social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer-legal {
  gap: 20px;
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 14px;
}
