/* Shared styling for /guides/* article pages.
   Mirrors the dark-mode aesthetic of the landing page but tuned for long-form
   reading: wider line-height, narrower max-width, no flashy gradients. */

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

:root {
  --bg:           #07091c;
  --surface:      rgba(255,255,255,.055);
  --surface-2:    rgba(255,255,255,.03);
  --border:       rgba(255,255,255,.09);
  --text:         #e8eaf8;
  --text-muted:   rgba(232,234,248,.66);
  --text-xmuted:  rgba(232,234,248,.4);
  --heading:      #ffffff;
  --primary:      #818cf8;
  --primary-lite: #a5b4fc;
  --gold:         #fbbf24;
  --gold-lite:    #fde68a;
  --ff-display:   'Playfair Display', Georgia, serif;
  --ff-body:      'Figtree', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  min-height: 100vh;
}

a { color: var(--primary-lite); }
a:hover { color: var(--primary); }

/* Site-wide nav */
.site-nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(7,9,28,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
}
.site-nav__inner {
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.site-nav__brand {
  font-family: var(--ff-display);
  font-weight: 700; font-size: 22px;
  color: var(--heading); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.site-nav__cta {
  background: var(--gold);
  color: #0e1d5c; font-weight: 700;
  padding: 8px 16px; border-radius: 999px;
  text-decoration: none; font-size: 14px;
  transition: transform .15s, background .15s;
}
.site-nav__cta:hover { background: var(--gold-lite); transform: translateY(-1px); color: #0e1d5c; }

/* Article container */
article {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

article header.article-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
article header.article-header .eyebrow {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 12px;
}
article h1 {
  font-family: var(--ff-display);
  font-size: 38px; line-height: 1.18;
  color: var(--heading);
  margin-bottom: 14px;
}
article header.article-header .lede {
  font-size: 18px; color: var(--text-muted);
  line-height: 1.6;
}
article header.article-header .meta {
  font-size: 13px; color: var(--text-xmuted);
  margin-top: 16px;
}

article h2 {
  font-family: var(--ff-display);
  font-size: 26px; line-height: 1.3;
  color: var(--heading);
  margin: 40px 0 14px;
}
article h3 {
  font-size: 18px; font-weight: 700;
  color: var(--heading);
  margin: 28px 0 8px;
}

article p { margin-bottom: 18px; color: var(--text); }
article p strong { color: var(--heading); }
article ul, article ol {
  margin: 0 0 22px 22px;
  color: var(--text);
}
article li { margin-bottom: 8px; }

article blockquote {
  border-left: 3px solid var(--primary);
  padding: 6px 0 6px 18px;
  margin: 24px 0;
  color: var(--text-muted);
  font-style: italic;
}

article code, article kbd {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 14.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gold-lite);
}

article hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0;
}
.callout strong { color: var(--primary-lite); }

/* End-of-article CTA */
.cta-end {
  margin-top: 56px;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(129,140,248,.12), rgba(165,180,252,.05));
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
}
.cta-end h3 {
  font-family: var(--ff-display);
  font-size: 22px;
  color: var(--heading);
  margin-bottom: 10px;
}
.cta-end p { color: var(--text-muted); margin-bottom: 18px; }
.cta-end a.btn {
  display: inline-block;
  background: var(--gold);
  color: #0e1d5c; font-weight: 800;
  padding: 12px 28px; border-radius: 999px;
  text-decoration: none; font-size: 15px;
  transition: transform .15s, background .15s;
}
.cta-end a.btn:hover { background: var(--gold-lite); transform: translateY(-1px); }

/* Cross-link footer between guides */
.related {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.related h4 {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-xmuted);
  margin-bottom: 12px;
}
.related ul { list-style: none; margin: 0; }
.related li { margin-bottom: 8px; }
.related a { font-weight: 600; }

footer.site-footer {
  text-align: center;
  padding: 28px 24px 40px;
  font-size: 12px;
  color: var(--text-xmuted);
}
footer.site-footer a { color: var(--text-muted); }

@media (max-width: 600px) {
  article { padding: 32px 18px 60px; }
  article h1 { font-size: 30px; }
  article h2 { font-size: 22px; }
  body { font-size: 16px; }
}
