:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2937;
  background: #f3f4f6;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem);
}

.panel {
  width: 100%;
  max-width: 44rem;
  padding: clamp(1.25rem, 5vw, 3rem);
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  background: #ffffff;
  overflow-wrap: anywhere;
}

.label {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  background: #e5e7eb;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

p {
  margin: 0 0 1rem;
}

.intro {
  font-size: 1.125rem;
}

.error-code {
  margin-bottom: 0.5rem;
  color: #4b5563;
  font-weight: 600;
}

.action {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid currentColor;
  border-radius: 0.375rem;
  color: #1f2937;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.action:hover {
  background: #f3f4f6;
}

.action:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 4px;
}
