:root {
  color-scheme: light;
  --yellow: #ffed8c;
  --black: #11100c;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--yellow);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--yellow);
  color: var(--black);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1rem;
  line-height: 1.6;
}

p {
  text-wrap: pretty;
}

main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) 0 80px;
  text-align: center;
}

.intro h1 {
  margin: 0;
  font-family: "Google Sans Flex", sans-serif;
  font-size: clamp(4rem, 12vw, 8.5rem);
  font-weight: 100;
  letter-spacing: normal;
  line-height: 0.9;
}

.intro p {
  max-width: 900px;
  margin: 28px auto 0;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.download-size {
  display: block;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  margin-top: clamp(52px, 7vw, 84px);
}

figure {
  margin: 0;
}

.screenshots img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(5px 8px 3px rgba(17, 16, 12, 0.3));
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  margin-top: clamp(52px, 7vw, 80px);
}

.download {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.release-version {
  margin-top: 8px;
  font-size: 0.75rem;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 12px 18px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: transparent;
  font-weight: 500;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.button-icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  fill: currentColor;
}

.links a.primary {
  background: var(--black);
  color: var(--yellow);
}

.links a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--black);
}

.links a:focus-visible,
.notes a:focus-visible,
.faq a:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 4px;
}

.notes {
  margin-top: 22px;
  font-size: 0.875rem;
}

.notes p {
  margin: 2px 0;
}

.faq {
  max-width: 720px;
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(17, 16, 12, 0.25);
  text-align: left;
  font-size: 0.875rem;
}

.faq h2 {
  margin: 0 0 24px;
  font-size: 1.125rem;
  font-weight: 500;
}

.faq dl {
  margin: 0;
}

.faq dt {
  margin-top: 24px;
  font-size: 1rem;
  font-weight: 500;
}

.faq dd {
  margin: 8px 0 0;
  text-wrap: pretty;
}

footer {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 28px;
  text-align: center;
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}

@media (max-width: 720px) {
  main {
    padding-top: 56px;
  }

  .screenshots {
    grid-template-columns: 1fr;
  }

  .screenshots figure:nth-child(2) {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  .links a {
    transition: none;
  }
}
