:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: #1f2329;
  background: #f5f7fb;
  line-height: 1.7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

header,
main,
footer {
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
}

header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #3a76f0;
  font-size: 25px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: #3a76f0;
  font-size: 24px;
}

.environment {
  padding: 5px 10px;
  border-radius: 999px;
  color: #315fae;
  background: #e5edff;
  font-size: 13px;
}

article {
  min-height: 470px;
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid #e7eaf0;
  border-radius: 24px;
  background: white;
  box-shadow: 0 18px 50px rgb(31 35 41 / 8%);
}

h1 {
  margin-top: 0;
  line-height: 1.25;
  font-size: clamp(28px, 5vw, 42px);
}

h2 {
  margin-top: 30px;
  line-height: 1.35;
}

li + li {
  margin-top: 7px;
}

a {
  color: #2c6bed;
}

.notice {
  margin-block: 24px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #eef4ff;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-block: 24px;
}

.download-card {
  padding: 20px;
  border: 1px solid #dce3f0;
  border-radius: 16px;
  background: #f8faff;
}

.download-card h2 {
  margin-top: 0;
  font-size: 20px;
}

.download-button {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 10px;
  color: white;
  background: #2c6bed;
  font-weight: 700;
  text-decoration: none;
}

.coordinate-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-block: 24px;
}

.coordinate-card > div {
  padding: 18px;
  border: 1px solid #dbe3f2;
  border-radius: 14px;
  background: #f8faff;
}

.coordinate-card dt {
  color: #6b7280;
  font-size: 13px;
}

.coordinate-card dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  font-size: 20px;
  font-weight: 700;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.location-actions a,
.location-actions button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #c9d3e4;
  border-radius: 12px;
  background: white;
  color: #2c6bed;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.location-actions .primary-action {
  border-color: #2c6bed;
  background: #2c6bed;
  color: white;
}

footer {
  padding-block: 24px 40px;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #f1f3f5;
    background: #16181d;
  }

  article {
    border-color: #30343c;
    background: #20232a;
    box-shadow: none;
  }

  .environment,
  .notice,
  .download-card {
    color: #b9ceff;
    background: #25365b;
  }

  .download-card {
    border-color: #3b4d74;
  }

  .coordinate-card > div,
  .location-actions a,
  .location-actions button {
    border-color: #3a414d;
    background: #292d35;
    color: #b9ceff;
  }

  .location-actions .primary-action {
    border-color: #4e82ed;
    background: #356edc;
    color: white;
  }
}

@media (max-width: 520px) {
  .coordinate-card {
    grid-template-columns: 1fr;
  }

  .location-actions > * {
    width: 100%;
    text-align: center;
  }
}
