:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #15181d;
  --muted: #5b6472;
  --accent: #1a56c4;
  --accent-hover: #15459d;
  --border: #dde1e8;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
}

.card {
  width: 100%;
  max-width: 34rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.75rem 2rem;
  text-align: center;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 0 2rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  background: var(--surface);
}

.btn-primary {
  color: #ffffff;
  background: var(--accent);
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--accent-hover);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-hover);
}

.btn:focus-visible,
.langs a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.langs {
  padding: 1.5rem 1.25rem 2.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.langs a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
}

.langs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.langs [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 30rem) {
  .card {
    padding: 2rem 1.25rem;
  }

  h1 {
    font-size: 1.55rem;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    display: block;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1116;
    --surface: #171a21;
    --text: #eef1f5;
    --muted: #a0a9b8;
    --accent: #6f9bff;
    --accent-hover: #8cb0ff;
    --border: #2a2f3a;
  }

  .btn-primary {
    color: #0f1116;
  }
}
