:root {
  color-scheme: dark;
  --canvas: #080909;
  --surface: #101212;
  --ink: #f7f9fa;
  --muted: #adb5ba;
  --quiet: #747d82;
  --line: rgba(247, 249, 250, 0.2);
  --action: #e9f5ff;
  --action-ink: #07131c;
  --focus: #9fdaff;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.top-bar { height: 2px; background: var(--ink); }

.site-header {
  width: min(100% - 48px, 440px);
  margin: 0 auto;
  padding: 28px 0 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wordmark img {
  display: block;
  width: 132px;
  height: auto;
}

.fallback {
  width: min(100% - 48px, 440px);
  min-height: calc(100vh - 116px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 72px 0 56px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.35rem, 8.5vw, 3.15rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.98;
  outline: none;
}

.summary {
  max-width: 30rem;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 17px;
  letter-spacing: -0.015em;
}

.actions { display: grid; gap: 10px; margin-top: 34px; }

.button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button-primary { border-color: var(--action); background: var(--action); color: var(--action-ink); }
.button-primary:hover { background: #fff; border-color: #fff; }
.button-secondary:hover { border-color: rgba(247, 249, 250, 0.55); background: var(--surface); }
.button.is-disabled { cursor: not-allowed; opacity: 0.5; pointer-events: none; }

.button:focus-visible, .wordmark:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.guidance {
  margin-top: 31px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.guidance p { margin: 0; }
.guidance p + p { margin-top: 11px; color: var(--quiet); }
.guidance a { color: var(--ink); text-underline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noscript-notice {
  width: min(100% - 48px, 440px);
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 640px) {
  .site-header, .fallback { width: min(100% - 80px, 440px); }
  .site-header { padding-top: 38px; }
  .fallback { min-height: calc(100vh - 133px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
