/* Christmas Budget Planner — warm holiday-money look: evergreen trust, cranberry warmth */
:root {
  --ink: #1d2b23;
  --muted: #5a6b5f;
  --accent: #0f6b3f;        /* evergreen */
  --accent-deep: #093f25;
  --cranberry: #c0392b;     /* festive red for badges/CTA accents */
  --gold: #d4a017;          /* festive gold highlights */
  --bg: #ffffff;
  --wash: #f4f8f3;
  --line: #dde8dd;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
.wrap { max-width: 820px; margin: 0 auto; padding: 0 22px; }

/* ---- sticky header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.site-header .wrap {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.brand-logo {
  width: 30px; height: 30px;
  border-radius: 7px;
  flex: 0 0 auto;
}
.tagline { color: var(--muted); margin: 0; font-size: .92rem; }

/* ---- hero ---- */
main { padding: 0 0 56px; }
.hero {
  margin: 26px 0 8px;
  padding: 54px 46px 46px;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(1100px 320px at 88% -10%, rgba(212,160,23,.35), transparent 60%),
    radial-gradient(700px 260px at 8% 110%, rgba(192,57,43,.35), transparent 55%),
    linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 68%, #147d4c 100%);
  overflow: hidden;
}
.hero-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin: 26px 0 24px;
  border: 2px solid rgba(255,255,255,.35);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  display: block;
}
.eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.38);
  padding: 6px 14px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 16px 0 14px;
  max-width: 16em;
}
.hero p { color: rgba(255,255,255,.9); font-size: 1.06rem; max-width: 40em; margin: 0 0 20px; }
.cta {
  display: inline-block;
  background: #fff;
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

/* ---- guide list ---- */
.posts h2 {
  font-size: 1.3rem;
  margin: 46px 0 18px;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 14px;
}
.posts h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 16px;
  background: #fff;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card::before {
  content: "";
  position: absolute; left: 0; top: 16px; bottom: 16px;
  width: 4px; border-radius: 4px;
  background: var(--accent);
  opacity: 0;
  transition: opacity .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15,107,63,.16);
  border-color: #c2dcc9;
}
.card:hover::before { opacity: 1; }
.card-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
  transition: transform .3s ease;
}
.card:hover .card-img { transform: scale(1.015); }
.card .badge, .card h3, .card p { margin-left: 26px; margin-right: 22px; }
.card .badge { margin-top: 18px; }
.card h3 + p { padding-bottom: 20px; }
.badge {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--cranberry);
  background: #f9e9e6;
  border-radius: 999px;
  padding: 4px 13px;
}
.card h3 { margin: 10px 26px 8px 26px; font-size: 1.18rem; letter-spacing: -0.01em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card:hover h3 a { color: var(--accent); }
.card p { margin: 0 22px 0 26px; color: var(--muted); }

/* ---- articles ---- */
.post { padding-top: 30px; }
.post h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 18px 0 12px;
}
.meta {
  display: inline-block;
  color: var(--accent-deep);
  background: #e6f2ea;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 15px;
  margin-bottom: 26px;
}
.article-img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(15,107,63,.12);
  margin: 4px 0 26px;
}
.post h2 {
  font-size: 1.35rem;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--wash);
  position: relative;
}
.post h2::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 60px; height: 2px;
  background: var(--accent);
}
.post code {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.92em;
}
.post pre {
  background: #0f2233;
  border: 1px solid #0f2233;
  border-radius: 8px;
  padding: 16px 18px;
  overflow-x: auto;
}
.post pre code { background: none; border: none; padding: 0; color: #d7e8f7; }
.post table { border-collapse: collapse; width: 100%; margin: 18px 0; }
.post th, .post td { border: 1px solid var(--line); padding: 9px 13px; text-align: left; }
.post th { background: var(--wash); }
.post ul li { margin-bottom: 8px; }
.back {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  transition: border-color .18s ease, background .18s ease;
}
.back:hover { border-color: var(--accent); background: var(--wash); text-decoration: none; }
.next-link {
  display: block;
  margin: 42px 0 8px;
  padding: 24px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.12rem;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
  transition: transform .18s ease, box-shadow .18s ease;
}
.next-link small {
  display: block;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  margin-bottom: 6px;
}
.next-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,107,63,.34);
}
/* Ad slot placeholder — style only applies once you paste real ad code */
.ad-slot {
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  padding: 12px;
  margin: 24px 0;
  font-size: 0.85rem;
  display: none; /* shown automatically once ad code is pasted */
}

/* ---- footer ---- */
.site-footer {
  background: var(--wash);
  border-top: 3px solid var(--accent);
  padding: 26px 0 36px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-nav a {
  color: var(--accent);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--cranberry); text-decoration: underline; }
.network-link { font-size: 0.8rem; margin-top: 6px; }
.network-link a { color: var(--muted); }
.site-footer .ai-disclosure { font-size: .85em; opacity: .85; }

/* ---- mobile ---- */
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .tagline { display: none; }
  .hero { margin: 16px 0 4px; padding: 38px 26px 30px; border-radius: 12px; }
  .hero-img { aspect-ratio: 16 / 10; margin: 20px 0 18px; }
  .card .badge, .card h3, .card p { margin-left: 20px; margin-right: 18px; }
  .card-img { aspect-ratio: 16 / 8; }
  .article-img { aspect-ratio: 16 / 9; }
  .posts h2 { margin: 36px 0 14px; }
}
