/* === TOKENS === */
:root {
  --ink: #0f0f0f;
  --ink-soft: #3d3d3d;
  --ink-muted: #777;
  --bg: #fafaf7;
  --bg-card: #ffffff;
  --bg-dark: #0f0f0f;
  --accent: #1a6b3c;        /* forest green — money, trust, growth */
  --accent-light: #e8f5ee;
  --accent-warm: #d4a843;   /* gold — wealth, warmth */
  --accent-warn: #e84c2b;   /* red for debt/urgency */
  --border: #e8e8e2;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 28px rgba(0,0,0,0.12);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 1200px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: 100px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: #145c32; transform: translateY(-1px); }
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  margin-left: auto;
}

/* === HERO === */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px 64px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.btn-primary {
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: #145c32; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.hero-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 40px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 32px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  max-width: 120px;
  line-height: 1.3;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* === TICKER === */
.ticker-wrap {
  overflow: hidden;
  background: var(--accent);
  padding: 10px 0;
  white-space: nowrap;
}
.ticker {
  display: inline-block;
  animation: ticker 28s linear infinite;
}
.ticker span {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  padding: 0 6px;
}
.ticker .dot { color: var(--accent-warm); font-size: 18px; vertical-align: middle; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === SECTIONS === */
.posts-section, .categories-section, .tools-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px;
}
.section-header {
  margin-bottom: 40px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.section-sub {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 600px;
}

/* === POST CARDS === */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.post-card a {
  display: flex;
  flex-direction: column;
  padding: 28px;
  height: 100%;
}
.post-card--hero {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--ink) 0%, #1a2e1f 100%);
  border-color: transparent;
}
.post-card--hero a { color: white; }
.post-card--hero .post-tag { background: var(--accent); color: white; }
.post-card--hero h3 {
  font-size: clamp(20px, 2.5vw, 30px);
  margin-bottom: 12px;
}
.post-card--hero p { color: rgba(255,255,255,0.75); }
.post-card--hero .post-meta { color: rgba(255,255,255,0.5); }
.post-card--hero .read-link { color: var(--accent-warm); }
.post-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-light);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
  align-self: flex-start;
}
.post-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  flex: 1;
}
.post-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 16px;
}
.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: auto;
}
.read-link { color: var(--accent); font-weight: 600; }

/* === CATEGORIES === */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.category-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.cat-icon { font-size: 28px; margin-bottom: 4px; }
.category-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
}
.category-card p { font-size: 14px; color: var(--ink-soft); flex: 1; }
.cat-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

/* === NEWSLETTER === */
.newsletter-section {
  background: var(--ink);
  padding: 80px 24px;
}
.newsletter-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.newsletter-text .section-label { color: var(--accent-warm); }
.newsletter-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.newsletter-text h2 em { font-style: italic; color: var(--accent-warm); }
.newsletter-text p { color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 24px; line-height: 1.7; }
.newsletter-perks { display: flex; flex-direction: column; gap: 8px; }
.newsletter-perks li { color: rgba(255,255,255,0.8); font-size: 14px; }
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.form-headline {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 20px;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.newsletter-form input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s;
  outline: none;
}
.newsletter-form input:focus { border-color: var(--accent); }
.btn-full { width: 100%; text-align: center; cursor: pointer; border: none; font-family: var(--font-body); }
.form-fine { font-size: 12px; color: var(--ink-muted); text-align: center; margin-top: 4px; }
.form-success { text-align: center; padding: 24px 0; }
.success-icon { font-size: 36px; display: block; margin-bottom: 10px; }
.form-success p { font-size: 16px; color: var(--accent); font-weight: 500; }

/* === TOOLS === */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.tool-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.tool-logo { font-size: 32px; }
.tool-card h3 { font-size: 17px; font-weight: 600; }
.tool-card p { font-size: 13px; color: var(--ink-soft); flex: 1; line-height: 1.5; }
.tool-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
  transition: color 0.2s;
}
.tool-link:hover { color: #145c32; }

/* === LIST POSTS === */
.list-posts {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.list-post {
  display: grid;
  grid-template-columns: 80px 1fr 48px;
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.list-post:last-child { border-bottom: none; }
.list-post:hover .list-post-content h3 { color: var(--accent); }
.list-post-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
  line-height: 1.3;
  align-self: start;
  margin-top: 4px;
}
.list-post-content h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.list-post-content p {
  font-size: 13px;
  color: var(--ink-muted);
}
.list-post-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  text-align: right;
  padding-top: 4px;
}

/* === FOOTER === */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding-top: 64px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
}
.footer-brand .logo { color: white; margin-bottom: 14px; display: inline-block; }
.footer-brand p { font-size: 14px; max-width: 360px; line-height: 1.65; }
.footer-links { display: flex; gap: 48px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: underline; }

/* === POST PAGE === */
.post-hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}
.post-hero .post-tag { margin-bottom: 18px; }
.post-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.post-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.post-byline strong { color: var(--ink); }
.post-divider {
  max-width: 800px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}
.post-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.post-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin: 44px 0 16px;
  letter-spacing: -0.01em;
}
.post-body h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}
.post-body p { margin-bottom: 20px; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body strong { color: var(--ink); font-weight: 600; }
.callout {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  color: var(--ink);
}
.callout strong { color: var(--accent); }
.post-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
}
.post-table th {
  background: var(--accent);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.post-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.post-table tr:last-child td { border-bottom: none; }
.post-table tr:nth-child(even) td { background: var(--accent-light); }
.affiliate-disclosure {
  background: #fff9ed;
  border: 1px solid #f0d895;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 32px;
}
.post-cta {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 36px;
  margin: 48px 0 0;
  color: white;
  text-align: center;
}
.post-cta h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 10px;
}
.post-cta p { color: rgba(255,255,255,0.7); margin-bottom: 20px; font-size: 15px; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: block; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card--hero { grid-column: auto; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { flex-direction: column; gap: 16px; padding: 24px; }
  .stat-divider { width: 100%; height: 1px; }
}
@media (max-width: 600px) {
  .categories-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 16px 40px; }
  .list-post { grid-template-columns: 60px 1fr; }
  .list-post-meta { display: none; }
  .footer-links { flex-direction: column; gap: 32px; }
}
