/* ==========================================================================
   layout.css — Container, grid scaffolding, section skeleton
   ========================================================================== */

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

.container--narrow {
  max-width: 760px;
}

.container--wide {
  max-width: 1400px;
}

/* --------------------------------------------------------------------------
   Section scaffold
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--space-24);
  position: relative;
}

.section--sm {
  padding-block: var(--space-16);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

.section__subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* Section backgrounds are set explicitly per-section in sections.css */

/* Divider line between sections */
.section + .section::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

/* --------------------------------------------------------------------------
   Flex / Grid utilities
   -------------------------------------------------------------------------- */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4        { gap: var(--space-4); }
.gap-6        { gap: var(--space-6); }
.gap-8        { gap: var(--space-8); }
