/* ============================================================
   BAD FIT - shared styles
   Brand colors:
     olive        #4D6B4E
     bright green #17B24B
     yellow       #EDE80F
   Type: sans headers (Space Grotesk) / serif body (Newsreader)

   Linked by all five pages. Edit here only.
   ============================================================ */

:root {
  --olive: #4D6B4E;
  --olive-deep: #2F4233;
  --green: #17B24B;
  --yellow: #EDE80F;

  --ink: #1C221D;
  --ink-soft: #526054;
  --paper: #FFFFFF;
  --paper-warm: #F6F7F3;
  --rule: #DCE0D8;

  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

/* --- Full-bleed bands. Change the band class to change section color. --- */
.band { width: 100%; padding: 72px 24px; }
.band > .inner { max-width: 720px; margin: 0 auto; }

.band--paper { background: var(--paper); }
.band--warm  { background: var(--paper-warm); }
.band--olive { background: var(--olive-deep); color: #EDEFE9; }
.band--acid  { background: var(--yellow); color: var(--ink); }
.band--tight { padding: 48px 24px; }

.band--olive h2, .band--olive h3 { color: #FFFFFF; }
/* CHANGED: :not([class]) limits this to plain prose links. Without it the
   selector outranks .btn-buy and paints the button label yellow on yellow
   inside an olive band. Any element carrying a class keeps its own color. */
.band--olive a:not([class]) { color: var(--yellow); }

/* --- Type --- */
h1, h2, h3, nav, button, label, .eyebrow, .kicker {
  font-family: var(--display);
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

p { margin-bottom: 20px; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 14px;
}
.band--olive .eyebrow { color: var(--yellow); }

.lede {
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.band--olive .lede { color: #C9D2C7; }

.highlight {
  background: var(--yellow);
  padding: 1px 5px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

blockquote {
  border-left: 3px solid var(--green);
  padding-left: 24px;
  margin: 32px 0;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* --- Masthead --- */
.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 32px 24px 0;
}
.masthead .inner { max-width: 720px; margin: 0 auto; }
.masthead .tagline {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin: 12px 0 0;
}

nav { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 28px; }
nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 10px 14px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
nav a:hover { color: var(--olive); border-bottom-color: var(--green); }
nav a[aria-current="page"] { color: var(--olive); border-bottom-color: var(--olive); }

/* --- Hero --- */
.hero { background: var(--olive-deep); color: #FFFFFF; padding: 80px 24px; }
.hero .inner { max-width: 720px; margin: 0 auto; }
.hero h2 { color: #FFFFFF; }
.hero .lede { color: #C9D2C7; margin-bottom: 0; }

/* --- Newsletter form --- */
.signup {
  border: 1px solid var(--rule);
  border-top: 4px solid var(--green);
  background: var(--paper);
  padding: 36px;
}
.band--olive .signup { border-color: #4A5F4E; border-top-color: var(--yellow); background: #263528; }
.band--acid .signup { border-color: #C9C40C; border-top-color: var(--olive); }

.signup p { color: var(--ink-soft); font-size: 1rem; }
.band--olive .signup p { color: #C9D2C7; }

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 24px 0 8px;
}
.band--olive label { color: #C9D2C7; }

input[type="email"] {
  width: 100%;
  font-family: var(--body);
  font-size: 1.05rem;
  padding: 14px;
  border: 1px solid var(--rule);
  background: #FFFFFF;
  color: var(--ink);
}
input[type="email"]:focus {
  outline: 3px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

button {
  margin-top: 16px;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--olive);
  border: none;
  padding: 15px 32px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
/* CHANGED: dark text on the green hover. White on #17B24B is 2.8:1 and
   fails WCAG AA; #1C221D on the same green is 5.9:1 and passes. */
button:hover { background: var(--green); color: var(--ink); }
button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.fine { font-size: 0.85rem; color: var(--ink-soft); margin-top: 16px; }

/* --- Amazon buy CTA --- */
.btn-buy {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--yellow);
  padding: 15px 32px;
  transition: background 0.2s, color 0.2s;
}
/* CHANGED: keeps the dark ink on the green hover instead of white. */
.btn-buy:hover { background: var(--green); color: var(--ink); }

/* Links inside the olive hero, which is not a .band--olive. Prose links
   only, for the same reason as above. */
.hero a:not([class]) { color: var(--yellow); }
.btn-buy:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

nav a.nav-buy {
  margin-left: auto;
  color: var(--ink);
  background: var(--yellow);
  border-bottom: 3px solid transparent;
  font-weight: 600;
}
/* CHANGED: same fix on the nav buy button. */
nav a.nav-buy:hover { background: var(--green); color: var(--ink); border-bottom-color: transparent; }
@media (max-width: 600px) {
  nav a.nav-buy { margin-left: 0; }
}

/* --- Article cards --- */
.article {
  border-top: 1px solid var(--rule);
  padding: 28px 0;
}
.article:first-of-type { border-top: none; padding-top: 0; }
.article h3 { margin-bottom: 10px; }
.article p { font-size: 1.05rem; color: var(--ink-soft); }
.article a {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive);
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
}
/* CHANGED: link hover stays olive. #17B24B text on white is 2.8:1 and
   fails; the green now shows in the underline only. */
.article a:hover { color: var(--olive-deep); border-bottom-color: var(--green); }

/* --- Book cover --- */
.cover {
  display: block;
  max-width: 340px;
  width: 100%;
  margin: 0 auto 40px;
  border: 1px solid var(--rule);
}

/* --- Benefits list --- */
.benefits { list-style: none; }
.benefits li {
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  font-size: 1.05rem;
}
.benefits li:last-child { border-bottom: none; }
.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 18px;
  height: 3px;
  background: var(--green);
}

/* --- Footer --- */
footer {
  background: var(--olive-deep);
  color: #A9B6AB;
  padding: 48px 24px;
  text-align: center;
}
footer .inner { max-width: 720px; margin: 0 auto; }
footer p { font-family: var(--display); font-size: 0.85rem; letter-spacing: 0.04em; }

@media (max-width: 600px) {
  .band { padding: 52px 20px; }
  .hero { padding: 56px 20px; }
  .signup { padding: 24px; }
}
