/* Maxwell Fasting blog. Matches the homepage palette: navy, gold, cream. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0D1B2A; --navy-mid: #142236; --navy-light: #1C2F45;
  --gold: #C9A84C; --cream: #F7F4EF; --ink: #1E1E1E; --muted: #5b6573;
}
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--ink); font-family: 'Lato', sans-serif; font-size: 18px; line-height: 1.7; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* nav: same look as the homepage */
#nav { position: sticky; top: 0; z-index: 100; background: rgba(13,27,42,.97); border-bottom: 1px solid rgba(201,168,76,.18); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.1rem; letter-spacing: .06em; color: var(--cream); text-decoration: none; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(247,244,239,.78); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--gold); }
.nav-links .nav-cta { background: var(--gold); color: var(--navy); padding: 8px 18px; border-radius: 3px; font-weight: 900; }
@media (max-width: 760px) { .nav-links li.hide-sm { display: none; } .nav-links { gap: 16px; } }

/* page header */
.blog-hero { background: linear-gradient(180deg, var(--navy-mid), var(--navy)); color: var(--cream); padding: 72px 24px 64px; text-align: center; }
.blog-hero .kicker { font-size: .78rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.blog-hero h1 { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin: 14px auto 16px; max-width: 820px; letter-spacing: -.01em; }
.blog-hero p { max-width: 640px; margin: 0 auto; color: rgba(247,244,239,.75); }
.blog-hero .meta { margin-top: 18px; font-size: .9rem; color: rgba(247,244,239,.6); }

/* listing */
.post-list { max-width: 1100px; margin: 0 auto; padding: 56px 24px 72px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card { background: #fff; border: 1px solid #e7e1d6; border-radius: 10px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(13,27,42,.12); }
.post-card img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; width: 100%; }
.post-card .body { padding: 22px 24px 26px; }
.post-card .tag { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #8a6d1f; }
.post-card h2 { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.35rem; line-height: 1.2; margin: 8px 0 10px; color: var(--navy); }
.post-card p { font-size: 1rem; color: var(--muted); }

/* article */
.article { max-width: 720px; margin: 0 auto; padding: 56px 24px 24px; }
.article p { margin: 0 0 1.25em; }
.article h2 { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.55rem; line-height: 1.2; color: var(--navy); margin: 1.8em 0 .6em; }
.article blockquote { border-left: 4px solid var(--gold); padding: 6px 0 6px 22px; margin: 1.6em 0; font-size: 1.2rem; font-style: italic; color: var(--navy); }
.article figure { margin: 2em auto; max-width: 440px; }
.article figure img { border-radius: 10px; box-shadow: 0 10px 30px rgba(13,27,42,.15); }
.article figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 10px; }
.article ul { margin: 0 0 1.25em 1.2em; }
.article li { margin-bottom: .4em; }

/* call to action box */
.cta-box { max-width: 720px; margin: 8px auto 48px; padding: 0 24px; }
.cta-inner { background: var(--navy); color: var(--cream); border-radius: 12px; padding: 32px; border: 1px solid rgba(201,168,76,.35); }
.cta-inner h3 { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.3rem; margin-bottom: 8px; }
.cta-inner p { color: rgba(247,244,239,.78); margin-bottom: 18px; font-size: 1rem; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 4px; font-weight: 900; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; margin: 4px 8px 4px 0; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-ghost { border: 1px solid rgba(247,244,239,.4); color: var(--cream); }

.back { max-width: 720px; margin: 0 auto 56px; padding: 0 24px; font-size: .95rem; }
.back a { color: #8a6d1f; font-weight: 700; text-decoration: none; }

footer { background: var(--navy); color: rgba(247,244,239,.6); text-align: center; padding: 32px 24px; font-size: .85rem; }
footer .disclaimer { color: var(--gold); margin-top: 6px; }
.nav-links a { white-space: nowrap; }
@media (max-width: 520px) {
  .nav-inner { padding: 0 16px; }
  .nav-logo { font-size: .95rem; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: .7rem; }
  .nav-links .nav-cta { padding: 7px 10px; }
}
.article .answer { background: #fff; border: 1px solid #e7e1d6; border-left: 4px solid var(--gold); border-radius: 8px; padding: 16px 20px; font-size: 1.05rem; }
.article .faq { margin-top: 2.2em; border-top: 1px solid #e2dccf; padding-top: .4em; }
.article .faq h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--navy); margin: 1.3em 0 .4em; }
.article .related ul { list-style: none; margin-left: 0; }
.article .related li { padding: 8px 0; border-bottom: 1px solid #ece6da; }
.article .related a, .article p a { color: #8a6d1f; font-weight: 700; }
.blog-hero .meta a { color: var(--gold); text-decoration: none; }
