:root {
  --bg: #111110;
  --text: #f3f1ea;
  --muted: #8c8880;
  --faint: #6e6a64;
  --focus: #f3f1ea;
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 8px 12px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.lang {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  display: flex;
  gap: 14px;
  z-index: 1;
}

.lang button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font: 500 12px/1 var(--font-ui);
  letter-spacing: 0.08em;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  color: var(--text);
}

.lang button:focus-visible,
.links a:focus-visible,
.skip:focus-visible {
  outline: 1px solid var(--focus);
  outline-offset: 4px;
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 48px;
  text-align: center;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.phrase {
  margin: 22px 0 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.phrase:empty {
  display: none;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 40px;
}

.links a {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.links a:hover {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
