/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #fafafa;
  --color-text: #222;
  --color-accent: #2c5f2d;
  --color-accent-light: #97bc62;
  --color-surface: #fff;
  --color-error: #c0392b;
  --radius: 8px;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* ── Password Gate ── */
.gate-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.gate-container {
  text-align: center;
  background: var(--color-surface);
  padding: 3rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  max-width: 400px;
  width: 90%;
}

.gate-container h1 {
  margin-bottom: 0.5rem;
}

.gate-container p {
  margin-bottom: 1.5rem;
  color: #666;
}

#gate-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#gate-password {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}

#gate-password:focus {
  border-color: var(--color-accent);
}

#gate-form button {
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}

#gate-form button:hover {
  background: #1e4620;
}

.error {
  color: var(--color-error);
  font-size: 0.875rem;
}

/* ── Welcome Page ── */
.welcome-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.welcome-page h1 {
  font-size: 2.5rem;
}
