@font-face {
  font-family: Inter;
  src: url('/fonts/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --canvas: #f5f6f1;
  --card: #fff;
  --border: #e6e9e2;
  --text: #17201d;
  --action: #19a978;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--canvas);
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #101714;
    --card: #1b2421;
    --border: #29332f;
    --text: #e7ece8;
    --action: #2fd49b;
  }
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 32px max(32px, calc((100% - 1120px) / 2));
  display: flex;
  flex-direction: column;
}
p, h1 { margin: 0; }
.brand { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.3px; }
main { flex: 1; display: flex; align-items: center; justify-content: center; padding-block: 32px; }
.card {
  width: 680px;
  max-width: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  background: var(--card);
  border-radius: 22px;
  /* An inset border preserves Figma's layout dimensions. */
  box-shadow: inset 0 0 0 1px var(--border);
}
.label, footer { font-size: 14px; line-height: 20px; font-weight: 600; }
h1 { font-size: 64px; line-height: 68px; font-weight: 800; letter-spacing: -2px; }
.error-code { font-size: 112px; line-height: 120px; }
.description { font-size: 16px; line-height: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 280px;
  max-width: 100%;
  min-height: 52px;
  padding: 16px;
  border-radius: 14px;
  background: var(--action);
  color: #17201d;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(0.95); }
.button:active { filter: brightness(0.9); }
.button:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }
footer { text-align: center; }

@media (max-width: 600px) {
  body { padding: 44px 16px 34px; }
  .card { padding: 24px; }
  h1 { font-size: 40px; line-height: 44px; letter-spacing: -1px; }
  .error-code { font-size: 80px; line-height: 88px; }
  .button { width: 100%; }
}
