/* --color-dark (the site's near-black surface, also used by
   u-surface-dark), not a flat ember fill, so this bar reads as a
   distinct band rather than blending into the final CTA section right
   above it. The radial highlight plus the oversized .c-newsletter__deco
   icon give the banner some depth without needing real photography. */
.c-newsletter {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 4vw + 2rem, 5.5rem) var(--gutter);
  background:
    radial-gradient(120% 180% at 12% -30%, rgb(255 255 255 / .08), transparent 55%),
    url("../../images/newsletter-coffee-beans-bg.webp") center / cover no-repeat,
    var(--color-dark);
  color: var(--color-white);
}

.c-newsletter :is(h1, h2, h3, h4) {
  color: inherit;
}

.c-newsletter__deco {
  position: absolute;
  top: 50%;
  right: clamp(-3rem, 2vw, 1rem);
  width: clamp(16rem, 22vw, 24rem);
  height: clamp(16rem, 22vw, 24rem);
  color: rgb(255 255 255 / .08);
  transform: translateY(-50%) rotate(-8deg);
  pointer-events: none;
}

.c-newsletter__deco svg {
  width: 100%;
  height: 100%;
  stroke-width: .5;
}

.c-newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  gap: var(--space-10);
  width: 100%;
  max-width: var(--container-2xl);
  margin-inline: auto;
}

.c-newsletter__eyebrow {
  color: var(--color-accent-text) !important;
  opacity: 1;
}

.c-newsletter__heading {
  margin-top: var(--space-2);
  font-size: var(--text-h2);
  line-height: 1.1;
}

.c-newsletter__body {
  max-width: 28rem;
  margin-top: var(--space-3);
  font-size: var(--text-lead);
  line-height: 1.5;
  opacity: .92;
}

/* min(), not a bare 25rem: a flat min-width made the form wider than a
   360-390px phone viewport and pushed the whole document sideways. */
.c-newsletter__form {
  flex: 1 1 auto;
  min-width: min(25rem, 100%);
  max-width: 32rem;
}

.c-newsletter__field-row {
  display: flex;
  flex-wrap: wrap;
  background: var(--color-white);
  padding: .4rem;
  box-shadow: var(--shadow-md);
}

.c-newsletter__field-row input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: var(--space-4) var(--space-5);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: var(--text-body);
  outline: none;
}

.c-newsletter__submit {
  flex: 1 1 auto;
  min-height: 3rem;
  border: 0;
  background: var(--color-accent-fill);
  color: var(--color-white);
  font-weight: 800;
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding-inline: var(--space-10);
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-standard);
}

.c-newsletter__submit:hover { background: var(--color-accent-hover); }

.c-newsletter__status {
  min-height: 1.25rem;
  margin-top: var(--space-2);
  font-size: var(--text-small);
}

.c-newsletter__status[data-state="success"] { color: var(--color-success-text); }
.c-newsletter__status[data-state="error"] { color: var(--color-ember-200); }

@media (max-width: 47.9375rem) {
  .c-newsletter__inner {
    gap: var(--space-8);
  }

  /* The oversized bean glyph is decorative; at phone widths it sits on
     top of the copy instead of beside it. */
  .c-newsletter__deco {
    display: none;
  }

  .c-newsletter__submit {
    padding-block: var(--space-3);
    padding-inline: var(--space-6);
  }
}
