/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  width: min(var(--container-max), 100% - var(--container-gutter) * 2);
  margin-inline: auto;
}

/* Every content section shares the same rhythm and clips its decorative glows */
.section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: var(--space-section);
}

.section--dark {
  color: var(--color-white);
  background-color: var(--surface-dark);
}

/* Section content always sits above decorative layers */
.section > .container {
  position: relative;
  z-index: var(--z-raised);
}
