:root {
  --fg: #333;
  --bg: white;
  --accent: #007bff;
}

body {
  font-family: Archivo, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  margin: 0;
  padding: 0;
  font-size: clamp(1em, 2.5vw, 1.2em);
  line-height: 1.8;
  font-weight: 400;
  min-width: 24rem;
}

/* Header, footer */
header,
footer {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 0;
}

/* Header Logo */
header > a {
  width: 150px;
  height: auto;
}
nav {
  flex: 1 auto;
  display: flex;
}
header > nav {
  justify-content: flex-end;
}
footer > nav {
  justify-content: center;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}
nav ul li {
  margin-right: 2rem;
}
nav ul li:last-child {
  margin-right: 0;
}
nav ul li a {
  text-decoration: none;
  font-weight: 500;
  color: var(--fg);
  display: flex;
}
nav ul li a.active {
  border-bottom: 2px solid var(--fg);
}
nav ul li a img {
  min-width: 50px;
  width: 50px;
}

.hero {
  margin: 2rem auto 0;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  line-height: 1.5;
  display: inline-block;
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 1em;
  padding: 0 1.5rem;
}
section {
  max-width: 900px;
  display: flex;
  flex-direction: column;
}
section p {
  margin: 1rem auto 1rem;
  width: 100%;
}
h1 {
  font-size: 2em;
  font-weight: 500;
  line-height: 1.5;
  margin: 2rem 0;
  text-align: center;
}
h2 {
  font-size: 1.5em;
  font-weight: 500;
  line-height: 1.5;
  margin: 2rem 0 1rem;
  display: inline-block;
  text-align: center;
}
h3 {
  font-size: 1.3em;
  font-weight: 400;
  margin: 0;
  text-align: center;
}
.center {
  text-align: center;
}

section ul {
  padding-top: 0;
  width: 100%;
  margin: 0 auto;
}
section ul li {
  padding-top: 0.5rem;
}

a.button {
  display: inline-flex;
  background-color: var(--accent);
  color: white;
  padding: 9px 20px;
  text-decoration: none;
  border-radius: 100px;
  gap: 0.6rem;
}

#stores {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 3rem 0;
}
#stores a {
  display: inline-flex;
  opacity: 0.3;
}

#stores a.google_play {
  opacity: 1;
}

#stores a.apple_store {
  opacity: 1;
}

#stores a.windows_store {
  opacity: 1;
}

#stores a img {
  height: 50px;
  width: auto;
}

.images {
  display: flex;
}
.images div {
  display: flex;
  flex-direction: row;
}
.images .desktop {
  max-height: 500px;
  min-height: 250px;
  height: auto;
  width: 50%;
  background-image: url(/img/desktop.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
}
.images .mobile {
  max-height: 500px;
  min-height: 250px;
  height: auto;
  width: 50%;
  background-image: url(/img/mobile.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left bottom;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto 1rem;
  padding: 1rem;
}
.logo img {
  width: 100px;
  height: auto;
}

@media (max-width: 810px) {
  header {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  .hero h1 {
    margin-top: 1rem;
  }
  .images {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: white;
    --bg: #151515;
  }

  .inverted {
    filter: brightness(0) invert();
  }
}
