:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #16202a;
  --muted: #667085;
  --line: #d8dee6;
  --online: #0f7a45;
  --online-bg: #e9f7ef;
  --checking: #936300;
  --checking-bg: #fff5d6;
  --offline: #b42318;
  --offline-bg: #fee4e2;
  --accent: #1b5fd6;
  --accent-dark: #164aa8;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.intro {
  margin-bottom: 28px;
}

.brand {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.summary {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 20px;
}

.status-card {
  min-height: 152px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(22, 32, 42, 0.06);
}

.status-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.status-card h2 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.status-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.status-pill {
  flex: 0 0 auto;
  min-width: 84px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--checking-bg);
  color: var(--checking);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: lowercase;
}

.is-online .status-pill {
  background: var(--online-bg);
  color: var(--online);
}

.is-checking .status-pill {
  background: var(--checking-bg);
  color: var(--checking);
}

.is-offline .status-pill {
  background: var(--offline-bg);
  color: var(--offline);
}

.controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 28px;
  padding: 18px 0;
}

.check-button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.check-button:hover {
  background: var(--accent-dark);
}

.check-button:focus-visible {
  outline: 3px solid rgba(27, 95, 214, 0.25);
  outline-offset: 3px;
}

.check-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.timestamp {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.4;
}

.addresses {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.addresses dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 0;
}

.addresses div {
  min-width: 0;
}

.addresses dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.addresses dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 820px) {
  .page {
    width: min(100% - 24px, 640px);
    padding: 32px 0;
  }

  .status-grid,
  .addresses dl {
    grid-template-columns: 1fr;
  }

  .controls {
    align-items: stretch;
    flex-direction: column;
  }

  .check-button {
    width: 100%;
  }
}
