:root {
  --soil: #1c1711;
  --soil-2: #2a2219;
  --paper: #f4eee3;
  --paper-2: #ebe2d3;
  --card: #fffaf2;
  --ink: #231c14;
  --muted: #6f6356;
  --leaf: #2c5a41;
  --leaf-2: #3d7a56;
  --harvest: #c48a22;
  --tomato: #b93c24;
  --line: rgba(35, 28, 20, 0.12);
  --good: #246544;
  --warn: #9a5810;
  --bad: #8c3218;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  --shadow: 0 18px 40px rgba(28, 23, 17, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(196, 138, 34, 0.14), transparent 50%),
    radial-gradient(900px 400px at 110% 0%, rgba(44, 90, 65, 0.1), transparent 45%),
    var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 0;
}

a { color: var(--leaf); }
a:hover { color: var(--soil); }
img { max-width: 100%; display: block; }
video { max-width: 100%; display: block; }
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.4em;
}
h1, .display { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; position: relative; z-index: 1; }
.site-header, .site-footer { position: relative; z-index: 2; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 10px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}
.brand-mark span { color: var(--leaf); }
.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.nav a, .nav button.linkish {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.nav a:hover { color: var(--leaf); }
.nav form { display: inline; margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-family: var(--sans);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary { background: var(--leaf); color: #f7f3ea; }
.btn-primary:hover { background: #234a35; color: #fff; }
.btn-gold { background: var(--harvest); color: var(--soil); }
.btn-gold:hover { background: #d59a2c; color: var(--soil); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-dark { background: var(--soil); color: var(--paper); }
.btn-dark:hover { color: #fff; }
.btn-lg { padding: 1.05rem 1.5rem; font-size: 1.08rem; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.hero { padding: 28px 0 10px; }
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}
.hero-split .lede { max-width: none; }
.kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--harvest);
  font-weight: 800;
  margin-bottom: 10px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.wizard { margin: 24px 0 40px; }
.q { margin: 0 0 22px; }
.q legend, .q .qlabel {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  display: grid;
  gap: 4px;
}
.chip small { font-weight: 500; color: var(--muted); }
.chip:has(input:checked), .chip.selected {
  border-color: var(--leaf);
  background: #eef6f0;
  box-shadow: inset 0 0 0 1px var(--leaf);
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.zip-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.zip-row input[type="text"], input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--ink);
}
.zip-input { font-size: 1.6rem; letter-spacing: 0.18em; font-weight: 800; }
.place-chip {
  min-height: 28px;
  color: var(--leaf);
  font-weight: 700;
  margin: 8px 0 0;
}
.today-cta {
  margin: 18px 0 8px;
  padding: 18px;
  border-radius: 16px;
  background: var(--soil);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.today-cta h2 { color: #fff; margin: 0; font-size: 1.7rem; }
.today-cta p { margin: 6px 0 0; color: #d9d0c3; }

.grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack { display: grid; gap: 16px; }

.table-wrap { overflow-x: auto; }
table.catalog {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.catalog th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
table.catalog td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.crop-name { font-weight: 800; }
.bar {
  height: 8px;
  background: #eadfcf;
  border-radius: 99px;
  overflow: hidden;
  min-width: 70px;
}
.bar span { display: block; height: 100%; background: var(--leaf); }
.score-num { font-variant-numeric: tabular-nums; font-weight: 800; }

.skip-list { display: grid; gap: 12px; }
.skip {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f7ebe4;
  border: 1px solid #edd5c8;
}
.skip h3 { margin: 0 0 4px; }
.skip p { margin: 0; color: var(--muted); }

.money {
  font-variant-numeric: tabular-nums;
  font-family: var(--serif);
}
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.stat b { display: block; font-family: var(--serif); font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: 0.85rem; }

.layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  min-height: 180px;
}
.plot {
  border-radius: 12px;
  color: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 90px;
  font-size: 0.9rem;
}
.plot b { font-size: 1rem; }

.score-card {
  background: var(--soil);
  color: var(--paper);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.score-card h2 { color: #fff; }
.score-card .giant {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--harvest);
}
.muted { color: var(--muted); }
.fine { font-size: 0.86rem; color: var(--muted); }
.banner {
  background: #e8f1ea;
  border: 1px solid #cfe0d4;
  padding: 12px 14px;
  border-radius: 12px;
  margin: 12px 0;
}
.banner.error { background: #f8e6e1; border-color: #e7c4ba; }
.factor { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ok { color: var(--good); font-weight: 700; }
.no { color: var(--bad); font-weight: 700; }
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-now { background: #dcefe3; color: var(--good); }
.pill-indoor { background: #efe4c8; color: var(--warn); }
.pill-wait { background: #eee8dc; color: var(--muted); }
.pill-late { background: #f3ddd6; color: var(--bad); }

.shop a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.lock {
  position: relative;
}
.lock::after {
  content: "Garden Plan · $19/year";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(244, 238, 227, 0.72);
  backdrop-filter: blur(4px);
  font-weight: 800;
  border-radius: 16px;
}
.site-footer {
  margin-top: 60px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

.range { width: 100%; accent-color: var(--leaf); }
.lab-controls { display: grid; gap: 14px; }
.delta { font-weight: 800; color: var(--leaf); }
.handbook { max-width: 46rem; }
.handbook-hero .btn-row { margin-top: 8px; }
.handbook-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; }
.handbook-chapter { margin: 36px 0 48px; }
.handbook-chapter p, .handbook-chapter li { font-size: 1.05rem; }
.handbook-chapter h3 { margin-top: 1.4rem; }
.handbook-cat { margin: 28px 0 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.crop-sheet { margin-bottom: 14px; }
.crop-sheet h3 { margin-bottom: 0.2rem; }
.crop-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 14px;
}
.crop-facts div { background: var(--paper-2); border-radius: 12px; padding: 10px 12px; }
.crop-facts dt { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.crop-facts dd { margin: 2px 0 0; font-weight: 800; }
.lessons { margin: 0 0 14px; padding-left: 1.15rem; display: grid; gap: 8px; }
@media print {
  .site-header, .site-footer, .handbook-hero .btn-row, .nav, .gtag,
  .media-frame, .media-mosaic { display: none !important; }
  .handbook { max-width: none; }
  .crop-sheet, .panel { break-inside: avoid; box-shadow: none; }
  body { background: #fff; }
}
@media (max-width: 860px) {
  .crop-facts { grid-template-columns: 1fr 1fr; }
}

.media-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soil-2);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-hero { min-height: 320px; aspect-ratio: 4 / 3; }
.media-frame.media-side { min-height: 240px; aspect-ratio: 4 / 3; }
.media-poster {
  position: absolute;
  inset: 0;
  display: none;
}
.media-credit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  margin: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(28, 23, 17, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}
.media-credit a {
  color: #f4eee3;
  text-decoration: none;
}
.media-credit a:hover { color: #fff; }
.media-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 180px 180px;
  gap: 10px;
  margin: 8px 0 36px;
}
.media-mosaic-home .media-tile:nth-child(1) { grid-row: 1 / span 2; }
.media-mosaic-home .media-tile:nth-child(4) { grid-column: 2; }
.media-mosaic-home .media-tile:nth-child(5) { grid-column: 3; }
.media-mosaic-explore,
.media-mosaic-results {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 200px;
  margin: 8px 0 28px;
}
.media-tile { min-height: 0; }
.today-cta { position: relative; overflow: hidden; }
.today-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  pointer-events: none;
}
.today-cta-copy,
.today-cta .btn { position: relative; z-index: 1; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; margin-bottom: 24px; }
.auth-form p { margin: 0 0 14px; }
.auth-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.auth-form .helptext { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 6px; }
.auth-form .errorlist { list-style: none; padding: 0; margin: 0 0 10px; color: var(--bad); font-size: 0.9rem; }
.pexels-note a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .media-video video { display: none; }
  .media-video .media-poster { display: block; position: relative; }
}

.disclaimer {
  font-size: 0.84rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: 28px;
}

@media (max-width: 860px) {
  .grid-2, .grid-3, .stat-row, .foot-grid, .zip-row, .hero-split, .auth-split { grid-template-columns: 1fr; }
  .site-header { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 2.3rem; }
  .media-hero, .media-frame.media-side { min-height: 220px; aspect-ratio: 16 / 10; }
  .media-mosaic,
  .media-mosaic-explore,
  .media-mosaic-results {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 150px 150px 150px;
  }
  .media-mosaic-home .media-tile:nth-child(1) { grid-row: auto; grid-column: 1 / -1; min-height: 180px; }
  .media-mosaic-home .media-tile:nth-child(4),
  .media-mosaic-home .media-tile:nth-child(5) { grid-column: auto; }
}
