/*
 * Enochian Praxis — content pages (the Learn hub, guides, and blog).
 * Standalone stylesheet for the static HTML pages, matched to the app's brand
 * (Cinzel + Cormorant Garamond, near-black + gold + the four elemental hues).
 * Stable filename (not hashed) so the static pages can link it directly.
 */

:root {
  --bg: #0b0b14;
  --bg-2: #12121f;
  --panel: rgba(22, 22, 38, 0.82);
  --panel-edge: rgba(212, 175, 55, 0.22);
  --ink: #e8e4d8;
  --ink-dim: #9b96a8;
  --gold: #d4af37;
  --gold-soft: #e8c96a;
  --air: #e0b83d;
  --water: #4d86d9;
  --earth: #6e9c56;
  --fire: #cf4433;
  --measure: 44rem;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

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

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1200px 800px at 18% -8%, rgba(77, 60, 130, 0.20), transparent 60%),
    radial-gradient(1000px 700px at 108% 108%, rgba(31, 63, 120, 0.18), transparent 60%),
    url('/assets/backdrop.png') center / cover no-repeat fixed,
    var(--bg);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* ---------- top nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 22px;
  background: rgba(8, 8, 16, 0.82); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-edge);
}
.site-header a { color: var(--gold-soft); text-decoration: none; }
.brand-word {
  font-family: 'Cinzel', Georgia, serif; font-weight: 700;
  font-size: 20px; letter-spacing: 2px; color: var(--gold);
}
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.site-nav a {
  font-family: 'Cinzel', Georgia, serif; font-size: 13px; letter-spacing: 1px;
  color: var(--ink-dim); padding: 4px 2px; border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--gold-soft); border-bottom-color: var(--panel-edge); }
.site-nav a.cta {
  color: #1a1408; background: linear-gradient(180deg, #e6c86a, #b8912a);
  border: 1px solid #f0d98a; border-radius: 6px; padding: 7px 14px; letter-spacing: 1.5px;
}
.site-nav a.cta:hover { filter: brightness(1.1); }

/* ---------- layout ---------- */
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 22px; }
main { display: block; }
.prose { max-width: var(--measure); margin: 0 auto; }

.breadcrumb {
  max-width: var(--measure); margin: 22px auto 0;
  font-family: 'Cinzel', Georgia, serif; font-size: 12px; letter-spacing: 1px;
  color: var(--ink-dim);
}
.breadcrumb a { color: var(--gold-soft); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { padding: 44px 22px 10px; text-align: center; }
.hero .eyebrow {
  font-family: 'Cinzel', Georgia, serif; font-size: 13px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold-soft);
}
.hero h1 {
  font-family: 'Cinzel', Georgia, serif; font-weight: 700;
  font-size: clamp(30px, 5vw, 50px); letter-spacing: 1px; line-height: 1.12;
  color: var(--gold); margin: 12px auto 14px; max-width: 20ch;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.28);
}
.hero .lede {
  max-width: 40rem; margin: 0 auto; font-size: 22px; color: var(--ink);
  font-style: italic;
}

/* ---------- typography ---------- */
.prose h2 {
  font-family: 'Cinzel', Georgia, serif; font-weight: 600;
  font-size: 27px; letter-spacing: 0.6px; color: var(--gold-soft);
  margin: 44px 0 12px; padding-top: 10px; border-top: 1px solid var(--panel-edge);
}
.prose h3 {
  font-family: 'Cinzel', Georgia, serif; font-weight: 600;
  font-size: 20px; letter-spacing: 0.5px; color: var(--ink); margin: 28px 0 8px;
}
.prose p { margin: 0 0 16px; }
.prose a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--gold); }
.prose ul, .prose ol { margin: 0 0 18px 24px; }
.prose li { margin-bottom: 7px; }
.prose strong { color: #f2ecd8; }
.lead { font-size: 23px; color: var(--ink); }

blockquote {
  margin: 20px 0; padding: 4px 18px; border-left: 2px solid var(--gold);
  font-style: italic; color: var(--ink); font-size: 21px;
}

.el { font-weight: 600; }
.el.air { color: var(--air); }
.el.water { color: var(--water); }
.el.earth { color: var(--earth); }
.el.fire { color: var(--fire); }

/* ---------- figures ---------- */
figure {
  max-width: 60rem; margin: 26px auto; text-align: center;
}
figure img {
  max-width: 100%; height: auto; border-radius: 12px;
  border: 1px solid var(--panel-edge);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}
figcaption {
  margin-top: 10px; font-size: 16px; font-style: italic; color: var(--ink-dim);
}

/* ---------- cards / links out ---------- */
.card-grid {
  max-width: 60rem; margin: 24px auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}
.link-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: 12px; padding: 18px 20px; transition: transform .15s ease, border-color .15s ease;
  backdrop-filter: blur(6px);
}
.link-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.link-card h3 { font-family: 'Cinzel', Georgia, serif; font-size: 18px; color: var(--gold-soft); margin: 0 0 6px; }
.link-card p { font-size: 16px; color: var(--ink-dim); margin: 0; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; margin: 22px auto; max-width: 60rem; }
table { border-collapse: collapse; width: 100%; font-size: 18px; }
caption { text-align: left; color: var(--ink-dim); font-style: italic; font-size: 16px; margin-bottom: 8px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
thead th {
  font-family: 'Cinzel', Georgia, serif; font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gold-soft); border-bottom-color: var(--panel-edge);
}
tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

/* ---------- callout / big CTA ---------- */
.callout {
  max-width: var(--measure); margin: 30px auto; padding: 22px 24px;
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 12px;
  text-align: center; backdrop-filter: blur(6px);
}
.callout h2 { border: none; margin-top: 0; }
.btn-play {
  display: inline-block; margin-top: 6px; text-decoration: none;
  font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: 15px; letter-spacing: 1.5px;
  color: #1a1408; background: linear-gradient(180deg, #e6c86a, #b8912a);
  border: 1px solid #f0d98a; border-radius: 7px; padding: 12px 26px;
}
.btn-play:hover { filter: brightness(1.1); box-shadow: 0 0 18px rgba(212, 175, 55, 0.45); }
/* Keep the gold button's text dark: beat the .prose a link color by specificity
   (a .prose a rule would otherwise tint the button text light gold on gold). */
a.btn-play, a.btn-play:hover, .prose a.btn-play, .prose a.btn-play:hover { color: #1a1408; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--measure); margin: 20px auto; }
.faq details {
  border-bottom: 1px solid var(--panel-edge); padding: 12px 0;
}
.faq summary {
  cursor: pointer; font-family: 'Cinzel', Georgia, serif; font-size: 18px;
  color: var(--gold-soft); letter-spacing: 0.4px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '☾ '; color: var(--gold); }
.faq details[open] summary::before { content: '☽ '; }
.faq p { margin: 10px 0 4px; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 56px; border-top: 1px solid var(--panel-edge);
  background: rgba(8, 8, 16, 0.6); padding: 30px 22px;
  color: var(--ink-dim); font-size: 15px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; }
.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h4 { font-family: 'Cinzel', Georgia, serif; font-size: 13px; letter-spacing: 1px; color: var(--gold-soft); margin-bottom: 8px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 5px; }
.fine { font-size: 13px; opacity: 0.8; max-width: 40rem; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 18px; }
  .hero { padding: 30px 16px 6px; }
  .hero .lede { font-size: 19px; }
  .wrap { padding: 0 16px; }
  .site-header { padding: 10px 14px; }
  .site-nav { gap: 3px 12px; }
  .prose h2 { font-size: 23px; }
}
