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

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  padding-top: 85px;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #343434;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.1;
}

p {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

ul,
ol {
  margin-top: 0;
  margin-bottom: 10px;
}

a {
  color: #1a6d96;
  text-decoration: none;
  transition: color 400ms, background-color 400ms;
}

a:hover,
a:focus {
  color: #145a7d;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #1a6d96;
  outline-offset: 3px;
}

button {
  margin: 0;
  overflow: visible;
  color: inherit;
  font: inherit;
}

img {
  border: 0;
  vertical-align: middle;
}

.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;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 8px;
  z-index: 2000;
  padding: 10px 18px;
  background: #fff;
  color: #1a6d96;
  border: 2px solid #1a6d96;
  border-radius: 6px;
  font-weight: 500;
}

.skip-link:focus {
  top: 8px;
}

.site-container {
  width: 100%;
  max-width: 1170px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}

.realrow {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-content: center;
  gap: 25px;
}

.apple-button {
  width: 240px;
  height: 80px;
  background: url('../images/logo/appstore-grey.svg') center / cover no-repeat;
}

.playstore-button {
  width: 264px;
  height: 80px;
  background: url('../images/logo/google-play-badge.webp') center / cover
    no-repeat;
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  min-height: 87px;
  background: #fff;
}

.site-nav__inner {
  min-height: 87px;
  display: flex;
}

.site-nav__header {
  display: flex;
  align-items: center;
}

.site-nav__brand {
  height: 87px;
  margin-left: -15px;
  padding: 10px 15px;
  display: block;
  order: -1;
}

.site-nav__logo {
  width: auto;
  max-height: 67px;
  object-fit: contain;
}

.site-nav__toggle {
  display: none;
}

.site-nav__menu {
  height: 87px;
  margin-left: auto;
  display: flex;
}

.site-nav__links {
  height: 87px;
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
}

.site-nav__links > li {
  display: flex;
}

.site-nav__links > li > a {
  padding: 15px;
  display: flex;
  align-items: center;
  color: #343434;
  line-height: 20px;
}

.site-nav__links > li.active > a {
  color: #343434;
}

.site-nav__links > li:hover > a,
.site-nav__links > li > a:focus,
.site-nav__links > li > a:active {
  background: transparent;
  color: #1a6d96;
}

/* Homepage shared elements */
#hero-banner {
  overflow: hidden;
}

#hero-banner h1.hero-wordmark {
  color: #344e65;
  font-family: 'Petrona', serif;
  font-style: italic;
  font-weight: 700;
}

/* Footer */
#footer {
  margin-top: auto;
  padding-top: 30px;
  padding-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c6e8ff;
  color: #515151;
  font-size: 14px;
  text-align: center;
}

#footer a {
  color: #515151;
}

#footer a:hover,
#footer a:focus,
#footer .active {
  color: #6d34bd;
}

.site-footer__row {
  margin-right: -15px;
  margin-left: -15px;
  display: flex;
  align-items: center;
}

.site-footer__section {
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}

/* Policy and guidelines pages */
#hero-banner-small {
  height: 200px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('../images/banner/light.webp') center / cover;
  color: #fff;
}

#hero-banner-small .banner-inner {
  width: 100%;
}

#hero-banner-small h1 {
  margin: 20px 0 10px;
  padding: 0 24px;
  color: #343434;
  font-size: clamp(40px, 5vw, 55px);
  font-weight: 500;
  text-align: center;
}

#guidelines,
#policy {
  padding: 3% 30%;
  background: #fff;
  color: #343434;
}

#guidelines h1,
#policy h1 {
  font-size: 28px;
  font-weight: 500;
}

#guidelines h2 {
  font-size: 24px;
  font-weight: 500;
}

#policy h2 {
  font-size: 22px;
  font-weight: 500;
}

#guidelines h3,
#policy h3 {
  font-size: 20px;
  font-weight: 500;
}

#guidelines h4,
#policy h4 {
  font-size: 18px;
  font-weight: 500;
}

#guidelines h1,
#guidelines h2,
#guidelines h3,
#guidelines h4,
#policy h1,
#policy h2,
#policy h3,
#policy h4 {
  margin-top: 32px;
  margin-bottom: 12px;
}

#guidelines p,
#policy p {
  margin-bottom: 16px;
  color: #343434;
  font-size: 16px;
  font-weight: 400;
}

#guidelines strong {
  font-weight: 500;
}

#policy strong {
  margin-bottom: 0;
  display: inline;
}

@media only screen and (max-width: 767px) {
  html:not(.nav-ready) body {
    padding-top: 0;
  }

  html:not(.nav-ready) .site-nav {
    position: static;
  }

  .site-nav__inner {
    display: block;
  }

  .site-nav__header {
    min-height: 87px;
    justify-content: space-between;
  }

  html.nav-ready .site-nav__toggle {
    width: 55px;
    min-height: 44px;
    margin: 20px 0 20px auto;
    padding: 10px;
    display: block;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
  }

  .site-nav__toggle-bar {
    width: 22px;
    height: 2px;
    margin-right: auto;
    margin-left: auto;
    display: block;
    background: #8091be;
    border-radius: 1px;
  }

  .site-nav__toggle-bar + .site-nav__toggle-bar {
    margin-top: 4px;
  }

  .site-nav__menu {
    width: calc(100% + 30px);
    height: auto;
    margin-right: -15px;
    margin-left: -15px;
    display: block;
    background: #fff;
  }

  html.nav-ready .site-nav__menu {
    display: none;
  }

  html.nav-ready .site-nav__menu.is-open {
    display: block;
  }

  .site-nav__links {
    width: 100%;
    height: auto;
    display: block;
  }

  .site-nav__links > li {
    display: block;
  }

  .site-nav__links > li > a {
    min-height: 44px;
    padding: 12px 15px;
    display: block;
  }

  .realrow {
    flex-direction: column;
    align-items: center;
  }
}

@media only screen and (min-width: 768px) {
  .site-footer__section {
    width: 50%;
  }

  #guidelines,
  #policy {
    width: min(calc(100% - 48px), 720px);
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
  }
}

@media only screen and (max-width: 480px) {
  #hero-banner h1.hero-wordmark {
    font-size: 56px;
  }

  #guidelines,
  #policy {
    padding: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition-duration: 0s;
  }
}
