/* Kennewick Grower's Handbook — warm earthy organic */
:root {
  --green-deep: #1e3d2f;
  --green: #2f5d45;
  --green-mid: #3d7a56;
  --sage: #8fae8b;
  --sage-light: #c5d9c0;
  --terracotta: #c45c3e;
  --terracotta-dark: #9a3f28;
  --cream: #f7f1e6;
  --cream-dark: #ebe2d1;
  --sand: #d4c4a8;
  --soil: #3b2f26;
  --ink: #1a1612;
  --muted: #5c5348;
  --white: #fffcf7;
  --shadow: 0 8px 28px rgba(30, 61, 47, 0.12);
  --radius: 12px;
  --max: 1100px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.05rem;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

/* Header / Nav */
.site-header {
  background: var(--green-deep);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.logo span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font);
  font-weight: 500;
  color: var(--sage-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.9;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
  color: #fff;
  border-bottom-color: var(--terracotta);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--sage);
  color: var(--cream);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Layout */
main { min-height: 60vh; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: var(--green-deep) center/cover no-repeat;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 22, 18, 0.88) 0%, rgba(26, 22, 18, 0.35) 55%, rgba(26, 22, 18, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2.75rem;
  width: 100%;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.5vw, 2.85rem);
  margin: 0 0 0.75rem;
  line-height: 1.15;
  max-width: 18ch;
}

.hero .lede {
  font-size: 1.1rem;
  max-width: 42ch;
  color: var(--cream-dark);
  margin: 0 0 1.25rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  background: rgba(196, 92, 62, 0.9);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.badge.alt {
  background: rgba(47, 93, 69, 0.95);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--terracotta);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover { background: var(--terracotta-dark); }

.btn-outline {
  background: transparent;
  color: var(--cream) !important;
  border: 2px solid var(--cream);
}

.btn-outline:hover {
  background: var(--cream);
  color: var(--green-deep) !important;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Sections */
.section-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--green-deep);
  margin: 0 0 0.5rem;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 60ch;
}

.snark {
  border-left: 4px solid var(--terracotta);
  background: var(--cream-dark);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.02rem;
}

.snark strong { color: var(--terracotta-dark); }

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--sand);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(30, 61, 47, 0.16);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--sage-light);
}

.card-body {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-family: var(--serif);
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  color: var(--green-deep);
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover { color: var(--terracotta); }

.card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--sage-light);
  color: var(--green-deep);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.tag.sun { background: #f5e6a8; color: #6b5200; }
.tag.water { background: #c5e0f0; color: #1a4a66; }
.tag.heat { background: #f5c9b8; color: #7a2e18; }

/* Fact strips */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.fact {
  background: var(--white);
  border: 1px solid var(--sand);
  border-top: 3px solid var(--green-mid);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.fact .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.fact .value {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--green-deep);
  margin: 0;
  font-weight: 700;
}

.fact .note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

/* Crop page */
.crop-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.crop-hero img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--sand);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.crop-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--green-deep);
  margin: 0 0 0.5rem;
}

.crop-hero .latin {
  font-style: italic;
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.quick-stats {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.5rem;
}

.quick-stats li {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.quick-stats li strong {
  color: var(--green);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  align-self: center;
}

/* Content blocks */
.guide-section {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.guide-section h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--green-deep);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sage-light);
}

.guide-section h3 {
  font-size: 1.05rem;
  color: var(--green);
  margin: 1.25rem 0 0.4rem;
}

.guide-section p { margin: 0 0 0.85rem; }
.guide-section ul, .guide-section ol {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}
.guide-section li { margin-bottom: 0.4rem; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--sand);
  background: var(--white);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--cream-dark);
  vertical-align: top;
}

th {
  background: var(--green-deep);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

tr:nth-child(even) td { background: rgba(197, 217, 192, 0.25); }
tr:last-child td { border-bottom: none; }

/* Calendar */
.calendar-grid {
  display: grid;
  gap: 1rem;
}

.month-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.month-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  color: var(--green-deep);
  font-size: 1.2rem;
}

.month-card .season {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}

.season.winter { background: #d0e4f5; color: #1e4a6b; }
.season.spring { background: #d4edc9; color: #2a5a28; }
.season.summer { background: #fde8b0; color: #6b4e00; }
.season.fall { background: #f5d0b8; color: #7a3a18; }

/* Footer */
.site-footer {
  background: var(--soil);
  color: var(--sand);
  padding: 2rem 1.25rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.site-footer .wrap {
  padding-top: 0;
  padding-bottom: 0;
  display: grid;
  gap: 1rem;
}

.site-footer a { color: var(--sage-light); }
.site-footer strong { color: var(--cream); }

.footer-note {
  border-top: 1px solid rgba(212, 196, 168, 0.25);
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  opacity: 0.85;
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn-row, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .wrap { max-width: 100%; padding: 0; }
  .guide-section, .card, .fact, .month-card, .table-wrap {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  .crop-hero { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .crop-hero img { max-height: 220px; }
  a { color: #000; text-decoration: none; }
  .snark { border-left-color: #666; background: #f5f5f5; }
  h1, h2, h3 { color: #000; page-break-after: avoid; }
  table { font-size: 9pt; }
  th { background: #333 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Responsive */
@media (max-width: 800px) {
  .crop-hero { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
  }
  .nav.open { display: flex; }
  .quick-stats li { grid-template-columns: 1fr; gap: 0.15rem; }
}

@media (max-width: 520px) {
  .hero { min-height: 360px; }
  .fact-strip { grid-template-columns: 1fr 1fr; }
}
