/* kCalori blog — shared styles. Matches the main site design system. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:     #07090A;
  --bg2:    #0c1210;
  --bg3:    #111a12;
  --gold:   #B2AC88;
  --green:  #3a6b45;
  --green2: #4ade80;
  --pink:   #e0808f;
  --white:  #f0ede4;
  --gray:   #5a5e5b;
  --gray2:  #9aa09b;
  --border: rgba(178,172,136,0.11);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
/* subtle static glow, lighter than the homepage canvas */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(700px circle at 80% -5%, rgba(58,107,69,0.10), transparent 60%),
    radial-gradient(600px circle at 0% 10%, rgba(178,172,136,0.05), transparent 55%);
}
a { color: inherit; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(7,9,10,0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo .app-logo-img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.nav-logo .name { font-family: Georgia, serif; font-size: 20px; font-weight: 500; color: var(--gold); letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--gray); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold); color: #07090A; border: none; padding: 10px 22px; border-radius: 20px;
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.3s; box-shadow: 0 0 0 rgba(178,172,136,0);
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 4px 24px rgba(178,172,136,0.3); }

/* ─── PAGE WRAP ─── */
.wrap { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ─── BLOG INDEX ─── */
.blog-head { padding: 116px 0 16px; text-align: center; }
.blog-head .eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.blog-head h1 { font-family: Georgia, serif; font-size: clamp(30px, 4vw, 42px); font-weight: 400; letter-spacing: -0.5px; line-height: 1.14; margin-bottom: 14px; }
.blog-head p { color: var(--gray2); max-width: 500px; margin: 0 auto; font-size: 16px; font-weight: 300; line-height: 1.6; }

/* editorial list — full-width article rows; scales cleanly from 1 to many posts, never an empty column */
.post-grid { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin: 0 auto; padding-bottom: 110px; }
.post-card {
  display: flex; flex-direction: column; position: relative;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px 66px 28px 32px; text-decoration: none; color: inherit;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.post-card::after { content: '\2192'; position: absolute; right: 30px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 22px; opacity: 0.5; transition: transform 0.3s, opacity 0.3s; }
.post-card:hover { border-color: rgba(178,172,136,0.32); transform: translateY(-2px); box-shadow: 0 18px 50px rgba(0,0,0,0.35); background: var(--bg3); }
.post-card:hover::after { transform: translateY(-50%) translateX(5px); opacity: 1; }
.post-card:hover h2 { color: var(--gold); }
.post-card .cat { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.post-card h2 { font-family: Georgia, serif; font-size: clamp(20px, 2.3vw, 25px); font-weight: 500; line-height: 1.22; margin-bottom: 11px; color: var(--white); transition: color 0.2s; }
.post-card .excerpt { font-size: 14.5px; color: var(--gray2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .meta { font-size: 12px; color: var(--gray); margin-top: 16px; display: flex; gap: 10px; align-items: center; }
.post-card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray); }

/* ─── ARTICLE ─── */
.article-wrap.article-head { padding-top: 140px; }   /* beat .article-wrap's padding shorthand so the title clears the fixed nav */
.article-head .crumbs { font-size: 13px; color: var(--gray); margin-bottom: 28px; }
.article-head .crumbs a { color: var(--gold); text-decoration: none; }
.article-wrap { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; padding: 0 24px; }
.article-cat { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.article-title { font-family: Georgia, serif; font-size: clamp(30px, 4.5vw, 46px); font-weight: 400; line-height: 1.12; letter-spacing: -0.5px; margin-bottom: 20px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--gray); padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray); }

.article-body { font-size: 17px; line-height: 1.8; color: var(--gray2); }
.article-body > *:first-child { margin-top: 0; }
.article-body .lead { font-size: 20px; line-height: 1.7; color: var(--white); margin-bottom: 32px; font-weight: 300; }
.article-body h2 { font-family: Georgia, serif; font-size: 28px; font-weight: 500; color: var(--white); line-height: 1.25; margin: 48px 0 16px; letter-spacing: -0.3px; }
.article-body h3 { font-size: 20px; font-weight: 600; color: var(--white); margin: 36px 0 12px; }
.article-body p { margin-bottom: 22px; }
.article-body ul, .article-body ol { margin: 0 0 22px 4px; padding-left: 22px; }
.article-body li { margin-bottom: 10px; }
.article-body ul li::marker { color: var(--gold); }
.article-body strong { color: var(--white); font-weight: 600; }
.article-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(178,172,136,0.4); }
.article-body a:hover { text-decoration-color: var(--gold); }
.article-body blockquote {
  border-left: 2px solid var(--gold); padding: 6px 0 6px 22px; margin: 30px 0;
  color: var(--white); font-size: 19px; font-style: italic; line-height: 1.6;
}
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 44px 0; }
/* carousel emphasis markup → inline highlights */
.hl-sage { color: var(--green2); font-weight: 600; }
.hl-pink { color: var(--pink); font-weight: 600; }
.hl-gold { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }

/* end-of-post CTA — every article funnels to the App Store */
.article-cta {
  margin: 60px auto 0; max-width: 720px;
  background: linear-gradient(145deg, #0d1c0f, var(--bg2));
  border: 1px solid rgba(178,172,136,0.25); border-radius: 24px;
  padding: 40px 36px; text-align: center; position: relative; overflow: hidden;
}
.article-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(58,107,69,0.12) 0%, transparent 60%); pointer-events: none; }
.article-cta h3 { font-family: Georgia, serif; font-size: 26px; font-weight: 500; color: var(--white); margin-bottom: 10px; position: relative; }
.article-cta p { color: var(--gray2); font-size: 15px; margin-bottom: 24px; position: relative; }
.article-cta a {
  display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: #07090A;
  padding: 14px 30px; border-radius: 50px; font-size: 15px; font-weight: 600; text-decoration: none;
  position: relative; transition: opacity 0.2s, transform 0.2s, box-shadow 0.3s; box-shadow: 0 8px 32px rgba(178,172,136,0.2);
}
.article-cta a:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 14px 40px rgba(178,172,136,0.35); }

.article-back { max-width: 720px; margin: 50px auto 0; padding: 0 24px; }
.article-back a { color: var(--gold); text-decoration: none; font-size: 14px; font-weight: 500; }
.article-back a:hover { text-decoration: underline; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border); padding: 44px 48px; margin-top: 110px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  position: relative; z-index: 1;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo .app-logo-img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.footer-logo .name { font-family: Georgia, serif; font-size: 18px; color: var(--gold); }
.footer-links { display: flex; gap: 26px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--gray); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; color: var(--gray); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .post-card { padding: 24px 54px 24px 24px; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 560px) {
  .article-body { font-size: 16px; }
}
