/* ============================================================
   layout.css — Page structure
   ------------------------------------------------------------
   Container width, header, footer, section spacing and the
   simple grids used across the homepage. Mobile-first: grids
   start as a single column and become multi-column on wider
   screens (see responsive.css).
   ============================================================ */

/* Centered content container with side padding */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

/* Vertical rhythm: each section breathes */
.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

/* A light surface section (used sparingly to break the dark flow) */
.section--light {
  background-color: var(--color-ivory);
  color: var(--color-onyx);
}
.section--light h1,
.section--light h2,
.section--light h3 {
  color: var(--color-onyx);
}

/* A slightly raised dark surface section */
.section--surface {
  background-color: var(--color-charcoal);
}

/* Small uppercase label above headings (the "eyebrow") */
.eyebrow {
  display: inline-block;
  font-size: var(--size-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

/* Centered section intro */
.section__intro {
  max-width: 720px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-onyx);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

/* ---- Simple responsive grids ---- */
.grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr; /* mobile: single column */
}

/* ---- Footer ---- */
.site-footer {
  background-color: var(--color-onyx);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr; /* mobile: stacked */
}

.site-footer__base {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  font-size: var(--size-small);
  color: var(--color-text-muted);
}
