/* Shared stylesheet for static content pages (/about/, /faq/, /guides/*).
   Kept independent of the React bundle so each page renders instantly
   from a single HTML file. Mirrors the live app's typography and palette. */
:root {
  --bg-base: #050914;
  --bg-grad-from: #0d1b3d;
  --text-primary: #e8e8e8;
  --text-secondary: #c0c8d8;
  --text-muted: #8090a0;
  --text-subtle: #5a6a7a;
  --accent-gold: #d4b86a;
  --accent-warm: #f0a040;
  --accent-blue: #5b9cf7;
  --accent-purple: #d96aff;
  --accent-green: #6ad48f;
  --frame-border: #2a3550;
  --panel-border: #1a2335;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: linear-gradient(180deg, #02040a 0%, #050914 50%, #02040a 100%);
  color: var(--text-primary);
  font-family: Georgia, "Cormorant Garamond", serif;
  line-height: 1.65;
  min-height: 100vh;
}
a { color: var(--accent-gold); text-decoration: none; }
a:hover { text-decoration: underline; }
header, main, footer, nav.breadcrumbs {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
nav.breadcrumbs {
  padding-top: 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}
nav.breadcrumbs a { color: var(--text-muted); }
nav.breadcrumbs a:hover { color: var(--accent-gold); }
header {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--panel-border);
}
.crest {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.crest img { width: 56px; height: 56px; display: block; }
.brand {
  font-family: Cinzel, Georgia, serif;
  font-size: 2rem;
  color: var(--accent-gold);
  letter-spacing: 0.2em;
}
.tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}
h1 {
  font-family: Cinzel, Georgia, serif;
  color: var(--accent-gold);
  font-size: 1.85rem;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.05em;
  line-height: 1.25;
}
h2 {
  font-family: Cinzel, Georgia, serif;
  color: var(--accent-gold);
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
h3 {
  font-family: Cinzel, Georgia, serif;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}
p, ul, ol { margin: 1rem 0; color: var(--text-secondary); }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }
strong { color: var(--text-primary); }
em { color: var(--text-secondary); }
hr {
  border: 0;
  border-top: 1px solid var(--panel-border);
  margin: 2.5rem 0;
}
.cta {
  display: inline-block;
  margin: 1rem 0;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}
.cta:hover { background: rgba(212, 184, 106, 0.1); text-decoration: none; }
.cta.secondary {
  border-color: var(--frame-border);
  color: var(--text-muted);
}
.cta.secondary:hover { color: var(--accent-gold); border-color: var(--accent-gold); }
footer {
  margin-top: 3rem;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-subtle);
  text-transform: uppercase;
}
footer .footer-links {
  margin-bottom: 0.5rem;
}
footer .footer-links a {
  color: var(--text-subtle);
  margin: 0 0.5rem;
}
footer .footer-links a:hover { color: var(--accent-gold); }
blockquote {
  border-left: 3px solid var(--accent-gold);
  margin: 1rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  font-style: italic;
  color: var(--text-secondary);
}
/* FAQ accordion (CSS-only via <details>) */
details.faq {
  border: 1px solid var(--frame-border);
  border-radius: 2px;
  margin: 0.5rem 0;
  background: rgba(13, 27, 61, 0.3);
}
details.faq[open] {
  border-color: var(--accent-gold);
}
details.faq > summary {
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  font-family: Cinzel, Georgia, serif;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  font-size: 1rem;
  list-style: none;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after {
  content: "+";
  float: right;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
}
details.faq[open] > summary::after { content: "−"; color: var(--accent-gold); }
details.faq > div.answer {
  padding: 0 1.1rem 0.85rem;
  color: var(--text-secondary);
}
details.faq > div.answer p:first-child { margin-top: 0; }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.tile {
  border: 1px solid var(--frame-border);
  padding: 1rem;
  background: rgba(13, 27, 61, 0.25);
  border-radius: 2px;
  display: block;
}
.tile:hover { border-color: var(--accent-gold); text-decoration: none; }
.tile .tile-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.tile .tile-title {
  font-family: Cinzel, Georgia, serif;
  color: var(--accent-gold);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}
.tile .tile-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.source-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.25rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  margin: 1rem 0;
}
.source-grid dt { color: var(--accent-gold); white-space: nowrap; }
.source-grid dd { margin: 0; color: var(--text-secondary); }
