:root {
  color-scheme: light;
  --ink: #14251f;
  --muted: #68736d;
  --line: #d9ded9;
  --paper: #f4f3ee;
  --surface: #fbfaf6;
  --brand: #173c32;
  --brand-soft: #dce9e1;
  --accent: #d9794a;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(20, 37, 31, 0.045) 50%, transparent calc(50% + 0.5px)),
    var(--paper);
}

button,
a {
  font: inherit;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 9px;
  font-size: 14px;
}

.language {
  min-width: 42px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.language:hover {
  background: var(--surface);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 760px) auto;
  align-items: end;
  column-gap: 48px;
  padding: 76px 0 54px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  grid-column: 1;
  margin-bottom: 22px;
  max-width: 760px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(46px, 6.2vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.lede {
  grid-column: 1;
  margin-bottom: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.release-meta {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3f9f70;
  box-shadow: 0 0 0 4px rgba(63, 159, 112, 0.12);
}

.downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.download-card {
  min-height: 390px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: rgba(251, 250, 246, 0.58);
  border-right: 1px solid var(--line);
}

.download-card:last-child {
  border-right: 0;
}

.primary-card {
  background: var(--brand);
  color: white;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 52px;
  font-size: 12px;
}

.platform {
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.requirement,
.file-note {
  color: var(--muted);
}

.primary-card .requirement,
.primary-card .file-note {
  color: rgba(255, 255, 255, 0.65);
}

.download-card h2 {
  margin-bottom: 14px;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.download-card > p:not(.file-note) {
  color: var(--muted);
  line-height: 1.65;
}

.primary-card > p:not(.file-note) {
  color: rgba(255, 255, 255, 0.72);
}

.download-button {
  min-height: 48px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.download-button:hover:not(:disabled) {
  color: white;
  background: var(--ink);
  transform: translateY(-1px);
}

.download-button.primary {
  border-color: white;
  color: var(--brand);
  background: white;
}

.download-button.primary:hover:not(:disabled) {
  color: var(--brand);
  background: #eef4f0;
}

.download-button:disabled,
.download-button[aria-disabled="true"] {
  opacity: 0.52;
  cursor: wait;
  pointer-events: none;
}

.file-note {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.45;
}

.file-note a {
  color: inherit;
  text-underline-offset: 3px;
}

.setup {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  gap: 64px;
  padding: 92px 0;
}

.section-heading h2,
.integrity h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.step-number {
  color: var(--accent);
  font: 600 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.steps h3 {
  margin-bottom: 7px;
  font-size: 17px;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.command-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

.command-row code {
  padding: 12px 14px;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 12px;
}

.command-row button {
  padding: 0 15px;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.integrity {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 38px 0;
  border-top: 1px solid var(--ink);
}

.integrity p:last-child {
  max-width: 580px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.text-link {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 4px;
}

footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 820px) {
  .intro {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .release-meta {
    grid-column: 1;
    grid-row: auto;
    margin-top: 26px;
  }

  .downloads {
    grid-template-columns: 1fr;
  }

  .download-card {
    min-height: 330px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .download-card:last-child {
    border-bottom: 0;
  }

  .setup {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 70px 0;
  }
}

@media (max-width: 520px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 46px;
  }

  .download-card {
    padding: 24px 20px;
  }

  .integrity,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    justify-content: center;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
