/* stylelint-disable scale-unlimited/declaration-strict-value */
/* ==========================================================================
   Proper box-sizing model
   ========================================================================== */

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

/* ==========================================================================
   Document
   ========================================================================== */

html {
  height: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Theming variables.
   ========================================================================== */

[data-theme="dark"] {
  --logo-mobile-url: url("/images/logo-dark-mobile.svg");
  --logo-url: url("/images/logo-dark.svg");

  --color-background-main: #090d14;
  --color-background-level-1: #141c29;
  --color-content-default: #d5d7e7;
  --color-content-emphasis: #f7f8fc;
  --color-link: #84fb7f;
  --color-link-hover: #62e75f;
}

[data-theme="light"] {
  --logo-mobile-url: url("/images/logo-light-mobile.svg");
  --logo-url: url("/images/logo-light.svg");

  --color-background-main: #ebecf5;
  --color-background-level-1: #fff;
  --color-content-default: #35415f;
  --color-content-emphasis: #1d2738;
  --color-link: #49cc68;
  --color-link-hover: #39a854;
}

@media (max-width: 34.375em) {
  [data-theme="dark"] {
    --color-background-main: #141c29;
  }

  [data-theme="light"] {
    --color-background-main: #fff;
  }
}

/* ==========================================================================
   Typography
   ========================================================================== */

html {
  font-size: 62.5%; /* 62.5% so that all the REM measurements re based on 10px sizing for easier calculations */
}

body {
  color: var(--color-content-default);
  font-family: "proxima-nova", sans-serif;
  font-size: 1.4rem;

  -moz-osx-font-smoothing: grayscale;  /* Font smoothing tweaks for MacOSx in Gecko */
  -webkit-font-smoothing: antialiased; /* Font smoothing tweaks for MacOSx in Webkit */
  -webkit-tap-highlight-color: transparent;  /* Do not show a highlight (rectangle around the link) while tapping it */
}

a {
  color: var(--color-link);
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--color-link-hover);
}

/* ==========================================================================
   Body
   ========================================================================== */

body {
  min-width: 32rem;
  height: 100%;
  margin: 0;
  padding: 4rem 0;
  display: flex;
  flex: 1 0;
  flex-direction: column;
  background-color: var(--color-background-main);
}

@media (max-width: 34.375em) {
  body {
    padding: 0;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  margin-bottom: 8rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header__logo {
  width: 18rem;
  height: 4rem;
  background-image: var(--logo-url);
  background-position: 50%;
  background-size: contain;
  background-repeat: no-repeat;
}

@media (max-width: 34.375em) {
  .header {
    margin-bottom: 7.2rem;
  }

  .header__logo {
    width: 14.4rem;
    height: 4rem;
    background-image: var(--logo-mobile-url);
  }
}

/* ==========================================================================
   Main
   ========================================================================== */

.main {
  width: 100%;
  max-width: 47rem;
  height: 100%;
  max-height: 90rem;
  margin: auto;
  padding: 3.2rem 3.2rem 0;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background-level-1);
  border-radius: 4.8rem;
}

.main__title {
  margin: 0 1.6rem 4rem;
  color: var(--color-content-emphasis);
  font-size: 3.8rem;
  font-weight: 700;
  text-align: center;
  line-height: calc(48 / 38);
}

.main__subtitle {
  margin: 0 1.6rem 4rem;
  font-size: 1.7rem;
  font-weight: 400;
  text-align: center;
  line-height: calc(24 / 17);
}

.main__paragraph {
  margin: 0 1.6rem 4rem;
  font-size: 1.5rem;
  text-align: center;
  line-height: calc(20 / 15);
}

.main__paragraph + .main__paragraph {
  margin: 0 1.6rem;
}

@media (max-width: 34.375em) {
  .main {
    margin: 0 auto 9.6rem auto;
    padding: 0.8rem 1.6rem 0;
  }

  .main__title {
    margin-bottom: 3.2rem;
    font-size: 3.4rem;
    line-height: calc(44 / 34);
  }

  .main__subtitle {
    margin-bottom: 3.2rem;
    font-size: 1.6rem;
    line-height: calc(20 / 16);
  }

  .main__paragraph {
    margin: 0 1.6rem 3.2rem;
    font-size: 1.4rem;
    line-height: calc(16 / 14);
  }
}
