/* Farmers Direct — earthy greens and wheat on a warm paper background. */
/* DARK is the default theme (data-theme="dark" is stamped before first paint
   by the head script in layout.js); LIGHT is the original paper look and is
   used only when the visitor picks it with the header switcher. */
:root {
  --green-900: #12301b;
  --green-700: #1f4d2b;
  --green-500: #2f7a45;
  --wheat: #e8c26a;
  --radius: 14px;

  --paper: #0d1611;
  --tint: #111e16;
  --card: #15241b;
  --ink: #f2efe4;
  --body: #c4d0c1;
  --muted: #8d9c8b;
  --line: #24372a;
  --link: #9fd4a8;
  --kicker: #e8c26a;
  --icon-bg: #1d3325;
  --icon-fg: #9fd4a8;
  --field-bg: #0f1b14;
  --header-bg: rgba(13, 22, 17, .88);
  --footer-bg: #09110c;
  --cta-bg: #12301b;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --paper: #fbf8f1;
  --tint: #f3eee1;
  --card: #ffffff;
  --ink: #1d2a20;
  --body: #3e4a41;
  --muted: #6b766d;
  --line: #e2dccb;
  --link: #2f7a45;
  --kicker: #8a6414;
  --icon-bg: #e6f0e4;
  --icon-fg: #1f4d2b;
  --field-bg: #ffffff;
  --header-bg: rgba(251, 248, 241, .92);
  --footer-bg: #12301b;
  --cta-bg: #12301b;
  --shadow: 0 10px 30px rgba(18, 48, 27, .08);
  color-scheme: light;
}

* { box-sizing: border-box; }
/* The html canvas is what shows when a trackpad/touch overscroll pulls past the
   page edges. Paint it the footer green (both themes) instead of the browser's
   default white; body keeps the page background. */
html { scroll-behavior: smooth; scroll-padding-top: 76px; background: var(--footer-bg); }
body {
  margin: 0;
  font: 16px/1.65 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: Fraunces, Georgia, serif; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-tint { background: var(--tint); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; }
.kicker {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kicker);
  margin-bottom: 10px;
}
.lead { font-size: 1.12rem; color: var(--body); max-width: 60ch; }

/* buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-wheat { background: var(--wheat); color: var(--green-900); }
.btn-wheat:hover { background: #f0cf82; }
.btn-outline { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.logo { width: 36px; height: 36px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--body); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--link); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--link); font-weight: 600; }
.nav a.btn-primary { color: #fff; }
.theme-toggle {
  /* .nav's margin-left:auto already pushes this right on desktop. */
  margin-left: 4px;
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; min-width: 38px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 11px; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--wheat); color: var(--wheat); }
.theme-toggle svg { width: 17px; height: 17px; display: block; }
/* Dark by default, so the sun (tap for light) is what shows. */
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle:hover { border-color: var(--green-500); color: var(--green-500); }
.nav-toggle { display: none; margin-left: 8px; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--ink); cursor: pointer; }

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #e9f1e6;
  background:
    radial-gradient(1200px 500px at 85% 120%, rgba(232, 194, 106, .35), transparent 60%),
    linear-gradient(160deg, var(--green-900), var(--green-700) 70%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(72px, 12vw, 132px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: #d6e4d2; }
.hero .kicker { color: var(--wheat); }
.hero-fields { position: absolute; left: 0; bottom: 0; width: 100%; height: 22%; opacity: .55; pointer-events: none; }

/* grids and cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--icon-bg); color: var(--icon-fg);
  margin-bottom: 16px;
}
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.panel { background: var(--green-700); color: #e2ece0; border-radius: var(--radius); padding: 30px; }
.panel h3 { color: #fff; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 9px 0 9px 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 8px; border-left: 2.5px solid var(--wheat); border-bottom: 2.5px solid var(--wheat); transform: rotate(-45deg); }
.light .checks li { border-color: var(--line); }
.light .checks li::before { border-color: var(--link); }

.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 22px; left: 26px;
  font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.3rem; color: var(--kicker);
}
.note { font-size: .92rem; color: var(--muted); border-left: 3px solid var(--wheat); padding: 4px 0 4px 14px; }

.cta { background: var(--cta-bg); border: 1px solid var(--line); color: #d6e4d2; border-radius: 22px; padding: clamp(32px, 6vw, 56px); text-align: center; }
.cta h2 { color: #fff; }
.cta .lead { color: #c9d9c4; margin-inline: auto; }

/* forms */
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--field-bg);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green-500); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 140px; resize: vertical; }

/* footer */
.site-footer { background: var(--footer-bg); color: #b9cbb5; padding-top: 56px; font-size: .95rem; }
.site-footer a { color: #d6e4d2; display: block; padding: 3px 0; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: .95rem; }
.brand-footer { color: #fff; margin-bottom: 12px; }
.brand-footer:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.disclaimer { font-size: .82rem; color: #92a88e; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
.powered { display: inline-flex; align-items: center; gap: 6px; }
.site-footer a.powered-link { display: inline; padding: 0; color: var(--wheat); font-weight: 600; }
.site-footer a.powered-link:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px 0 28px; font-size: .85rem; color: #92a88e; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .theme-toggle { margin-left: auto; }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  .grid-2, .grid-4, .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Contact form: honeypot (off-screen for people, visible to naive bots) + status line. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--link); font-weight: 600; }
.form-status.err { color: #b42318; font-weight: 600; }
