/*
VOICE: friendly, practical plant shop owner — calm, confident, no hype
IDEA: a sunlit plant shelf; pages behave like well-labelled nursery tags
PICTURE: window light falling on a shelf of potted plants (hero SVG)
COLOUR and TYPE: white ground, deep leaf green, fresh green, sunny yellow accent; Fraunces + Figtree
LAYOUT: full-width green bands, reading column for articles, card grid of guides
*/
:root{color-scheme:light dark;
--bg:light-dark(#ffffff,#0f1a14);--soft:light-dark(#eef5ef,#16261d);--ink:light-dark(#14231a,#e6efe8);
--muted:light-dark(#4f6357,#a8bbae);--deep:light-dark(#163d2b,#0b2317);--leaf:light-dark(#2f7d4a,#6cc08a);
--sun:#f4c542;--line:light-dark(#d9e6dc,#26392d);--card:light-dark(#ffffff,#132119)}
:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark}
*{box-sizing:border-box;min-width:0}
html{scroll-padding-top:72px}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.65 Figtree,system-ui,-apple-system,Segoe UI,sans-serif;overflow-x:clip}
a{color:var(--leaf);text-underline-offset:3px}
a:focus-visible,button:focus-visible{outline:3px solid var(--sun);outline-offset:2px;border-radius:4px}
h1,h2,h3{font-family:Fraunces,Georgia,serif;line-height:1.1;text-wrap:balance;margin:0 0 .5em}
h1{font-size:clamp(34px,5vw,52px);font-weight:700}
h2{font-size:clamp(24px,3vw,32px);font-weight:650;margin-top:1.6em}
h3{font-size:21px;font-weight:650}
.wrap{max-width:1240px;margin:0 auto}
.band{padding:clamp(28px,4vw,64px) max(5vw,16px)}

/* header */
.top{background:var(--deep);color:#fff;padding:14px max(5vw,16px)}
.top .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:8px 28px}
.logo{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font:700 24px Fraunces,Georgia,serif}
.logo svg{width:30px;height:30px}
.top nav{display:flex;flex-wrap:wrap;gap:4px 20px;margin-left:auto}
.top nav a{color:#d6eadb;text-decoration:none;font-weight:600;font-size:15px;padding:10px 0}
.top nav a:hover{color:#fff}

/* hero */
.hero{background:var(--deep);color:#fff;padding-top:clamp(20px,3vw,40px);padding-bottom:0}
.hero .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:clamp(20px,4vw,56px);align-items:end}
.hero-text{padding-bottom:clamp(28px,5vw,72px)}
.hero h1{color:#fff;font-size:clamp(36px,5.4vw,58px)}
.hero p{color:#cfe3d5;font-size:19px;max-width:34em}
.hero .fig{min-height:0;aspect-ratio:6/5}
.btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.btn{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border-radius:999px;font-weight:700;text-decoration:none;border:2px solid transparent}
.btn.sun{background:var(--sun);color:#14231a}
.btn.ghost{border-color:#5d8c6d;color:#fff}
.fig{position:relative}.fig>svg{position:absolute;inset:0;width:100%;height:100%}

/* cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:20px}
.card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:22px;text-decoration:none;color:var(--ink);transition:transform .2s,box-shadow .2s}
.card:hover{transform:translateY(-3px);box-shadow:0 10px 30px -12px rgba(22,61,43,.35)}
.card .tag{align-self:flex-start;background:var(--soft);color:var(--leaf);font-size:13px;font-weight:700;padding:3px 10px;border-radius:999px;margin-bottom:12px}
.card h3{margin-bottom:8px}
.card p{color:var(--muted);font-size:15px;margin:0}
.section-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:22px}
.section-head h2{margin:0}

/* plant finder */
.finder{background:var(--soft)}
.filters{display:flex;flex-wrap:wrap;gap:22px;margin:6px 0 24px}
.filters fieldset{border:0;padding:0;margin:0}
.filters legend{font-weight:700;font-size:14px;color:var(--muted);margin-bottom:8px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips button{font:inherit;font-size:15px;font-weight:600;min-height:44px;padding:0 16px;border-radius:999px;border:2px solid var(--line);background:var(--card);color:var(--ink);cursor:pointer}
.chips button[aria-pressed=true]{background:var(--deep);border-color:var(--deep);color:#fff}
.plants{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:14px}
.plant{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:6px}
.plant b{font-family:Fraunces,Georgia,serif;font-size:19px}
.plant small{color:var(--muted);font-size:14px}
.badges{display:flex;flex-wrap:wrap;gap:6px}
.badge{font-size:13px;font-weight:600;padding:2px 9px;border-radius:999px;background:var(--soft);white-space:nowrap}
.badge.safe{background:#d6f0dd;color:#14532d}.badge.toxic{background:#fde2d8;color:#7a2a12}
.plant a{font-weight:700;font-size:15px;margin-top:auto}
.empty{color:var(--muted)}

/* article */
.article-head{background:var(--deep);color:#fff}
.article-head .wrap{max-width:760px;margin:0 auto}
.prose>*{max-width:760px;margin-left:auto;margin-right:auto}
.article-head h1{color:#fff}
.article-head .meta{color:#b9d4c1;font-size:15px}
.article-head .tag{display:inline-block;background:var(--sun);color:#14231a;font-weight:700;font-size:13px;padding:3px 10px;border-radius:999px;margin-bottom:14px}
.lede{font-size:19px;color:#d6eadb;max-width:36em}
.prose{padding:clamp(24px,4vw,48px) max(5vw,16px)}
.prose li{margin-bottom:.4em}
.prose blockquote{margin:1.4em 0;padding:16px 20px;background:var(--soft);border-radius:12px}
.prose blockquote p{margin:0}
.prose table{width:100%;border-collapse:collapse;font-size:15px;margin:1.2em 0}
.prose th,.prose td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top}
.prose th{background:var(--soft);font-weight:700}
.table-scroll{overflow-x:auto}
.disclosure{font-size:14px;color:var(--muted);background:var(--soft);border-radius:12px;padding:12px 16px;margin-bottom:24px}
a.shop{font-weight:700}
a.shop::after{content:" ↗";font-size:.85em}
.related{border-top:1px solid var(--line);margin-top:40px;padding-top:8px}
.ad-slot{margin:28px 0}

/* footer */
footer{background:var(--deep);color:#b9d4c1;font-size:15px}
footer .wrap{display:flex;flex-wrap:wrap;gap:12px 28px;justify-content:space-between}
footer a{color:#fff}
footer nav{display:flex;flex-wrap:wrap;gap:8px 20px}
footer p{margin:0;max-width:52ch}

@media(max-width:760px){.hero .wrap{grid-template-columns:minmax(0,1fr)}.hero-text{padding-bottom:0}.hero .fig{max-width:520px}.top nav{margin-left:0}}
@media(max-width:600px){body{font-size:16px}.prose table{font-size:14px}}
@media(prefers-reduced-motion:reduce){.card,.card:hover{transition:none;transform:none}*{animation:none!important}}
