/* ==========================================================================
   React Native Newsletter — site styles
   One stylesheet replacing Webflow's normalize.css + components.css +
   react-native-newsletter.css. Only rules the site actually uses are kept.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --midnight-blue: #1a022a;
  --white: #fff;
  --light-purple: #784091;
  --light-grey: #d3cdd6;
  --red: #e73538;

  /* Dark purple surfaces (merged from #43294e / #44314d / #311d3f) */
  --purple-line: #44314d;   /* form section borders, success message */
  --purple-deep: #311d3f;   /* error message */

  --input-text: #333;
  --input-border: #ccc;
  --focus: #3898ec;

  --radius: 4px;
  --radius-lg: 8px;
  --font: Montserrat, sans-serif;

  --ease-in-out: cubic-bezier(0.455, 0.03, 0.515, 0.955);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ---------- Reset (trimmed normalize) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; }
main, nav, header, footer, section { display: block; }
img { max-width: 100%; vertical-align: middle; display: inline-block; border: 0; }
button, input, textarea { font: inherit; color: inherit; margin: 0; }
button, input[type="submit"] { -webkit-appearance: button; cursor: pointer; overflow: visible; }
textarea { overflow: auto; }
fieldset { margin: 0; min-width: 0; }
legend { padding: 0; }
strong, b { font-weight: bold; }

/* ---------- Base typography ---------- */
body {
  background-color: var(--midnight-blue);
  color: var(--midnight-blue);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

h1, h2, h3, h4 { font-weight: 600; margin-bottom: 10px; }

h1 {
  color: var(--white);
  margin-top: 20px;
  font-size: 3.5em;
  font-weight: 700;
  line-height: 1.2em;
}

h2 {
  color: var(--white);
  text-align: left;
  margin-top: 16px;
  margin-bottom: 16px;
  font-size: 2.4em;
  line-height: 1.4em;
}

h3, h4 { font-size: 16px; line-height: 24px; }
h3 { color: var(--midnight-blue); margin-top: 8px; margin-bottom: 8px; }
h4 { margin-top: 10px; margin-bottom: 4px; }

p { text-align: left; margin-top: 0; margin-bottom: 10px; line-height: 24px; }

a { color: var(--red); text-decoration: underline; }

ul {
  color: var(--light-purple);
  margin-top: 24px;
  margin-bottom: 8px;
  padding-left: 48px;
}
li { padding-bottom: 8px; padding-left: 16px; }

/* Text modifiers */
.heading { font-size: 52px; line-height: 62px; }
.subtitle { color: var(--light-grey); font-size: 22px; font-weight: 500; line-height: 34px; }
.h2--small { font-size: 22px; }
.h2--graphic { color: var(--light-purple); line-height: 46px; }
.logo-text {
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 600;
}
.p--reversed { color: var(--white); }
.p--large { font-size: 18px; line-height: 26px; }
.p--reversed.p--large { line-height: 28px; }
.p--reversed.p--large.spacing--large { margin-top: 40px; margin-bottom: 180px; }
.p--simple { color: var(--white); margin-bottom: 0; }

/* ---------- Layout ---------- */
.container { max-width: 700px; margin-left: auto; margin-right: auto; }
.container--narrow { max-width: 680px; }
.container--wide { max-width: 1440px; padding-left: 24px; padding-right: 24px; }

/* ---------- Navigation ---------- */
.nav-main {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background-color: var(--midnight-blue);
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-main__inner { display: flex; align-items: center; justify-content: space-between; }

.nav-main__logo {
  flex: none;
  width: 60px;
  height: 60px;
  background: url('../images/rnn-logo-mark.svg') 50% / auto no-repeat;
}

.nav-main__menu { display: flex; }

.nav-main__menu__link {
  padding: 20px;
  color: var(--light-grey);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.nav-main__menu__link:hover { color: var(--light-purple); }

.menu-button {
  display: none;
  padding: 18px;
  border: 0;
  background-color: var(--midnight-blue);
  color: var(--white);
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav__icon { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 32px;
  border: 0;
  border-radius: var(--radius);
  background-color: var(--light-purple);
  color: var(--white);
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
}
.button--form { margin-top: 0; }

/* ---------- Forms ---------- */
.form { margin-left: auto; margin-right: auto; padding-top: 48px; padding-bottom: 80px; }
.form-block { max-width: 700px; margin: 0 auto 15px; }
.form__description { max-width: 700px; margin: 0 auto 48px; }
.signup { margin-top: 24px; margin-bottom: 15px; }

.form__div { color: var(--white); padding-top: 24px; padding-bottom: 24px; font-weight: 400; }

.form__label { display: block; margin-bottom: 5px; font-weight: 500; }
.form__label--bottom-pad { margin-bottom: 24px; }

.form__section {
  color: var(--white);
  border: 1px solid var(--purple-line);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  padding: 24px 32px;
  font-weight: 400;
}
fieldset.form__section legend { float: left; width: 100%; }
fieldset.form__section legend + * { clear: left; }

.form__row { display: flex; justify-content: space-between; margin-bottom: 8px; padding-top: 8px; padding-bottom: 8px; }

/* Text inputs + textarea share one base */
.input {
  display: block;
  width: 100%;
  height: 38px;
  margin-bottom: 8px;
  padding: 8px 12px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--input-text);
  font-size: 14px;
  line-height: 1.42857143;
  vertical-align: middle;
}
.input::placeholder { color: #999; }
.input:focus { border-color: var(--focus); outline: 0; }

.input--signup { width: 75%; height: 48px; margin-bottom: 0; padding: 8px 16px; }
.input--textarea { height: auto; min-height: 120px; margin-top: 16px; padding: 16px; }

/* Radio buttons */
.form__radio {
  display: flex;
  align-items: center;
  margin: 8px 0;
  padding: 4px 0;
  font-weight: 400;
  cursor: pointer;
}
.form__radio__bttn {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0 16px 0 0;
  border: 2px solid var(--light-grey);
  border-radius: 50%;
  background-color: var(--white);
  cursor: pointer;
}
.form__radio__bttn:focus-visible { box-shadow: 0 0 3px 1px var(--focus); outline: 0; }
.form__radio__bttn:checked {
  border-color: var(--midnight-blue);
  background-color: var(--light-purple);
  outline: 1px solid var(--light-purple);
}
.form__other { margin-top: 8px; }

/* Honeypot (spam trap) */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Success / error states — shared by every form */
.form__success,
.form__error {
  display: none;
  border-radius: var(--radius);
  color: var(--white);
}
.form__success { padding: 20px; text-align: center; background-color: var(--purple-line); }
.form__error { margin-top: 10px; padding: 10px; background-color: var(--purple-deep); }

.form-state.is-success form { display: none; }
.form-state.is-success .form__success,
.form-state.is-error .form__error { display: block; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow-x: clip; padding-top: 164px; padding-bottom: 380px; }

.hero__graphic { position: absolute; inset: auto 0 0; width: 100%; }

.hero__graphic__img1,
.hero__graphic__img2 {
  position: absolute;
  inset: auto 0 0;
  background-repeat: no-repeat;
  background-size: 523px;
  animation: graphic-in 500ms var(--ease-in-out) both;
}
.hero__graphic__img1 {
  height: 310px;
  background-image: url('../images/graphic1-1.png');
  background-position: 42% 0;
  --from: 20px;
  animation-delay: 200ms;
}
.hero__graphic__img2 {
  z-index: 2;
  height: 390px;
  background-image: url('../images/graphic2-1.png');
  background-position: 65% 0;
  --from: 80px;
  animation-delay: 250ms;
}
@keyframes graphic-in {
  from { transform: translate3d(0, var(--from), 0); }
  to   { transform: none; }
}

.alert {
  position: absolute;
  inset: auto 2% 6% auto;
  z-index: 3;
  display: flex;
  align-items: center;
  max-width: 100%;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  background-color: var(--light-purple);
  text-decoration: none;
}

/* Scroll reveal (slide in from the right). Only hidden when JS is running. */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(100px, 0, 0);
  transition: opacity 1s var(--ease-out-quart), transform 1s var(--ease-out-quart);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__graphic__img1, .hero__graphic__img2 { animation: none; }
  .js [data-reveal] { transition: none; }
}

/* ---------- Sub-page hero ---------- */
.hero-subpage { padding-top: 180px; padding-bottom: 48px; }
.hero-subpage.full-height { padding-bottom: 100px; }

/* ---------- Past issues ---------- */
.campaigns { padding-top: 48px; padding-bottom: 140px; }
.campaigns__list { margin-left: auto; margin-right: auto; }
.campaign__list__year { display: flex; flex-direction: column; margin-bottom: 60px; }

/* Mailchimp archive embed markup — one style for every year */
.archive .display_archive { font-family: var(--font); font-size: 18px; color: var(--light-grey); }
.archive .campaign { line-height: 150%; margin: 0; padding-bottom: 18px; }

/* ---------- Sponsorship ---------- */
.stats { display: flex; justify-content: space-between; margin-top: 72px; }
.stats__col { display: flex; flex-direction: column; align-items: center; width: 33%; }

.about { text-align: center; margin: 0 auto; padding-top: 48px; padding-bottom: 80px; }

.banner {
  height: 710px;
  background: url('../images/sponsor-examples-2.jpg') 50% 0 / 1440px no-repeat;
}

/* ---------- Footer ---------- */
.footer { background-color: var(--white); padding-top: 80px; padding-bottom: 120px; }
.footer__flex { display: flex; justify-content: space-between; }

.editor { display: flex; align-items: center; text-align: left; }
.editor__img {
  flex: none;
  width: 80px;
  height: 80px;
  margin-right: 16px;
  background: url('../images/derek.jpeg') center / cover no-repeat;
}

.footer__links { display: flex; align-items: flex-start; }
.footer__links__col { display: flex; flex-direction: column; align-items: flex-start; margin-left: 64px; }
.footer__links__li { margin-top: 16px; }

/* ---------- 404 ---------- */
.utility-page-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  max-height: 100%;
}
.utility-page-content { display: flex; flex-direction: column; width: 420px; text-align: center; }
.utility-img { margin-bottom: 32px; }

/* ==========================================================================
   Breakpoints (same as the Webflow site): 991 / 767 / 479
   ========================================================================== */

@media screen and (max-width: 991px) {
  .container { max-width: 590px; }
  .container--narrow { max-width: 560px; }
  .container--wide { max-width: 1440px; }

  /* Mobile menu: full-screen panel that slides in from the right */
  .menu-button { display: block; }
  .nav-main__menu {
    position: fixed;
    inset: 80px 0 0 0;
    z-index: 3;
    flex-direction: column;
    padding-top: 32px;
    background-color: var(--midnight-blue);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 400ms ease-in, visibility 0s linear 400ms;
  }
  .nav-open .nav-main__menu {
    transform: none;
    visibility: visible;
    transition: transform 400ms ease-in, visibility 0s;
  }
  .nav-open { overflow: hidden; }
  .nav-main__menu__link {
    display: flex;
    padding: 20px 20px 20px 80px;
    font-size: 1.3em;
    line-height: 1.2em;
  }

  .campaigns { padding-top: 100px; padding-bottom: 80px; }
  .campaign__list__year { margin-left: auto; margin-right: auto; }

  .p--reversed.p--large.spacing--large { margin-bottom: 100px; }

  .banner { background-size: 1190px; height: 590px; }

  .alert { bottom: -6%; }
}

@media screen and (max-width: 767px) {
  .hero { padding-bottom: 320px; }

  .container { max-width: 450px; }
  .container--narrow { max-width: 440px; }

  .heading { font-size: 40px; }

  .hero-subpage.full-height { padding-bottom: 180px; }

  .campaigns { padding-top: 100px; padding-bottom: 60px; }

  .footer { padding-bottom: 100px; }
  .footer__flex { flex-direction: column; }
  .editor { justify-content: center; }
  .footer__links { justify-content: center; margin-top: 80px; }

  .p--reversed.p--large.spacing--large { margin-bottom: 80px; }

  .banner { background-size: 930px; height: 480px; }

  .hero__graphic__img1 { background-position: 0 0; height: 250px; }
  .hero__graphic__img2 { background-position: 160% 0; height: 330px; }

  .alert { bottom: -5%; }
}

@media screen and (max-width: 479px) {
  h1 { font-size: 2.8em; line-height: 51px; }
  h2 { line-height: 1.3em; }

  .hero { padding-top: 148px; padding-bottom: 40px; }
  .hero__graphic, .alert { display: none; }

  .container, .container--narrow { max-width: none; padding-left: 16px; padding-right: 16px; }

  .subtitle { font-size: 1.25em; line-height: 1.5em; }

  .form__row { flex-direction: column; }
  .input--signup { width: auto; }
  .button--form { margin-top: 16px; }

  .hero-subpage { padding-top: 148px; }
  .hero-subpage.full-height { padding-bottom: 140px; }

  .campaigns { padding-top: 80px; padding-bottom: 80px; }
  .campaign__list__year { margin-left: 0; margin-right: 0; }

  .footer__flex { align-items: center; }
  .editor { flex-direction: column; }
  .footer__links { justify-content: space-between; margin-top: 64px; }
  .footer__links__col { margin-left: auto; margin-right: 24px; }

  .stats { flex-direction: column; align-items: center; }
  .stats__col { width: 100%; margin-bottom: 16px; }

  .banner { background-size: 820px; height: 410px; }
}
