/* WhatsQuiz blog — standalone stylesheet mirroring the app's brand tokens.
   No Tailwind runtime; keeps blog HTML fully self-contained. */

:root {
  --cream: #FDF6EC;
  --cream-2: #F7EEDD;
  --forest: #2D5F3F;
  --forest-dark: #1F4530;
  --coral: #F4A896;
  --coral-dark: #E88C77;
  --ink: #1F2A24;
  --ink-soft: #4A5651;
  --muted: #8A928E;
  --border: #E8DEC9;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(45, 95, 63, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--forest-dark); }

/* Header */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; max-width: 1080px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--forest); text-decoration: none; font-size: 18px; }
.brand img { border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 16px; }
.site-nav a { text-decoration: none; font-weight: 600; }

/* Buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; min-height: 44px; line-height: 1.4; transition: transform 0.1s ease, background 0.2s ease; }
.btn-primary { background: var(--coral); color: var(--forest-dark); }
.btn-primary:hover { background: var(--coral-dark); color: var(--forest-dark); }
.btn-lg { padding: 14px 24px; font-size: 17px; }

/* Article layout */
.article-shell { padding: 24px 20px 80px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb [aria-current] { color: var(--ink); }

.article h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 8px 0 12px; letter-spacing: -0.01em; }
.article-meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }

.prose h2 { font-size: 26px; margin: 40px 0 12px; line-height: 1.25; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose blockquote { border-left: 4px solid var(--coral); padding: 4px 16px; margin: 20px 0; color: var(--ink-soft); font-style: italic; background: var(--cream-2); border-radius: 0 8px 8px 0; }
.prose code { background: var(--cream-2); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; }
.prose pre { background: var(--forest-dark); color: var(--cream); padding: 16px; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: transparent; color: inherit; padding: 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--cream-2); font-weight: 700; }

/* FAQ */
.faq { margin: 48px 0 0; }
.faq h2 { font-size: 26px; margin: 0 0 16px; }
.faq-item { background: var(--cream-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin: 10px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--coral-dark); font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 12px 0 0; color: var(--ink-soft); }

/* Sources */
.sources { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--border); }
.sources h2 { font-size: 18px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 10px; }
.sources ul { margin: 0; padding-left: 20px; font-size: 15px; }
.sources li { margin: 4px 0; }

/* CTA */
.cta-card { background: var(--forest); color: var(--cream); border-radius: var(--radius); padding: 28px; margin: 48px 0 0; text-align: center; box-shadow: var(--shadow); }
.cta-card h2 { margin: 0 0 8px; font-size: 24px; }
.cta-card p { margin: 0 0 18px; color: var(--cream-2); }

/* Related */
.related { margin: 40px 0 0; }
.related h2 { font-size: 22px; margin: 0 0 12px; }
.related ul { list-style: none; padding: 0; }
.related li { margin: 8px 0; }
.related a { font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--cream-2); margin-top: 60px; padding: 32px 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-bottom: 12px; }
.footer-links a { color: var(--forest); text-decoration: none; font-weight: 600; }
.footer-copy { text-align: center; margin: 0; color: var(--muted); font-size: 14px; }

/* Blog index */
.blog-index { padding: 40px 20px 80px; max-width: 1080px; }
.blog-hero { text-align: center; margin: 0 0 40px; }
.blog-hero h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 12px; }
.blog-hero p { color: var(--ink-soft); max-width: 620px; margin: 0 auto; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-card h2 { font-size: 20px; margin: 0 0 8px; line-height: 1.3; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--forest); }
.post-meta { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.read-more { display: inline-block; margin-top: 8px; font-weight: 700; text-decoration: none; }
.empty { color: var(--muted); text-align: center; padding: 60px 0; }

@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
  .article h1 { font-size: 28px; }
}
