/* ============================================================
   ThriftyNest UI v2 — modern, fast, zero-JS
   ============================================================ */
:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --ink: #23262b;
  --muted: #6b7280;
  --brand: #c2410c;
  --brand-soft: #fdeee2;
  --line: #e8e3da;
  --shadow-sm: 0 1px 2px rgba(35, 38, 43, 0.05), 0 2px 8px rgba(35, 38, 43, 0.04);
  --shadow-md: 0 4px 12px rgba(35, 38, 43, 0.08), 0 8px 24px rgba(35, 38, 43, 0.06);
  --radius: 14px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Sora", "Inter", system-ui, sans-serif;
  /* category accents */
  --c-kitchen: #e26c36;
  --c-organization: #008a84;
  --c-cleaning: #3482c6;
  --c-home-office: #585cb0;
  --c-pet: #bc78a0;
  --c-garden: #4a8c56;
  --c-energy: #d99a2b;
  --c-tools: #7a7064;
  --c-misc: #5a646e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #fbd9c0; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--brand); text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }
:focus-visible { outline: 3px solid rgba(194, 65, 12, 0.45); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo span { background: linear-gradient(90deg, var(--brand), #b45309); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { margin: 0; color: var(--muted); font-size: 0.88rem; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav-link {
  font-size: 0.92rem; font-weight: 500; color: var(--ink);
  padding: 6px 11px; border-radius: 999px; transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover { background: #f3ede4; text-decoration: none; color: var(--ink); }
.nav-cta { background: var(--brand); color: #fff !important; font-weight: 600; }
.nav-cta:hover { background: #9a3412; }

/* ---------- hero ---------- */
.hero {
  padding: 40px 0 14px;
  background:
    radial-gradient(1200px 400px at 20% -10%, rgba(226, 108, 54, 0.12), transparent 60%),
    linear-gradient(180deg, #fff8f1 0%, rgba(255, 248, 241, 0) 100%);
  border-radius: 0 0 var(--radius) var(--radius);
}
.hero-eyebrow {
  display: inline-block; margin: 0 0 12px; padding: 5px 14px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; border-radius: 999px;
}
.hero h1 {
  font-family: var(--font-head); font-size: 2.5rem; line-height: 1.15;
  margin: 0 0 12px; letter-spacing: -0.03em; max-width: 720px;
}
.hero-sub { color: var(--muted); font-size: 1.15rem; margin: 0 0 22px; max-width: 640px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-btn {
  display: inline-block; padding: 9px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  font-size: 0.92rem; font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.hero-btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; transform: translateY(-1px); }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; padding: 30px 0; }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card-thumb {
  height: 132px; display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
}
.card-thumb.cat-kitchen { background: linear-gradient(135deg, var(--c-kitchen), #f5d9c6); }
.card-thumb.cat-organization { background: linear-gradient(135deg, var(--c-organization), #c6e6e2); }
.card-thumb.cat-cleaning { background: linear-gradient(135deg, var(--c-cleaning), #cfe3f6); }
.card-thumb.cat-home-office { background: linear-gradient(135deg, var(--c-home-office), #d6d7ee); }
.card-thumb.cat-pet { background: linear-gradient(135deg, var(--c-pet), #e9d3e1); }
.card-thumb.cat-garden { background: linear-gradient(135deg, var(--c-garden), #cfe6d3); }
.card-thumb.cat-energy { background: linear-gradient(135deg, var(--c-energy), #f3e3c0); }
.card-thumb.cat-tools { background: linear-gradient(135deg, var(--c-tools), #d8d2c9); }
.card-body { padding: 18px 20px 18px; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h2 { font-family: var(--font-head); font-size: 1.08rem; line-height: 1.4; margin: 0 0 8px; }
.card h2 a { color: var(--ink); }
.card h2 a:hover { color: var(--brand); text-decoration: none; }
.card-meta { color: var(--muted); font-size: 0.82rem; margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.03em; }
.card-meta a { color: var(--c-misc); font-weight: 600; }
.card.cat-kitchen .card-meta a { color: var(--c-kitchen); }
.card.cat-organization .card-meta a { color: var(--c-organization); }
.card.cat-cleaning .card-meta a { color: var(--c-cleaning); }
.card.cat-home-office .card-meta a { color: var(--c-home-office); }
.card.cat-pet .card-meta a { color: var(--c-pet); }
.card.cat-garden .card-meta a { color: var(--c-garden); }
.card.cat-energy .card-meta a { color: var(--c-energy); }
.card.cat-tools .card-meta a { color: var(--c-tools); }
.card-desc { color: #3d434b; font-size: 0.95rem; margin: 0; }

/* ---------- category chips ---------- */
.chips { padding: 6px 0 34px; }
.chips h2 { font-family: var(--font-head); font-size: 1.15rem; margin: 0 0 14px; }
.chip {
  display: inline-block; margin: 4px 8px 4px 0; padding: 8px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font-size: 0.9rem; font-weight: 500;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; transform: translateY(-1px); }

/* ---------- post page ---------- */
.breadcrumbs { color: var(--muted); font-size: 0.85rem; padding: 28px 0 6px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.post-head { padding: 16px 0 6px; }
.post-head h1 { font-family: var(--font-head); font-size: 2.1rem; line-height: 1.22; margin: 0 0 10px; letter-spacing: -0.025em; }
.post-meta { color: var(--muted); font-size: 0.9rem; margin: 0; }
.post-body { padding: 18px 0 12px; max-width: 760px; }
.toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin: 0 0 26px; box-shadow: var(--shadow-sm);
}
.toc h2 {
  font-family: var(--font-head); font-size: 1.05rem; margin: 0 0 12px;
  padding: 0; border: 0; letter-spacing: 0;
}
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin-bottom: 7px; font-size: 0.95rem; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--brand); }
.post-body h2 {
  font-family: var(--font-head); font-size: 1.45rem; margin: 42px 0 14px;
  padding-left: 14px; border-left: 4px solid var(--brand); letter-spacing: -0.01em;
}
.post-body p { margin: 0 0 20px; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 26px; }
.post-body li { margin-bottom: 8px; }
.post-body li::marker { color: var(--brand); font-weight: 700; }
.post-body table { border-collapse: collapse; width: 100%; margin: 0 0 24px; font-size: 0.92rem; box-shadow: var(--shadow-sm); border-radius: 10px; overflow: hidden; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.post-body th { background: #fbf7f1; font-weight: 600; }
.post-body tr:nth-child(even) td { background: #faf8f4; }
.post-body blockquote { border-left: 4px solid var(--brand); background: #fff8f1; margin: 0 0 20px; padding: 12px 20px; color: var(--muted); border-radius: 0 10px 10px 0; }
.post-body code { background: #f3ede4; border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.related { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 34px 0 16px; box-shadow: var(--shadow-sm); }
.related h2 { font-family: var(--font-head); font-size: 1.1rem; margin: 0 0 10px; }
.related ul { margin: 0; padding-left: 22px; }
.related li { margin-bottom: 6px; }
.ad-slot { margin: 26px 0; min-height: 90px; }

/* ---------- article illustrations ---------- */
.illustration { margin: 30px 0; }
.illustration img {
  width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- category / list pages ---------- */
.cat-head { padding: 34px 0 4px; }
.cat-head h1 { font-family: var(--font-head); font-size: 1.9rem; margin: 0 0 8px; letter-spacing: -0.02em; }

/* ---------- in-body context links ---------- */
.inline-links {
  background: #f6f3ee; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; font-size: 0.95rem; color: #3d434b;
}
.inline-links a { font-weight: 600; }

/* ---------- footer ---------- */
.site-foot { background: #22262c; color: #c6ccd4; margin-top: 48px; padding: 40px 0 44px; font-size: 0.9rem; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 34px; }
.foot-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #fff; margin: 0 0 6px; }
.foot-tag { color: #9aa3ad; margin: 0; }
.foot-title { font-weight: 600; color: #fff; margin: 0 0 10px; }
.foot-col a { display: block; color: #c6ccd4; padding: 3px 0; }
.foot-col a:hover { color: #ffb28a; text-decoration: none; }
.foot-note { color: #8b949e; font-size: 0.82rem; margin: 10px 0 4px; line-height: 1.6; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .head-inner { gap: 8px; }
  .tagline { display: none; }
  .nav { margin-left: 0; width: 100%; }
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 1.02rem; }
  .post-head h1 { font-size: 1.6rem; }
  .grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
}
