/* Rooted by Garden Hero: site styles.
   Look: the Garden Hero TV decks (deck green, warm cream, Poppins headings, soft corners) inside
   the Oct 5 rules (warm tones, no stark white, photo-led, no eyebrows, 18px body floor).
   See DESIGN.md. Fonts are self-hosted; no third-party font requests. ASCII only. */

@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("/assets/fonts/source-sans-3.woff2") format("woff2"); }

:root {
  --green: #2b7530;
  --green-deep: #1d4a22;
  --green-ink: #163a1a;
  --leaf: #5baa4f;
  --leaf-wash: #e7efd9;
  --cream: #faf6f0;
  --card: #fffaf1;
  --sand: #f1e9dc;
  --line: #e2d8c6;
  --ink: #1b261d;
  --soft: #4a5a4e;
  --on-green: #faf6f0;
  --on-green-soft: #d9e6d3;
  --display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --r-card: 10px;
  --r-control: 8px;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html:has(body.has-signup-bar) { scroll-padding-bottom: 84px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html[data-motion="reduced"] { scroll-behavior: auto; }
body.has-signup-bar { padding-bottom: 76px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { color: var(--green-deep); }
::selection { background: var(--leaf); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: var(--r-control); }
.on-green :focus-visible, .foot :focus-visible, .signup-bar :focus-visible, .gift :focus-visible, .tv :focus-visible, .close :focus-visible, .signup-card :focus-visible { outline-color: var(--on-green); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: var(--r-control); }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.measure { max-width: 62ch; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--soft); }

/* Buttons and links */
.btn { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.2; padding: 14px 22px; border-radius: var(--r-control); background: var(--green); color: var(--on-green); text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; transition: background-color 160ms var(--ease), transform 120ms var(--ease); }
.btn:hover { background: var(--green-deep); color: var(--on-green); }
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--cream); color: var(--green-deep); }
.btn-light:hover { background: var(--leaf-wash); color: var(--green-ink); }
.link-strong { font-weight: 700; color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.on-green .link-strong { color: var(--on-green); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(250, 246, 240, 0.96); border-bottom: 1px solid var(--line); }
.nav-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); height: 72px; display: flex; align-items: center; gap: 28px; }
.nav-logo { flex: 0 0 auto; display: block; }
.nav-logo img { height: 44px; width: auto; }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.02rem; display: inline-flex; align-items: center; min-height: 44px; }
.nav nav a:hover { color: var(--green); }
.nav nav a.btn { color: var(--on-green); font-size: 0.98rem; padding: 11px 18px; justify-content: center; }
@media (max-width: 860px) { .nav nav { gap: 18px; } .nav-in { height: 64px; gap: 16px; } .nav-logo img { height: 38px; } }
@media (max-width: 760px) { .nav nav a[href="/tv/"], .nav nav a[href="/#pantry"], .nav nav a[href="#pantry"] { display: none; } .nav nav { gap: 14px; } }
@media (max-width: 420px) { .nav-in { gap: 10px; } .nav nav a.btn { padding: 10px 14px; } }

/* Subscribe form shell: GHL's form_embed.js sizes the iframe; never fix its height here. */
.ghl-embed { width: 100%; max-width: 520px; min-height: 140px; } /* reserves the form slot so the page does not jump; restored from the live site */
.ghl-embed iframe { display: block; width: 100%; border: 0; }
.form-note { font-size: 1.125rem; color: var(--soft); margin-top: 6px; }
.on-green .form-note, .close .form-note { color: var(--on-green); }

/* Hero */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.nameplate { font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 1.4vw, 1.15rem); letter-spacing: 0.32em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.hero h1 { max-width: 17ch; font-size: clamp(2.3rem, 4.2vw, 3.3rem); }
/* The form sits on a deep-green card: it draws the eye, and the GHL form CSS was built for a green ground. */
.signup-card { background: var(--green-deep); border-radius: var(--r-card); padding: 14px 16px 12px; max-width: 540px; }
.signup-card .form-note { color: var(--on-green-soft); margin: 2px 4px 0; }
/* Links in notes on green grounds read cream and underlined (r4: they were green on green). */
.on-green .form-note a, .close .form-note a, .signup-card .form-note a, .tv .form-note a { color: var(--on-green); text-decoration: underline; }
.on-green .form-note a:hover, .close .form-note a:hover, .signup-card .form-note a:hover, .tv .form-note a:hover { color: var(--on-green); text-decoration-thickness: 3px; }
.hero .lede { margin: 18px 0 22px; max-width: 40ch; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--r-card); }
.hero-days { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 1.125rem; color: var(--soft); }
.hero-days b { font-family: var(--display); font-weight: 600; color: var(--green); margin-right: 6px; }
.hero-days .strap { flex-basis: 100%; font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-media { order: 2; } .hero h1 { max-width: 20ch; } }


/* Category tiles: photo with a green label band */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.tile { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; text-decoration: none; background: var(--green-deep); }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 500ms var(--ease); }
.tile-band { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--green); color: var(--on-green); padding: 13px 16px; font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.tile-band span:last-child { font-family: var(--body); font-weight: 700; white-space: nowrap; flex: 0 0 auto; }
.tile:nth-child(2n) .tile-band { background: var(--green-deep); }
.tile:hover .tile-band { background: var(--green-ink); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles { gap: 10px; } .tile-band { font-size: 0.98rem; padding: 11px 12px; } }

/* Sample issue */
.sample-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.sample-intro p { margin: 14px 0 18px; color: var(--soft); max-width: 40ch; }
.sample-photo { margin: 26px 0 0; }
.sample-photo img { border-radius: var(--r-card); }
.sample-photo figcaption { font-size: 1.125rem; color: var(--soft); margin-top: 8px; }
.slip { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(22px, 3vw, 40px); }
.slip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--green); }
.slip-name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); }
.slip-meta { text-align: right; font-size: 1rem; color: var(--soft); line-height: 1.35; }
.slip h3 { margin: 22px 0 10px; font-size: 1.2rem; }
.hits { margin: 0; padding-left: 20px; }
.hits li { margin-bottom: 10px; }
.hits li::marker { color: var(--leaf); }
.slip-foot { margin-top: 16px; font-weight: 600; }
@media (max-width: 900px) { .sample-grid { grid-template-columns: 1fr; } }

/* How it works */
.how { background: var(--sand); }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.step-num { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--green); }
.steps h3 { font-size: 1.2rem; margin-bottom: 4px; }
.steps p { color: var(--soft); }
.stakes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.stakes > div { border-radius: var(--r-card); padding: 22px 24px; }
.stakes .with { background: var(--green); color: var(--on-green); }
.stakes .with h3 { color: var(--on-green); }
.stakes .without { background: var(--card); border: 1px solid var(--line); }
.stakes h3 { font-size: 1.15rem; margin-bottom: 6px; }
@media (max-width: 900px) { .steps, .stakes { grid-template-columns: 1fr; } }

/* Blog: a lead post and five */
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 32px; }
.post { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.post img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-card); transition: transform 500ms var(--ease); }
.post-media { overflow: hidden; border-radius: var(--r-card); }
.post h3 { margin-top: 12px; font-size: 1.15rem; line-height: 1.3; }
.post-cat { margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--green); }
.post:hover h3 { color: var(--green-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.post.is-lead { grid-column: span 2; grid-row: span 2; }
.post.is-lead h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.post.is-lead img { aspect-ratio: 16 / 11; }
.more-row { margin-top: 28px; }
@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post.is-lead { grid-row: auto; } }
@media (max-width: 560px) { .posts-grid { grid-template-columns: 1fr; } .post.is-lead { grid-column: auto; } }

/* Garden Hero TV band */
.tv { background: var(--green-deep); color: var(--on-green); }
.tv-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: stretch; }
.tv-grid img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.tv-copy { padding: clamp(36px, 5vw, 72px) var(--pad); align-self: center; max-width: 560px; }
.tv-copy h2 { color: var(--on-green); }
.tv-copy p { color: var(--on-green-soft); margin: 14px 0 24px; font-size: 1.15rem; }
.tv-copy .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
@media (max-width: 900px) { .tv-grid { grid-template-columns: 1fr; } .tv-grid img { min-height: 0; aspect-ratio: 16 / 10; } }

/* Mission */
.mission-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.mission-copy p { margin-top: 16px; }
.mission-note { color: var(--soft); font-size: 1.125rem; }
.mission-photo img { border-radius: var(--r-card); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gardens { margin-top: 18px; background: var(--leaf-wash); border-radius: var(--r-card); padding: 22px 24px; }
.gardens h3 { margin-bottom: 8px; }
.gardens p { margin-bottom: 14px; }
.gardens a, .gardens .link-strong { color: var(--green-deep); }
@media (max-width: 900px) { .mission-grid { grid-template-columns: 1fr; } }

/* Close: the last signup, with the free calendar */
.close { background: var(--green); color: var(--on-green); }
.close-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.close h2 { color: var(--on-green); }
.close p { color: var(--on-green); margin-top: 12px; max-width: 46ch; font-size: 1.125rem; }
@media (max-width: 900px) { .close-grid { grid-template-columns: 1fr; } }

/* Footer */
.foot { background: var(--green-ink); color: var(--on-green); padding: 48px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: start; }
.foot-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.04em; text-transform: uppercase; }
.foot-brand p { color: var(--on-green-soft); margin-top: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot-links a { color: var(--on-green); text-decoration: none; font-weight: 600; padding: 8px 0; }
.foot-links a:hover { text-decoration: underline; }
.foot-fine { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; border-top: 1px solid rgba(250, 246, 240, 0.2); padding-top: 18px; font-size: 1.125rem; color: var(--on-green-soft); }
.motion-toggle { font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--on-green); background: transparent; border: 1.5px solid rgba(250, 246, 240, 0.55); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.motion-toggle:hover { border-color: var(--on-green); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* Phone signup bar (signup-bar.js) */
.signup-bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 25; display: flex; align-items: center; gap: 10px; background: var(--green-ink); color: var(--on-green); border-radius: var(--r-card); padding: 10px 10px 10px 16px; transition: transform 220ms var(--ease), opacity 220ms var(--ease); }
.signup-bar[hidden] { display: none; }
.signup-bar.is-away { transform: translateY(130%); opacity: 0; pointer-events: none; }
.signup-bar p { flex: 1; font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.signup-bar .btn { padding: 11px 16px; font-size: 0.95rem; display: inline-flex; align-items: center; min-height: 44px; }
.signup-bar .bar-close { flex: 0 0 auto; width: 44px; height: 44px; border: 0; background: transparent; color: var(--on-green); font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: var(--r-control); }

/* Generic page header for inner pages */
.page-head { padding: clamp(36px, 6vw, 80px) 0 clamp(20px, 3vw, 36px); }
.page-head .lede { margin-top: 14px; max-width: 52ch; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.prose h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose a, .prose li, .prose p { overflow-wrap: anywhere; }

/* Motion: about 80 percent. Reveals and hover only run when motion.js says "full";
   with no JS the attribute is absent and everything is simply visible. */
html[data-motion="full"] [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
html[data-motion="full"] [data-reveal].is-in { opacity: 1; transform: none; }
html[data-motion="full"] .hero [data-rise] { animation: rise 700ms var(--ease) both; }
html[data-motion="full"] .hero [data-rise="2"] { animation-delay: 90ms; }
html[data-motion="full"] .hero [data-rise="3"] { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (hover: hover) and (pointer: fine) {
  html[data-motion="full"] .tile:hover img, html[data-motion="full"] .post:hover img { transform: scale(1.04); }
}
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after { animation: none !important; transition: none !important; }

/* Fallbacks: OS reduced motion and print show every reveal block even if motion.js never runs. */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], html[data-motion="full"] [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html[data-motion="full"] .hero [data-rise] { animation: none; }
}
@media print { [data-reveal], html[data-motion="full"] [data-reveal] { opacity: 1 !important; transform: none !important; } }
