/* base.css - Reset, layout utilities, container */

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  font-size: 16px;
  scroll-padding-top: calc(var(--header-height) + var(--space-section));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--color-body);
  background-color: var(--color-canvas);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

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

.section {
  padding: var(--space-section) 0;
}

header[id] {
  scroll-margin-top: calc(var(--header-height) + var(--space-section));
}

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

.section--cta {
  background-color: var(--color-ink);
}

.section--cta .section__title {
  color: var(--color-on-primary);
}

.section--cta .section__lead {
  color: rgba(255, 255, 255, 0.84);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}
