/* ============================================================
   base.css — reset + document defaults + page scaffolding
   ------------------------------------------------------------
   WHAT THIS DOES
   Strips browser defaults, sets the body text, and defines the
   two layout helpers every page uses: .container and .section.

   WHAT BREAKS HERE
   - Deleting the box-sizing reset makes padding overflow its
     container on mobile. Leave it first.
   - .container caps width at 1120px. If a page looks "too wide
     on desktop", that's usually a missing .container, not this.

   TRY CHANGING
   --space-16 in .section to see how much vertical air a page
   gets. Too tight is the most common amateur tell.
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 640px) {
  .container { padding-inline: var(--space-8); }
}

.section {
  padding-block: var(--space-12);
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) {
  .section { padding-block: var(--space-16); }
}

/* --- Shared text patterns --- */
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.lede {
  max-width: 58ch;
  color: var(--ink-muted);
  font-size: var(--text-lg);
}
