:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #172033;
  background: #f3f6fb;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
}

.card {
  width: min(100%, 780px);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid #dce4ef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 56px rgb(26 46 82 / 9%);
}

.eyebrow {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

h1 {
  margin: 0;
  font-size: clamp(25px, 5vw, 32px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.refresh-page {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.intro {
  margin: 14px 0 26px;
}

.notice {
  color: #536176;
  line-height: 1.7;
}

.destination-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.destination-heading h2 {
  margin: 0;
  font-size: 16px;
}

.destination-heading span {
  color: #748197;
  font-size: 13px;
}

.destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.destination-button {
  position: relative;
  width: 100%;
  min-height: 82px;
  padding: 15px 44px 15px 17px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.destination-button:hover,
.destination-button:focus-visible {
  border-color: #2563eb;
  outline: 3px solid rgb(37 99 235 / 12%);
  transform: translateY(-1px);
}

.destination-button[aria-pressed="true"] {
  border-color: #2563eb;
  background: #f5f8ff;
  box-shadow: 0 0 0 2px rgb(37 99 235 / 9%);
}

.destination-button::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 17px;
  color: #8a97aa;
  font-size: 25px;
  line-height: 1;
  transform: translateY(-55%);
}

.destination-button strong,
.destination-button span {
  display: block;
}

.destination-button strong {
  font-size: 16px;
}

.destination-button span {
  margin-top: 4px;
  color: #536176;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.confirmation {
  padding: 18px;
  border-radius: 12px;
  background: #f3f6fb;
}

.confirmation p {
  margin: 0 0 12px;
}

.destination-line {
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  gap: 10px;
}

.button {
  min-height: 42px;
  padding: 9px 15px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.primary {
  background: #2563eb;
  color: #fff;
}

.secondary {
  background: #e3e9f2;
  color: #172033;
}

.notice {
  margin: 24px 0 0;
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .refresh-page {
    align-self: flex-end;
  }

  .destination-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 620px) {
  .destinations {
    grid-template-columns: 1fr;
  }
}
