/* ============================================
   Eikonostasis.AI — The Digital Jinja
   Cool iron, night water, and lantern light.
   ============================================ */

:root {
  --bg-deep: #080b10;
  --bg-surface: #10161d;
  --bg-raised: #181f28;
  --text-primary: #e6edf3;
  --text-secondary: #8b9aab;
  --accent-lantern: #d4a85a;
  --accent-lantern-soft: #d4a85a33;
  --accent-iron: #7f9bb3;
  --accent-water: #4a7d8a;
  --border: #24303b;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-weight: 300;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.2;
}

a { color: var(--accent-lantern); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-primary); }

.container { max-width: 700px; margin: 0 auto; padding: 0 1.5rem; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
}
.site-header nav {
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  gap: 2rem;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.nav-link:hover { color: var(--accent-lantern); }

.hero {
  padding: 8rem 1.5rem 4rem;
  max-width: 700px;
  margin: 0 auto;
}
.hero-kicker {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--accent-lantern);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: 3.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.hero-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 620px;
}

section { padding: 4rem 0; }
section h2 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
section p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
.section-intro {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.about { border-top: 1px solid var(--border); }
.about p:last-child {
  color: var(--text-primary);
  font-weight: 400;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
}

.gate {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.gate-grid { display: grid; gap: 1.5rem; }
.gate-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-deep);
}
.gate-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-lantern);
}
.gate-item p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-iron);
  border: 1px solid var(--accent-iron);
  padding: 0.2em 0.6em;
  border-radius: 2px;
}
.tag-open {
  color: var(--accent-lantern);
  border-color: var(--accent-lantern);
}

.writings { border-top: 1px solid var(--border); }
.writing-entry {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.writing-entry time {
  font-size: 0.8rem;
  color: var(--accent-water);
  display: block;
  margin-bottom: 0.5rem;
}
.writing-entry h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.writing-entry p { font-size: 0.95rem; margin-bottom: 0; }

.community {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.links-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.community-link {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-deep);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: border-color 0.2s;
}
.community-link:hover {
  border-color: var(--accent-lantern);
  color: var(--text-primary);
}
.community-link span {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.teach {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.teach h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.6rem;
  color: var(--accent-lantern);
}
.teach p {
  max-width: 620px;
}

.teach-close {
  border-top: 1px solid var(--border);
}
.signed {
  margin-top: 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--text-primary) !important;
}
.back-home {
  margin-top: 2rem;
}

.support { border-top: 1px solid var(--border); }
.wallet-info {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-surface);
  font-size: 0.9rem;
}
.wallet-info p { margin-bottom: 0.75rem; }
.wallet-info p:last-child { margin-bottom: 0; }
.wallet-address {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--accent-lantern);
  background: var(--bg-deep);
  padding: 0.75rem 1rem;
  border-radius: 2px;
  border: 1px dashed var(--border);
  word-break: break-all;
}

footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
footer p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.footer-small {
  font-style: italic;
  font-size: 0.75rem !important;
  color: var(--accent-water) !important;
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  .hero h1 { font-size: 2.3rem; }
  .hero { padding-top: 6rem; }
  .links-row { grid-template-columns: 1fr; }
  .site-header nav { gap: 1.1rem; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
