/* Serpee palette (DESIGN.md): green-cast paper, ink actions, green only for focus. */
:root, html[data-theme="light"] {
  --paper: oklch(0.985 0.003 155);
  --ink: oklch(0.2 0.012 160);
  --mute: oklch(0.47 0.012 160);
  --line: oklch(0.88 0.006 155);
  --fill: oklch(1 0 0);
  --primary: oklch(0.2 0.012 160);
  --primary-hover: oklch(0.32 0.012 160);
  --primary-ink: oklch(0.985 0.003 155);
  --accent: oklch(0.52 0.13 158);
  --select: oklch(0.52 0.13 158 / 0.16);
  --err: oklch(0.56 0.2 27);
  --sans: "Geist", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

html[data-theme="dark"] {
  --paper: oklch(0.165 0.006 160);
  --ink: oklch(0.965 0.004 155);
  --mute: oklch(0.72 0.01 160);
  --line: oklch(0.305 0.008 160);
  --fill: oklch(0.2 0.007 160);
  --primary: oklch(0.965 0.004 155);
  --primary-hover: oklch(0.87 0.006 155);
  --primary-ink: oklch(0.165 0.006 160);
  --accent: oklch(0.78 0.15 158);
  --select: oklch(0.78 0.15 158 / 0.26);
  --err: oklch(0.74 0.14 27);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.45 var(--sans);
}

::selection { background: var(--select); color: var(--ink); }

.gate-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 64px;
}

.gate-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.gate-mark::before {
  content: "";
  width: 26px;
  height: 26px;
  background: url("/static/logo-ink.svg?v=2") center / contain no-repeat;
}
html[data-theme="dark"] .gate-mark::before { background-image: url("/static/logo.svg?v=2"); }

.gate-card {
  width: 22rem;
  max-width: 100%;
  display: grid;
  gap: 12px;
  animation: gate-in 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.gate-card h1 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.gate-google,
.gate-form button {
  display: block;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  background: var(--primary);
  color: var(--primary-ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 110ms ease;
}
.gate-google:hover,
.gate-form button:hover { background: var(--primary-hover); }

.gate-form { display: grid; gap: 12px; }
.gate-form label { display: grid; gap: 6px; color: var(--mute); font-size: 12px; }
.gate-form input {
  border: 1px solid var(--line);
  background: var(--fill);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--ink);
  font: inherit;
}

.gate-form input:focus, .gate-google:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gate-or {
  margin: 4px 0;
  text-align: center;
  color: var(--mute);
  font-size: 12px;
  text-transform: lowercase;
}

.gate-swap, .gate-legal {
  margin: 4px 0 0;
  text-align: center;
  color: var(--mute);
  font-size: 13px;
}

.gate-swap a { color: var(--ink); }
.gate-err { margin: 0; text-align: center; color: var(--err); font-size: 13px; }

@keyframes gate-in {
  from { opacity: 0; filter: blur(6px); transform: translateY(8px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
