/* Illuminatiforum.org — Cultic Occult Design System */
:root {
  --bg-deep: #0a0806;
  --bg-dark: #120e0b;
  --bg-card: #1a1512;
  --gold: #d4af37;
  --gold-light: #f4e4a6;
  --gold-dark: #b8860b;
  --gold-muted: #8b6914;
  --text-primary: #e8e0d4;
  --text-muted: #9a8f7e;
  --accent-red: #8b2500;
  --border-gold: rgba(212, 175, 55, 0.4);
  --glow-gold: rgba(212, 175, 55, 0.15);
  --font-display: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Occult background layers */
.occult-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pyramid-layer {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(165deg, transparent 40%, var(--glow-gold) 70%, transparent 100%),
    radial-gradient(ellipse 80% 50% at 50% 20%, var(--glow-gold) 0%, transparent 50%);
  opacity: 0.4;
}

.eye-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, var(--glow-gold) 0%, transparent 70%);
  opacity: 0.3;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Header */
.main-header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border-gold);
}

.logo-section {
  margin-bottom: 0.5rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--gold);
}

.logo-icon {
  width: 48px;
  height: 48px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
}

.logo-org {
  color: var(--gold-light);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--gold);
}

/* Main content */
main {
  position: relative;
  z-index: 5;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 4rem;
}

.hero-symbol {
  margin-bottom: 1.5rem;
}

.hero-symbol img {
  width: 140px;
  height: auto;
  opacity: 0.9;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-intro {
  font-size: 1.1rem;
  color: var(--text-primary);
  max-width: 640px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: background 0.2s, color 0.2s;
}

.social-btn:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

/* Section titles */
h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 1rem;
  text-align: center;
}

h2 .symbol {
  margin-right: 0.25em;
  opacity: 0.8;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Latest message */
.latest-message {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-gold);
}

.message-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  padding: 2rem;
  text-align: center;
}

.message-card .card-divider {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 1rem;
  opacity: 0.7;
}

.message-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.message-card h3 a {
  color: var(--gold-light);
  text-decoration: none;
}

.message-card h3 a:hover {
  text-decoration: underline;
}

.message-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.btn-view {
  display: inline-block;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.4rem 1.25rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  transition: background 0.2s, color 0.2s;
}

.btn-view:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

/* Join section */
.join-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-gold);
  text-align: center;
}

.join-symbol {
  margin-bottom: 1rem;
}

.join-symbol img {
  width: 60px;
  height: auto;
  opacity: 0.85;
}

.join-section h2 {
  margin-bottom: 0.5rem;
}

.join-section > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.join-form {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.join-form input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
}

.join-form input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.join-form input[name="human_check"] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.btn-submit {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  padding: 0.9rem;
  background: var(--gold);
  color: var(--bg-deep);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-submit:hover {
  background: var(--gold-light);
}

.btn-submit:active {
  transform: scale(0.98);
}

/* Archives preview */
.archives-preview {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-gold);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.archive-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.archive-card:hover {
  border-color: var(--gold-muted);
  box-shadow: 0 0 20px var(--glow-gold);
}

.archive-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.archive-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.archive-card .btn-view {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
}

.btn-archives {
  display: block;
  text-align: center;
  max-width: 220px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  color: var(--gold);
  border: 2px solid var(--gold);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  transition: background 0.2s, color 0.2s;
}

.btn-archives:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

/* People / Testimonials */
.people-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-gold);
}

.people-section .section-subtitle {
  margin-bottom: 2.5rem;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.testimonial {
  background: var(--bg-card);
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  position: relative;
}

.quote-symbol {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  color: var(--gold);
  font-size: 0.8rem;
  opacity: 0.7;
}

.testimonial p {
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-cta {
  display: block;
  text-align: center;
  max-width: 280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  background: var(--gold);
  color: var(--bg-deep);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  transition: background 0.2s, color 0.2s;
}

.btn-cta:hover {
  background: var(--gold-light);
  color: var(--bg-deep);
}

/* Testament CTA */
.testament-cta {
  padding: 3rem 0;
  border-top: 1px solid var(--border-gold);
  text-align: center;
}

.testament-symbol {
  margin-bottom: 1rem;
}

.testament-symbol img {
  width: 70px;
  height: auto;
  opacity: 0.9;
}

.testament-cta h2 {
  margin-bottom: 0.25rem;
}

.testament-cta h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.testament-cta p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  font-size: 0.98rem;
}

/* Footer */
.main-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border-gold);
  background: var(--bg-dark);
}

.footer-symbol img {
  width: 40px;
  height: 40px;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.footer-nav a:hover {
  color: var(--gold);
}

/* Page-specific: inner pages */
.page-header {
  text-align: center;
  padding: 2rem 1.5rem 1rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem;
}

.content-page p {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.content-page h2 {
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-page h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-light);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content-page a {
  color: var(--gold);
  text-decoration: none;
}

.content-page a:hover {
  text-decoration: underline;
}

.content-page blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

/* Join page form */
.join-page .join-form {
  max-width: 480px;
}

/* Contact page */
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  width: 100%;
  margin-bottom: 1rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 {
    letter-spacing: 0.2em;
  }
  .main-nav {
    gap: 1rem;
  }
  .logo-text {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
  }
}
