/* GrowDate Atlas — tokens */
:root {
  --paper: #f2f4ec;
  --paper-2: #e8ece0;
  --card: #fbfcf8;
  --ink: #16231a;
  --ink-2: #4b5a4e;
  --rule: #cfd6c7;
  --leaf: #2e7d4f;
  --leaf-deep: #1f5c39;
  --frost: #9cbbe6;
  --frost-deep: #3f6fb5;
  --teal: #3a8f8a;
  --ochre: #c9962a;
  --ochre-deep: #8f6513;
  --focus: #1f5c39;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Literata", Georgia, "Times New Roman", serif;
  --measure: 66ch;
  --wrap: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131a15; --paper-2: #1a2420; --card: #1b241d; --ink: #e9eee4; --ink-2: #a9b5aa; --rule: #2d3a30;
    --leaf: #6fc48e; --leaf-deep: #8fd6a8; --frost: #4c6f9f; --frost-deep: #9dbdf0; --teal: #5fbdb6; --ochre: #d9ab45; --ochre-deep: #e8c270; --focus: #8fd6a8;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--leaf); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

h1, h2, h3, .brand, nav, th, .button, .stat, .season-label, .cc-crop, legend, label, summary, .post-card h2, .city-list, figcaption {
  font-family: var(--font-display);
}
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.02; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 18px; max-width: 22ch; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.15; letter-spacing: -0.01em; font-weight: 600; margin: 48px 0 14px; }
h3 { font-size: 1.15rem; line-height: 1.25; font-weight: 600; margin: 26px 0 8px; }
p, ul, ol { margin: 0 0 1.1em; max-width: var(--measure); }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.small { font-size: 0.9rem; color: var(--ink-2); }
.crumb { font-family: var(--font-display); font-size: 0.95rem; color: var(--ink-2); margin: 0 0 10px; }
.crumb a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }

/* header / footer */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; padding: 18px 16px; }
.brand { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; background: var(--leaf); transform: rotate(-45deg); }
nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 1rem; }
nav a { text-decoration: none; color: var(--ink-2); }
nav a:hover, nav a[aria-current] { color: var(--ink); }
main { padding: 36px 16px 64px; }
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; }
.site-footer p { margin-bottom: 8px; max-width: none; }

/* home hero */
.hero-section { display: grid; gap: 28px; padding: 8px 0 12px; }
/* grid items default to min-width:auto, which lets the crop chart's mobile
   min-width push the whole page wider than the viewport. */
.hero-section > *, .hero-section .sample, .cropchart { min-width: 0; }
.hero-section .sample { max-width: none; }
.hero-section .sample { border: 1px solid var(--rule); background: var(--card); padding: 18px 18px 10px; border-radius: 14px; }
.hero-section .sample p { margin: 0 0 6px; font-family: var(--font-display); }
.hero-section .sample .small { margin-top: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 18px 0 8px; }

/* buttons */
.button { display: inline-block; background: var(--leaf-deep); color: #fff; padding: 11px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 1rem; border: 2px solid var(--leaf-deep); cursor: pointer; line-height: 1.2; }
.button:hover { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.button.secondary { background: transparent; color: var(--leaf-deep); }
.button.secondary:hover { background: var(--paper-2); color: var(--leaf-deep); }
@media (prefers-color-scheme: dark) { .button { color: #0f1a12; } .button:hover { color: #0f1a12; } }

/* feature list (home) */
.features { max-width: none; display: grid; gap: 6px 36px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 10px 0 0; padding: 0; list-style: none; }
.features li { border-top: 1px solid var(--rule); padding: 14px 0 10px; }
.features h3 { margin: 0 0 4px; }
.features p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

/* CTA */
.cta { border-top: 2px solid var(--leaf); border-bottom: 1px solid var(--rule); padding: 18px 0 20px; margin: 40px 0; max-width: var(--measure); }
.cta-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 4px; }
.cta p:last-of-type { margin-bottom: 14px; color: var(--ink-2); }

.callout { background: var(--paper-2); border-left: 3px solid var(--ochre); padding: 14px 18px; margin: 22px 0; max-width: var(--measure); border-radius: 0 10px 10px 0; }
.callout.info { border-left-color: var(--frost-deep); }
.callout p:last-child { margin-bottom: 0; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 28px; margin: 22px 0 8px; border-top: 1px solid var(--rule); }
.stat { padding: 12px 0 10px; border-bottom: 1px solid var(--rule); }
.stat .label { font-size: 0.9rem; color: var(--ink-2); }
.stat .value { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

/* season bar */
.season { margin: 18px 0 6px; }
.season-frost { fill: var(--frost); opacity: 0.55; }
.season-free { fill: var(--leaf); }
.season-tick { stroke: var(--paper); stroke-width: 2; }
.season-month { font-family: var(--font-display); font-size: 22px; fill: var(--ink-2); }
.season-label { font-family: var(--font-display); font-size: 24px; font-weight: 600; fill: var(--ink); }
.season-days { font-family: var(--font-display); font-size: 22px; font-weight: 600; fill: #fff; }
@media (max-width: 600px) { .season-label, .season-days { font-size: 30px; } .season-month { font-size: 28px; } }

/* crop chart */
.cropchart { margin: 10px 0 28px; }
.cc-season { fill: var(--leaf); opacity: 0.09; }
.cc-grid { stroke: var(--rule); stroke-width: 1; }
.cc-month { font-family: var(--font-display); font-size: 13px; fill: var(--ink-2); }
.cc-crop { font-family: var(--font-display); font-size: 14px; fill: var(--ink); }
.cc-outdoor { fill: var(--leaf); }
.cc-outdoor.hardy { fill: var(--frost-deep); }
.cc-outdoor.semi-hardy { fill: var(--teal); }
.cc-outdoor.tender { fill: var(--leaf); }
.cc-outdoor.very-tender { fill: var(--ochre); }
.cc-indoor { fill: var(--ink-2); opacity: 0.35; }
.cc-fall { fill: var(--leaf); opacity: 0.45; }
.cc-fall.hardy { fill: var(--frost-deep); }
.cc-fall.semi-hardy { fill: var(--teal); }
.cc-fall.very-tender { fill: var(--ochre); }
.cropchart figcaption { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.9rem; color: var(--ink-2); margin-top: 8px; }
.key { display: inline-block; width: 18px; height: 10px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.key-indoor { background: var(--ink-2); opacity: 0.35; }
.key-outdoor { background: var(--leaf); }
.key-fall { background: var(--leaf); opacity: 0.45; }
.key-season { background: var(--leaf); opacity: 0.12; border: 1px solid var(--rule); }
@media (max-width: 600px) { .cropchart { overflow-x: auto; } .cropchart svg { min-width: 720px; } }

/* class swatch in tables */
.class { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.class::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); }
.class.hardy::before { background: var(--frost-deep); }
.class.semi-hardy::before { background: var(--teal); }
.class.tender::before { background: var(--leaf); }
.class.very-tender::before { background: var(--ochre); }

/* tables scroll inside their own box */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 14px 0 26px; border-top: 2px solid var(--ink); }
table { border-collapse: collapse; width: 100%; min-width: 600px; font-family: var(--font-display); font-size: 0.95rem; }
th, td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; white-space: nowrap; color: var(--ink-2); }
tbody th { color: var(--ink); }
td.num, th.num { text-align: right; white-space: nowrap; }
.post-body table { display: block; overflow-x: auto; min-width: 0; border-top: 2px solid var(--ink); margin: 18px 0 26px; }
.post-body table th { white-space: normal; }

/* posts */
.post { max-width: 780px; }
.post-header { margin-bottom: 26px; }
.post .hero { margin-top: 18px; border: 1px solid var(--rule); border-radius: 10px; }
.post-body { max-width: var(--measure); }
.post-body h2 { scroll-margin-top: 80px; }
.post-body ul, .post-body ol { padding-left: 1.2em; }
.post-body li { margin-bottom: 6px; }
.post-body blockquote { margin: 16px 0; padding: 4px 18px; border-left: 3px solid var(--rule); color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--rule); padding: 10px 0; max-width: var(--measure); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; }
.faq summary h3 { display: inline; margin: 0; font-size: inherit; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 8px 0 2px; }
.author-box, .related { margin-top: 44px; padding-top: 18px; border-top: 2px solid var(--ink); max-width: var(--measure); }
.author-box h2, .related h2 { margin-top: 0; font-size: 1.15rem; }
.post-list { list-style: none; padding: 0; margin: 0; max-width: 780px; }
.post-card { border-top: 1px solid var(--rule); padding: 18px 0; }
.post-card:first-child { border-top: 2px solid var(--ink); }
.post-card h2 { margin: 2px 0 6px; font-size: 1.3rem; }
.post-card h2 a { text-decoration: none; color: var(--ink); }
.post-card h2 a:hover { color: var(--leaf-deep); }
.post-card .small { margin: 0 0 4px; }

/* city list */
.city-list { columns: 2; column-gap: 32px; padding-left: 0; list-style: none; max-width: none; }
@media (min-width: 720px) { .city-list { columns: 3; } }
.city-list li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.city-list a { text-decoration: none; color: var(--ink); font-weight: 600; }
.city-list a:hover { color: var(--leaf-deep); }
.city-list .small { display: block; }

/* planner tool */
.planner { border-top: 2px solid var(--ink); padding: 18px 0 6px; margin: 20px 0; }
.planner fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.planner legend { font-weight: 600; font-size: 1.1rem; margin-bottom: 10px; }
.planner label { display: block; margin-bottom: 8px; font-size: 0.95rem; }
.planner select, .planner input[type="text"] { font: inherit; font-family: var(--font-display); padding: 9px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); color: var(--ink); width: 100%; max-width: 440px; margin-top: 4px; }
.planner .row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.crop-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 14px; }
.crop-picker label { margin: 0; padding: 3px 0; }
@media print { .site-header, .site-footer, .cta, .planner .actions, nav { display: none; } body { background: #fff; color: #000; } }
