/* The download page. One featured build for the visitor's own platform, the
   other two offered below, and the three install steps. Editorial, not a
   storefront: one dark button carries the decision, everything else is quiet. */

.dl {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 5rem;
}

/* ---- Intro ------------------------------------------------------------- */
.dl__intro { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }

/* The illustration, in the set's style. A cut-out that sits straight on the
   page ground — no plate, no card — exactly like the home-page figures, so it
   reads the same in light and dark. (An earlier cream plate here rendered as a
   white box in dark mode; the home-page set never had one and neither should
   this.) */
.dl__art {
  display: block;
  height: clamp(150px, 22vw, 210px);
  width: auto;
  margin: 0 auto 1.25rem;
  pointer-events: none;
  user-select: none;
}

.dl__intro .eyebrow { margin: 0 0 0.6rem; }
.dl__title {
  font-family: var(--display);
  font-size: var(--step-4);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 0.9rem;
}
.dl__sub {
  color: var(--ink-body);
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 34ch;
  margin: 0 auto;
  text-wrap: balance;
}

/* ---- No-JS fallback panel (JS swaps in the cards) ---------------------- */
.dl__panel { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.dl__cta { font-size: 1.0625rem; padding: 0.85rem 1.75rem; }
.dl__cta.is-unavailable { pointer-events: none; opacity: 0.55; }
.dl__meta { color: var(--ink-quiet); font-size: 0.9rem; margin: 0; }

/* ---- Platform marks ---------------------------------------------------- */
.dl__ic { display: inline-flex; color: var(--ink); }
.dl__ic svg { width: 100%; height: 100%; display: block; }
.dl__ic-eye { fill: var(--paper-raised); }

/* ---- The featured (hero) card ------------------------------------------ */
.dl__cards { display: flex; flex-direction: column; gap: clamp(1.75rem, 4vw, 2.5rem); }

.dl__hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 4vw, 2rem);
  align-items: start;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--paper-raised);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-l);
  box-shadow: var(--lift-2);
}
.dl__hero-ic { width: clamp(3rem, 9vw, 4rem); height: clamp(3rem, 9vw, 4rem); }
.dl__hero-body { min-width: 0; }

.dl__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-quiet);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin: 0 0 0.7rem;
}
.dl__hero-os {
  font-family: var(--display);
  font-size: var(--step-2);
  line-height: 1.1;
  margin: 0 0 0.25rem;
}
.dl__hero-build {
  color: var(--ink-quiet);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}
.dl__hero .dl__cta { display: inline-flex; }
.dl__hint { color: var(--ink-quiet); font-size: 0.9rem; margin: 0.75rem 0 0; }

/* The tar.gz, one quiet click away from the featured .deb — not a second button. */
.dl__alt-format {
  display: block;
  color: var(--ink-quiet);
  font-size: 0.8125rem;
  margin-top: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.dl__alt-format:hover { color: var(--ink-body); }

/* The checksum, folded away — most people never open it. */
.dl__sum { margin-top: 1rem; font-size: 0.8125rem; }
.dl__sum summary { color: var(--ink-quiet); cursor: pointer; width: max-content; }
.dl__sum summary:hover { color: var(--ink-body); }
.dl__sum-code {
  display: block;
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--paper-sunk);
  border-radius: var(--radius-s);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ink-quiet);
  white-space: pre-wrap;
  word-break: break-all;
}

/* ---- The other two platforms ------------------------------------------- */
.dl__others-label { margin: 0 0 0.9rem; }
.dl__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dl__other {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--paper-raised);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-m);
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}
a.dl__other:hover { border-color: var(--ink-faint); box-shadow: var(--lift-1); transform: translateY(-1px); }
a.dl__other:active { transform: translateY(0); box-shadow: none; }
a.dl__other:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dl__other-ic { width: 1.75rem; height: 1.75rem; }
.dl__other-body { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.dl__other-os { font-weight: 600; }
.dl__other-build { color: var(--ink-quiet); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.dl__other-go { color: var(--accent); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.dl__other-go::after { content: " ↓"; }
.dl__other.is-unavailable { opacity: 0.6; }

/* ---- Install steps + the fine print ------------------------------------ */
.dl__steps {
  list-style: none;
  margin: clamp(2.5rem, 6vw, 3.5rem) 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dl__steps li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  line-height: 1.5;
  color: var(--ink-body);
}
/* Numbered because installing is a sequence — the order carries information. */
.dl__step-n { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); }

.dl__fine {
  color: var(--ink-quiet);
  font-size: 0.875rem;
  border-top: 1px solid var(--paper-edge);
  padding-top: 1.5rem;
  margin: 0;
}

@media (max-width: 30rem) {
  .dl__hero { grid-template-columns: 1fr; }
  .dl__grid { grid-template-columns: 1fr; }
}
