/* ==========================================================================
   The Symbolic Layer — site styles
   Extracted from the original landing mockup (see archive/landing-mockup.html)
   and extended with article styles for inner pages.
   ========================================================================== */

:root {
  --deep-bg: #0A0E1A;
  --dark-bg: #151B30;
  --indigo: #1E2747;
  --indigo-light: #2A3459;
  --gold: #C49A3C;
  --gold-light: #D4AF5C;
  --gold-dark: #8B7025;
  --gold-glow: rgba(196, 154, 60, 0.15);
  --gold-glow-strong: rgba(196, 154, 60, 0.3);
  --text-primary: #A0A8B8;
  --text-secondary: #6B7280;
  --text-bright: #D1D5DB;
  --text-white: #E8EAED;
  --link-blue: #3B6B8A;
  --earth: #5C4A3A;
  --violet: #4A3A5C;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--deep-bg);
  color: var(--text-primary);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
}

a { color: var(--gold); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--gold-light); }

/* ---------- Navigation ---------- */
nav.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196, 154, 60, 0.08);
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 28px;
}

.nav-logo .layer { height: 2px; border-radius: 1px; transition: all 0.4s ease; }
.nav-logo .layer-1 { width: 60%; background: var(--text-secondary); margin: 0 auto; }
.nav-logo .layer-2 { width: 80%; background: var(--gold); margin: 0 auto; box-shadow: 0 0 8px var(--gold-glow); }
.nav-logo .layer-3 { width: 100%; background: var(--indigo-light); }

.nav-mark:hover .layer-2 { box-shadow: 0 0 14px var(--gold-glow-strong); }

.nav-title {
  font-family: 'EB Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.nav-title span { color: var(--gold); }

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  font-family: 'Source Serif 4', serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse at center, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}

.hero-tagline {
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

.hero-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}

.hero-title em { font-style: italic; color: var(--gold); }

.hero-subtitle {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-style: italic;
  opacity: 0;
  animation: fadeUp 1s ease 0.7s forwards;
}

.hero-description {
  max-width: 640px;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

.hero-cta {
  display: inline-block;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  padding: 0.85rem 2.5rem;
  text-decoration: none;
  transition: all 0.4s ease;
  opacity: 0;
  animation: fadeUp 1s ease 1.1s forwards;
}

.hero-cta:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  box-shadow: 0 0 30px var(--gold-glow);
}

/* ---------- Three-Layer Diagram ---------- */
.diagram-section {
  padding: 6rem 2rem;
  display: flex;
  justify-content: center;
  position: relative;
}

.diagram-container { width: 100%; max-width: 800px; }

.diagram-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2rem;
}

.three-layers { display: flex; flex-direction: column; gap: 2px; padding: 3rem 0; }

.layer-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  border-radius: 2px;
  transition: all 0.5s ease;
  text-decoration: none;
  color: inherit;
}

.layer-row:hover { transform: translateX(8px); }

.layer-indicator { width: 40px; display: flex; justify-content: center; flex-shrink: 0; }

.layer-line { height: 2px; border-radius: 1px; }
.layer-row.conscious .layer-line { width: 16px; background: var(--text-secondary); }
.layer-row.symbolic .layer-line { width: 28px; background: var(--gold); box-shadow: 0 0 12px var(--gold-glow-strong); }
.layer-row.unconscious .layer-line { width: 40px; background: var(--indigo-light); }

.layer-content { flex: 1; }

.layer-name {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  color: var(--text-bright);
  margin-bottom: 0.25rem;
}

.layer-row.symbolic .layer-name { color: var(--gold); }

.layer-tech {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.layer-desc { font-size: 0.9rem; color: var(--text-secondary); margin-top: 0.5rem; line-height: 1.6; }

.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
  margin: 4rem auto;
}

/* ---------- Entry Paths Grid ---------- */
.paths-section { padding: 4rem 2rem 6rem; max-width: 1100px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--text-bright);
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.path-card {
  background: var(--dark-bg);
  border: 1px solid rgba(30, 39, 71, 0.8);
  padding: 2rem 1.75rem;
  transition: all 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.path-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.path-card:hover {
  border-color: var(--indigo-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.path-card:hover::before { opacity: 1; }

.path-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  display: block;
}

.path-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.path-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

.path-arrow {
  display: block;
  margin-top: 1.25rem;
  color: var(--gold-dark);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.path-card:hover .path-arrow { color: var(--gold); }

/* ---------- Essays list ---------- */
.essays-section { padding: 4rem 2rem 6rem; max-width: 800px; margin: 0 auto; }

.essay-item {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(30, 39, 71, 0.5);
  transition: all 0.3s ease;
}

.essay-item:first-child { border-top: 1px solid rgba(30, 39, 71, 0.5); }

.essay-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.essay-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.35rem;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  transition: color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.essay-title:hover { color: var(--gold); }

.essay-excerpt { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; }

/* ---------- Quote ---------- */
.quote-section { padding: 6rem 2rem; text-align: center; position: relative; }

.quote-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse at center, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.3;
}

blockquote {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-style: italic;
  color: var(--text-bright);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
}

blockquote .gold { color: var(--gold); font-style: normal; }

/* ---------- Closing / signup ---------- */
.closing-section { padding: 4rem 2rem 8rem; max-width: 600px; margin: 0 auto; text-align: center; }

.closing-text { font-size: 1rem; color: var(--text-primary); line-height: 1.8; margin-bottom: 2.5rem; }

.email-form { display: flex; gap: 0; max-width: 440px; margin: 0 auto; }

.email-input {
  flex: 1;
  background: var(--dark-bg);
  border: 1px solid var(--indigo);
  border-right: none;
  padding: 0.85rem 1.25rem;
  font-family: 'Source Serif 4', serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s ease;
}

.email-input::placeholder { color: var(--text-secondary); }
.email-input:focus { border-color: var(--gold-dark); }

.email-submit {
  background: transparent;
  border: 1px solid var(--indigo);
  padding: 0.85rem 1.5rem;
  font-family: 'EB Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
}

.email-submit:hover { background: var(--gold-glow); border-color: var(--gold-dark); }

/* ---------- Footer ---------- */
footer.site-footer { padding: 2rem; text-align: center; border-top: 1px solid rgba(30, 39, 71, 0.3); }

.footer-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  width: 20px;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.footer-mark .layer { height: 1.5px; border-radius: 1px; }
.footer-mark .layer-1 { width: 60%; background: var(--text-secondary); margin: 0 auto; }
.footer-mark .layer-2 { width: 80%; background: var(--gold-dark); margin: 0 auto; }
.footer-mark .layer-3 { width: 100%; background: var(--indigo-light); }

.footer-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

/* ---------- Article pages (essays + concepts + library + about) ---------- */
.article-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
  position: relative;
}

.article-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

.article-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.article-subtitle {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.article-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(30, 39, 71, 0.5);
}

.article-meta .status-coming-soon { color: var(--gold-dark); }

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-body h2 {
  font-family: 'EB Garamond', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text-bright);
  margin: 3rem 0 1rem;
  line-height: 1.3;
}

.article-body h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-bright);
  margin: 2.25rem 0 0.75rem;
  line-height: 1.3;
}

.article-body p { margin-bottom: 1.5rem; }
.article-body ul, .article-body ol { margin: 0 0 1.5rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }

.article-body strong { color: var(--text-bright); font-weight: 500; }
.article-body em { color: var(--text-bright); }

.article-body a { color: var(--gold); border-bottom: 1px solid var(--gold-dark); }
.article-body a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }

.article-body blockquote {
  font-size: 1.05rem;
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold-dark);
  color: var(--text-bright);
  font-style: italic;
  text-align: left;
}

.article-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  color: var(--gold);
  background: var(--dark-bg);
  padding: 0.1em 0.4em;
  border-radius: 2px;
}

.article-body pre {
  background: var(--dark-bg);
  border: 1px solid var(--indigo);
  border-radius: 2px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-body pre code { background: transparent; padding: 0; color: var(--text-primary); }

.article-body hr {
  border: none;
  border-top: 1px solid var(--indigo);
  margin: 3rem auto;
  width: 60px;
}

/* ---------- List pages (section indexes) ---------- */
.list-shell {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
}

.list-header { margin-bottom: 4rem; }

.list-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.list-description {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.list-intro { margin-bottom: 3rem; color: var(--text-primary); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  nav.site-nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .hero { padding: 5rem 1.5rem 3rem; }
  .paths-grid { grid-template-columns: 1fr; }
  .layer-row { padding: 1.25rem 1rem; }
  .email-form { flex-direction: column; }
  .email-input { border-right: 1px solid var(--indigo); border-bottom: none; }
  .article-shell, .list-shell { padding: 6rem 1.25rem 4rem; }
}
