/* Dogwood DIY - shared stylesheet. Tokens first, then layout, then components. */
:root {
  --ink: #1f2a24;
  --ink-2: #44524a;
  --muted: #6b776f;
  --paper: #fbf8f3;
  --cream: #f3ede3;
  --line: #e4dccf;
  --white: #ffffff;
  --forest: #2f4a3a;
  --forest-2: #3d6150;
  --sage: #8fa98f;
  --sage-soft: #e3ebe1;
  --blossom: #e8a1b0;
  --blossom-soft: #fbe9ed;
  --brick: #b5573b;
  --brick-soft: #f6e2d9;
  --gold: #c9a35b;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px -12px rgba(31, 42, 36, .25);
  --shadow-lg: 0 30px 60px -20px rgba(31, 42, 36, .35);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 243, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); background: rgba(251, 248, 243, .95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 38px; height: 38px; flex: none; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.brand:hover svg { transform: rotate(45deg); }
.brand em { font-style: italic; color: var(--brick); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem;
  padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--sage-soft); color: var(--forest); }
.main-nav .nav-cta { background: var(--forest); color: #fff; margin-left: 6px; }
.main-nav .nav-cta:hover { background: var(--brick); color: #fff; }
.menu-btn {
  display: none; position: relative; width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--white); cursor: pointer; z-index: 120;
}
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s, opacity .25s, top .35s; }
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 22px; }
.menu-btn span:nth-child(3) { top: 29px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
.nav-backdrop { display: none; }

@media (max-width: 960px) {
  /* backdrop-filter would make the header the containing block for the fixed nav panel */
  .site-header, .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .menu-btn { display: block; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 380px);
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: calc(var(--header-h) + 16px) 22px 28px;
    background: var(--paper); box-shadow: var(--shadow-lg);
    transform: translateX(105%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
    overflow-y: auto; z-index: 110; visibility: hidden;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav a { font-size: 1.15rem; padding: 14px 16px; border-radius: 14px; opacity: 0; transform: translateX(20px); transition: opacity .35s, transform .35s, background .2s; }
  .main-nav.is-open a { opacity: 1; transform: none; }
  .main-nav.is-open a:nth-child(2) { transition-delay: .04s; }
  .main-nav.is-open a:nth-child(3) { transition-delay: .08s; }
  .main-nav.is-open a:nth-child(4) { transition-delay: .12s; }
  .main-nav.is-open a:nth-child(5) { transition-delay: .16s; }
  .main-nav.is-open a:nth-child(6) { transition-delay: .2s; }
  .main-nav.is-open a:nth-child(7) { transition-delay: .24s; }
  .main-nav .nav-cta { margin: 12px 0 0; text-align: center; }
  .nav-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(20, 28, 24, .45);
    opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 95;
  }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
}

/* ---------- Buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 1rem/1 var(--sans); text-decoration: none;
  background: var(--forest); color: #fff; transition: transform .2s, background .2s, box-shadow .2s;
  box-shadow: 0 10px 24px -12px rgba(47, 74, 58, .8);
}
.btn:hover { background: var(--brick); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.btn-light:hover { background: var(--blossom-soft); color: var(--ink); }
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--sage-soft); color: var(--forest); text-decoration: none;
}
.chip.c-decor-design { background: var(--blossom-soft); color: #9b3f56; }
.chip.c-home-renovation { background: var(--brick-soft); color: #8a3a22; }
.chip.c-garden-outdoor { background: var(--sage-soft); color: var(--forest); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brick); margin-bottom: 14px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: min(88vh, 820px); display: grid; align-items: end;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: -8% 0 0; z-index: -2; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,30,25,.4) 0%, rgba(20,30,25,.45) 45%, rgba(20,30,25,.88) 100%),
              radial-gradient(80% 60% at 10% 100%, rgba(47,74,58,.55), transparent 70%);
}
.hero-content { padding: 140px 0 90px; max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6.4vw, 4.8rem); text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--blossom); }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.9); max-width: 600px; }
.hero .eyebrow { color: var(--blossom); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px 44px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.25); }
.hero-stats b { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: #fff; }
.hero-stats span { font-size: .85rem; color: rgba(255,255,255,.75); }
#petals { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, -1%); } }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; padding: 80px 0 60px; background: var(--cream); overflow: hidden; isolation: isolate; }
.page-hero .blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55; animation: floaty 14s ease-in-out infinite alternate; }
.page-hero .blob.b1 { width: 380px; height: 380px; background: var(--blossom-soft); top: -120px; right: -60px; }
.page-hero .blob.b2 { width: 300px; height: 300px; background: var(--sage-soft); bottom: -140px; left: -80px; animation-delay: -6s; }
.page-hero h1 { max-width: 900px; text-wrap: balance; }
.page-hero p.lead { max-width: 720px; font-size: 1.15rem; color: var(--ink-2); }
@keyframes floaty { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.12); } }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brick); }
.crumbs span { margin: 0 6px; opacity: .6; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--cream); }
.section.dark { background: var(--forest); color: #e9efe8; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head p { max-width: 560px; color: var(--ink-2); margin: 0; }
.section.dark .section-head p { color: #cfdccf; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--cream); }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.card:hover .media img { transform: scale(1.07); }
.card .media .chip { position: absolute; left: 16px; top: 16px; backdrop-filter: blur(6px); }
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.28rem; margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.card .meta { margin-top: auto; padding-top: 10px; font-size: .82rem; color: var(--muted); display: flex; gap: 14px; }
.card.is-hidden { display: none; }

.feature-card { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.feature-card .media { min-height: 380px; overflow: hidden; }
.feature-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.feature-card:hover .media img { transform: scale(1.05); }
.feature-card .body { padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.feature-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.feature-card h3 a { color: var(--ink); text-decoration: none; }
.feature-card h3 a::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 820px) { .feature-card { grid-template-columns: 1fr; } .feature-card .media { min-height: 240px; } .feature-card .body { padding: 28px; } }

/* Category tiles */
.cat-tile { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; color: #fff; text-decoration: none; isolation: isolate; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(18,26,22,.85)); transition: opacity .3s; }
.cat-tile:hover img { transform: scale(1.08) rotate(.5deg); }
.cat-tile .inner { position: absolute; left: 24px; right: 24px; bottom: 24px; }
.cat-tile h3 { color: #fff; font-size: 1.6rem; margin-bottom: 4px; }
.cat-tile p { margin: 0; font-size: .95rem; color: rgba(255,255,255,.85); }
.cat-tile .count { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,.2); backdrop-filter: blur(8px); padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
@media (max-width: 640px) { .cat-tile { aspect-ratio: 16/11; } }

/* Project finder */
.finder { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.finder button {
  border: 1px solid var(--line); background: var(--white); color: var(--ink-2); cursor: pointer;
  padding: 11px 18px; border-radius: 999px; font: 700 .92rem var(--sans); transition: all .2s;
}
.finder button:hover { border-color: var(--forest-2); color: var(--forest); }
.finder button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(47,74,58,.9); }

/* Split / story */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .stack { position: relative; }
.split .stack img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split .stack .inset { position: absolute; width: 46%; right: -6%; bottom: -10%; border: 8px solid var(--paper); border-radius: 24px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 48px; } .split .stack .inset { right: 0; } }
.badge-float { position: absolute; left: -18px; top: 24px; background: var(--white); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: .9rem; animation: bob 5s ease-in-out infinite; }
.badge-float b { font-family: var(--serif); font-size: 1.6rem; color: var(--brick); }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 640px) { .badge-float { left: 8px; } }

/* Tools teaser */
.tool-card { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 28px; transition: background .3s, transform .3s; text-decoration: none; color: inherit; display: block; }
.tool-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); color: inherit; }
.tool-card .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--blossom); color: var(--ink); margin-bottom: 16px; font-size: 1.5rem; }
.tool-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.tool-card p { margin: 0; color: #cfdccf; font-size: .95rem; }
.section:not(.dark) .tool-card { background: var(--white); border-color: var(--line); box-shadow: var(--shadow); }
.section:not(.dark) .tool-card p { color: var(--ink-2); }
.section:not(.dark) .tool-card .ico { background: var(--sage-soft); }

/* Marquee */
.marquee { overflow: hidden; background: var(--ink); color: var(--cream); padding: 18px 0; white-space: nowrap; }
.marquee .track { display: inline-flex; gap: 48px; animation: marquee 38s linear infinite; padding-left: 48px; }
.marquee span { font-family: var(--serif); font-size: 1.3rem; font-style: italic; display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✿"; color: var(--blossom); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Newsletter / CTA band */
.cta-band { position: relative; border-radius: var(--radius-lg); padding: 64px; overflow: hidden; background: linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 60%, #5b7d66 100%); color: #fff; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(232,161,176,.55), transparent 70%); right: -120px; top: -160px; z-index: -1; animation: floaty 12s ease-in-out infinite alternate; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; }
.cta-band form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; max-width: 520px; }
.cta-band input { flex: 1 1 220px; padding: 15px 20px; border-radius: 999px; border: 0; font: 500 1rem var(--sans); }
@media (max-width: 640px) { .cta-band { padding: 36px 24px; } }

/* ---------- Article ---------- */
.article-hero { padding: 64px 0 0; background: var(--cream); position: relative; }
.article-hero .wrap { max-width: 920px; }
.article-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); text-wrap: balance; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .9rem; color: var(--muted); margin: 18px 0 34px; }
.article-meta .author { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--blossom), var(--brick)); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; }
.article-cover { max-width: 1100px; margin: 0 auto; padding: 0 16px; position: relative; top: 0; }
.article-cover img { width: 100%; aspect-ratio: 16/8.5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; max-width: 1140px; margin: 0 auto; padding: 64px 16px 40px; }
@media (max-width: 1020px) { .article-layout { grid-template-columns: 1fr; gap: 32px; } }
.prose { font-size: 1.08rem; min-width: 0; }
.prose h2 { margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brick); font-weight: 700; }
.prose blockquote { margin: 1.8em 0; padding: 22px 28px; border-left: 4px solid var(--blossom); background: var(--blossom-soft); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--serif); font-size: 1.25rem; font-style: italic; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; text-align: center; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .97rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--cream); font-weight: 700; }
.prose p.dropcap::first-letter { font-family: var(--serif); float: left; font-size: 4.2rem; line-height: .8; padding: 8px 10px 0 0; color: var(--brick); }
.prose p.note { font-size: .85rem; color: var(--muted); }
.callout { display: flex; gap: 14px; padding: 20px 22px; border-radius: var(--radius); background: var(--sage-soft); margin: 1.6em 0; }
.callout::before { content: "💡"; font-size: 1.4rem; line-height: 1.4; }
.callout.warn { background: var(--brick-soft); }
.callout.warn::before { content: "⚠️"; }
.callout p:last-child { margin: 0; }
.supply { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin: 1.6em 0; }
.supply h3 { margin-top: 0; font-size: 1.15rem; }
.supply ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.supply li { padding-left: 28px; position: relative; margin: 0; }
.supply li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--sage-soft); color: var(--forest); display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
@media (max-width: 560px) { .supply ul { grid-template-columns: 1fr; } }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 22px 62px; margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 14px; background: var(--forest); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.steps > li::after { content: ""; position: absolute; left: 20px; top: 48px; bottom: 6px; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps > li strong:first-child { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
.takeaways { background: var(--forest); color: #e9efe8; border-radius: var(--radius-lg); padding: 28px 30px; margin: 0 0 2em; }
.takeaways h2 { color: #fff; font-size: 1.3rem; margin: 0 0 10px !important; }
.takeaways ul { margin: 0; }
.takeaways li::marker { color: var(--blossom); }

.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar .sticky { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 24px; }
.side-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-box h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0; }
.toc a { display: flex; gap: 10px; padding: 7px 0; text-decoration: none; color: var(--ink-2); font-size: .93rem; line-height: 1.4; border-left: 2px solid transparent; padding-left: 12px; margin-left: -12px; transition: color .2s, border-color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--muted); font-weight: 700; font-size: .8rem; padding-top: 2px; }
.toc a.active, .toc a:hover { color: var(--forest); border-color: var(--brick); }
.author-box { display: flex; gap: 14px; align-items: flex-start; }
.author-box .avatar { width: 56px; height: 56px; font-size: 1.3rem; flex: none; }
.author-box p { font-size: .92rem; color: var(--ink-2); margin: 4px 0 0; }
@media (max-width: 1020px) { .sidebar .sticky { position: static; } .sidebar .toc { display: none; } }

.share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 700; }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); text-decoration: none; font: 600 .88rem var(--sans); cursor: pointer; }
.share a:hover, .share button:hover { background: var(--forest); color: #fff; border-color: var(--forest); }

.faq { margin-top: 2.4em; }
.faq details { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--sage-soft); color: var(--forest); display: grid; place-items: center; font-size: 1.2rem; transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 22px 18px; color: var(--ink-2); }
.faq details > div p:last-child { margin: 0; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--blossom), var(--brick)); z-index: 130; transition: width .1s linear; }

/* ---------- Tools ---------- */
.tool {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow); margin: 2em 0;
}
.tool h3 { margin-top: 0 !important; display: flex; gap: 10px; align-items: center; }
.tool .tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 18px 0; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
  font: 500 1rem var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest-2); box-shadow: 0 0 0 4px var(--sage-soft); }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type=range] { flex: 1; accent-color: var(--brick); padding: 0; border: 0; background: none; box-shadow: none; }
.range-row output { min-width: 52px; font-weight: 800; color: var(--brick); }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 10px; }
.result { background: var(--cream); border-radius: 16px; padding: 16px 18px; }
.result b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; color: var(--forest); transition: transform .25s; }
.result b.pop { animation: pop .35s; }
.result span { font-size: .82rem; color: var(--muted); font-weight: 600; }
@keyframes pop { 40% { transform: scale(1.12); color: var(--brick); } }
.tool-note { font-size: .86rem; color: var(--muted); margin: 14px 0 0; }
.schmear-canvas { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 16px; display: block; margin-top: 18px; background: #8c3f2b; }
.budget-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.budget-table td, .budget-table th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.budget-table input { width: 100%; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 10px; font: 500 .95rem var(--sans); background: var(--paper); }
.budget-table .rm { border: 0; background: var(--brick-soft); color: var(--brick); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-weight: 800; }
.budget-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.btn-outline { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); box-shadow: none; }
.btn-outline:hover { background: var(--forest); color: #fff; }
@media (max-width: 640px) {
  .tool { padding: 22px 18px; }
  .budget-table thead { display: none; }
  .budget-table tr { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .budget-table td { border: 0; padding: 0; }
  .budget-table td:first-child { grid-column: 1 / -1; }
}

/* ---------- Forms (contact) ---------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.form-card .field { margin-bottom: 16px; }
.form-card textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 14px; background: var(--sage-soft); color: var(--forest); font-weight: 600; margin-bottom: 18px; }
.notice.err { background: var(--brick-soft); color: #8a3a22; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--blossom-soft); font-size: 1.2rem; flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: #17201b; color: #b9c5bc; padding: 80px 0 30px; margin-top: 0; position: relative; overflow: hidden; }
.site-footer a { color: #dfe7e0; text-decoration: none; }
.site-footer a:hover { color: var(--blossom); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .95rem; }
.footer-grid .brand { color: #fff; margin-bottom: 14px; }
.footer-grid p { font-size: .95rem; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.footer-flower { position: absolute; right: -60px; bottom: -60px; width: 320px; opacity: .06; pointer-events: none; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--forest); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .3s; z-index: 90; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brick); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

/* Legal/plain */
.plain { max-width: 820px; margin: 0 auto; padding: 64px 16px 96px; }
.plain h2 { margin-top: 1.6em; font-size: 1.6rem; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .sidebar, .share, .to-top, .progress, .cta-band { display: none !important; }
  .article-layout { display: block; }
}
