@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f2f0e8;
  --ink: #253c32;
  --secondary: #526257;
  --accent: #b8422b;
  --rule: #cecec1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-width: 280px;
  min-height: 100svh;
  margin: 0;
  padding: clamp(24px, 4vw, 56px);
}

::selection { color: var(--paper); background: var(--accent); }

.cover {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 340px;
  padding: 64px 0 88px;
}

.identity { text-align: center; }

.symbol {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 40px;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(2.35rem, 9.5vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.status {
  margin: 28px 0 0;
  color: var(--secondary);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.6;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--secondary);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.footer p { margin: 0; }

.contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color 160ms ease-out, text-decoration-color 160ms ease-out;
}

.contact svg { flex: none; }

.contact:focus-visible, .return:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.return {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 20px;
  color: var(--ink);
  text-underline-offset: 5px;
}

.not-found h1 {
  font-size: clamp(2.35rem, 9.5vw, 5rem);
  letter-spacing: -0.03em;
}

@media (hover: hover) {
  .contact:hover { color: var(--accent); text-decoration-color: currentColor; }
}

@media (max-width: 480px) {
  .cover { padding: 56px 0 72px; }
  .symbol { width: 48px; height: 48px; margin-bottom: 32px; }
  .status { margin-top: 22px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 4px; padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact { transition: none; }
}
