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

html {
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  color-scheme: light dark;
}

body {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: max-content auto max-content;
  gap: 2rem;
  place-items: center;
  padding: 1rem;
  background-color: light-dark(#fff, #000);
  color: light-dark(#000, #fff);

  > * {
    max-width: 768px;
  }
}

a {
  color: light-dark(#000, #fff);
  text-decoration: underline;
  text-decoration-color: #f7ce46;
  text-decoration-thickness: 0.2em;
  text-decoration-skip-ink: none;
  text-underline-offset: 0.1em;
}

header {
  align-items: center;
  display: flex;
  height: 36px;
  justify-content: space-between;
  width: 100%;
}

nav {
  margin-left: auto;

  ul {
    display: flex;
    list-style: none;
    gap: 1rem;
  }
}

main {
  display: flex;
  flex-direction: column;
  align-self: flex-start;

  &.center {
    align-items: center;
  }
  &.not-found {
    margin-block-start: 5rem;
  }

  ul {
    margin-inline-start: 1rem;
    margin-block-end: 1rem;

    li {
      margin-block-end: 0.25rem;
    }
  }
}

h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 2.5rem;
  text-align: center;

  small {
    font-size: 1rem;
    font-weight: normal;
    text-wrap: balance;
  }
}

h2 {
  font-size: 1.75rem;
  margin-block-end: 0.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-block-start: 1.5rem;
  margin-block-end: 0.5rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.1rem;
  margin-block-start: 1.5rem;
  margin-block-end: 0.5rem;
}

p {
  margin-block-end: 1rem;
}

picture.icon {
  display: block;
  max-width: 192px;
  margin: 0 auto;

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

.app-store-badge {
  margin-block-start: 4rem;
}

.last-updated {
  margin-block-start: 2rem;
}

@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}
