:root {
  color-scheme: light dark;
  --background: #f4f4ef;
  --foreground: #1b302e;
  --muted: #53625e;
  --accent: #286454;
  font-family: system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--foreground);
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #121c1c;
    --foreground: #edf0e8;
    --muted: #b0bfba;
    --accent: #a1cfb8;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 64px 24px;
}

@supports (min-height: 100svh) {
  body {
    min-height: 100svh;
  }
}

main {
  width: 100%;
  max-width: 800px;
  text-align: center;
}

main:focus {
  outline: none;
}

.wordmark {
  margin: 0;
  font-size: clamp(48px, 13.5vw, 120px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.wordmark-dot {
  color: var(--accent);
}

.description {
  margin: 28px 0 0;
  font-size: clamp(17px, 2.5vw, 21px);
  line-height: 1.6;
}

.status {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
  text-underline-offset: 0.3em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 14px;
  background: var(--background);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.error-page .status {
  margin: 0 0 20px;
}

.error-page h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.home-link {
  display: inline-block;
  margin-top: 24px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
}
