/* ===========================================================
   Clean Your Finance — shared design system
   Used by blog pages. (index.html keeps its own inline copy.)
   =========================================================== */
:root {
  --ink: #0c1410;
  --ink-soft: #44524b;
  --teal: #0f766e;
  --teal-dark: #0b5650;
  --teal-tint: #e6f3f1;
  --sand: #faf7f1;
  --sand-2: #f3ede1;
  --line: #e4ddcf;
  --gold: #c08a2d;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 40px -12px rgba(12, 20, 16, 0.18);
  --maxw: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
a { color: var(--teal); text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--teal); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--white);
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px;
  transition: transform .15s ease, background .15s ease;
  box-shadow: 0 8px 20px -8px rgba(15, 118, 110, 0.6);
}
.btn:hover { background: var(--teal-dark); transform: translateY(-2px); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal); box-shadow: none; border: 1.5px solid var(--teal); }
.btn-ghost:hover { background: var(--teal-tint); transform: translateY(-2px); }

/* Nav */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 21px; color: var(--ink); }
.logo .mark { width: 36px; height: 36px; border-radius: 10px; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.lnk { font-weight: 500; color: var(--ink-soft); font-size: 15px; }
.nav-links a.lnk:hover { color: var(--teal); }
.menu-btn { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } .menu-btn { display: block; } }

/* ---------- Blog listing ---------- */
.blog-hero { padding: 70px 0 30px; }
.blog-hero .kicker { color: var(--teal); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.blog-hero h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 14px; }
.blog-hero p { font-size: 18px; color: var(--ink-soft); max-width: 620px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 30px 0 80px; }
.blog-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card .thumb { height: 150px; background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); display: grid; place-items: center; color: #fff; font-family: 'Fraunces', serif; font-size: 40px; }
.blog-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card .tag { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.blog-card h3 { font-size: 20px; margin-bottom: 10px; color: var(--ink); }
.blog-card p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.blog-card .meta { font-size: 13px; color: var(--ink-soft); margin-top: 16px; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.article { padding: 50px 0 30px; }
.article .back { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; margin-bottom: 26px; }
.article .tag { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.article h1 { font-size: clamp(30px, 5vw, 46px); margin: 14px 0 16px; max-width: 760px; }
.post-meta { display: flex; gap: 16px; align-items: center; font-size: 14px; color: var(--ink-soft); padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.post-meta .av { width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-family: 'Fraunces', serif; font-size: 16px; }

.prose { max-width: 720px; margin: 0 auto; padding: 40px 0; }
.prose > * { margin: 0 auto; }
.prose p, .prose ul, .prose ol, .prose blockquote { font-size: 18px; color: #233029; margin-bottom: 22px; }
.prose h2 { font-size: 28px; margin: 44px 0 16px; }
.prose h3 { font-size: 21px; margin: 32px 0 12px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 10px; }
.prose strong { color: var(--ink); }
.prose blockquote {
  border-left: 4px solid var(--teal); background: var(--teal-tint);
  padding: 18px 24px; border-radius: 0 12px 12px 0; font-style: italic; color: var(--teal-dark);
}
.prose .lead { font-size: 21px; color: var(--ink-soft); line-height: 1.55; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* Post-end CTA */
.post-cta { background: var(--ink); color: #fff; border-radius: 20px; padding: 44px; text-align: center; max-width: 720px; margin: 30px auto 0; }
.post-cta h3 { color: #fff; font-size: 26px; margin-bottom: 12px; }
.post-cta p { color: #b9c5bf; margin-bottom: 24px; font-size: 16px; }

/* Footer */
footer { padding: 50px 0 40px; border-top: 1px solid var(--line); margin-top: 70px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-soft); }
.foot-links a { color: var(--ink-soft); } .foot-links a:hover { color: var(--teal); }
.disclaimer { background: var(--sand-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; font-size: 13px; color: var(--ink-soft); margin-top: 36px; line-height: 1.7; }
.copyright { margin-top: 30px; font-size: 13.5px; color: var(--ink-soft); }
