/*
 * One page, one button. Hand-written rather than themed, because a theme is a
 * dependency that can break a build for a site with three paragraphs on it.
 *
 * Light and dark both, from the system preference. Nobody should have to think
 * about which one a download page is in.
 */

:root {
  --bg: #f6f7f9;
  --fg: #14171c;
  --muted: #5c6470;
  --accent: #7b3fb5;
  --accent-ink: #ffffff;
  --line: #dfe3e8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c;
    --fg: #eceff3;
    --muted: #98a1ad;
    --accent: #a86ede;
    --accent-ink: #14171c;
    --line: #2a3038;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2.5rem 1.25rem 3rem;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* The whole page is one column of one thing. Centre it and stop. */
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

main {
  width: 100%;
  max-width: 30rem;
  text-align: center;
  flex: 1;
}

h1 {
  margin: 0 0 0.25rem;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 0 2rem;
  color: var(--muted);
}

/*
 * The button is the page.
 *
 * Full width, tall, and with a large touch target on purpose: this is tapped on
 * a tablet, and a download link that needs aiming is a download link that gets
 * mis-tapped.
 */
.download {
  display: block;
  padding: 1.1rem 1.5rem;
  border-radius: 0.9rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  /* Touch devices give no hover; the press state is the only feedback there is. */
  transition: transform 0.06s ease, filter 0.15s ease;
}

.download span {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 0.15rem;
}

.download:hover { filter: brightness(1.08); }
.download:active { transform: scale(0.985); }
.download:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }

.steps {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  text-align: left;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.45rem 0 0.45rem 2.25rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5rem;
  text-align: center;
}

.note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: left;
}

.small { font-size: 0.9rem; }

a { color: var(--accent); }

footer {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
