/* ==========================================================================
   Layout — containers, grid helpers, section rhythm
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 600px) {
  .container { padding-inline: var(--space-6); }
}

@media (min-width: 900px) {
  .container { padding-inline: var(--space-8); }
}

/* Single value, no responsive divergence — every section's top+bottom
   padding is identical at every breakpoint, so any two consecutive
   sections always combine to the same 96px gap (within the site's
   standard 80-120px rhythm). This is the one number that controls
   vertical rhythm sitewide; nothing else should hardcode section spacing. */
.section {
  padding-block: var(--space-12);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 600px) {
  .grid--2-col { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid--3-col { grid-template-columns: repeat(3, 1fr); }
}
