:root {
  color-scheme: light;
  --ink: #102a2b;
  --muted: #587071;
  --surface: #f9fcf7;
  --line: #c9dcd2;
  --accent: #067a66;
  --accent-dark: #045d4e;
  --highlight: #dff4b4;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, #dff4b4 0, transparent 28rem),
    linear-gradient(145deg, #eef7f1, #dbece7);
}

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

.card {
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid rgba(16, 42, 43, 0.12);
  border-radius: 28px;
  background: rgba(249, 252, 247, 0.94);
  box-shadow: 0 24px 70px rgba(28, 68, 61, 0.18);
}

.card.compact {
  width: min(660px, 100%);
}

.mark {
  width: 112px;
  height: auto;
  margin-bottom: 28px;
}

.eyebrow,
.error-code {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.error-code {
  color: #a33c2d;
  font-size: 48px;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.compact h1 {
  max-width: 18ch;
  font-size: clamp(34px, 6vw, 56px);
}

.intro {
  max-width: 58ch;
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0 0 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.status div {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
}

.status dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-weight: 700;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: #e5f5ef;
}

.button.primary {
  color: white;
  background: var(--accent);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-dark);
}

.note {
  margin: 28px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  color: var(--muted);
  background: #edf7f2;
  line-height: 1.5;
}

code {
  font-family: "Courier New", monospace;
  font-size: 0.92em;
}

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

  nav,
  .button {
    width: 100%;
  }
}
