/* base.css — shared design tokens + password gate styles for deck.html and index.html */

:root {
  --bg: #faf6f0;
  --bg-dark: #1c1917;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --paper: #ffffff;
  --line: #e2e5ea;
  --accent: #00338d;
  --accent-ink: #ffffff;
  --live-green: #2e7d4f;
  --live-amber: #b8860b;
  --live-red: #b3261e;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(28, 25, 23, 0.08);
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-head: "Space Grotesk", var(--font-body);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  margin: 0;
}

button {
  font-family: inherit;
}

/* ---------- Password gate ---------- */

.gate-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  transition: background 0.2s ease;
}

.gate-overlay.gate-stage-welcome {
  background: #0e2a52;
}

/* ---------- Welcome banner (shown before the password stage) ---------- */

.gate-welcome {
  width: 100%;
  max-width: 480px;
  text-align: left;
}

.gate-welcome-kicker {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #9db4d8;
  margin-bottom: 14px;
}

.gate-welcome-title {
  font-size: 34px;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
}

.gate-welcome-details {
  font-size: 15px;
  line-height: 1.5;
  color: #c3d1e6;
  margin: 0 0 32px;
}

.gate-welcome button {
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}

.gate-welcome button:hover {
  filter: brightness(1.1);
}

.gate-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  width: 100%;
  max-width: 340px;
  text-align: center;
}

.gate-card h1 {
  font-size: 20px;
  margin-bottom: 6px;
}

.gate-card p {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 18px;
}

.gate-card input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  margin-bottom: 12px;
}

.gate-card input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.gate-card button {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}

.gate-card button:hover {
  filter: brightness(0.95);
}

.gate-error {
  color: var(--live-red);
  font-size: 13px;
  min-height: 18px;
  margin-top: 8px;
}

[hidden] {
  display: none !important;
}
