@font-face {
  font-family: "Toolbox Condensed";
  src: url("OpenSans-CondLight.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

:root {
  --bg: #141619;
  --panel: #1c1f23;
  --panel-edge: #2a2e34;
  --ink: #e8e8e6;
  --muted: #9a9fa6;
  --faint: #6b7077;
  --red: #d8262c;
  --red-light: #ff6a5f;
  --condensed: "Toolbox Condensed", "Arial Narrow", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  /* Whole-pixel line heights above the screenshot keep it on the device pixel grid; a fractional
     offset makes Safari resample it and blur. */
  font: 16px/24px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a {
  color: var(--red-light);
}

h1,
h2 {
  font-family: var(--condensed);
  font-weight: 300;
  line-height: 1.05;
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 56px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 88px 16px 64px;
}

.hero-art {
  grid-column: 2;
  grid-row: 1;
  width: 320px;
  height: 322px;
  filter: drop-shadow(0 30px 60px rgb(216 38 44 / 0.3));
}

.hero-content {
  grid-column: 1;
  grid-row: 1;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: 100px;
  line-height: 106px;
}

.tagline {
  max-width: 30em;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 19px;
  line-height: 30px;
}

.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0;
}

.download-button {
  padding: 14px 26px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 5px 5px 0 #000;
}

.download-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #000;
}

.download-note {
  color: var(--muted);
  font-size: 14px;
}

.checksum {
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 18px;
}

.checksum code {
  font: 12px/18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
  user-select: all;
}

.languages {
  position: absolute;
  top: 24px;
  right: 16px;
  display: flex;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.languages a {
  color: var(--muted);
  text-decoration: none;
}

.languages span {
  color: var(--ink);
  font-weight: 600;
}

/* Sections --------------------------------------------------------------- */

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

main section {
  margin-bottom: 20px;
  padding: 32px;
  border: 1px solid var(--panel-edge);
  border-radius: 6px;
  background: var(--panel);
}

main section.screenshot {
  padding: 0;
  border: 0;
  background: none;
}

h2 {
  margin: 0 0 20px;
  font-size: 40px;
}

.screenshot img,
.screenshot-pending {
  display: block;
  border: 1px solid var(--panel-edge);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.5);
}

/* content-box: the border goes around the image, so 688x455 stays exactly half of the 2x file */
.screenshot img {
  box-sizing: content-box;
  max-width: calc(100% - 2px);
  height: auto;
  margin: 0 auto;
}

.screenshot-pending {
  width: 100%;
}

.screenshot-pending {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: var(--panel);
  color: var(--muted);
  font-family: var(--condensed);
  font-size: 32px;
}

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool {
  padding: 18px 20px;
  border-left: 4px solid var(--red);
  background: var(--bg);
}

.tool h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.tool-note {
  margin: 0;
  color: var(--muted);
}

.sections {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.sections li {
  padding: 2px 10px;
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  font-size: 13px;
}

.requirements {
  margin: 0 0 16px;
  padding-left: 20px;
}

.install {
  margin: 0;
  color: var(--muted);
}

.release h3 {
  margin: 0 0 8px;
  font-family: var(--condensed);
  font-size: 28px;
  font-weight: 300;
}

.release + .release {
  margin-top: 24px;
}

.current {
  margin-left: 10px;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 14px;
}

.release ul {
  margin: 0;
  padding-left: 20px;
}

.release li + li {
  margin-top: 6px;
}

.links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.links li + li {
  margin-top: 8px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 960px) {
  .hero h1 {
    font-size: 72px;
    line-height: 78px;
  }
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 64px;
  }

  .hero h1 {
    font-size: 56px;
    line-height: 60px;
  }

  .hero-art {
    grid-column: 1;
    width: 180px;
    height: 181px;
  }

  .hero-content {
    grid-row: 2;
  }

  main section {
    padding: 24px 18px;
  }
}
