body {
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header.container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

main.container {
  flex: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 10.9375rem;
  height: 2.5rem;
  margin: 0;
}

.site-nav {
  align-items: center;
  flex-wrap: nowrap;
}

.site-nav > ul:last-child {
  gap: 0.25rem;
  margin-left: auto;
}

.site-nav > ul:last-child > li {
  display: flex;
  align-items: center;
}

.site-nav > ul:last-child > li > a,
.site-nav details > summary {
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}

.site-nav details {
  margin-bottom: 0;
}

.site-nav details > summary {
  display: inline-flex;
  align-items: center;
  height: auto;
  font-weight: 400;
  line-height: var(--pico-line-height);
  white-space: nowrap;
}

.site-nav details > summary::after {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  margin-inline-start: 0.35rem;
  float: none;
  transform: none;
  background-color: currentColor;
  background-image: none;
  -webkit-mask-image: url("/assets/chevron.svg");
  mask-image: url("/assets/chevron.svg");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 1rem auto;
  mask-size: 1rem auto;
}

.site-nav details ul {
  right: 0;
  left: auto;
  min-width: 15rem;
}

.site-nav details.dropdown ul li a {
  display: flex;
  align-items: center;
  font-weight: 400;
}

.site-nav [aria-current="page"],
.site-nav .current-section > summary {
  color: var(--pico-primary);
}

.hero {
  max-width: 44rem;
  margin: 2rem 0 3.5rem;
}

.home-top {
  background-color: var(--pico-card-sectioning-background-color);
  background-color: color-mix(in srgb, var(--pico-primary) 6%, var(--pico-background-color));
}

.home-page .hero {
  margin-bottom: 0;
  padding-bottom: 3rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--pico-muted-color);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.intro {
  max-width: 38rem;
  color: var(--pico-muted-color);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.home-page .hero .intro {
  margin-top: var(--pico-spacing);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.actions [role="button"] {
  margin: 0;
}

.actions a.github-button[role="button"],
.actions a.google-play-button[role="button"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.actions a.github-button[role="button"]::before {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  background-color: currentColor;
  content: "";
  -webkit-mask-image: url("/assets/github.svg");
  mask-image: url("/assets/github.svg");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.actions a.google-play-button[role="button"] {
  direction: ltr;
  flex-direction: row;
  white-space: nowrap;
}

.actions a.google-play-button[role="button"] img {
  display: block;
  order: -1;
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  margin: 0;
  filter: brightness(0) invert(1);
}

main.container > section[aria-labelledby="apps-heading"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

#apps-heading {
  grid-column: 1 / -1;
  margin-bottom: 0.25rem;
}

main.container > section[aria-labelledby="apps-heading"] article {
  margin: 0;
  padding: 1.25rem;
}

main.container > section[aria-labelledby="apps-heading"] article h3 {
  margin-bottom: 0.5rem;
}

main.container > section[aria-labelledby="apps-heading"] article p {
  margin-bottom: 0;
}

.app-page main.container > article {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-page main.container > article > header {
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.site-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
  padding-bottom: 1.5rem;
  color: var(--pico-muted-color);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-left: auto;
}

.social-icons a {
  position: relative;
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--pico-primary);
}

.social-icons a:hover,
.social-icons a:focus {
  color: var(--pico-primary-hover);
}

.social-icons a::before {
  width: 100%;
  height: 100%;
  background-color: currentColor;
  content: "";
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.social-icons a:nth-child(1)::before {
  -webkit-mask-image: url("/assets/github.svg");
  mask-image: url("/assets/github.svg");
}

.social-icons a:nth-child(2)::before {
  -webkit-mask-image: url("/assets/linkedin.svg");
  mask-image: url("/assets/linkedin.svg");
}

.social-icons a:nth-child(3)::before {
  -webkit-mask-image: url("/assets/facebook.svg");
  mask-image: url("/assets/facebook.svg");
}

.social-icons img {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.error-page {
  justify-content: center;
  text-align: center;
}

.error-page main.container {
  flex: none;
}

.error-page .hero {
  margin: 0 auto;
  padding: 2rem 0;
}

.error-page .actions {
  justify-content: center;
}

@media (prefers-color-scheme: dark) {
  .brand img {
    filter: invert(1);
  }
}

@media (max-width: 700px) {
  .brand img {
    width: 9.625rem;
    height: 2.2rem;
  }

  .site-nav > ul:last-child > li > a,
  .site-nav details > summary {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  .hero {
    margin: 1.5rem 0 3rem;
  }

  .home-page .hero {
    margin-bottom: 0;
    padding-bottom: 2.5rem;
  }

  main.container > section[aria-labelledby="apps-heading"] {
    grid-template-columns: 1fr;
  }
}
