/* GardeningAZ — site styles. No web fonts: system stacks keep pages fast. */
:root {
  --forest: #244a33;
  --leaf: #3f7d4e;
  --sprout: #9cc77f;
  --mint: #e7f1df;
  --cream: #faf7f0;
  --paper: #ffffff;
  --clay: #b8562f;
  --clay-soft: #f6e4da;
  --ink: #1d2420;
  --muted: #5d6a62;
  --line: #e3ded2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 36, 32, .06), 0 6px 20px rgba(29, 36, 32, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: 2px; }
a:hover { color: var(--forest); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--forest); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 1.8em 0 .5em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(780px, 100% - 2.5rem); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--paper); padding: .5rem 1rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--clay); text-decoration: none; margin: 0; }
.meta, .byline, .updated { color: var(--muted); font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 240, .93); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--forest); font: 700 1.35rem/1 var(--serif); }
.logo b { color: var(--clay); }
.logo-mark { width: 36px; height: 36px; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; }
.main-nav a:hover { color: var(--leaf); }
.nav-search { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--mint); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { display: block; width: 22px; height: 2px; background: var(--forest); border-radius: 2px; }
.mobile-nav nav { position: absolute; right: 0; top: 50px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; min-width: 210px; display: grid; }
.mobile-nav nav a { padding: .7rem .9rem; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px; }
.mobile-nav nav a:hover { background: var(--mint); }
@media (max-width: 760px) { .main-nav { display: none; } .mobile-nav { display: block; } }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 1.3rem 0 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: .3rem; }
.breadcrumbs a { color: var(--muted); }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 85% -10%, #cfe5bd 0, transparent 60%), linear-gradient(180deg, #eef5e7, var(--cream)); border-bottom: 1px solid var(--line); }
.hero-inner { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); max-width: 820px; margin-left: max(1.25rem, calc((100% - 1160px) / 2)); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: .3em 0; }
.hero h1 em { color: var(--leaf); font-style: italic; }
.hero-dek { font-size: 1.2rem; color: var(--muted); max-width: 40ch; }
.search-form { display: flex; gap: .5rem; margin: 1.5rem 0; max-width: 620px; }
.search-form input { flex: 1; min-width: 0; font: inherit; padding: .85rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.search-form input:focus { outline: 3px solid var(--sprout); border-color: var(--leaf); }
.search-form button, .btn { font: 700 1rem var(--sans); padding: .85rem 1.5rem; border: 0; border-radius: 999px; background: var(--forest); color: #fff; cursor: pointer; }
.search-form button:hover, .btn:hover { background: var(--leaf); }

/* Sections */
.home-section { padding: 3rem 0 1rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.band { background: var(--mint); margin-top: 3rem; padding-bottom: 3rem; }
.page-head { padding: 1.5rem 0 1rem; }
.page-head > p { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

/* Letters */
.letters { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1rem 0 1.5rem; }
.letters a, .letters span { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 8px; font-weight: 700; font-family: var(--serif); text-decoration: none; }
.letters a { background: var(--paper); border: 1px solid var(--line); color: var(--forest); }
.letters a:hover, .letters a[aria-current] { background: var(--forest); color: #fff; border-color: var(--forest); }
.letters span { color: #c3c9c4; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card-img img, .card-ph { aspect-ratio: 1200 / 630; object-fit: cover; width: 100%; background: var(--mint); }
.card-body { padding: 1.1rem 1.25rem 1.3rem; }
.card h3 { margin: .35rem 0 .45rem; font-size: 1.22rem; }
.card h3 a { color: var(--forest); text-decoration: none; }
.card p { margin: 0 0 .6rem; color: var(--muted); font-size: .95rem; }
.card .meta { margin: 0; font-size: .82rem; }
.plant-strip { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.plant-strip a { display: grid; gap: .15rem; padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.plant-strip a:hover { border-color: var(--leaf); }
.plant-strip strong { font-family: var(--serif); color: var(--forest); font-size: 1.1rem; }
.plant-strip i, .plant-strip span { color: var(--muted); font-size: .88rem; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.calc-card { display: grid; gap: .3rem; padding: 1.2rem 1.3rem; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--muted); font-size: .92rem; }
.calc-card strong { color: var(--forest); font-family: var(--serif); font-size: 1.12rem; }
.calc-card:hover strong { color: var(--leaf); }
.calc-icon { font-size: 1.6rem; }
.topic-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.topic-grid a { display: grid; gap: .25rem; padding: 1.2rem; border-left: 4px solid var(--sprout); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; text-decoration: none; color: var(--muted); font-size: .93rem; }
.topic-grid strong { color: var(--forest); font-size: 1.05rem; }
.chip-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-list a, .chip-list li:not(:has(a)) { display: inline-block; padding: .4rem .9rem; border-radius: 999px; background: var(--mint); color: var(--forest); text-decoration: none; font-weight: 600; font-size: .9rem; }
.chip-list a:hover { background: var(--forest); color: #fff; }

/* Article */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }
.article-wrap > .breadcrumbs { grid-column: 1 / -1; }
.article { min-width: 0; max-width: 740px; }
.article-head { margin-top: 1rem; }
.dek { font-size: 1.2rem; color: var(--muted); margin: 0 0 .8rem; }
.disclosure { font-size: .85rem; background: var(--clay-soft); padding: .6rem .9rem; border-radius: 8px; }
.hero-img { border-radius: var(--radius); margin: 1.5rem 0; aspect-ratio: 1200/630; object-fit: cover; width: 100%; }
.sidebar { position: sticky; top: 90px; margin-top: 4.5rem; display: grid; gap: 1.5rem; }
.side-box { background: var(--paper); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); display: grid; gap: .55rem; }
.side-box h2 { font-size: 1.1rem; margin: 0 0 .3rem; }
.side-box a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.side-box .more { color: var(--clay); }
@media (max-width: 980px) { .article-wrap { grid-template-columns: 1fr; } .sidebar { position: static; margin-top: 0; } }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; margin: 1.5rem 0; }
.toc summary { font-weight: 700; cursor: pointer; color: var(--forest); }
.toc ol { margin: .6rem 0 0; padding-left: 1.2rem; }
.toc li { margin: .25rem 0; }
.prose { font-size: 1.06rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.5em 0; padding: 1rem 1.3rem; background: var(--mint); border-left: 4px solid var(--leaf); border-radius: 0 10px 10px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { padding: .65rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--mint); color: var(--forest); }
.prose tr:last-child td { border-bottom: 0; }
.pin-figure { margin: 2.5rem auto; max-width: 400px; text-align: center; }
.pin-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.pin-figure figcaption { font-size: .88rem; color: var(--muted); margin-top: .6rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2rem 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share span { font-weight: 700; margin-right: .3rem; }
.share a { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 600; }
.share a.share-pin { background: #e60023; color: #fff; border-color: #e60023; }
.author-box { display: flex; gap: 1rem; padding: 1.3rem; background: var(--paper); border-radius: var(--radius); margin: 2rem 0; }
.author-box img { border-radius: 50%; flex: none; }
.author-box p { margin: 0 0 .3rem; font-size: .93rem; color: var(--muted); }
.author-head { display: flex; gap: 1.5rem; align-items: center; }
.author-head img { border-radius: 50%; }
.related { padding: 1rem 0 3rem; }

/* Ads: reserve space so pages don't jump when ads load */
.ad-slot { min-height: 280px; margin: 2rem 0; display: grid; place-items: center; background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(0,0,0,.015) 10px 20px); border-radius: 8px; }
.ad-sidebar { min-height: 600px; }
.ad-slot::before { content: "Advertisement"; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #9aa39d; align-self: start; padding-top: .3rem; }
@media (max-width: 980px) { .ad-sidebar { display: none; } }

/* Plant pages */
.plant { max-width: 860px; }
.plant-head h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .5em; }
.botanical { font-style: italic; font-weight: 400; color: var(--muted); font-size: .55em; }
.aka { color: var(--muted); margin: 0 0 .5rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0 2rem; }
.facts div { background: var(--paper); padding: .85rem 1rem; }
.facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.facts dd { margin: .2rem 0 0; font-weight: 600; color: var(--forest); }
.tox { background: var(--clay-soft); border-radius: var(--radius); padding: .3rem 1.4rem 1rem; margin: 2rem 0; }
.tox h2 { margin-top: 1rem; }
.tox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tox-grid dt { font-weight: 700; }
.tox-grid dd { margin: 0; }
.tox .source { font-size: .85rem; color: var(--muted); }
.glossary { columns: 2 340px; column-gap: 2.5rem; }
.letter-group { break-inside: avoid; margin-bottom: 1.5rem; }
.letter-group h2 { margin: 0 0 .5rem; border-bottom: 2px solid var(--sprout); padding-bottom: .2rem; }
.letter-group ul { list-style: none; padding: 0; margin: 0; }
.letter-group li { padding: .55rem 0; border-bottom: 1px dashed var(--line); display: grid; }
.letter-group a { text-decoration: none; }
.letter-group a i { color: var(--muted); font-size: .9rem; margin-left: .3rem; }
.letter-group span { font-size: .84rem; color: var(--muted); }
.filter input { width: 100%; max-width: 520px; font: inherit; padding: .8rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }

/* Calculators */
.calc { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.2rem, 3vw, 2rem); margin: 1rem 0 2rem; border-top: 5px solid var(--leaf); }
.calc-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.calc label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; color: var(--forest); }
.calc input, .calc select { font: inherit; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream); width: 100%; }
.calc input:focus, .calc select:focus { outline: 3px solid var(--sprout); border-color: var(--leaf); }
.calc .hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.calc-result { margin-top: 1.5rem; padding: 1.2rem 1.4rem; background: var(--mint); border-radius: 12px; }
.calc-result:empty { display: none; }
.calc-result .big { font: 700 2rem/1.1 var(--serif); color: var(--forest); margin: 0 0 .3rem; }
.calc-result p { margin: .3rem 0; }
.calc-result table { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--paper); border-radius: 8px; overflow: hidden; margin-top: .5rem; }
.calc-result th, .calc-result td { padding: .5rem .7rem; text-align: left; border-bottom: 1px solid var(--line); }
.calc-result th { color: var(--forest); }
.calc-actions { margin-top: 1.2rem; display: flex; gap: .6rem; flex-wrap: wrap; }

/* Search */
#results { display: grid; gap: 1rem; margin-bottom: 3rem; }
.result { background: var(--paper); padding: 1rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.result a { font: 700 1.15rem var(--serif); text-decoration: none; }
.result p { margin: .3rem 0 0; color: var(--muted); font-size: .95rem; }
.result .kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--clay); font-weight: 700; }
.not-found { padding: 4rem 0; text-align: center; }
.not-found .search-form, .not-found .chip-list { justify-content: center; margin-inline: auto; }

/* Footer */
.site-footer { background: var(--forest); color: #d8e4d6; margin-top: 4rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer-grid h2 { color: #fff; font-size: 1rem; margin: 0 0 .7rem; font-family: var(--sans); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-grid a { color: #d8e4d6; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.logo-light { color: #fff; }
.logo-light b { color: var(--sprout); }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0 2rem; font-size: .82rem; color: #a9bba7; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

@media print { .site-header, .site-footer, .sidebar, .ad-slot, .share, .related { display: none; } }
