/* ============================================================
   LAYOUT
   Sections, containers, grid primitives, responsive.
   ============================================================ */

section {
  padding: var(--section-pad);
  position: relative;
}

.section-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

/* Alt backgrounds that alternate down the page */
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-ink   { background: var(--ink); color: var(--white); }

/* Two-column grid (used by About) */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Three-column grid (Pillars, Writing) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ── Responsive ──────────────────────────────────────────────
   Mobile-first layering:
     • ≤1024px: tighten 3-col → 2-col where appropriate
     • ≤768px:  collapse to single column
*/
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  section { padding: var(--section-pad-mobile); }
  .grid-2,
  .grid-3  { grid-template-columns: 1fr; gap: 2rem; }
}
