/* Download page — inherits base from style.css */

.dl-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16vh 2rem 8rem;
  gap: 5rem;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ─── Header ─────────────────────────────────────────── */

.dl-header {
  text-align: center;
}

.dl-title {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 0.8rem;
}

.dl-version {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ─── Primary CTA ────────────────────────────────────── */

.dl-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.dl-btn--loading {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.dl-btn {
  display: inline-block;
  border: 1px solid rgba(var(--fg-rgb), 0.22);
  padding: 0.85rem 2.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.dl-btn:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.dl-file-meta {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ─── All platforms ──────────────────────────────────── */

.dl-all {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.dl-all-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.08);
}

.dl-platform-list {
  display: flex;
  flex-direction: column;
}

.dl-platform-row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.05);
}

.dl-platform-name {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--fg);
  min-width: 12rem;
}

.dl-platform-file {
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--muted);
  font-family: 'Courier New', monospace;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-platform-dl {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--fg);
  text-decoration: none;
  opacity: 0.55;
  white-space: nowrap;
  transition: opacity 180ms ease;
}

.dl-platform-dl:hover {
  opacity: 1;
}

/* ─── Footer link ────────────────────────────────────── */

.dl-footer a {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms ease;
}

.dl-footer a:hover {
  color: var(--fg);
}

/* hidden on desktop */
.dl-mobile-note {
  display: none;
}

/* ─── Mobile ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .dl-mobile-note {
    display: block;
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--muted);
    text-align: center;
    max-width: 36ch;
  }

  .dl-primary,
  .dl-all {
    display: none;
  }
}

@media (max-width: 600px) {
  .dl-platform-file {
    display: none;
  }

  .dl-platform-row {
    gap: 1rem;
  }
}
