/* ============================================================
   base.css — reset, base typography, container, utilities
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { color: var(--c-ink); font-weight: 700; line-height: 1.18; letter-spacing: -0.02em; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
input, select, textarea { outline: none; }

/* Container */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-6); }

/* Section rhythm */
.section { padding-block: var(--s-24); }
.section--soft { background: var(--c-bg-soft); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto var(--s-12); }
.section__head h2 { margin-bottom: var(--s-3); }
.section__head p { color: var(--c-muted); }

/* Utilities */
.text-primary { color: var(--c-primary); }
.text-center { text-align: center; }
.muted { color: var(--c-muted); }
.mt-1{margin-top:var(--s-1)} .mt-2{margin-top:var(--s-2)} .mt-3{margin-top:var(--s-3)}
.mt-4{margin-top:var(--s-4)} .mt-6{margin-top:var(--s-6)} .mt-8{margin-top:var(--s-8)}
.mb-2{margin-bottom:var(--s-2)} .mb-4{margin-bottom:var(--s-4)} .mb-6{margin-bottom:var(--s-6)}
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); }
.grid { display: grid; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }

@media (max-width: 992px) {
  :root { --fs-hero: 40px; --fs-3xl: 32px; --fs-2xl: 26px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: var(--s-16); }
}
