:root {
  --bg: #1c1a17;
  --surface: #2b2723;
  --ink: #f2ece4;
  --accent: #ff8a3d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
}

.wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.projects-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.15s ease;
}

.projects-link:hover {
  opacity: 0.75;
}

.links {
  display: flex;
  gap: 16px;
}

.link-btn {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.link-btn img {
  filter: brightness(0) invert(1);
}

.link-btn:hover,
.link-btn:focus-visible {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.link-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 420px;
}

.buttons a {
  display: block;
  line-height: 0;
}

.buttons img {
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
  transition: transform 0.15s ease;
}

.buttons img:hover {
  transform: translateY(-2px);
}

.error-code {
  font-size: 96px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}

.error-text {
  font-size: 14px;
  font-weight: 500;
  color: #a89e92;
}