/* Newsletter (#newsletter): a full-bleed row of [vine strip][framed signup box][vine strip].
   The strips are copper masked by the vine tile, centred, so left and right never mirror. Spec 22. */
.nl {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--page);
  padding-block: 64px;
}
.nl-row {
  display: flex;
  align-items: stretch; /* strips take the box's height */
}
.nl-strip {
  flex: 1 1 0;
  min-width: 0;
  background: var(--accent);
  -webkit-mask-image: url(../assets/dc10a65a8b296c044968ab9adb3db380.png);
  mask-image: url(../assets/dc10a65a8b296c044968ab9adb3db380.png);
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: auto 100%;
  mask-size: auto 100%;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Box: 760 from 1024, 640 from 640, the row minus 48px below (24px of vine each side) */
.nl-box {
  position: relative;
  flex: none;
  width: calc(100% - 48px);
  padding: 12px;
}
@media (min-width: 640px) {
  .nl-box { width: 640px; }
}
@media (min-width: 1024px) {
  .nl-box { width: 760px; }
}
.nl-box > .pframe {
  color: var(--accent);
}
.nl-panel {
  position: relative;
  padding: 16px;
  background: var(--surface);
}
@media (min-width: 640px) {
  .nl-panel { padding: 20px; }
}

/* Form: a column on phones; from 640 a wrapping row: label, field group, then the note on its own line */
.nl-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 640px) {
  .nl-form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}
.nl-label {
  padding-left: 4px;
  color: var(--text);
}
.nl-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 640px) {
  .nl-field {
    flex: 1 1 0;
    flex-direction: row;
    min-width: 0;
  }
}
.nl-input {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 0;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-caption);
  font-size: var(--fs-cap-lg);
  font-weight: 500;
  line-height: normal;
  text-transform: none;
}
.nl-input:focus {
  outline: none;
  background: var(--surface-2-hover); /* the only focus cue, instant, as in the reference */
}
@media (min-width: 640px) {
  .nl-input {
    flex: 1 1 auto;
    width: auto;
  }
  .nl-submit { flex: none; }
}
.nl-note {
  flex-basis: 100%;
  padding-left: 4px;
  color: var(--text-3);
}

/* Result line under the form; takes no space until it has something to say */
.nl-status {
  padding-left: 4px;
}
.nl-status.is-error,
.nl-status.is-info {
  margin-top: 12px;
}
.nl-status.is-error {
  color: var(--copper-400);
}
.nl-status.is-info {
  color: var(--text);
}
