/* Plants by Numbers — paint-by-numbers aesthetic: cream canvas, ink outlines,
   numbered color chips. System fonts only, zero third-party requests. */
:root {
  --ink: #22201c;
  --paper: #f7f2e7;
  --canvas: #efe7d6;
  --accent: #c2452d;
  --line: #22201c;
  --zc: #7ab24e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  background-image: linear-gradient(var(--paper) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper) 1px, transparent 1px);
  background-size: 28px 28px;
  font: 17px/1.6 ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
main { max-width: 980px; margin: 0 auto; padding: 1.2rem 1.2rem 3rem; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--zc); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin: 0.2em 0; }
h2 { margin-top: 1.8em; border-bottom: 3px solid var(--ink); display: inline-block; padding-bottom: 2px; }
.lede { font-size: 1.12rem; max-width: 46rem; }
.fine { font-size: 0.85rem; color: #6a6459; }
.big { font-size: 1.25rem; font-weight: 600; }
.crumb { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: #6a6459; }

/* header */
.site-head {
  display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.2rem; border-bottom: 3px solid var(--ink); background: var(--canvas);
  position: sticky; top: 0; z-index: 5;
}
.brand { font-weight: 800; text-decoration: none; font-size: 1.15rem; letter-spacing: -0.02em; }
.site-head nav a { margin-left: 0.9rem; text-decoration: none; border-bottom: 2px solid transparent; }
.site-head nav a.on, .site-head nav a:hover { border-bottom-color: var(--accent); color: var(--ink); }

/* chips = the paint-by-numbers identity */
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.1em; height: 2.1em; padding: 0 0.45em; margin: 0 0.28em 0.28em 0;
  background: var(--zc); color: var(--zc-text, #fff); font-weight: 800; text-decoration: none;
  border: 2.5px solid var(--ink); border-radius: 6px; box-shadow: 2px 2px 0 var(--ink);
}
.chip:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); color: var(--zc-text, #fff); }
.chip-big { min-width: 2.4em; height: 2.4em; font-size: 1.4rem; margin-right: 0.4em; }
.chip-logo { background: var(--accent); }
.chips { line-height: 3; }

/* hero */
.hero { background: var(--canvas); border: 3px solid var(--ink); border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink); padding: 1.2rem 1.4rem; margin: 1.4rem 0; }
.hero-home { background: linear-gradient(135deg, var(--canvas) 60%, color-mix(in srgb, var(--zc) 30%, var(--canvas))); }

/* zip form */
.zipform { display: flex; gap: 0.5rem; margin: 1rem 0 0.4rem; flex-wrap: wrap; }
.zipform input {
  font-size: 1.1rem; padding: 0.55rem 0.8rem; border: 2.5px solid var(--ink); border-radius: 6px;
  background: #fff; min-width: 16rem; flex: 1;
}
.zipform button {
  font-size: 1.05rem; font-weight: 700; padding: 0.55rem 1.1rem; cursor: pointer;
  border: 2.5px solid var(--ink); border-radius: 6px; background: var(--accent); color: #fff;
  box-shadow: 2px 2px 0 var(--ink);
}
.zipform button:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.zipresult { font-size: 1.15rem; min-height: 1.6em; font-weight: 600; }

/* tables */
table { border-collapse: collapse; width: 100%; margin: 1rem 0; background: #fff; font-size: 0.95rem; }
th, td { border: 2px solid var(--ink); padding: 0.45rem 0.6rem; text-align: left; vertical-align: top; }
thead th { background: var(--canvas); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.cal td, table.cal th { text-align: center; font-size: 0.8rem; padding: 0.32rem 0.28rem; }
table.cal td:first-child, table.cal th:first-child { text-align: left; font-size: 0.85rem; }
ul.crops { columns: 2; column-gap: 2rem; padding-left: 1.2rem; }
@media (max-width: 640px) { ul.crops { columns: 1; } }
.nav-months a { display: inline-block; margin-right: 0.6rem; text-transform: capitalize; }

/* footer */
.site-foot { border-top: 3px solid var(--ink); background: var(--canvas);
  padding: 1rem 1.2rem 2rem; font-size: 0.9rem; }
.site-foot p { max-width: 60rem; margin: 0.4rem 0; }

/* explorer */
.explorer { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
@media (max-width: 820px) { .explorer { grid-template-columns: 1fr; } }
.mapwrap { background: #fff; border: 3px solid var(--ink); border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink); padding: 0.4rem; }
.mapwrap svg { width: 100%; height: auto; display: block; }
.mapwrap path { cursor: pointer; stroke: var(--ink); stroke-width: 0; transition: stroke-width 60ms; }
.mapwrap path:hover { stroke-width: 1.2; }
.expanel { border: 3px solid var(--ink); border-radius: 10px; background: var(--canvas);
  box-shadow: 4px 4px 0 var(--ink); padding: 0.9rem 1.1rem; align-self: start; }
.monthbar { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.6rem 0; }
.monthbar button { border: 2px solid var(--ink); background: #fff; border-radius: 6px;
  padding: 0.28rem 0.5rem; font-weight: 700; cursor: pointer; font-size: 0.85rem; }
.monthbar button.on { background: var(--accent); color: #fff; }
/* nearest-dot hover: zone pops like a filled region, rest dims */
.mapwrap svg { cursor: crosshair; }
.mapwrap svg.hv path:not(.hl) { opacity: 0.3; }
.mapwrap path.hl { stroke: #22201c; stroke-width: 0.7; }

/* subscribe band */
.subband { border: 3px dashed var(--ink); border-radius: 10px; background: #fffdf6;
  padding: 0.9rem 1.2rem; margin: 1.6rem 0; }
.subband h2 { border-bottom: none; margin-top: 0; }
