:root {
  --cream: #f6efe6;
  --cream-card: #fbf7f1;
  --charcoal: #3a3530;
  --teal: #5b8c87;
  --deep-teal: #3f6b67;
  --deep-teal-dark: #2c4e4b;
  --terracotta: #d2795a;
  --muted: #8a8178;
  --line: rgba(58, 53, 48, 0.12);
  --display: "Newsreader", serif;
  --body: "Public Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
}

/* ---------- NAV ---------- */
header {
  padding: 28px 0;
}
nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
}
.brand svg {
  width: 34px;
  height: 34px;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  color: var(--muted);
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--charcoal);
}
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s,
    opacity 0.15s;
}
.btn:hover {
  opacity: 0.9;
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.btn:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--deep-teal);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--deep-teal);
  color: var(--cream);
}
.btn-primary-inverse {
  background: var(--terracotta);
  color: #fff;
}
.nav-cta {
  display: none;
}
@media (min-width: 720px) {
  .nav-cta {
    display: inline-block;
  }
}

.hamLinks {
  display: none;
}
.menu {
  display: none;
}

/* ---------- HAMBURGER (mobile) ---------- */
@media (max-width: 720px) {
  .hamLinks {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100%);
    min-width: 120px;
    background: #fbf7f1;
    border: 1px solid rgba(58, 53, 48, 0.12);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(58, 53, 48, 0.12);
    overflow: hidden;
    z-index: 50;
    align-items: center;
    padding: 0.3rem;
  }
  .hamLinks a {
    text-align: right;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    background-color: rgb(0, 0, 0, 0);
    border: none;
  }
  .showIt {
    display: flex;
  }
  .hideB {
    display: none;
  }
  .menu {
    display: flex;
    flex-direction: column;
    row-gap: 0.2rem;
    align-items: flex-end;
    padding: 0.3rem;
    position: relative;
  }
}

/* ---------- HERO ---------- */
.hero {
  padding: 64px 1rem 40px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}
h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.12;
  max-width: 15ch;
  margin-bottom: 24px;
}
h1 em {
  font-style: italic;
  color: var(--deep-teal);
}
.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 36px;
}
form.signup {
  display: flex;
  gap: 10px;
  max-width: 440px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.signup input {
  flex: 1 1 220px;
  padding: 13px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: var(--cream-card);
  font-family: var(--body);
  font-size: 15px;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}
.signup input[type="email"]::placeholder {
  color: var(--muted);
}
.form-note {
  font-size: 13px;
  color: var(--muted);
}
.signup-error {
  width: 100%;
  font-size: 13px;
  color: #b0503a;
  margin-top: 6px;
}

.horizon {
  margin-top: 56px;
  height: 90px;
  width: 100%;
}

/* ---------- PROBLEM ---------- */
.problem {
  padding: 56px 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.problem blockquote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.45;
  max-width: 30ch;
  color: var(--charcoal);
}
.problem cite {
  display: block;
  font-style: normal;
  font-family: var(--body);
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}

/* ---------- HOW IT WORKS ---------- */
.how {
  padding: 72px 1rem;
}
.section-heading {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 8px;
}
.section-sub {
  color: var(--muted);
  margin-bottom: 44px;
  max-width: 50ch;
}
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}
.step {
  border-top: 2px solid var(--charcoal);
  padding-top: 18px;
}
.step .num {
  font-family: var(--display);
  font-style: italic;
  color: var(--terracotta);
  font-size: 15px;
  margin-bottom: 12px;
  display: block;
}
.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- PRIVACY (inverted section) ---------- */
.privacy {
  background: var(--deep-teal-dark);
  color: var(--cream);
  padding: 72px 1rem;
  margin: 8px 0;
}
.privacy .wrap {
  display: grid;
  gap: 40px;
}
@media (min-width: 800px) {
  .privacy .wrap {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.privacy .section-heading {
  color: var(--cream);
}
.privacy .section-sub {
  color: rgba(246, 239, 230, 0.72);
}
.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.privacy-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15.5px;
  color: rgba(246, 239, 230, 0.92);
}
.privacy-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

/* ---------- FOUNDER NOTE ---------- */
.founder {
  padding: 72px 1rem;
}
.founder .wrap {
  max-width: 680px;
  text-align: left;
}
.founder p {
  font-family: var(--display);
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.6;
  margin-bottom: 20px;
}
.founder .sign {
  font-family: var(--body);
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  padding: 72px 1rem 40px;
  text-align: left;
  border-top: 1px solid var(--line);
}
.final-cta h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 14px;
  max-width: 20ch;
}
.final-cta .lede {
  margin-bottom: 32px;
}

footer {
  padding: 32px 1rem 48px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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