:root {
  color-scheme: light;
  --red: #b5252b;
  --red-dark: #8f1d24;
  --ink: #27262a;
  --muted: #6f6b70;
  --paper: #fffdfb;
  --line: #eadeda;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  height: 9px;
  background: var(--red);
  content: "";
}

body::after {
  position: fixed;
  top: 0;
  right: 0;
  width: 38vw;
  height: 100vh;
  background: repeating-radial-gradient(circle at 100% 0%, transparent 0 32px, rgba(181, 37, 43, .045) 33px 34px, transparent 35px 66px);
  pointer-events: none;
  content: "";
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 20px;
}

.hero-card {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  padding: clamp(42px, 9vw, 84px) clamp(24px, 8vw, 76px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 253, 251, .92);
  box-shadow: 0 22px 60px rgba(56, 28, 29, .08);
  text-align: center;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 26px;
  place-items: center;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 28px;
  transform: rotate(45deg);
}

.brand-mark span { transform: rotate(-45deg); }

.eyebrow {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 56px);
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1.1;
}

.subtitle {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2.6vw, 20px);
  line-height: 1.5;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 34px 0;
  color: var(--red);
}

.divider::before, .divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.divider span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.message {
  margin: 0;
  color: var(--red-dark);
  font-size: clamp(21px, 4vw, 30px);
  font-weight: 650;
}

.stage {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.health {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 38px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a58e8f;
}

.health[data-health="ok"] { color: #35643e; border-color: #c9dfcd; }
.health[data-health="ok"] .health-dot { background: #3e9551; }
.health[data-health="error"] { color: var(--red-dark); border-color: #e7c6c8; }
.health[data-health="error"] .health-dot { background: var(--red); }

@media (max-width: 520px) {
  .page-shell { padding: 20px 14px; }
  .hero-card { padding: 42px 22px 38px; }
  .eyebrow { letter-spacing: .13em; }
  .health { max-width: 100%; font-size: 12px; }
}
