/* ============================================================
   APT Movement — style.css
   Warm, uncluttered, whitespace-first. System fonts.
   Calm two-colour palette: warm ink + clay accent on soft cream.
   Mobile-first; clean at 375px with no horizontal scroll.
   ============================================================ */

:root {
  /* Two-colour palette (+ neutrals derived from them) */
  --ink:        #33302b;   /* warm near-black — body text            */
  --clay:       #b8624a;   /* warm terracotta accent — CTAs, marks   */
  --clay-dark:  #9c4e39;   /* hover state for clay                   */

  /* Neutrals */
  --cream:      #f7f3ec;   /* page background — soft, warm            */
  --cream-alt:  #f0eae0;   /* alternating section band               */
  --card:       #fffdf9;   /* card surface                           */
  --line:       #e4dccf;   /* hairline borders                       */
  --muted:      #6f6a62;   /* secondary text                         */

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Helvetica Neue", sans-serif;

  /* Rhythm */
  --maxw: 960px;
  --maxw-narrow: 620px;
  --radius: 14px;
  --pad-x: 22px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;   /* keep anchor targets clear of the sticky nav */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;           /* belt-and-braces against side scroll */
}

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

h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--clay-dark); }

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.wrap--narrow { max-width: var(--maxw-narrow); }

.section {
  padding-block: 64px;
}
.section--alt { background: var(--cream-alt); }

.section__title {
  font-size: 1.6rem;
  margin-bottom: 28px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;                     /* >= 44px tap target */
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--small { min-height: 44px; padding: 10px 18px; font-size: .95rem; }

.btn--primary {
  background: var(--clay);
  color: #fff;
}
.btn--primary:hover { background: var(--clay-dark); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--clay);
  border-color: var(--clay);
}
.btn--ghost:hover { background: var(--clay); color: #fff; }

.btn--wa { gap: .5ch; }

/* ---------- top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.9);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;          /* >= 44px tap target (wordmark links to #top) */
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
}
.nav__brand:hover { color: var(--clay); }

/* ---------- hero ---------- */
.hero {
  padding-block: 72px 60px;
}
.hero__inner { max-width: 760px; }
.hero__title {
  font-size: 2.1rem;
  margin-bottom: 20px;
}
.hero__sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 30px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- who: cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.card__title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--clay-dark);
}
.card p { color: var(--muted); margin: 0; }

/* ---------- how: steps + principles ---------- */
.steps {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  gap: 22px;
}
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.step__num {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__title { font-size: 1.15rem; margin-bottom: 6px; }
.step__body p { color: var(--muted); margin: 0; }

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.principle {
  padding: 18px 20px;
  background: var(--card);
  border-left: 3px solid var(--clay);
  border-radius: 8px;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ---------- about ---------- */
.about__lead { font-size: 1.15rem; }
.about__why { color: var(--muted); }

.pullquote {
  margin: 28px 0 0;
  padding: 22px 24px;
  border-left: 4px solid var(--clay);
  background: var(--cream-alt);
  border-radius: 8px;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
}
.pullquote__text { display: block; margin-top: 6px; }

/* Scaffold-voice marker — deliberately visible in staging */
.scaffold-tag {
  display: inline-block;
  font-size: .72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--muted);
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ---------- community ---------- */
.community__copy { color: var(--muted); margin-bottom: 26px; max-width: 56ch; }

/* ---------- book ---------- */
.book__copy { color: var(--muted); margin-bottom: 26px; max-width: 56ch; }

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: #ded8cf;
  padding-block: 44px;
}
.footer a { color: #f0d9d0; }
.footer__safety {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 60ch;
  margin-bottom: 22px;
}
.footer .btn--ghost {
  color: #f0d9d0;
  border-color: #6a5f57;
}
.footer .btn--ghost:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
}
.footer__contact { margin-bottom: 20px; }
.footer__meta {
  font-size: .9rem;
  color: #9a9188;
  margin: 0;
}

/* ============================================================
   Larger screens — progressive enhancement from the mobile base
   ============================================================ */
@media (min-width: 700px) {
  body { font-size: 18px; }
  .hero__title { font-size: 2.9rem; }
  .section__title { font-size: 2rem; }
  .cards { grid-template-columns: 1fr 1fr; gap: 22px; }
  .section { padding-block: 84px; }
  .hero { padding-block: 96px 80px; }
}

@media (min-width: 980px) {
  .hero__title { font-size: 3.2rem; }
}

/* Respect reduced-motion / no essential animation used */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
