:root {
  color-scheme: dark;
  font: 100% / 1.55 system-ui, "Microsoft YaHei UI", sans-serif;
  color: #f2f6fd;
  background: #0c1322;
}

* { box-sizing: border-box; }

body {
  min-block-size: 100svh;
  margin: 0;
  padding: clamp(1rem, 5vw, 3rem);
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 0%, #162938 0%, #0c1322 66%);
}

.check-card {
  inline-size: min(100%, 31rem);
  padding: clamp(1.25rem, 6vw, 2.5rem);
  border: 1px solid #344558;
  border-radius: 1.25rem;
  background: #121d2e;
  box-shadow: 0 1.2rem 3.5rem #06091270;
}

.site-name {
  margin: 0 0 .55rem;
  color: #9ee7d1;
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .06em;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 7vw, 2.55rem);
  line-height: 1.22;
  letter-spacing: -.02em;
}

.intro {
  margin: .7rem 0 1.5rem;
  color: #c7d1e0;
}

.result {
  min-block-size: 6.5rem;
  display: grid;
  align-content: center;
  gap: .25rem;
  padding: .85rem 1rem;
  border: 1px solid #344558;
  border-radius: .8rem;
  background: #0d1727;
  color: #c7d1e0;
}

.result-head {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-weight: 650;
}

.indicator {
  flex: 0 0 .5rem;
  block-size: .5rem;
  margin-block-start: .54em;
  border-radius: 50%;
  background: #93a3b9;
}

.result[data-state="checking"] .indicator { background: #f7cf8f; }
.result[data-state="success"] .indicator { background: #83e3c5; }
.result[data-state="error"] .indicator { background: #ff9c9c; }

.elapsed {
  margin: 0 0 0 1.15rem;
  color: #adebd8;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

button {
  inline-size: 100%;
  min-block-size: 3rem;
  margin-block-start: 1.15rem;
  padding: .7rem 1rem;
  border: 0;
  border-radius: .7rem;
  color: #0d2725;
  background: #a1e6d0;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

button:hover { background: #b9f0df; }
button[aria-disabled="true"] { background: #8bc2b3; cursor: wait; }
button:focus-visible { outline: 2px solid #d9fff3; outline-offset: 3px; }

.note {
  margin: .9rem 0 0;
  color: #aebdd0;
  font-size: .875rem;
}
