:root {
  --primarybackground: #f3f3f3;
  --secondarybackground: #eee;
  --codebackground: #e8e8e8;
  --imagebackground: #181818;
  --primarytext: #222;
  --secondarytext: #aaa;
  --tint: rgb(88, 86, 214);
}
:root :has(#color-scheme-toggle:checked) {
  --primarybackground: #1C1C1C;
  --secondarybackground: #181818;
  --codebackground: #181818;
  --imagebackground: #eee;
  --primarytext: #ddd;
  --secondarytext: #555;
}

:root {
  font-family: "Nunito", sans-serif;
}
@supports (font-variation-settings: normal) {
  :root {
    font-family: "Nunito VF", sans-serif;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root, html, body {
  height: 100%;
  height: 100svh;
}

body {
  background-color: var(--primarybackground);
  color: var(--primarytext);
  font-weight: 400;
  line-height: 1.5;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

p + p {
  margin-top: 1rem;
}

a[href] {
  color: var(--tint);
}

img {
  vertical-align: bottom;
}

svg {
  height: 20px;
  width: 20px;
  vertical-align: bottom;
}

h2 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

h3 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

h4 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

strong {
  font-weight: 900;
}

header {
  display: flex;
  flex-direction: row;
}

.flexible-space {
  flex-grow: 1;
}

header #hero {
  display: flex;
  flex-direction: row;
  flex-flow: wrap;
  align-items: center;
}

header #hero svg {
  color: var(--primarytext);
  height: 37px;
  width: 48px;
  margin: 0.5rem;
  margin-right: 0;
  vertical-align: middle;
}

header #hero div {
  margin-left: 0.5rem;
}

header #hero h1 {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

header #hero p {
  font-size: 0.875rem;
  color: var(--secondarytext);
}

header #menu-toggle {
  appearance: none;
}

header #menu-toggle:checked ~ nav {
  transform: translateX(0);
}

nav {
  background-color: var(--secondarybackground);
  min-width: 270px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  transform: translateX(100%);
  transition: 0.25s transform ease-in-out;
  will-change: transform;
}

nav strong {
  font-weight: 800;
}

header > label, nav > label {
  cursor: pointer;
  padding: 1rem;
  line-height: 1;
}

header > label {
  align-self: flex-start;
}

nav > label {
  position: absolute;
  top: 0;
  right: 0;
}

nav ul {
  position: relative;
}

nav ul li {
  list-style: none;
  padding: 0.5rem 0;
  text-align: center;
}

.menu-support-items {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.5rem;
}

.menu-support-items svg {
  vertical-align: middle;
}

main {
  padding: 1rem;
  /* parent */
  align-self: center;
  flex-grow: 1;
  /* children */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skip {
  position: absolute;
  transform: translateY(-100%);
  text-align: center;
}

.skip:focus {
  position: relative;
  transform: translateY(0%);
}

.app-icon {
  box-shadow: 0 0 128px 0px rgba(0, 0, 0, 0.1);
  border-radius: 22%;
}

.app-store-link svg {
  vertical-align: middle;
}
.app-store-link {
  padding-left: 4px;
}

/* ---------- home page ---------- */
#home main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

#home main #home-apps {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: top;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
}

#home main .home-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.coming-soon {
  border: 3px solid var(--primarytext);
  border-radius: 57px;
  width: 256px;
  height: 256px;
}
.coming-soon svg {
  position: relative;
  left: 17%;
  top: 17%;
  width: 66%;
  height: 66%;
}

#home main a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#home main h2 {
  font-size: 3rem;
  margin-top: 0.5rem;
  text-align: center;
}

.nav-home-link {
  margin-top: 1rem;
}

/* ---------- support / press page ---------- */
#support main h2 {
  margin-bottom: 1.5rem;
}
#support main > div {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 3rem;
  row-gap: 3rem;
}

.support-items dl {
  line-height: 1;
  list-style: none;
}
.support-items dt {
  font-weight: 600;
}
.support-items dt svg {
  margin-right: 0.5rem;
  vertical-align: middle;
}
.support-items dd {
  margin-top: 0.5rem;
}
.support-items dd + dt {
  margin-top: 1.5rem;
}

/* ---------- privacy policy page ---------- */
#privacy-policy h2 {
  margin-bottom: 0.5rem;
}

/* ---------- blog ---------- */
.blog-rss-icon svg {
  color: white;
}
.blog-rss-icon {
  line-height: 1;
  background-color: orangered;
  padding: 3px;
  border-radius: 3px;
}

#blog-home #content {
  max-width: 50rem;
}
#blog-home #blog-header h2 {
  font-size: 2.5rem;
}
#blog-home #blog-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 0.75rem;
  margin-bottom: 0.75rem;
}
#blog-home #blog-posts li p {
  margin: 0;
  margin-top: 0.75rem;
}
#blog-home #blog-posts li {
  list-style: none;
  margin: 1.5rem 0;
}

.blog-post #content {
  max-width: 50rem;
}

.blog-post-header > p {
  margin: 0;
  margin-top: 0.75rem;
}
.blog-post-header {
  margin: 3rem 0;
}

.blog-post-author img {
  height: 64px;
  width: 64px;
}
.blog-post-author p:first-child {
  font-weight: 700;
}
.blog-post-author {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  column-gap: 0.75rem;
  row-gap: 1.5rem;
  margin-bottom: 3rem;
}

.blog-post-author-metadata p + p {
  margin-top: 0;
}
.blog-post-author-metadata {
  display: flex;
  flex-direction: column;
}

.blog-post-header-links {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  column-gap: 1rem;
  flex-grow: 1;
}

.blog-post-date {
  color: var(--secondarytext);
}

.blog-post-content h3 {
  font-size: 1.5rem;
}
.blog-post-content h4 {
  font-size: 1rem;
}
.blog-post-content h3, .blog-post-content h4 {
  margin: 1em 0;
}
.blog-post-content ul, .blog-post-content ol {
  margin: 1.5rem 0;
  margin-left: 2.5rem;
}
.blog-post-content strong {
  font-weight: 700;
}
.blog-post-content pre {
  background-color: var(--codebackground);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1.5rem 0;
}

.blog-post-content-image {
  border-radius: 0.5rem;
  background-color: var(--imagebackground);
  margin-bottom: 3rem;
  overflow-y: hidden;
  height: 300px;
}
.blog-post-content-image img {
  display: block;
  width: 270px;
  margin: 1rem auto 0;
}

.blog-post-footer ul {
  list-style: none;
}
.blog-post-footer ul li + li {
  margin-top: 0.5rem;
}
.blog-post-footer ul li img, .blog-post-footer ul li svg {
  margin-right: 0.5rem;
}
.blog-post-footer {
  margin: 3rem 0 6rem;
}