/* Better Angles newsletter page (neilspruce.com). One stylesheet for the page and its thank-you page.
   Values copied from the live Thrive page (computed styles, 1440px desktop) and tidied.
   Paths are relative to this file. */

@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/mulish-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --orange: #d15c30;        /* header, links */
  --button: #e58d2f;        /* subscribe button */
  --text: #6a6b6c;          /* body text */
  --panel: #fbf2ef;         /* pale pink panel */
  --footer-bg: #4c4c4c;
  --footer-link: #9dae11;
  --error: #b3261e;
  --font: 'Mulish', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--orange); }

p { margin: 0 0 1.1em; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Header ---------------------------------------------------------------------------------- */

.site-header {
  position: relative;
  background: var(--orange);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: flex-start;
  min-height: 148px;
  padding-left: 20px;
}

.logo { display: block; flex: none; width: 142px; height: 142px; background: #fff; }

.logo img { width: 142px; height: 142px; }

.main-nav { flex: 1; padding: 30px 20px 0; }

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 10px 40px;
  background: #fff;
  border-radius: 25px;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: 32px;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible { background: #f4e3dc; }

.menu-toggle {
  display: none;
  margin: 30px 20px 0 auto;
  padding: 0;
  width: 52px;
  height: 52px;
  background: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: #000;
  content: '';
  position: relative;
}

.menu-toggle span::before { top: -7px; position: absolute; left: 0; }
.menu-toggle span::after { top: 7px; position: absolute; left: 0; }
.menu-toggle span { position: relative; }

/* ---- Page card ------------------------------------------------------------------------------- */

main { padding: 100px 20px 100px; }

.card {
  display: grid;
  grid-template-columns: 456px 1fr;
  column-gap: 90px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 42px 40px 70px;
  background: #fff;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.1);
}

.panel {
  padding: 0 31px 40px;
  background: var(--panel);
}

.panel h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 52px;
}

.hero-image { margin: 3px 0 15px; }

.panel .lead { margin-bottom: 0.4em; font-size: 21px; line-height: 1.15; }

.panel .subscribe-intro { font-size: 14px; line-height: 1.5; margin-bottom: 1.2em; }

.book-image { width: 238px; margin: 30px auto 0; }

.story { padding-top: 14px; }

.story p:last-child { margin-bottom: 0; }

/* ---- Signup form ----------------------------------------------------------------------------- */

.signup-form { margin: 0 0 1.4em; }

.signup-form input[type="text"],
.signup-form input[type="email"] {
  display: block;
  width: 100%;
  height: 55px;
  margin: 0 0 10px;
  padding: 18px 15px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 0;
  font-family: var(--font);
  font-size: 15px;
  color: #333;
}

.signup-form input::placeholder { color: rgba(0, 0, 0, 0.5); opacity: 0.7; }

.signup-form input:focus-visible,
.signup-form button:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }

.signup-form button {
  display: block;
  width: 100%;
  height: 54px;
  padding: 0 15px;
  background: var(--button);
  border: 0;
  border-radius: 30px;
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 18px;
  text-transform: uppercase;
}

.signup-form button:hover:not(:disabled) { background: #d97f1f; }

.signup-form button:disabled { cursor: default; opacity: 0.7; }

/* The invisible spam trap. Real visitors never see or reach it. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 1.5em; margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--error); }

.consent { margin: 6px 0 0; font-size: 12px; line-height: 1.5; }

/* ---- Thank-you page -------------------------------------------------------------------------- */

.thanks { max-width: 640px; margin: 0 auto; padding: 42px 40px 50px; text-align: center; background: #fff; box-shadow: 0 0 24px rgba(0, 0, 0, 0.1); }

.thanks h1 { margin: 0 0 0.5em; font-size: 30px; font-weight: 400; line-height: 1.3; }

/* ---- Footer ---------------------------------------------------------------------------------- */

.site-footer {
  padding: 33px 20px;
  background: var(--footer-bg);
  color: #fff;
  text-align: center;
}

.site-footer p { margin: 0; }

.site-footer .copyright { font-size: 20px; line-height: 30px; }

.site-footer .legal { margin-top: 2px; font-size: 13px; line-height: 20px; }

.site-footer .credit { font-size: 12px; line-height: 20px; }

.site-footer a { color: var(--footer-link); text-decoration: none; }

.site-footer a.credit-link { color: var(--orange); }

.site-footer a:hover,
.site-footer a:focus-visible { text-decoration: underline; }

/* ---- Tablet and mobile ----------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .card { grid-template-columns: 1fr; row-gap: 30px; max-width: 560px; }
  .story { padding-top: 0; }
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; min-height: 0; }
  .menu-toggle { display: block; }
  .main-nav { flex: 0 0 100%; display: none; padding: 0 20px 20px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 10px; }
  .main-nav a { text-align: center; }
}

@media (max-width: 600px) {
  main { padding: 30px 14px 50px; }
  .card { padding: 14px 14px 30px; }
  .panel { padding: 0 15px 30px; }
  .panel h1 { font-size: 26px; line-height: 44px; }
  .thanks { padding: 30px 20px 40px; }
  .site-footer .copyright { font-size: 17px; }
}
