:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --text: #2b2b28;
  --text-muted: #6b6b64;
  --accent: #5c7a6b;
  --accent-dark: #42594d;
  --border: #e3ded4;
  font-size: 18px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

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

/* --- Gate --- */

#gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 100;
  padding: 24px;
}

#gate.hidden {
  display: none;
}

.gate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 36px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.gate-card h1 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--accent-dark);
}

.gate-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 24px;
}

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

.gate-card input:focus {
  outline: none;
  border-color: var(--accent);
}

.gate-card button {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.gate-card button:hover {
  background: var(--accent-dark);
}

.gate-error {
  min-height: 1.2em;
  font-size: 0.85rem;
  color: #a4453b;
  margin-top: 10px;
}

/* --- Site --- */

#site {
  display: none;
}

#site.visible {
  display: block;
}

header {
  padding: 48px 24px 24px;
  text-align: center;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 24px 80px;
  text-align: center;
}

main p {
  color: var(--text-muted);
}
