/* signup — mailing list band.

   Two columns, not centred. A centred band reads as a closing statement, and
   there is already one of those at the foot of the home page; this is a small
   ask made in passing, so it sits as a row: what you get on the left, where to
   put your address on the right. */

.signup { --section-bg: var(--color-white); background: var(--section-bg); border-top: 1px solid var(--rule); padding: var(--space-section-y) 0; }
.signup__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--margin);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: center;
}
.signup__eyebrow  { color: var(--text-subtle); margin: 0 0 12px; }
.signup__headline {
  font-family: var(--font-display-condensed);
  font-weight: var(--weight-poster-heavy);
  text-transform: uppercase;
  font-size: var(--fs-section-headline);
  line-height: 1;
  margin: 0;
  text-wrap: balance;
  letter-spacing: .01em;
}
.signup__body { margin: 16px 0 0; max-width: 46ch; color: var(--text-muted); }

.signup__row { display: flex; gap: 12px; align-items: stretch; }
.signup__field {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--color-navy);
  background: var(--color-white);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0 20px;
  /* Measured against the button beside it rather than guessed. `.btn` sets a
     fixed height: 44px, so the field takes the same number; an input and a
     button of different heights in one row is the first thing the eye finds,
     and align-items: stretch cannot fix it while the button's height is
     fixed. */
  min-height: 44px;
}
.signup__field:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 2px; }
.signup__btn { flex: 0 0 auto; }

/* The note is the honest part. It is not styled as fine print to be skipped:
   this field does not work yet, and anyone reviewing the page should know
   that before they test it. */
.signup__note { margin: 12px 0 0; font-size: var(--fs-meta); color: var(--text-subtle); }

.tone--navy.signup { --section-bg: var(--color-navy); color: var(--color-white); border-top-color: #ffffff2e; }
.tone--navy .signup__eyebrow { color: var(--accent-decor); }
.tone--navy .signup__body    { color: #ffffffc2; }
.tone--navy .signup__note    { color: #ffffff8f; }
.tone--navy .signup__field   { border-color: #ffffff3d; }

@media (max-width: 899px) {
  .signup__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 599px) {
  /* Side by side, a pill button and an email field each get half a phone and
     neither can hold what it has to. */
  .signup__row { flex-direction: column; }
  .signup__btn { width: 100%; }
}
