/* Newsletter signup — shared by every page family.
 *
 * Loaded as a same-origin stylesheet so it works under the generated city
 * pages' CSP (`style-src 'self' …`). Do not inline these rules into a page:
 * the whole point is that the footer form looks identical everywhere.
 *
 * Colors come from tokens each page already defines (--card-bg, --card-border,
 * --terra, --cream, --muted). The accent token differs by page family —
 * website/index.html defines --gold, the generated pages define --amber — so
 * the accent falls through both before landing on a literal.
 */

.nl {
  --nl-accent: var(--gold, var(--amber, #D4A96A));
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.nl-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--nl-accent);
  margin-bottom: 12px;
}

.nl-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.nl-input {
  flex: 1;
  min-width: 0; /* lets the input shrink inside the flex row instead of overflowing */
  background: var(--card-bg, rgba(255, 255, 255, 0.035));
  border: 1px solid var(--card-border, rgba(212, 169, 106, 0.12));
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--cream, #EDE8DF);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.nl-input::placeholder { color: var(--muted, #606878); }
.nl-input:focus { border-color: var(--nl-accent); }

.nl-btn {
  background: var(--terra, #C4673A);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 13px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.nl-btn:hover { opacity: 0.85; }

.nl-fine {
  font-size: 11.5px;
  color: var(--muted, #606878);
  line-height: 1.5;
}

/* Screen-reader-only label. The visible placeholder is not an accessible name. */
.nl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Honeypot. Positioned off-screen rather than `display:none` — some bots skip
 * undisplayed fields, and the point is that they DO fill this one in.
 * aria-hidden + tabindex="-1" in the markup keep it away from real users.
 */
.nl-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
}

/* Homepage CTA — the same form in a card, with room to breathe. */
.nl-cta {
  position: relative;
  z-index: 10;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

.nl-cta-inner {
  background: var(--card-bg, rgba(255, 255, 255, 0.035));
  border: 1px solid var(--card-border, rgba(212, 169, 106, 0.12));
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
}

.nl-cta-inner h2 {
  font-family: 'Lora', serif;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--cream, #EDE8DF);
  margin-bottom: 10px;
}

.nl-cta-inner > p {
  color: var(--muted, #606878);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 440px;
  margin: 0 auto 26px;
}

/* Footer variant — quieter, and separated from the links below it. */
footer .nl {
  padding-bottom: 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--card-border, rgba(212, 169, 106, 0.12));
}

@media (max-width: 460px) {
  .nl-row { flex-direction: column; }
  .nl-btn { width: 100%; }
}
