:root {
  --background: #f7f7f4;
  --text: #141414;
  --muted: #5f5f5f;
  --border: #d8d8d2;
  --surface: #ffffff;
  --accent: #1f4f46;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background: var(--background);
}

.not-found {
  width: min(100%, 560px);
  padding: clamp(32px, 7vw, 64px);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(20, 20, 20, .08);
}

.status {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.75rem);
  line-height: 1;
  letter-spacing: 0;
}

.message {
  max-width: 34rem;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

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

a:hover {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

a:focus-visible {
  outline: 3px solid rgba(31, 79, 70, .28);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  body {
    padding: 16px;
  }

  .not-found {
    border-radius: 14px;
  }

  nav {
    display: grid;
  }
}
