/* The Budget Makeover — warm crafty DIY aesthetic. Mobile-first, no frameworks. */

:root {
  --cream: #FAF5EC;
  --paper: #FFFDF8;
  --charcoal: #2E2A25;
  --muted: #6F655A;
  --terracotta: #C0673F;
  --terracotta-dark: #A0522D;
  --sage: #7D8C6F;
  --sage-dark: #5F6E52;
  --sage-pale: #EDF0E6;
  --gold: #D9A441;
  --border: #E8DCC9;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(46, 42, 37, 0.08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.25;
  color: var(--charcoal);
  margin-top: 0;
}

h1 { font-size: 2.1rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.6rem; margin: 2.25rem 0 0.9rem; }
h3 { font-size: 1.25rem; margin: 1.75rem 0 0.6rem; }

p { margin: 0 0 1.1rem; }

a { color: var(--terracotta-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: 760px; margin: 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--charcoal); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 1.25rem; max-width: 1120px; margin: 0 auto;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--serif); font-size: 1.45rem; font-weight: bold;
  color: var(--charcoal); text-decoration: none;
}
.logo span { color: var(--terracotta); }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1.25rem; flex-wrap: wrap;
}
.site-nav a {
  color: var(--charcoal); text-decoration: none; font-weight: 600; font-size: 1rem;
}
.site-nav a:hover { color: var(--terracotta-dark); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 3.5rem 1.25rem 3rem;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(217,164,65,0.12), transparent),
    radial-gradient(ellipse 60% 50% at 85% 30%, rgba(125,140,111,0.14), transparent);
}
.hero h1 { font-size: 2.6rem; margin-bottom: 0.4rem; }
.hero .tagline {
  font-family: var(--serif); font-size: 1.35rem; font-style: italic;
  color: var(--terracotta-dark); margin-bottom: 1rem;
}
.hero p.lede { max-width: 620px; margin: 0 auto 1.6rem; color: var(--muted); font-size: 1.1rem; }

.btn {
  display: inline-block; padding: 0.8rem 1.7rem; border-radius: 999px;
  background: var(--terracotta); color: #fff; font-weight: 700; font-size: 1.02rem;
  text-decoration: none; border: 2px solid var(--terracotta);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: #fff; transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--terracotta-dark); }
.btn.secondary:hover { background: var(--terracotta); color: #fff; }

/* ---------- Cards ---------- */
.section { padding: 2.5rem 0; }
.section-title { text-align: center; margin-bottom: 0.4rem; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 2rem; }

.cards {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(46,42,37,0.12); }
.card-img { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--sage-pale); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--terracotta); color: #fff;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.card-body { padding: 1.1rem 1.1rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.12rem; margin: 0 0 0.5rem; }
.card-body h3 a { color: var(--charcoal); text-decoration: none; }
.card-body h3 a:hover { color: var(--terracotta-dark); text-decoration: underline; }
.card-body p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.9rem; flex: 1; }
.read-more { font-weight: 700; font-size: 0.95rem; }

/* ---------- Start here / feature strip ---------- */
.start-here { background: var(--sage-pale); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.start-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .start-grid { grid-template-columns: repeat(3, 1fr); } }
.start-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
}
.start-card .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--sage); color: #fff; font-weight: 700; margin-bottom: 0.7rem;
}
.start-card h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.start-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.8rem; }

/* ---------- About teaser / newsletter ---------- */
.two-col { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.panel {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
}
.newsletter-form { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 200px; padding: 0.75rem 1rem; font-size: 1rem;
  border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--charcoal);
}
.newsletter-form button {
  padding: 0.75rem 1.4rem; border-radius: 999px; border: none; cursor: pointer;
  background: var(--sage-dark); color: #fff; font-weight: 700; font-size: 1rem;
}
.newsletter-form button:hover { background: var(--sage); }
.fine-print { font-size: 0.85rem; color: var(--muted); margin-top: 0.7rem; margin-bottom: 0; }

/* ---------- Article ---------- */
.article-hero { margin: 0 0 1.5rem; }
.article-hero img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.article-hero figcaption { font-size: 0.88rem; color: var(--muted); text-align: center; margin-top: 0.6rem; }
.article-meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }

.pin-bar {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  background: var(--paper); border: 1px dashed var(--terracotta);
  border-radius: var(--radius); padding: 0.9rem 1.2rem; margin: 1.4rem 0;
}
.pin-bar p { margin: 0; font-size: 0.95rem; flex: 1; min-width: 200px; }
.pin-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #E60023; color: #fff; font-weight: 700; text-decoration: none;
  padding: 0.6rem 1.3rem; border-radius: 999px; font-size: 0.95rem; white-space: nowrap;
}
.pin-btn:hover { background: #C8001F; color: #fff; }

.materials { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.materials ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.materials li { margin-bottom: 0.45rem; }
.cost { font-weight: 700; color: var(--terracotta-dark); white-space: nowrap; }

ol.steps { counter-reset: step; list-style: none; padding: 0; }
ol.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 1.2rem 3rem;
}
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--terracotta); color: #fff;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
}
ol.steps li strong { display: block; margin-bottom: 0.2rem; }

table.budget { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.98rem; }
table.budget th, table.budget td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--border); }
table.budget th { background: var(--sage-pale); font-family: var(--serif); }
table.budget tr.total td { font-weight: 700; border-top: 2px solid var(--charcoal); border-bottom: none; font-size: 1.05rem; }
table.budget td:last-child, table.budget th:last-child { text-align: right; }

.tips { background: var(--sage-pale); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.tips ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.tips li { margin-bottom: 0.55rem; }

.faq dt { font-weight: 700; margin: 1rem 0 0.25rem; font-family: var(--serif); font-size: 1.08rem; }
.faq dd { margin: 0 0 0.8rem; color: var(--muted); }

.post-nav {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem;
}
.post-nav a { text-decoration: none; font-weight: 600; max-width: 45%; }
.post-nav .prev::before { content: "← "; }
.post-nav .next { text-align: right; margin-left: auto; }
.post-nav .next::after { content: " →"; }
.post-nav small { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #EDE6D8; margin-top: 3rem; }
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 2.5rem 1.25rem;
  display: grid; gap: 1.75rem; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.6rem; }
.site-footer p { font-size: 0.93rem; color: #CFC5B2; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: #EDE6D8; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  text-align: center; padding: 1.1rem; font-size: 0.85rem; color: #B9AE99;
}

@media (min-width: 760px) {
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 3.1rem; }
}
