@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lato-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/lato-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Lato Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 97.5%;
  ascent-override: 101%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --color-teal: #1cbfc5;
  --color-bg: #e5eff0;
  --color-ink: #2e3e40;
  --color-black: #000000;
  --font: Lato, "Lato Fallback", "Helvetica Neue", Arial, sans-serif;
  --space: 1.5rem;
  --logo-max: 28rem;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size-adjust: from-font;
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.5;
}

.brand {
  background: var(--color-teal);
  padding: 1.5rem 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand img {
  display: block;
  width: min(100%, var(--logo-max));
  height: auto;
}

@media (min-width: 48em) {
  .brand {
    padding: 2.25rem 1.5rem;
  }
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  max-width: 52rem;
  margin-inline: auto;
  width: 100%;
}

h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.2;
  text-wrap: balance;
  color: var(--color-ink);
}

main p {
  margin: 0.85rem 0 0;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.45;
  text-wrap: pretty;
  color: var(--color-ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
