:root {
  --bg: #fbfbfd;
  --card: #ffffff;
  --card-border: rgba(16, 16, 32, 0.09);
  --text: #16161d;
  --muted: #5c5c6b;
  --faint: #8a8a99;
  --rule: rgba(16, 16, 32, 0.08);
  --chip-bg: rgba(16, 16, 32, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b11;
    --card: #13131b;
    --card-border: rgba(255, 255, 255, 0.09);
    --text: #f3f3f7;
    --muted: #a0a0b0;
    --faint: #74748a;
    --rule: rgba(255, 255, 255, 0.09);
    --chip-bg: rgba(255, 255, 255, 0.06);
  }
}

:root[data-theme="dark"] {
  --bg: #0b0b11;
  --card: #13131b;
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #f3f3f7;
  --muted: #a0a0b0;
  --faint: #74748a;
  --rule: rgba(255, 255, 255, 0.09);
  --chip-bg: rgba(255, 255, 255, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background-color: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 33rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
}

.card-body { padding: 34px clamp(22px, 5vw, 40px) 30px; }

.logo-link {
  display: block;
  width: fit-content;
  margin-bottom: 26px;
}

.logo {
  display: block;
  width: 100%;
  max-width: 198px;
  height: auto;
}

h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4.4vw, 1.75rem);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.016em;
}

.domain {
  margin: 12px 0 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;
  font-size: 0.9375rem;
  color: var(--muted);
  background: var(--chip-bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 7px 11px;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

p.lede {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

p.lede a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}

p.lede a:hover, p.lede a:focus-visible { border-bottom-color: currentColor; }

.footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}

.footer a:hover, .footer a:focus-visible { color: var(--text); border-bottom-color: currentColor; }

@media (prefers-reduced-motion: no-preference) {
  .card { animation: rise 0.4s cubic-bezier(0.22, 0.8, 0.3, 1) both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: none; }
  }
}
