:root {
  --bg: #0a0a0f;
  --bg-card: #14141f;
  --bg-hover: #1a1a2e;
  --text: #e0e0e8;
  --text-muted: #8888a0;
  --accent: #c9a84c;
  --accent-dim: #8b7530;
  --border: #2a2a3e;
  --danger: #c0392b;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Hero / Landing */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(ellipse at 50% 80%, #1a1520 0%, #0a0a0f 70%);
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: normal;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  line-height: 1.2;
}
.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 3rem;
  max-width: 600px;
  line-height: 1.6;
}
.hero .tagline {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 1rem;
  font-style: italic;
}
.hero .credit {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 3rem;
}
.enter-btn {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Georgia', serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  margin-top: 2rem;
}
.enter-btn:hover {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}
.verse {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4rem;
  font-style: italic;
  max-width: 500px;
  line-height: 1.6;
}
.verse .ref { font-style: normal; }
.stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.stat { text-align: center; }
.stat .number { font-size: 2rem; color: var(--accent); }
.stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Login */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3rem;
  max-width: 420px;
  width: 100%;
}
.login-card h2 {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: normal;
  letter-spacing: 0.05em;
}
.login-card p.hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}
.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.field input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Georgia', serif;
  font-size: 1rem;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
}
.field input.code-input {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  text-align: center;
}
.submit-btn {
  width: 100%;
  padding: 0.8rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Georgia', serif;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}
.submit-btn:hover {
  background: var(--accent);
  color: var(--bg);
}
.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.error-msg {
  background: rgba(192, 57, 43, 0.15);
  border: 1px solid var(--danger);
  color: #e74c3c;
  padding: 0.7rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  display: none;
}
.error-msg.visible { display: block; }
.back-link {
  margin-top: 2rem;
  font-size: 0.85rem;
}

/* Dashboard */
.dashboard {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.dash-header h1 {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: normal;
  letter-spacing: 0.05em;
}
.dash-header .user-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.dash-header .user-info a {
  color: var(--text-muted);
  margin-left: 1rem;
}
.quote-block {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 2px solid var(--accent-dim);
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
  font-size: 1.05rem;
}
.category-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: normal;
}
.artifact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.artifact-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.2rem;
  transition: all 0.2s;
  cursor: pointer;
}
.artifact-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-hover);
  text-decoration: none;
}
.artifact-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.artifact-name {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.artifact-meta {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .stats { gap: 1.5rem; }
  .login-card { padding: 2rem; }
  .artifact-grid { grid-template-columns: 1fr; }
}
