/* Better Angles free guide page (neilspruce.com). One stylesheet for the page and its thank-you page.
   Values copied from the live Thrive page /better-angles-lead/ (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;
}

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/literata-600-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;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-400-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;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-600-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 {
  --page: #E2ECCF;          /* page background: the soft sage used on the documents and the homepage */
  --paper: #FAF7F0;         /* header strip, as on the homepage */
  --ink: #202020;
  --font-mono: 'IBM Plex Mono', 'Courier Prime', 'Courier New', monospace;
  --cream: #f1efdc;         /* title text on the band */
  --sage: #89b198;          /* title band */
  --teal: #204147;          /* band tagline */
  --orange: #d15c30;        /* heading, links */
  --button: #e58d2f;        /* send button */
  --field: #f8f3f1;         /* input background */
  --text: #555555;          /* body text (darker than the old #6a6b6c, which is too faint on the sage) */
  --error: #b3261e;
  --font: 'Mulish', Arial, sans-serif;
  --serif: 'Literata', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background: var(--page);
}

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 (matches the new homepage: a slim paper strip, wordmark left, menu right) ------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 24px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15.5px;
  line-height: 1.5;
}

.site-header a { color: var(--ink); text-decoration: none; }

.wordmark { font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }

.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; }

.site-header nav a { padding: 4px 0; border-bottom: 1px solid transparent; }

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav a[aria-current] { border-bottom-color: var(--ink); }

/* ---- Banner (decorative photo strip) --------------------------------------------------------- */

.banner { display: block; width: 100%; height: 152px; object-fit: cover; object-position: 50% 50%; }

/* ---- Content column -------------------------------------------------------------------------- */

main { flex: 1 0 auto; width: 100%; max-width: 1120px; margin: 0 auto; padding: 1px 20px 40px; }

/* Title band */
.band { margin: 0; padding: 3px 20px 9px; background: var(--sage); text-align: center; }

.band .brand { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.4; color: var(--cream); }

.band .tagline { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--teal); }

/* ---- Signup form ----------------------------------------------------------------------------- */

.signup-form { display: flex; gap: 15px; margin: 20px 0 0; }

.signup-form input[type="text"],
.signup-form input[type="email"] {
  flex: 1 1 0;
  min-width: 0;
  height: 51px;
  padding: 18px;
  background: var(--field);
  border: 0;
  border-radius: 3px;
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 1px;
  color: #111;
}

.signup-form input::placeholder { color: #555; opacity: 1; }

.signup-form input:focus-visible,
.signup-form button:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }

.signup-form button {
  flex: 0 0 236px;
  height: 51px;
  padding: 0 18px;
  background: var(--button);
  border: 0;
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}

.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: 8px 0 0; font-size: 14px; line-height: 1.5; text-align: center; color: var(--error); }

.disclaimer { margin: 4px 0 0; font-size: 16px; line-height: 1.65; text-align: center; }

/* ---- Guide details --------------------------------------------------------------------------- */

.guide { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; align-items: start; margin-top: 18px; }

.guide h1 {
  margin: 17px 0 2px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--orange);
}

.guide ul { margin: 0; padding-left: 47px; }

.guide li { margin-bottom: 16px; line-height: 1.7; }

.guide-cover { width: 284px; margin: 29px auto 0; }

/* ---- Thank-you page -------------------------------------------------------------------------- */

.thanks { max-width: 640px; margin: 40px auto 0; text-align: center; }

.thanks h1 { margin: 0 0 0.5em; font-size: 26px; font-weight: 700; line-height: 1.3; color: var(--orange); }

/* ---- Footer links ---------------------------------------------------------------------------- */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 24px;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.site-footer a { color: var(--ink-soft); text-decoration: none; }

.site-footer a:hover,
.site-footer a:focus-visible { color: var(--ink); text-decoration: underline; }

.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; }

.site-footer .credit { margin: 0; font-size: 12px; }

/* ---- Tablet and mobile ----------------------------------------------------------------------- */

@media (max-width: 820px) {
  .site-header { padding: 8px 16px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .site-header nav { font-size: 13px; gap: 2px 14px; }
}

@media (max-width: 800px) {
  .signup-form { flex-direction: column; gap: 10px; }
  .signup-form button { flex: none; width: 100%; }
  .guide { grid-template-columns: 1fr; row-gap: 10px; }
  .guide ul { padding-left: 30px; }
  .guide-cover { margin-top: 10px; }
}

@media (max-width: 500px) {
  main { padding: 1px 14px 30px; }
  .band .brand { font-size: 22px; }
  .band .tagline { font-size: 16px; }
  .disclaimer { font-size: 15px; }
}
