:root {
  --forest: #183f31;
  --leaf: #27664c;
  --sage: #e4eddf;
  --field: #f7f5eb;
  --paper: #fffdf8;
  --ink: #17221c;
  --muted: #667266;
  --line: #d8ded0;
  --soil: #35291f;
  --clay: #a5553f;
  --gold: #d5a642;
  --blue: #426f86;
  --panel: #ffffff;
  --shadow: 0 18px 48px rgba(31, 52, 38, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--field); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, .button {
  min-height: 44px;
  border: 1px solid var(--forest);
  border-radius: 6px;
  padding: 0 16px;
  background: var(--forest);
  color: #fff;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button.ghost, .button.secondary { background: #fff; color: var(--forest); border-color: #bcc8b7; }
input, select {
  min-height: 44px;
  border: 1px solid #b7c4b2;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(213, 166, 66, 0.65); outline-offset: 2px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { color: var(--soil); font-size: 23px; font-weight: 950; text-decoration: none; letter-spacing: 0; }
.brand span { color: var(--leaf); }
nav { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 14px; font-weight: 750; }
nav a { text-decoration: none; }
.quick-lookup, .hero-lookup { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.quick-lookup input { width: 94px; }

main { min-height: 72vh; }
.hero { padding: clamp(22px, 4vw, 44px) clamp(20px, 6vw, 84px) 30px; background: linear-gradient(180deg, #f7f5eb, #eef3e7); }
.command-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(520px, 0.58fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
}
.lookup-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 500px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #c8d4c2;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}
.calendar-workbench {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #c2d0bd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}
.workbench-header { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.workbench-header h2 { margin: 0; color: var(--soil); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02; letter-spacing: 0; max-width: 720px; }
.zone-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 78px; min-height: 78px; border-radius: 8px; background: var(--forest); color: #fff; font-weight: 950; }
.workbench-bottom { display: grid; grid-template-columns: 1fr minmax(150px, 220px); gap: 16px; align-items: stretch; margin-top: auto; }
.workbench-bottom img { width: 100%; height: 100%; max-height: 210px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; background: #f4f0df; }
.hero h1, .answer-card h1, .section h1, .article h1 {
  margin: 0 0 16px;
  color: var(--soil);
  font-size: clamp(36px, 4.1vw, 54px);
  line-height: 1.01;
  letter-spacing: 0;
  max-width: 960px;
}
.hero p, .lead { max-width: 760px; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: #33433a; }
.eyebrow { margin: 0 0 12px; color: var(--leaf); font-size: 12px; font-weight: 950; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-lookup {
  margin-top: 28px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: min(100%, 720px);
}
.hero-lookup input { width: 145px; font-size: 20px; font-weight: 850; }
.source-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.source-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #cbd7c4;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  color: #415045;
  font-size: 13px;
  font-weight: 800;
}

.preview-console {
  display: grid;
  grid-template-columns: minmax(180px, 0.78fr) minmax(260px, 1fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid #c8d4c2;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.preview-console img { width: 100%; height: 100%; min-height: 460px; object-fit: contain; background: #f4f0df; }
.preview-result { padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.preview-result h2, .panel-heading h2 { margin: 0; color: var(--soil); font-size: clamp(25px, 3vw, 38px); line-height: 1.08; letter-spacing: 0; }
.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric-strip span { padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcf7; color: var(--muted); font-size: 13px; line-height: 1.25; }
.metric-strip strong { display: block; color: var(--forest); font-size: 24px; line-height: 1; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.trust-strip span { padding: 14px 16px; background: #f9fbf5; color: var(--forest); font-size: 13px; font-weight: 900; text-align: center; }

.section, .answer-card, .cards { padding: 42px clamp(20px, 6vw, 84px); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 18px; background: var(--paper); }
.cards.compact { padding: 0; margin-top: 22px; background: transparent; }
.card, article, .quote-card, .data-panel, .calendar-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(38, 68, 48, 0.08);
}
.card { min-height: 172px; padding: 22px; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(38,68,48,0.13); border-color: #a8b99f; }
.card strong { color: var(--soil); font-size: 22px; line-height: 1.15; }
.card span, .card small { color: var(--muted); line-height: 1.4; }
article, .quote-card { padding: 26px; }
article h2, .section h2, .signup h2 { margin: 0 0 12px; color: var(--soil); font-size: clamp(25px, 3vw, 40px); line-height: 1.08; letter-spacing: 0; }
article p, .section p { line-height: 1.65; color: #394a3f; }

.answer-card {
  display: grid;
  grid-template-columns: minmax(340px, 1.04fr) minmax(300px, 0.96fr);
  gap: 24px;
  align-items: start;
  background: linear-gradient(180deg, #fbfcf7, var(--field));
}
.answer-copy, .data-panel, .signup, .disclosure { grid-column: 1 / -1; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.panel-heading { margin-bottom: 16px; }
.calendar-panel { padding: 22px; }
.season-board { display: grid; gap: 12px; }
.month-row, .season-track { display: grid; grid-template-columns: repeat(12, minmax(20px, 1fr)); }
.month-row { padding-left: 128px; gap: 0; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.month-row span { text-align: center; }
.season-row { display: grid; grid-template-columns: 118px 1fr; gap: 10px; align-items: center; }
.season-label { color: var(--soil); font-size: 13px; font-weight: 900; }
.season-track {
  position: relative;
  min-height: 38px;
  border: 1px solid #d6dece;
  border-radius: 6px;
  overflow: hidden;
  background: #fbfcf7;
}
.season-track i { grid-row: 1; border-left: 1px solid #e5eadf; }
.season-track i:first-child { border-left: 0; }
.season-track b {
  grid-row: 1;
  z-index: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-start { background: var(--blue); }
.bar-direct { background: var(--leaf); }
.bar-transplant { background: var(--clay); }
.bar-harvest { background: var(--gold); color: #281f16 !important; }
.bar-frost { background: #5f554d; }
.season-board.compact { gap: 8px; }
.season-board.compact .month-row { display: none; }
.season-board.compact .season-row { grid-template-columns: 132px 1fr; }
.season-board.compact .season-track { min-height: 30px; }
.season-board.compact .season-track b { font-size: 0; padding-inline: 0; }
.season-board.compact .season-label { font-size: 12px; }

.timeline { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 12px; }
.timeline div { min-height: 108px; padding: 16px; border-radius: 8px; border: 1px solid #ccd8c5; background: #fff; border-left: 7px solid var(--leaf); }
.timeline span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; }
.timeline strong { display: block; margin-top: 8px; color: var(--soil); font-size: 24px; line-height: 1.05; }
.data-panel { overflow: auto; }
table { width: 100%; min-width: 600px; border-collapse: collapse; background: #fff; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--soil); background: #f2f5ec; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }

.signup { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px) auto; gap: 14px; align-items: end; margin-top: 4px; padding: 24px; border: 1px solid #c4d2bd; border-radius: 8px; background: #f8fbf3; }
.signup p { margin: 0; }
.form-status { grid-column: 1 / -1; min-height: 22px; color: var(--leaf); font-weight: 850; }
.disclosure, .source-note { padding: 16px; border: 1px solid #eadcc8; border-radius: 8px; background: #fff8ea; color: #5c4c34; }
.ad-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.ad-slot { min-height: 150px; padding: 20px; border: 1px dashed #a9b9a4; border-radius: 8px; background: repeating-linear-gradient(135deg, #fbfdf8, #fbfdf8 12px, #f0f6ed 12px, #f0f6ed 24px); color: var(--muted); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.ad-slot span { color: var(--soil); font-weight: 900; }

.article { max-width: 900px; margin: 0 auto; padding: 54px clamp(20px, 6vw, 84px); border: 0; box-shadow: none; background: transparent; }
.article h1 { font-size: clamp(38px, 6vw, 72px); }
.article h2 { margin-top: 34px; }
.byline { color: var(--muted); font-weight: 800; }
.guide-list { background: #f5f8ef; border-block: 1px solid var(--line); }

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 16px 60px rgba(0,0,0,0.16);
}
.cookie-banner p { margin: 0; line-height: 1.45; }
.cookie-banner button { min-height: 38px; }
.cookie-banner[hidden] { display: none; }

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 84px);
  border-top: 1px solid var(--line);
  background: #17241d;
  color: #f2f6ed;
}
.site-footer p { max-width: 680px; color: #cbd9cd; line-height: 1.55; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; align-content: start; justify-content: end; }
.footer-links a { color: #e6f2df; }

@media (max-width: 1100px) {
  .command-hero, .answer-card { grid-template-columns: 1fr; }
  .lookup-panel, .calendar-workbench { min-height: 0; }
  .preview-console { grid-template-columns: minmax(220px, 0.82fr) 1fr; }
  .preview-console img { min-height: 360px; }
}

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr; align-items: stretch; }
  nav { order: 3; }
  .two-col, .signup, .site-footer, .preview-console, .workbench-bottom { grid-template-columns: 1fr; }
  .preview-console img { max-height: 420px; min-height: 0; }
  .workbench-bottom img { max-height: 260px; object-fit: contain; }
  .ad-grid, .trust-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .hero h1, .answer-card h1, .section h1, .article h1 { font-size: 38px; }
  .quick-lookup { display: none; }
  .hero { padding-top: 28px; }
  .hero h1, .answer-card h1, .section h1, .article h1 { font-size: 36px; }
  .lookup-panel, .calendar-workbench { padding: 18px; }
  .workbench-header { display: grid; }
  .workbench-header h2 { font-size: 30px; }
  .zone-badge { min-width: 64px; min-height: 44px; justify-content: flex-start; padding-inline: 12px; }
  .hero p, .lead { font-size: 18px; }
  .hero-lookup { margin-top: 20px; }
  .hero-lookup input, .hero-lookup select, .hero-lookup button { width: 100%; }
  .timeline, .ad-grid, .trust-strip, .metric-strip { grid-template-columns: 1fr; }
  .section, .answer-card, .cards { padding-inline: 16px; }
  .season-row, .season-board.compact .season-row { grid-template-columns: 1fr; gap: 5px; }
  .month-row, .season-board.compact .month-row { padding-left: 0; }
  .month-row { font-size: 10px; }
  .season-track b { font-size: 11px; padding-inline: 6px; }
  .cookie-banner { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 8px; font-size: 13px; }
  .cookie-banner p { grid-column: 1 / -1; }
}
