/* ============================================================
   NORTH HORIZON PARTNERS — base.css
   Reset, container, and global typography.
   ============================================================ */

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
}


/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}


/* ── Headings ───────────────────────────────────────────────── */
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  line-height: var(--h1-line-height);
  letter-spacing: var(--h1-letter-spacing);
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.75rem);
  line-height: var(--h2-line-height);
  letter-spacing: var(--h2-letter-spacing);
}

h3 {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: var(--h3-line-height);
  color: var(--text);
}

p {
  font-size: clamp(0.93rem, 1.4vw, 1.05rem);
  line-height: 1.72;
  color: var(--text-muted);
}


/* ── Shared section elements ────────────────────────────────── */
.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.section-intro {
  font-size: clamp(0.93rem, 1.4vw, 1.05rem);
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.72;
  margin-bottom: 3.5rem;
}


/* ── Mobile centering ───────────────────────────────────────── */
@media (max-width: 640px) {
  /* Section labels and headlines center on mobile */
  .section-label {
    text-align: center;
  }

  h2 {
    text-align: center;
  }

  .section-intro {
    text-align: center;
    max-width: 100%;
  }

  /* Hero centered on mobile */
  .hero-inner {
    align-items: center;
    text-align: center;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .pill-tag {
    align-self: center;
  }

  /* Gap body — keep left for long prose, just center the conclusion */
  .gap-conclusion {
    text-align: center;
  }

  /* Steps — center the note */
  .steps-note {
    text-align: center;
  }

  .section-how .btn,
  .section-changes .btn {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}
