html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-primary);
  font-size: var(--body-regular-size);
  font-weight: var(--font-weight-regular);
  line-height: var(--body-regular-line);
  color: var(--text-primary);
  background-color: var(--bg-base);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/*
 * Main fluid container.
 * Width is percentage-based, as required by the brief.
 */
.container {
  width: var(--container-width);
  max-width: var(--container-max-width);
  margin-inline: auto;
}

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

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

.display {
  font-size: var(--display-size);
  font-weight: var(--font-weight-medium);
  line-height: var(--display-line);
  letter-spacing: -0.03em;
}

.title {
  font-size: var(--title-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--title-line);
  letter-spacing: -0.04em;
}

.title-2 {
  font-size: var(--title-2-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--title-2-line);
  letter-spacing: -0.03em;
}

h1,
.h1 {
  font-size: var(--h1-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--h1-line);
  letter-spacing: -0.025em;
}

h2,
.h2 {
  font-size: var(--h2-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--h2-line);
  letter-spacing: -0.02em;
}

.heading {
  font-size: var(--heading-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--heading-line);
}

h3,
.h3 {
  font-size: var(--h3-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--h3-line);
}

h4,
.h4 {
  font-size: var(--h4-size);
  font-weight: var(--font-weight-medium);
  line-height: var(--h4-line);
}

h5,
.h5 {
  font-size: var(--h5-size);
  font-weight: var(--font-weight-medium);
  line-height: var(--h5-line);
}

.body-lead {
  font-size: var(--body-lead-size);
  line-height: var(--body-lead-line);
}

.body-large {
  font-size: var(--body-large-size);
  line-height: var(--body-large-line);
}

.body-small {
  font-size: var(--body-small-size);
  line-height: var(--body-small-line);
}

.label {
  font-size: var(--label-size);
  line-height: var(--label-line);
}

.caption {
  font-size: var(--caption-size);
  line-height: var(--caption-line);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-accent {
  color: var(--text-accent);
}

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

.bg-inverse {
  color: var(--text-inverse-primary);
  background-color: var(--bg-inverse);
}

.fluid-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
}

.fluid-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fluid-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fluid-media {
  width: 100%;
  height: auto;
}

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

@media (max-width: 767px) {
  .fluid-grid--2,
  .fluid-grid--3 {
    grid-template-columns: 100%;
  }
}
