/* ---------------------------------------------------------------
   Orbit download page — flat, square, shadow-free.
   Design rules: no border-radius, no box-shadow, no gradients.
   Separation comes from solid 1px borders and white space only.
   --------------------------------------------------------------- */

/* ---------- themes ---------- */

:root,
[data-theme="light"] {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #5f6368;
  --line: #111111;
  --hairline: #d4d4d4;
  --accent: #0b5fff;
  --accent-hover: #0847c4;
  --accent-fg: #ffffff;
  --surface: #f4f4f4;
  --mark: #111111;
}

[data-theme="dark"] {
  --bg: #101010;
  --fg: #f2f2f2;
  --muted: #9a9a9a;
  --line: #f2f2f2;
  --hairline: #3a3a3a;
  --accent: #6fa0ff;
  --accent-hover: #9dbfff;
  --accent-fg: #101010;
  --surface: #1c1c1c;
  --mark: #f2f2f2;
}

[data-theme="mono"] {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #565656;
  --line: #000000;
  --hairline: #b8b8b8;
  --accent: #000000;
  --accent-hover: #333333;
  --accent-fg: #ffffff;
  --surface: #ededed;
  --mark: #000000;
}

[data-theme="paper"] {
  --bg: #f5f1e8;
  --fg: #1b1b18;
  --muted: #6b6659;
  --line: #1b1b18;
  --hairline: #cdc7b7;
  --accent: #1b3f8f;
  --accent-hover: #142e69;
  --accent-fg: #ffffff;
  --surface: #eae5d8;
  --mark: #1b1b18;
}

[data-theme="blueprint"] {
  --bg: #0a2540;
  --fg: #e6eef7;
  --muted: #9fb6cc;
  --line: #e6eef7;
  --hairline: #2c4763;
  --accent: #ffcc33;
  --accent-hover: #ffdb70;
  --accent-fg: #0a2540;
  --surface: #133353;
  --mark: #ffcc33;
}

/* ---------- reset-ish ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               "Noto Sans", "Noto Sans CJK SC", "Hiragino Sans", "Yu Gothic",
               "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  border-radius: 0;
  box-shadow: none;
}

/* ---------- typography ---------- */

h1, h2, h3, p, dl, dd, dt, ul, figure, pre { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px;
  background: var(--accent); color: var(--accent-fg);
  padding: 8px 12px; z-index: 10; text-decoration: none;
}

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  width: 18px; height: 18px;
  background: var(--mark);
  display: inline-block;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.controls { display: flex; gap: 18px; flex-wrap: wrap; }

.control { display: flex; flex-direction: column; gap: 4px; }

.control-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.control-input {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  padding: 6px 10px;
  min-width: 132px;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero { padding: 64px 0 56px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-desc {
  max-width: 52ch;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 32px;
}

.hero-action { margin-bottom: 40px; }

.detected {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: 0;
  box-shadow: none;
  background: var(--accent);
  color: var(--accent-fg);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 90ms linear, color 90ms linear;
}

.btn:hover { background: var(--accent-hover); color: var(--accent-fg); }
.btn:active { background: var(--accent-hover); }

.btn-primary { font-size: 16px; padding: 15px 34px; }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
  font-weight: 500;
}
.btn-ghost:hover { background: var(--fg); color: var(--bg); }

.btn-small {
  padding: 9px 16px;
  font-size: 14px;
}

/* ---------- meta strip ---------- */

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.meta-item {
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 14px 16px;
}

.meta dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.meta dd {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ---------- sections ---------- */

.downloads, .verify, .notes {
  padding: 56px 0;
  border-top: 1px solid var(--hairline);
}

.section-title {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.section-note {
  color: var(--muted);
  font-size: 15px;
  max-width: 60ch;
  margin-bottom: 26px;
}

/* ---------- download rows ---------- */

.dl-list { border-top: 1px solid var(--hairline); }

.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid var(--hairline);
}

.dl-row.is-recommended {
  border-left: 4px solid var(--accent);
  padding-left: 14px;
  background: var(--surface);
}

.dl-main { min-width: 200px; flex: 1 1 240px; }

.dl-name {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dl-tag {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 1px 7px;
  color: var(--fg);
  font-weight: 600;
}

.dl-tag.is-recommended {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.dl-file {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.dl-size {
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 84px;
  text-align: right;
}

.dl-action { flex: 0 0 auto; }

.hint {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

/* ---------- checksums ---------- */

.checksum {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ---------- changelog ---------- */

.changelog { border-top: 1px solid var(--hairline); }

.changelog li {
  padding: 12px 4px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.changelog .cl-ver {
  flex: 0 0 auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  min-width: 52px;
}

.changelog .cl-kind {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 1px 7px;
  font-weight: 600;
}

.changelog .cl-text { flex: 1 1 240px; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  margin-top: 20px;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}

.foot-links { display: flex; gap: 10px; }

/* ---------- responsive ---------- */

@media (max-width: 620px) {
  .hero { padding: 44px 0 40px; }
  .head-inner { padding-top: 14px; padding-bottom: 14px; }
  .controls { width: 100%; }
  .control { flex: 1 1 130px; }
  .control-input { width: 100%; min-width: 0; }
  .dl-size { text-align: left; }
  .dl-action { width: 100%; }
  .dl-action .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
