/* Containers, sections and the handful of grids used across the site. */

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

.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: 1280px; }

.section {
  padding-block: var(--space-10);
  position: relative;
}
.section--tight { padding-block: var(--space-8); }
.section--loose { padding-block: var(--space-11); }
.section--tint { background: var(--paper-tint); }
.section--brand-tint { background: var(--paper-brand); }

.section--dark {
  background: var(--ink-900);
  color: var(--ink-200);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark a { color: var(--brand-200); }
.section--dark .lede, .section--dark .section-head__lede { color: var(--ink-300); }

.section + .section--tint,
.section--tint + .section,
.section--dark + .section { border-top: 0; }

.rule { border-top: 1px solid var(--border); }

.section-head {
  max-width: 44rem;
  margin-bottom: var(--space-8);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head__lede {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: 0;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 620;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: var(--space-4);
}
.section--dark .eyebrow { color: var(--brand-300); }

.lede {
  font-size: var(--text-lg);
  color: var(--text-muted);
  text-wrap: pretty;
}

.grid {
  display: grid;
  gap: var(--space-5);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-9);
  align-items: center;
}
.split--reverse > *:first-child { order: 2; }

.stack > * + * { margin-top: var(--space-4); }
.stack--lg > * + * { margin-top: var(--space-6); }

.center { text-align: center; }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.nowrap { white-space: nowrap; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.actions--center { justify-content: center; }

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .split--reverse > *:first-child { order: 0; }
  .section { padding-block: var(--space-9); }
  .section--loose { padding-block: var(--space-9); }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: var(--space-8); }
}
