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

:root {
  font-size: 16px;
  line-height: 1.5;
  --color-white: #fefefe;
  --color-page: var(--color-white);
  --color-text: #111;
  --color-primary: #006DEA;
  --color-secondary: #EF7F00;
  --color-tertiary: #004C98;
  --color-link: var(--color-white);
  --color-focus: var(--color-secondary);
  --font-base: "Montserrat", Helvetica, sans-serif;
  --font-titles: "Montserrat", Helvetica, sans-serif;
}

/* HTML Elements */

body {
  background: var(--color-page);
  box-sizing: border-box;
  color: var(--color-text);
  font-family: var(--font-base);
  font-optical-sizing: auto;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  display: grid;
  place-items: center;
  min-height: 100vh;
}

  @media screen and (min-width: 320px) {
    :root {
      font-size: 20px;
    }
  }

a {
  color: var(--color-link);
  /* // Improves readability when focused. */
  /* // Only alter :focus-within, :focus-visible user agent property. */
  font-weight: 600;
  outline-offset: .1rem;
  outline-color: var(--color-focus) !important;
  position: relative;
}
  a:hover {
    text-decoration: none;
  }

  a:focus {
    text-decoration: none;
  }

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-family: var(--font-titles);
  font-weight: 700;
  font-optical-sizing: auto;
  font-style: normal;
  letter-spacing: .02em;
  line-height: 1.2;
  margin-bottom: 1.2em;
  margin-top: 0;
}

/* Helpers */
.container {
  box-sizing: border-box;
  max-width: 28rem;
  margin: 3rem auto;
  padding: 0 1rem;
}

header {
  text-align: center;
  padding: 0 2rem;
}

.site-name {
  display: inline-block;
}
  .site-name span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }

  .site-name img {
    width: 14rem;
  }

section {
  background-color: var(--color-primary);
  border-radius: 2rem;
  margin: 2rem 0;
  padding: 2rem;
}

h1 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-top: 0;
}

p {
  color: var(--color-white);
  font-size: 1.1rem;
}
  p:last-child {
    margin-bottom: 0;
  }
