/* Beetplan: an almanac on paper. Warm stock, deep green ink, one clay accent. */
:root {
  --paper: #f7f4ea;
  --paper-2: #fffcf4;
  --ink: #20281f;
  --ink-soft: #3e473b;
  --green: #2f5d3a;
  --green-2: #4c7a52;
  --green-3: #e2ebd7;
  --blue: #4b7b8f;
  --blue-ink: #3d6b7e;
  --sun: #d99a33;
  --sun-ink: #8a5a12;
  --sun-2: #f3dfb6;
  --clay: #a9502d;
  --line: #d8d2c2;
  --line-2: #e9e3d4;
  --muted: #5f6759;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 40px -32px rgba(32, 40, 31, 0.55);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(217, 154, 51, 0.10), transparent 60%),
    radial-gradient(700px 400px at 5% 0%, rgba(47, 93, 58, 0.07), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--green) 0 46%, var(--sun) 46% 62%, var(--clay) 62% 100%);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: var(--paper-2); padding: 9px 14px; border-radius: 4px; z-index: 20; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.empty-line { margin: 6px 0 0; }
.mt { margin-top: 26px; }

.site-head {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; font-family: var(--serif); font-size: 23px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; }
.brand .logo { width: 30px; height: 30px; color: var(--green); flex-shrink: 0; }
.site-head nav { display: flex; align-items: center; gap: 22px; }
.site-head nav a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--green); }
.site-head nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

main { display: block; }
.hero, .page-head, .month-section, .year-section, .links-section, .band-section, .steps, .crops-section, .planner-teaser, .faq, .crop-page, .page, .error-wrap, .regions-section, .crop-index { max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

.kicker { margin: 0 0 10px; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); }
h1 { margin: 0; font-size: clamp(2.6rem, 5.6vw, 4.3rem); line-height: 0.99; letter-spacing: -0.025em; max-width: 15ch; }
h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 3.2vw, 2.35rem); line-height: 1.1; letter-spacing: -0.015em; }
h3 { margin: 0; font-size: 1.08rem; letter-spacing: -0.005em; }
.lede { margin: 18px 0 0; font-size: 1.13rem; line-height: 1.55; color: var(--ink-soft); max-width: 58ch; }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 5px; padding: 11px 18px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 650; line-height: 1.1;
  text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--green); color: var(--paper-2); }
.btn-primary:hover { background: #244a2d; color: var(--paper-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green-2); color: var(--green); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.hero { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; padding-top: 56px; padding-bottom: 28px; align-items: start; }
.hero-copy { animation: rise 0.5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-copy { animation: none; } }

.region-form { margin-top: 24px; }
.region-form label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.region-row { display: flex; gap: 10px; flex-wrap: wrap; }
.region-row select { min-width: 220px; flex: 1 1 220px; }
select, input[type="text"], input[type="number"], input[type="email"] {
  width: 100%; appearance: none; background: var(--paper-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 5px; padding: 10px 12px;
  font: inherit; font-size: 14.5px; min-height: 42px;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px;
}
input:focus-visible, select:focus-visible, .btn:focus-visible, summary:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--sun); outline-offset: 2px;
}
.region-form.compact { margin-top: 0; }

.now-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 16px; box-shadow: var(--shadow); }
.now-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line-2); padding-bottom: 10px; margin-bottom: 12px; }
.now-head .kicker { margin: 0; color: var(--green); }
.now-region { font-size: 12px; color: var(--muted); }
.now-link { display: inline-block; margin-top: 8px; font-size: 13.5px; font-weight: 600; }

.task-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.task-group h3 { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; }
.task-group ul { list-style: none; margin: 0; padding: 0; }
.task-group li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 4px 0; border-bottom: 1px dotted var(--line-2); }
.task-group li:last-child { border-bottom: 0; }
.task-group li a { text-decoration: none; color: var(--ink); }
.task-group li a:hover { color: var(--green); text-decoration: underline; }
.task-group li span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12.5px; }
.empty-tasks { background: var(--paper-2); border: 1px dashed var(--line); border-radius: 8px; padding: 18px; color: var(--ink-soft); }
.empty-tasks p { margin: 0; }

.band-section, .steps, .crops-section, .faq { margin-top: 62px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 46ch; }
.band-list { background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.band-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.band-row:last-child { border-bottom: 0; }
.band-row:hover { background: #fbf8ee; }
.band-name { font-family: var(--serif); font-size: 15.5px; font-weight: 700; }
.sow-bar { width: 100%; }
.sow-bar svg { width: 100%; height: 16px; display: block; }
.sow-bar .track { fill: var(--line-2); }
.sow-bar rect.indoor { fill: var(--green-2); }
.sow-bar rect.outdoor { fill: var(--green); }
.sow-bar rect.plant { fill: var(--blue); }
.sow-bar rect.harvest { fill: var(--sun); }
.sw.indoor { background: var(--green-2); }
.sw.outdoor { background: var(--green); }
.sw.plant { background: var(--blue); }
.sw.harvest { background: var(--sun); }
.bar-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 4px; }
.legend { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 12px; vertical-align: -1px; }
.legend .sw:first-child { margin-left: 0; }
.legend .l { display: inline-block; font-weight: 700; margin: 0 4px 0 12px; }
.legend .l:first-child { margin-left: 0; }
.l.indoor { color: var(--green-2); }
.l.outdoor { color: var(--green); }
.l.plant { color: var(--blue-ink); }
.l.harvest { color: var(--sun-ink); }

.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 1px solid var(--line); padding-top: 22px; }
.steps li { position: relative; }
.step-num { font-family: var(--serif); font-size: 2.1rem; color: var(--sun-ink); line-height: 1; display: block; margin-bottom: 8px; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

.crop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.crop-card { display: block; background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 14px 12px; text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s; }
.crop-card:hover { border-color: var(--green-2); transform: translateY(-1px); }
.crop-name { display: block; font-family: var(--serif); font-size: 17px; font-weight: 700; }
.crop-meta { display: block; font-size: 11.5px; color: var(--muted); margin: 2px 0 10px; }

.planner-teaser { margin-top: 70px; background: #223726; color: var(--paper); border-radius: 12px; padding: 40px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.planner-teaser h2 { color: var(--paper-2); }
.planner-teaser p { color: #d6dfd0; max-width: 48ch; }
.planner-teaser .kicker { color: #e9b96a; }
.planner-teaser .btn-primary { background: var(--sun); color: #2a210f; margin-top: 6px; }
.planner-teaser .btn-primary:hover { background: #e6ad50; }
.plan-mock { background: var(--paper-2); color: var(--ink); border-radius: 8px; padding: 16px; transform: rotate(-1deg); box-shadow: 0 24px 40px -30px #000; }
.mock-bed { border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px 6px; margin-bottom: 10px; }
.mock-bed span { font-size: 11px; color: var(--muted); }
.mock-rows { display: flex; gap: 6px; margin-top: 8px; }
.mock-rows i { display: block; height: 22px; flex: 1; background: repeating-linear-gradient(90deg, var(--green-3) 0 8px, #f1f6e9 8px 12px); border-radius: 2px; }
.mock-note { font-size: 11.5px; color: var(--green); }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 15px 30px 15px 0; font-weight: 650; position: relative; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 11px; font-size: 20px; color: var(--green); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); max-width: 75ch; font-size: 14.5px; }

.page-head { padding-top: 48px; padding-bottom: 16px; }
.page-head h1 { max-width: 20ch; }
.page-head .region-form { max-width: 560px; margin-top: 26px; }
.month-section { padding-top: 26px; }
.month-section h2 { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.month-section .task-grid { background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.year-section { padding-top: 42px; }
.section-lede { color: var(--muted); max-width: 70ch; margin-top: -4px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); }
.year-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 780px; }
.year-table th, .year-table td { padding: 7px 6px; border-bottom: 1px solid var(--line-2); text-align: center; }
.year-table thead th { font-family: var(--sans); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.year-table thead th:first-child { text-align: left; padding-left: 12px; }
.year-table tbody th { text-align: left; font-family: var(--serif); font-size: 13.5px; font-weight: 700; padding-left: 12px; white-space: nowrap; }
.year-table tbody th a { color: var(--ink); text-decoration: none; }
.year-table tbody th a:hover { color: var(--green); }
.year-table tbody tr:hover { background: #fbf8ee; }
.year-table td .l { display: inline-block; font-size: 10.5px; font-weight: 800; margin: 0 1px; }
.year-table .none { color: #c9c3b4; }
.year-table td.m4, .year-table td.m5, .year-table td.m6 { background: rgba(47, 93, 58, 0.035); }

/* Mischkultur table: text cells, not month columns. */
.pair-table { min-width: 600px; }
.pair-table th, .pair-table td { text-align: left; padding: 8px 12px; vertical-align: top; }
.pair-table tbody th { white-space: nowrap; }
.pair-table td { font-size: 13.5px; color: var(--ink-soft); }
.pair-table .none { color: var(--muted); }
@media (max-width: 640px) {
  .pair-table { min-width: 480px; font-size: 12.5px; }
  .pair-table tbody th { position: sticky; left: 0; background: var(--paper-2); }
  .pair-table th, .pair-table td { padding: 7px 8px; }
  .pair-table tbody th { white-space: normal; }
}

.links-section { padding-top: 44px; }
.scroll-hint { display: none; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .scroll-hint { display: block; } }
.regions-section { padding-top: 62px; }
.month-intro { max-width: 74ch; color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 14px; }
.crop-index { padding-top: 10px; padding-bottom: 10px; }
.family-block { margin-top: 34px; }
.family-block h2 { font-size: 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.link-list { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }

.crop-page { padding-top: 34px; padding-bottom: 20px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.crumbs span { margin: 0 6px; }
.date-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 0 18px; }
.date-card { background: var(--paper-2); border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.date-card.indoor { border-top-color: var(--green-2); }
.date-card.outdoor { border-top-color: var(--green); }
.date-card.plant { border-top-color: var(--blue); }
.date-card.harvest { border-top-color: var(--sun); }
.date-kind { display: block; font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.date-card strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.crop-page .sow-bar { margin: 10px 0 30px; }
.crop-cols { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; margin-top: 8px; }
.crop-cols h2 { font-size: 1.4rem; }
.crop-cols p { color: var(--ink-soft); }
.facts { margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-2); padding: 7px 0; font-size: 13.5px; }
.facts dt { color: var(--muted); margin: 0; }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-block; padding: 4px 9px; border-radius: 4px; border: 1px solid var(--line); font-size: 12.5px; text-decoration: none; color: var(--ink); background: var(--paper-2); }
.chip:hover { border-color: var(--green-2); color: var(--green); }
.chip.good { border-color: #bcd3b7; background: #eef5e9; }
.chip.bad { border-color: #e6c2b5; background: #fbf0ea; }
.rotation { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 22px; }
.rotation p { max-width: 78ch; color: var(--ink-soft); }
.related { margin-top: 30px; }
.related h2 { font-size: 1.3rem; }

.page { max-width: 820px; padding-top: 46px; padding-bottom: 40px; }
.page h1 { max-width: 24ch; }
.page h2 { margin-top: 34px; font-size: 1.45rem; }
.page p, .page li { color: var(--ink-soft); }
.page .note { border-left: 3px solid var(--sun); padding: 4px 0 4px 14px; background: #fbf6e8; font-size: 14.5px; }
.article ul { padding-left: 20px; }
.article li { margin: 5px 0; }

/* Planner */
.planner-head { padding-top: 44px; }
.planner-status { min-height: 1.3em; margin: 0 0 12px; font-size: 13px; color: var(--clay); }
.planner-app { max-width: 1120px; margin: 10px auto 40px; padding: 0 24px; }
.planner-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.planner-toolbar .field { max-width: 260px; }
.toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.add-bed { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr auto; gap: 12px; align-items: end; margin: 16px 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.field { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select { margin-top: 4px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); }
.planner-empty { border: 1px dashed var(--line); border-radius: 8px; padding: 30px; text-align: center; color: var(--muted); }
.bed-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.bed-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 16px; background: #f2eee2; border-bottom: 1px solid var(--line); }
.bed-head h2 { margin: 0; font-size: 1.2rem; }
.bed-size { font-size: 12px; color: var(--muted); }
.bed-body { padding: 14px 16px; }
.bed-add { display: grid; grid-template-columns: 1.4fr 0.8fr auto; gap: 10px; align-items: end; margin-bottom: 12px; }
.bed-crops { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bed-crops th { text-align: left; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--line); }
.bed-crops td { padding: 7px 6px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.bed-crops tr:last-child td { border-bottom: 0; }
.bed-crops .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; padding: 2px 6px; }
.remove:hover { color: var(--clay); }
.warn { margin: 8px 0 0; padding: 8px 10px; border-left: 3px solid var(--clay); background: #fbf0ea; font-size: 13px; color: #6b3521; }
.ok-note { margin: 8px 0 0; padding: 8px 10px; border-left: 3px solid var(--green-2); background: #eef5e9; font-size: 13px; color: #2f4d33; }
.rotation-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12.5px; color: var(--muted); }
.rotation-row select { max-width: 220px; min-height: 34px; padding: 5px 10px; font-size: 13px; }
.planner-help { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 20px; }
.planner-help h2 { font-size: 1.35rem; }
.planner-help ul { color: var(--ink-soft); font-size: 14.5px; }
.planner-help p { color: var(--muted); font-size: 13.5px; }

.error-wrap { min-height: 55vh; display: grid; place-items: center; text-align: center; padding-top: 70px; padding-bottom: 70px; }
.error-wrap h1 { max-width: none; font-size: clamp(2rem, 5vw, 3.2rem); }
.error-wrap p { color: var(--muted); max-width: 44ch; margin: 14px auto 22px; }

.site-foot { max-width: 1120px; margin: 70px auto 0; padding: 26px 24px 40px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--ink); }
.foot-brand .logo { width: 24px; height: 24px; color: var(--green); }
.foot-note { margin: 0; max-width: 44ch; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot nav a { color: var(--muted); text-decoration: none; }
.site-foot nav a:hover { color: var(--green); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; }
  .hero-copy { max-width: 640px; }
  .crop-grid { grid-template-columns: repeat(2, 1fr); }
  .steps ol { grid-template-columns: 1fr; gap: 18px; }
  .planner-teaser { grid-template-columns: 1fr; padding: 28px; }
  .plan-mock { display: none; }
  .crop-cols { grid-template-columns: 1fr; gap: 20px; }
  .month-section .task-grid { grid-template-columns: 1fr 1fr; }
  .date-cards { grid-template-columns: 1fr 1fr; }
  .add-bed { grid-template-columns: 1fr 1fr; }
  .add-bed button { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .site-head { padding: 16px 18px 12px; }
  .brand { font-size: 20px; gap: 7px; }
  .brand .logo { width: 24px; height: 24px; }
  .site-head nav { gap: 10px; }
  .site-head nav a { font-size: 13.5px; }
  .site-head nav a:nth-child(3), .site-head nav a:nth-child(4) { display: none; }
  h1 { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .hero, .page-head, .month-section, .year-section, .links-section, .band-section, .steps, .crops-section, .planner-teaser, .faq, .crop-page, .page { padding-left: 18px; padding-right: 18px; }
  .now-card { padding: 18px 16px 14px; }
  .task-grid { grid-template-columns: 1fr; }
  .month-section .task-grid { grid-template-columns: 1fr; }
  .band-row { grid-template-columns: 105px 1fr; gap: 10px; padding: 9px 12px; }
  .crop-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .crop-card { padding: 11px; }
  .crop-name { font-size: 15.5px; }
  .date-cards { grid-template-columns: 1fr 1fr; }
  .planner-toolbar { align-items: stretch; }
  .toolbar-actions { justify-content: space-between; }
  .add-bed { grid-template-columns: 1fr 1fr; padding: 12px; }
  .bed-add { grid-template-columns: 1fr 1fr; }
  .bed-add button { grid-column: 1 / -1; }
  .bed-head { flex-wrap: wrap; gap: 6px; }
  .site-foot { padding-left: 18px; padding-right: 18px; margin-top: 50px; }
  .planner-app { padding: 0 18px; }
  .facts { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  body::before, .site-head, .site-foot, .planner-head, .planner-toolbar, .add-bed, .bed-add, .planner-help, .rotation-row, .skip, .remove, .toolbar-actions { display: none !important; }
  .planner-app { max-width: none; padding: 0; }
  .bed-card { border: 1px solid #bbb; break-inside: avoid; margin-bottom: 8mm; }
  .bed-head { background: #f2f2f2; }
  .warn { background: #fdf3ee; }
  .ok-note { background: #f1f6ee; }
  a { color: #000; text-decoration: none; }
  .print-title { display: block !important; margin: 0 0 6mm; font-family: var(--serif); font-size: 18pt; }
}
.print-title, .print-note, .print-cal-title { display: none; }
@media print {
  body.print-cal .site-head, body.print-cal .site-foot, body.print-cal .page-head .lede, body.print-cal .region-form,
  body.print-cal .kicker, body.print-cal .month-section, body.print-cal .links-section, body.print-cal .btn,
  body.print-cal .section-lede, body.print-cal .scroll-hint { display: none !important; }
  body.print-cal h1, body.print-cal .year-section .section-head h2 { display: none !important; }
  body.print-cal .print-cal-title { display: block; font-family: var(--serif); font-size: 18pt; margin: 0 0 4mm; }
  body.print-cal .print-cal-legend { display: block; font-family: var(--sans); font-size: 8pt; color: #555; margin-top: 1.5mm; }
  body.print-cal .legend { display: none !important; }
  body.print-cal .page-head { padding: 0; }
  body.print-cal .year-section { padding: 0; }
  body.print-cal .year-table { min-width: 0; width: 100%; font-size: 7pt; }
  body.print-cal .year-table th, body.print-cal .year-table td { padding: 2px 2px; }
  body.print-cal .table-wrap { border: 0; }
  .print-title { display: block; margin: 0 0 6mm; font-family: var(--serif); font-size: 18pt; }
  .print-note { display: block; margin-top: 6mm; font-size: 8.5pt; color: #555; border-top: 1px solid #ccc; padding-top: 3mm; }
}

@media (max-width: 380px) {
  .site-head { padding-left: 14px; padding-right: 14px; }
  .brand { font-size: 18px; }
  .site-head nav a:nth-child(2) { display: none; }
}
