/* ============================================================
   BA Organization Blog - blog.css
   Self-contained stylesheet: tokens, fonts, navbar, footer,
   and the Journal (index + article) editorial layout.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --color-navy: #1D293C;
  --color-navy-2: #2E394B;
  --color-gold: #D5AD7F;
  --color-gold-dark: #C49A6A;
  --color-cream: #EDDBC7;
  --color-offwhite: #F8F7F4;
  --color-text: #1D1D1B;
  --color-muted: #6B6B6B;
  --font-display: "Cinzel", serif;
  --font-heading: "Cormorant Garamond", serif;
  --font-label: "Raleway", sans-serif;
  --font-body: "Fivo Sans Modern", "Inter", sans-serif;
}

/* ---------- Fivo Sans Modern (site fonts) ---------- */
@font-face {
  font-family: "Fivo Sans Modern";
  src: url(/blog/fonts/FivoSansModern-Regular.woff2) format("woff2"),
       url(/fonts/FivoSansModern-Regular.otf) format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fivo Sans Modern";
  src: url(/blog/fonts/FivoSansModern-Medium.woff2) format("woff2"),
       url(/fonts/FivoSansModern-Medium.otf) format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fivo Sans Modern";
  src: url(/blog/fonts/FivoSansModern-Bold.woff2) format("woff2"),
       url(/fonts/FivoSansModern-Bold.otf) format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.bao-blog {
  margin: 0;
  background: var(--color-offwhite);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  padding-top: 80px; /* fixed navbar */
}
body.bao-blog img { max-width: 100%; height: auto; }
.bao-arrow { vertical-align: -2px; }

/* ---------- Navbar (replicated from the live site) ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(29, 41, 60, .08);
}
.navbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; text-decoration: none; }
body.bao-blog .logo-img { height: 72px; width: auto; display: block; }
.nav-list { display: flex; gap: 48px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  font-family: var(--font-label);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-navy);
  text-decoration: none;
  transition: color .2s ease;
}
.nav-link.active { color: var(--color-muted); font-weight: 600; }
.nav-link:not(.active):hover { color: var(--color-gold); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.menu-toggle span {
  width: 24px; height: 1.5px;
  background: var(--color-navy);
  display: block;
  transition: transform .3s ease, opacity .3s ease;
}
.mobile-menu { display: none; }
.mobile-link {
  font-family: var(--font-label);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-navy);
  text-decoration: none;
}
.mobile-link.active { color: var(--color-muted); }
@media (max-width: 768px) {
  body.bao-blog { padding-top: 68px; }
  .navbar-inner { padding: 0 24px; height: 68px; }
  .nav-list { display: none; }
  .menu-toggle { display: flex; }
  body.bao-blog .logo-img { height: 50px; }
  .mobile-menu {
    display: flex;
    position: fixed;
    top: 68px; left: 0;
    width: 100%;
    height: calc(100vh - 68px);
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translate(100%);
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
    z-index: 99;
  }
  .mobile-menu.open { transform: translate(0); }
}

/* ---------- Footer (replicated from the live site) ---------- */
.footer { background: var(--color-navy); padding: 64px 0 56px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.footer-left { display: flex; flex-direction: column; gap: 28px; }
.footer-logo-link { display: inline-block; line-height: 0; }
body.bao-blog .footer-logo {
  height: 80px; width: auto; max-width: none;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer-contact .contact-row { display: flex; gap: 12px; margin: 4px 0; align-items: flex-start; }
.footer-contact .email-list { display: flex; flex-direction: column; gap: 4px; }
.footer-contact p, .footer-contact .contact-row {
  font-family: "Fivo Sans Modern", sans-serif;
  font-size: 15px; font-weight: 400;
  color: rgba(255, 255, 255, .8);
  line-height: 1.5;
  margin: 4px 0;
}
.footer-contact a { color: inherit; text-decoration: none; transition: color .2s; }
.footer-contact a:hover { color: var(--color-gold); }
.footer-contact strong { font-weight: 700; color: #fff; flex-shrink: 0; }
.follow-label {
  font-family: "Fivo Sans Modern", sans-serif;
  font-size: 15px; font-weight: 400;
  color: rgba(255, 255, 255, .8);
  margin: 0 0 10px;
}
.footer-social { display: flex; flex-direction: column; }
.ig-link { display: inline-flex; line-height: 0; transition: opacity .2s; }
.ig-link:hover { opacity: .75; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; flex-shrink: 0; }
.guide-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 25px; font-weight: 400;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: right;
  margin: 0;
}
.btn-guide {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-navy);
  font-family: "Fivo Sans Modern", sans-serif;
  font-size: 15px; font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  padding: 18px 48px;
  min-width: 340px;
  text-align: center;
  transition: background .2s, color .2s;
}
.btn-guide:hover { background: #c9a070; }
@media (max-width: 768px) {
  .footer-inner { flex-direction: column; align-items: flex-start; padding: 0 32px; gap: 48px; }
  .footer-right { align-items: flex-start; width: 100%; }
  .btn-guide { min-width: unset; width: 100%; }
  .guide-label { text-align: left; }
}

/* ---------- Legal bar ---------- */
.bao-legal-bar {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 24px 80px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.bao-legal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.bao-legal-copy {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 13px; font-weight: 400;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .01em;
}
.bao-legal-links { display: flex; align-items: center; gap: 14px; }
.bao-legal-links a {
  font-family: "Raleway", sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  transition: color .2s ease;
}
.bao-legal-links a:hover { color: var(--color-gold); }
.bao-legal-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .24); display: inline-block; }
@media (max-width: 768px) {
  .bao-legal-bar { margin-top: 36px; padding: 20px 24px 0; }
  .bao-legal-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ============================================================
   Journal (blog index)
   ============================================================ */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 769px) {
  .blog-container { padding: 0 48px; }
}

/* Shared editorial atoms */
.blog-eyebrow {
  font-family: var(--font-label);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin: 0 0 14px;
}
.blog-eyebrow.gold { color: var(--color-gold); }
.blog-hero-divider {
  width: 56px; height: 2px;
  background: var(--color-gold);
  margin: 22px 0;
}
.blog-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-gold);
  color: var(--color-navy);
  font-family: "Fivo Sans Modern", "Inter", sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 34px;
  transition: background .2s ease;
}
.blog-btn-gold:hover { background: var(--color-gold-dark); }

/* Hero */
.blog-hero {
  background: #fff;
  border-bottom: 1px solid rgba(29, 41, 60, .08);
  padding: 64px 0 56px;
}
.blog-hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 5.5vw, 3.1rem);
  letter-spacing: .04em;
  color: var(--color-navy);
  margin: 0;
  line-height: 1.15;
}
.blog-hero-lede {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  color: var(--color-muted);
  max-width: 620px;
  margin: 0;
  line-height: 1.5;
}
@media (min-width: 769px) {
  .blog-hero { padding: 88px 0 72px; }
}

/* Featured card */
.blog-featured { padding: 48px 0 8px; }
.featured-card {
  background: #fff;
  border: 1px solid rgba(29, 41, 60, .08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.featured-media { display: block; line-height: 0; overflow: hidden; }
.featured-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .6s ease;
}
.featured-card:hover .featured-media img { transform: scale(1.03); }
.featured-body { padding: 28px 24px 32px; }
.featured-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: .02em;
  line-height: 1.25;
  margin: 10px 0 12px;
}
.featured-title a { color: var(--color-navy); text-decoration: none; transition: color .2s ease; }
.featured-title a:hover { color: var(--color-gold-dark); }
.featured-desc {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0 0 20px;
  max-width: 640px;
}
@media (min-width: 900px) {
  .featured-card { flex-direction: row; align-items: stretch; }
  .featured-media { flex: 0 0 58%; }
  .featured-media img { height: 100%; aspect-ratio: auto; }
  .featured-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 44px;
  }
}

/* Card grid */
.blog-grid-section { padding: 40px 0 80px; }
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  background: #fff;
  border: 1px solid rgba(29, 41, 60, .08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card-media { display: block; line-height: 0; overflow: hidden; }
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .6s ease;
}
.blog-card:hover .card-media img { transform: scale(1.04); }
.card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-label);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 6px;
}
.card-tag { color: var(--color-gold-dark); }
.card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: .02em;
  line-height: 1.35;
  margin: 6px 0 10px;
}
.card-title a { color: var(--color-navy); text-decoration: none; transition: color .2s ease; }
.card-title a:hover { color: var(--color-gold-dark); }
.card-desc {
  font-size: .95rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0 0 18px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--font-label);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-navy);
  text-decoration: none;
  transition: color .2s ease;
}
.card-link:hover { color: var(--color-gold-dark); }
.card-link .bao-arrow { transition: transform .25s ease; }
.card-link:hover .bao-arrow { transform: translateX(4px); }

/* Empty and 404 states */
.blog-empty, .blog-notfound {
  padding: 72px 0 112px;
  text-align: left;
}
.blog-empty-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  letter-spacing: .03em;
  color: var(--color-navy);
  margin: 0 0 14px;
}
.blog-empty-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-muted);
  max-width: 560px;
  line-height: 1.55;
  margin: 0 0 28px;
}
.blog-notfound .blog-btn-gold { margin-top: 26px; }

/* ============================================================
   Article
   ============================================================ */
.post { padding-bottom: 88px; }
.post-hero { background: #fff; border-bottom: 1px solid rgba(29, 41, 60, .08); }
.post-hero-media { line-height: 0; }
.post-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: 560px;
}
.post-hero-text {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 48px;
  text-align: center;
}
.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-label);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 18px;
}
.post-category { color: var(--color-gold-dark); text-decoration: none; }
.post-category:hover { color: var(--color-navy); }
.post-meta-sep { width: 1px; height: 12px; background: rgba(29, 41, 60, .22); display: inline-block; }
.post-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  letter-spacing: .03em;
  line-height: 1.2;
  color: var(--color-navy);
  margin: 0 0 18px;
}
.post-lede {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  color: var(--color-muted);
  line-height: 1.5;
  max-width: 680px;
  margin: 0 auto;
}
@media (min-width: 769px) {
  .post-hero-text { padding: 56px 48px 64px; }
}

/* Body */
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 8px;
}
.post-paragraph {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 26px;
}
.post-paragraph a {
  color: var(--color-gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s ease;
}
.post-paragraph a:hover { color: var(--color-navy); }
.post-heading {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--color-navy);
  line-height: 1.3;
  margin: 44px 0 18px;
}
h2.post-heading { font-size: clamp(1.35rem, 3.5vw, 1.7rem); }
h3.post-heading { font-size: clamp(1.15rem, 3vw, 1.35rem); }
.post-figure { margin: 36px 0; }
.post-figure img { width: 100%; height: auto; display: block; }
.post-figure-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 36px 0;
}
.post-figure-pair .post-figure { margin: 0; }
.post-figure-pair img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 640px) {
  .post-figure-pair { grid-template-columns: 1fr 1fr; }
}

/* CTA */
.post-cta {
  max-width: 860px;
  margin: 56px auto 0;
  padding: 0 24px;
}
.post-cta-inner {
  background: var(--color-navy);
  padding: 48px 28px;
  text-align: center;
}
.post-cta-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  letter-spacing: .04em;
  color: #fff;
  margin: 0 0 14px;
}
.post-cta-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-cream);
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto 28px;
}
@media (min-width: 769px) {
  .post-cta-inner { padding: 64px 72px; }
}

/* Back link */
.post-back {
  max-width: 860px;
  margin: 36px auto 0;
  padding: 0 24px;
}
.post-back .card-link .bao-arrow { transition: transform .25s ease; }
.post-back .card-link:hover .bao-arrow { transform: translateX(-4px); }
