:root {
  --bg: #f4f6f7;
  --panel: #ffffff;
  --code: #e8edef;
  --line: #d6dde0;
  --text: #1b2430;
  --muted: #586472;
  --accent: #0f7b84; /* the app's download colour */
  --accent-soft: #d9eef0;
  --on-accent: #ffffff;
  --up: #b44700; /* the app's upload colour */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12181f;
    --panel: #1b242e;
    --code: #232e39;
    --line: #323f4c;
    --text: #e9eef2;
    --muted: #9eabb8;
    --accent: #5fd3da;
    --accent-soft: #173a42;
    --on-accent: #08211f;
    --up: #ffa152;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.65 system-ui,
    sans-serif;
}
main {
  max-width: 980px;
  margin: auto;
  padding: 40px 24px 56px;
}
a {
  color: var(--accent);
}
.down {
  color: var(--accent);
  font-weight: 600;
}
.up {
  color: var(--up);
  font-weight: 600;
}

nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
nav .brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
}

.platform-tag {
  margin: 44px 0 0;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 12px 0 18px;
}
.lead {
  font-size: 20px;
  max-width: 680px;
  color: var(--muted);
}
h2 {
  font-size: 26px;
  line-height: 1.3;
  margin: 56px 0 12px;
}
h3 {
  font-size: 18px;
  margin: 28px 0 10px;
}
p,
li {
  max-width: 720px;
}
.muted {
  color: var(--muted);
}
.fine {
  font-size: 14px;
  color: var(--muted);
}
.tag {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 11px;
  border-radius: 99px;
}

code {
  background: var(--code);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.9em;
}
pre {
  background: var(--code);
  border-radius: 12px;
  padding: 14px 18px;
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.6;
}
pre code {
  background: none;
  padding: 0;
}

.buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.button {
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  white-space: nowrap;
  background: var(--accent);
  color: var(--on-accent);
  padding: 11px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}
.button.secondary {
  background: var(--accent-soft);
  color: var(--accent);
}
.button .size {
  font-weight: 400;
  font-size: 14px;
  opacity: 0.8;
}

/* The screenshots carry their own window shadow, in a transparent margin. */
.shot {
  margin: 24px -24px 0;
}
.shot img,
.shots img {
  display: block;
  width: 100%;
  height: auto;
}
figcaption {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}
.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0 0;
}
.shots figure {
  margin: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 16px;
  margin: 48px 0 0;
}
.card,
.platform {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.card {
  padding: 22px;
}
.card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.card p {
  margin: 0;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.downloads > .fine {
  grid-column: 1 / -1;
  margin: 0;
}
.platform {
  padding: 18px 20px;
}
.platform h3 {
  margin: 0;
}
.platform .buttons {
  margin: 14px 0 0;
}
.platform .fine {
  margin: 12px 0 0;
}

footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 640px) {
  main {
    padding: 24px 16px 40px;
  }
  nav {
    gap: 6px 16px;
    font-size: 15px;
  }
  nav .brand {
    width: 100%;
  }
  .lead {
    font-size: 18px;
  }
  .shot {
    margin-inline: -16px;
  }
  .shots {
    grid-template-columns: 1fr;
  }
}
