:root {
  color-scheme: dark;
  --background: #101214;
  --surface: #181b1e;
  --text: #e7e7e4;
  --muted: #a0a3a6;
  --line: #33373b;
  --link: #9fc9d0;
  --width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}

header,
main,
footer {
  width: min(calc(100% - 40px), var(--width));
  margin-inline: auto;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.project-name {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}

main {
  padding: 48px 0 40px;
}

section {
  max-width: 680px;
  margin-top: 64px;
}

.introduction {
  margin-top: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h2 {
  margin-bottom: 16px;
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin-bottom: 16px;
}

.introduction > p:first-of-type {
  max-width: 700px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.platform,
.small,
figcaption,
footer {
  color: var(--muted);
  font-size: 0.875rem;
}

figure {
  margin: 32px 0 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

figcaption {
  margin-top: 8px;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.downloads {
  margin: 24px 0 16px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.downloads li {
  border-bottom: 1px solid var(--line);
}

.downloads a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  text-decoration: none;
}

.downloads span {
  color: var(--muted);
  font-size: 0.875rem;
  text-align: right;
}

footer {
  padding: 24px 0 48px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

@media (max-width: 620px) {
  header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  nav {
    gap: 16px;
  }

  main {
    padding-top: 40px;
  }

  section {
    margin-top: 48px;
  }

  figure {
    margin-top: 32px;
  }

  .downloads a {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .downloads span {
    text-align: left;
  }
}
