:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 100%;
  line-height: 1.55;
  color: #16263b;
  background: #f4f7fb;
  --color-muted: #40536f;
  --color-link: #215391;
  --color-line: #d6e0ee;
  --color-primary: #163c74;
  --color-primary-hover: #22538d;
  --text-small: .875rem;
  --text-body: 1rem;
  --text-card: 1.25rem;
  --text-page: clamp(2rem, 1.63rem + 1.6vw, 3rem);
  --gutter: clamp(1rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: var(--text-body); }
a { color: var(--color-link); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid #1768ba; outline-offset: 4px; }

.top, main, footer {
  width: min(100%, 70rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  min-block-size: 4rem;
  padding-block: .75rem;
  border-bottom: 1px solid var(--color-line);
}
.top a { font-size: var(--text-small); text-decoration: none; }
.top a:hover { text-decoration: underline; }
.top .brand { color: inherit; font-size: var(--text-body); font-weight: 700; }

main { padding-block: clamp(1.75rem, 5vw, 3.5rem); }
h1 {
  margin: 0;
  font-size: var(--text-page);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.16;
}
.intro { margin: .65rem 0 1.65rem; color: var(--color-muted); }
.downloads { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }

.downloads > article {
  min-width: 0;
  padding: clamp(1rem, 2.4vw, 1.35rem);
  border: 1px solid var(--color-line);
  border-radius: .9rem;
  background: #fff;
}
.downloads .browser-card { border-color: #91add0; }
.platform {
  margin: 0 0 .4rem;
  color: var(--color-link);
  font-size: var(--text-small);
  font-weight: 700;
}
h2 { margin: 0; font-size: var(--text-card); font-weight: 700; line-height: 1.35; }
article p:not(.platform) { margin: .4rem 0 .95rem; color: var(--color-muted); overflow-wrap: anywhere; }

.download {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  min-block-size: 2.75rem;
  padding: .5rem .75rem;
  border-radius: .55rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.download:hover { background: var(--color-primary-hover); }
.download span { flex: none; font-size: var(--text-small); font-weight: 500; font-variant-numeric: tabular-nums; }
.secondary { display: inline-block; margin-top: .65rem; font-size: var(--text-small); overflow-wrap: anywhere; }
.browser-links { display: flex; flex-wrap: wrap; column-gap: 1rem; }

.contact { border-top: 1px solid var(--color-line); margin-top: 2.25rem; padding-top: 1.4rem; }
.contact address { font-style: normal; }
.contact dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .9rem 1rem;
  margin: .8rem 0 0;
}
.contact dt { color: var(--color-muted); font-size: var(--text-small); }
.contact dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--color-line); padding-block: 1.1rem 1.6rem; font-size: var(--text-small); }

@media (min-width: 40rem) {
  .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 59rem) {
  .downloads { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
