/* The Moves newsletter sign-up page. Shared field/chip/success styles come from forms.css. */

.newsletter { padding-top: 64px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 56px 88px; align-items: flex-start; }

.newsletter__main { flex: 1.1 1 440px; min-width: 0; }
.newsletter__kicker { margin-bottom: 16px; }
.newsletter__title { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 7vw, 104px); line-height: .9; letter-spacing: .01em; text-transform: uppercase; }
.newsletter__lede { margin-top: 24px; max-width: 520px; font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 2vw, 27px); line-height: 1.3; color: var(--text-2); }

/* Form */
.newsletter__form { margin-top: 40px; max-width: 600px; }
.newsletter__row { display: flex; border: 1px solid var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.newsletter__row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.newsletter__row.is-invalid { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.newsletter__email { flex: 1; min-width: 0; border: 0; border-radius: 0; outline: 0; background: transparent; padding: 18px 20px; font-size: 17px; color: var(--ink); }
.newsletter__email::placeholder { color: #8a8a8a; opacity: 1; }
.newsletter__email:focus-visible { outline: 0; }
.newsletter__submit { padding: 18px 26px; gap: 10px; border: 0; }
.newsletter__consent { margin-top: 12px; }
.newsletter__prefs { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.newsletter__prefs > .field__label { letter-spacing: .2em; }
.newsletter__chips { margin-top: 12px; }
.newsletter__citylabel { margin-top: 22px; }
.newsletter__city { margin-top: 10px; width: auto; min-width: 240px; max-width: 100%; }
.newsletter__fine { margin-top: 16px; }

/* Joined */
.newsletter__joined { margin-top: 40px; max-width: 600px; padding: clamp(28px, 4vw, 44px); }
.newsletter__joined .success-panel__icon { width: 52px; height: 52px; }
.newsletter__joinedtitle { margin-top: 22px; font-size: clamp(32px, 3.6vw, 48px); line-height: 1; }
.newsletter__joined .success-panel__text { margin-top: 14px; font-size: 16px; }
.newsletter__joined .success-panel__actions { margin-top: 28px; gap: 10px; }

/* Perks */
.newsletter__perks { list-style: none; margin: 56px 0 0; padding: 0; max-width: 600px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.newsletter__perk { padding: 20px 20px 0 0; }
.newsletter__perktitle { margin-top: 12px; font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.1; }
.newsletter__perkbody { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--text-3); }

/* Sample issue */
.newsletter__sample { flex: 1 1 380px; min-width: 0; max-width: 560px; position: sticky; top: 96px; }
.newsletter__samplelabel { margin-bottom: 12px; }
.issue { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); background: #fff; padding: 28px 0 8px; }
.issue__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.issue__name { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.issue__item { display: flex; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.issue__thumb { flex: none; width: 88px; height: 88px; }
.issue__body { min-width: 0; }
.issue__kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.issue__title { margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.1; }
.issue__dek { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--text-3); }
.issue__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0 12px; }
.issue__ask { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 18px; color: var(--text-2); }

@media (max-width: 960px) {
  .newsletter__sample { position: static; max-width: 600px; }
}

@media (max-width: 560px) {
  .newsletter { padding-top: 40px; padding-bottom: 72px; gap: 48px; }
  .newsletter__main, .newsletter__sample { flex-basis: 100%; }
  .newsletter__row { flex-direction: column; }
  .newsletter__submit { width: 100%; }
  .newsletter__city { width: 100%; min-width: 0; }
  .issue__thumb { width: 72px; height: 72px; }
  .issue__item { align-items: flex-start; gap: 14px; }
}
