/*
 * 02-layout.css — Page structure & containers
 * ─────────────────────────────────────────────
 * Container widths, the main/footer flex stack, section spacing.
 */

/* ── Full-height flex column so footer sticks to bottom ── */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

/* Narrow variant for single-column reading content */
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

/* ── Standard page wrapper (adds top/bottom breathing room) ── */
.page-container {
  padding-block: var(--sp-16) var(--sp-24);
}

/* ── Section vertical rhythm ── */
.section-posts {
  padding-block: var(--sp-16);
  border-top: 1px solid var(--color-border);
}

/* ── Section header row (title + "see all" link) ── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.section-title {
  font-family: var(--font-display);
  font-size:   var(--text-xl);
  font-weight: 400;
  color:       var(--color-text);
}

.section-link {
  font-size:      var(--text-sm);
  font-weight:    500;
  color:          var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.section-link:hover { text-decoration: underline; }
