/* Birdie Central Blog — brand theme per BRAND_STYLE_GUIDE.md v2.1
   Palette: Rosy Copper #C84F36 · Sunflower #F7B32B · Graphite #2A2A2A ·
   Neutral Grey #9A9A9A · Off-white #EEF0F2 · Page BG #F5F5F3
   Typeface: Montserrat only (400/500/600/700/800) */

:root {
  --copper: #C84F36;
  --sunflower: #F7B32B;
  --graphite: #2A2A2A;
  --neutral-grey: #9A9A9A;
  --offwhite: #EEF0F2;
  --page: #F5F5F3;
  --white: #FFFFFF;
  --border: #E2E2E0;
  --divider: #EEEEEE;
  --text2: #777777;
  --muted: #999999;
  --footer-text: #AAAAAA;
  --measure: 68ch;
  /* legacy aliases (older markup + dashboard) */
  --terracotta: #C84F36;
  --gold: #F7B32B;
  --charcoal: #2A2A2A;
  --line: #E2E2E0;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--graphite);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--graphite); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--sunflower);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--divider);
  background: var(--white);
}
.site-header .inner {
  max-width: 1060px; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.logo-link { display: inline-flex; align-items: center; }
.logo-link img { height: 34px; width: auto; display: block; }
.site-header nav { display: flex; align-items: center; }
.site-header nav a {
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  color: var(--graphite); margin-left: 1.6rem;
}
.site-header nav a:hover { color: var(--copper); }
.site-header nav a.book {
  color: var(--white); background: var(--copper);
  padding: 0.6rem 1.15rem; border-radius: 8px; font-weight: 700;
}
.site-header nav a.book:hover { background: var(--graphite); color: var(--white); }

/* ---------- Section label (eyebrow) ---------- */
.eyebrow {
  font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--text2);
}

/* ---------- Accent bar (Rosy Copper, replaces old gold rule) ---------- */
.accent-rule {
  height: 3px; background: var(--copper); border: 0;
  width: 64px; margin: 1.1rem 0 0; border-radius: 2px;
}
.accent-rule.center { margin-left: auto; margin-right: auto; }
/* legacy alias so older post markup stays styled */
.gold-rule { height: 3px; background: var(--copper); border: 0; width: 64px; margin: 1.1rem 0 0; border-radius: 2px; }
.gold-rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Index hero ---------- */
.hero {
  background: var(--page);
  border-bottom: 1px solid var(--divider);
  padding: 3.5rem 1.5rem 2.75rem;
}
.hero .inner { max-width: 1060px; margin: 0 auto; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.15;
  margin-top: 0.6rem; color: var(--graphite);
}
.hero p.dek {
  max-width: 56ch; margin-top: 1rem; color: var(--text2); font-size: 1.02rem;
  margin-left: 0;
}

/* ---------- Article list ---------- */
.post-list {
  max-width: 1060px; margin: 0 auto; padding: 2.25rem 1.5rem 4rem;
  display: grid; gap: 1.25rem;
}
.post-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.75rem 1.5rem; display: block; text-decoration: none; color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover {
  border-color: var(--copper);
  box-shadow: 0 4px 24px rgba(200, 79, 54, 0.10);
}
.post-card h2 {
  font-weight: 700; font-size: 1.3rem;
  line-height: 1.3; color: var(--graphite);
}
.post-card p { margin-top: 0.55rem; color: var(--text2); font-size: 0.95rem; }

/* ---------- Scorecard meta strip ---------- */
.scorecard {
  display: flex; gap: 0; margin-top: 1.1rem; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; width: fit-content; max-width: 100%;
  background: var(--page);
}
.scorecard div {
  padding: 0.45rem 1rem; border-right: 1px solid var(--border);
}
.scorecard div:last-child { border-right: 0; }
.scorecard .label {
  display: block; font-size: 0.6rem;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text2);
}
.scorecard .value {
  display: block; font-size: 0.85rem; font-weight: 600; color: var(--graphite);
  margin-top: 0.1rem;
}
.scorecard .value.pillar { color: var(--copper); font-weight: 700; }

/* ---------- Article page ---------- */
.article-header {
  max-width: var(--measure); margin: 0 auto; padding: 3.25rem 1.5rem 0.5rem;
}
.article-header h1 {
  font-weight: 800;
  font-size: clamp(1.7rem, 4.2vw, 2.4rem); line-height: 1.18;
  margin-top: 0.6rem; color: var(--graphite);
}
.article-body {
  max-width: var(--measure); margin: 0 auto; padding: 1.5rem 1.5rem 4rem;
}
.article-body h2 {
  font-weight: 800; font-size: 1.4rem;
  margin: 2.4rem 0 0.85rem; line-height: 1.28; color: var(--graphite);
}
.article-body h3 {
  font-weight: 700; font-size: 1.1rem;
  margin: 1.8rem 0 0.6rem; color: var(--graphite);
}
.article-body p { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.1rem 1.4rem; }
.article-body li { margin-bottom: 0.45rem; }
.article-body img {
  max-width: 100%; height: auto; border-radius: 14px; margin: 1.4rem 0;
  border: 1px solid var(--border);
}
.article-body strong { font-weight: 700; }
.article-body figure { margin: 1.4rem 0; }
.article-body figure img { margin: 0 0 0.5rem; }
.article-body figcaption { font-size: 0.85rem; color: var(--muted); }

/* Callout — Sunflower warmth, low-opacity fill */
.callout {
  background: rgba(247, 179, 43, 0.10); border-left: 4px solid var(--sunflower);
  border-radius: 0 14px 14px 0; padding: 1.1rem 1.35rem; margin: 1.6rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* CTA block — graphite surface, primary copper button */
.cta-block {
  background: var(--graphite); color: var(--offwhite); border-radius: 14px;
  padding: 1.9rem 1.9rem; margin: 2.2rem 0; text-align: center;
}
.cta-block h3 {
  font-weight: 800; font-size: 1.25rem; margin: 0 0 0.5rem; color: var(--white);
}
.cta-block p { color: var(--offwhite); opacity: 0.85; margin-bottom: 1.15rem; font-size: 0.95rem; }
.cta-block a.btn {
  display: inline-block; background: var(--copper); color: var(--white);
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  padding: 0.75rem 1.6rem; border-radius: 8px;
}
.cta-block a.btn:hover { background: var(--sunflower); color: var(--graphite); }

/* FAQ */
.faq details {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 1rem 1.25rem; margin-bottom: 0.7rem;
}
.faq summary {
  font-weight: 700; cursor: pointer; font-size: 1rem;
}
.faq details p { margin: 0.7rem 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--divider); background: var(--page);
  margin-top: 2rem;
}
.site-footer .inner {
  max-width: 1060px; margin: 0 auto; padding: 2rem 1.5rem;
  font-size: 0.85rem; color: var(--footer-text);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.site-footer .brandline {
  display: flex; align-items: center; gap: 0.6rem;
}
.site-footer .brandline img { height: 20px; width: auto; opacity: 0.9; }
.site-footer .tagline {
  font-weight: 500; color: var(--text2); font-size: 0.85rem;
}
.site-footer a { color: var(--text2); }
.site-footer a:hover { color: var(--copper); }

@media (max-width: 560px) {
  .site-header nav a { margin-left: 0.9rem; }
  .scorecard { width: 100%; }
  .scorecard div { flex: 1; padding: 0.4rem 0.6rem; }
}
