:root {
  color-scheme: light;
  --paper: #f8f7ef;
  --surface: #fffef8;
  --forest: #254437;
  --ink: #203229;
  --muted: #515f52;
  --line: #d9dfcb;
  --leaf: #e9f1d7;
  --peach: #f7e6d9;
  --gold: #f8edc8;
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--forest); text-underline-offset: .2em; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #537737; outline-offset: 3px; }
button:disabled { opacity: .7; cursor: wait; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.13; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: -.055em; }
h2 { font-size: 1.37rem; letter-spacing: -.025em; }
h3 { font-size: 1.1rem; }
ol { padding-left: 1.3rem; }
ol li + li { margin-top: .35rem; }
summary { padding-block: .6rem; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.shell { width: min(960px, calc(100% - 32px)); margin-inline: auto; }
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; text-decoration: none; font-size: 1.17rem; letter-spacing: -.03em; }
.brand img, .pixel { image-rendering: pixelated; }
.languages { display: flex; gap: 3px; border: 1px solid var(--line); border-radius: 12px; padding: 3px; background: var(--surface); }
.languages button { min-height: 44px; min-width: 44px; background: transparent; border: 0; border-radius: 8px; font-weight: 700; }
.languages button[aria-pressed="true"] { background: var(--leaf); color: var(--forest); }
main { padding-block: 24px 8px; }
.footer { margin-top: 20px; padding-block: 15px 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.hero { position: relative; overflow: hidden; background: var(--leaf); border: 1px solid #a7b78f; border-bottom: 4px solid var(--forest); border-radius: 20px; display: grid; grid-template-columns: 1fr .94fr; }
.hero-copy { padding: clamp(22px, 5vw, 45px); display: grid; gap: 17px; align-content: center; }
.hero-copy p { max-width: 35ch; }
.hero-art { align-self: stretch; width: 100%; height: 100%; min-height: 285px; object-fit: cover; object-position: 67% 50%; }
.access { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 13px; }
.access a { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 750; text-decoration: none; }
.access a:hover { border-color: #a7b78f; background: var(--leaf); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 15px; border: 1px solid var(--forest); border-radius: 9px; font-weight: 750; text-align: center; text-decoration: none; }
.primary { color: white; background: var(--forest); box-shadow: 0 2px 0 #152b20; }
.primary:hover { background: #315743; }
.secondary { color: var(--forest); background: var(--surface); border-color: #aebca5; }
.secondary:hover { background: var(--leaf); }
.text-button { padding: 8px 0; min-height: 44px; background: transparent; border: 0; color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: .16em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.actions > * { max-width: 100%; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-top: -7px; font-weight: 700; }
.page { max-width: 700px; margin-inline: auto; }
.page-header { margin-bottom: 17px; }
.page-header h1 { margin-block: 2px 9px; }
.page-header p, .muted { color: var(--muted); }
.stack { display: grid; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: clamp(15px, 4vw, 24px); }
.card p { margin-top: 7px; }
.sheet-head { display: flex; align-items: center; gap: 15px; background: var(--leaf); }
.crop-art { width: 70px; height: 70px; object-fit: contain; background: var(--peach); border-radius: 12px; padding: 5px; flex: none; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 0; overflow: hidden; background: var(--line); }
.facts div { padding: 13px 14px; background: var(--surface); }
.facts strong { display: block; color: var(--forest); }
.facts span { color: var(--muted); font-size: .9rem; }
.checklist { margin-top: 9px; display: grid; gap: 3px; }
.checklist label, .checkfield { display: grid; grid-template-columns: 21px minmax(0, 1fr); align-items: start; gap: 10px; min-height: 44px; padding-block: 8px; }
input[type="checkbox"] { accent-color: var(--forest); width: 20px; height: 20px; margin: 2px 0 0; }
.note { border-left: 3px solid #849b59; padding-left: 10px; color: var(--muted); font-size: .92rem; }
.source-list { display: grid; gap: 4px; padding-bottom: 6px; font-size: .9rem; }
.simulation { font-weight: 700; background: var(--gold); border: 1px solid #e2d49b; border-radius: 8px; padding: 6px 10px; width: fit-content; font-size: .88rem; }
.demo-timeline { display: flex; list-style: none; gap: 4px; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); scroll-margin-top: 12px; }
.demo-timeline li { flex: 1 1 0; min-width: 0; margin: 0; padding: 6px 4px; border-radius: 8px; text-align: center; line-height: 1.25; color: var(--muted); }
.demo-timeline li[aria-current="date"] { background: var(--forest); color: white; }
.demo-timeline small, .demo-timeline time, .demo-timeline span { display: block; }
.demo-timeline small { font-size: .72rem; }
.demo-timeline time { margin-block: 3px; font-weight: 800; }
.demo-timeline span { font-size: .82rem; }
.alert { background: #f6ede1; border-color: #d8b48c; }
.feedback { background: var(--leaf); border-radius: 9px; padding: 9px 11px; color: var(--forest); }
.well-done { font-size: .9rem; }
.task-description { margin-bottom: 13px !important; }
.plant-options { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.plant-option { position: relative; min-width: 0; min-height: 81px; display: flex; gap: 9px; align-items: center; text-align: left; padding: 9px 25px 9px 9px; border: 1px solid #bfcbb2; border-radius: 11px; background: #fbfaef; }
.plant-option[aria-pressed="true"] { background: var(--leaf); border-color: #759057; box-shadow: inset 0 0 0 1px #759057; }
.plant-option strong, .plant-option small { display: block; line-height: 1.22; overflow-wrap: anywhere; }
.plant-option small { color: var(--muted); font-size: .78rem; margin-top: 3px; }
.plant-icon { flex: none; object-fit: contain; border-radius: 8px; background: var(--peach); }
.picked { position: absolute; top: 6px; right: 7px; color: var(--forest); font-size: .92rem; font-weight: 800; }
.selection-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; color: var(--forest); }
.selection-footer p { margin: 0; font-size: .87rem; }
.selection-footer button:disabled { cursor: default; }
.selection-message { font-size: .86rem; color: #622c1d; }
.plan-list { list-style: none; margin: 12px 0; padding: 0; }
.plant-heading { display: flex; align-items: flex-start; gap: 10px; }
.plant-heading div { min-width: 0; }
.plant-heading p { margin: 3px 0 0; }
.plan-list li { border-top: 1px solid var(--line); padding-block: 11px; }
.at-risk { margin: 4px 0 0; padding-left: 20px; font-weight: 700; }
.care-header { padding-block: 3px; }
.harvest { position: relative; background: #f9efd5; border-color: #d6bd82; border-bottom: 4px solid #a9843f; overflow: hidden; }
.harvest h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); letter-spacing: -.05em; }
.harvest-message { max-width: 49ch; }
.harvest-pots { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)); gap: 8px; margin: 17px 0 0; padding: 0; }
.harvest-pots li { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid #dfd4b5; border-radius: 10px; padding: 7px 9px; min-width: 0; }
.harvest-pots p { margin: 3px 0 0; color: var(--muted); font-size: .87rem; line-height: 1.35; }
.harvest-art { width: 56px; height: 48px; object-fit: contain; flex: none; }
.harvest-sparkles { position: absolute; inset: 11px 10px auto auto; width: 58px; height: 48px; pointer-events: none; }
.harvest-sparkles i { position: absolute; width: 5px; height: 5px; background: #cc9547; opacity: .72; }
.harvest-sparkles i:nth-child(1) { top: 6px; right: 4px; }
.harvest-sparkles i:nth-child(2) { top: 22px; right: 12px; background: #718b4c; }
.harvest-sparkles i:nth-child(3) { top: 30px; right: 1px; background: #c16a4c; }
.harvest-sparkles i:nth-child(4) { top: 2px; right: 23px; background: #c16a4c; }
.harvest-sparkles i:nth-child(5) { top: 34px; right: 27px; }
.harvest-sparkles i:nth-child(6) { top: 16px; right: 33px; background: #718b4c; }
@media (prefers-reduced-motion: no-preference) {
  .harvest-sparkles i { animation: sprout-confetti .68s ease-out both; }
  .harvest-sparkles i:nth-child(even) { animation-delay: .06s; }
}
@keyframes sprout-confetti {
  from { opacity: 0; transform: translate(-7px, 10px) scale(.5); }
  to { opacity: .72; transform: translate(0, 0) scale(1); }
}
.fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.field { display: grid; gap: 5px; align-content: start; font-weight: 680; }
.field input, .field select { min-width: 0; width: 100%; min-height: 46px; background: #fff; border: 1px solid #93a78c; border-radius: 8px; padding: 8px 9px; }
.field small { font-size: .85rem; color: var(--muted); font-weight: 450; }
.wide { grid-column: 1 / -1; }
.checks { border-top: 1px solid var(--line); padding-top: 8px; }
.status:empty { display: none; }
.status { padding: 8px 10px; background: var(--peach); border-radius: 8px; color: #622c1d; }

@media (max-width: 610px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: 0; max-height: 225px; object-position: 70% 53%; }
  .fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .access { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .plant-option { flex-direction: column; align-items: flex-start; padding: 7px 9px 9px; gap: 6px; min-height: 96px; }
  .plant-option strong { font-size: .88rem; }
  .plant-option small { font-size: .73rem; }
}
@media print {
  @page { margin: 15mm; }
  :root, body { background: white; }
  .masthead, .footer, .back, .print-hidden { display: none !important; }
  .page, .shell { width: 100%; max-width: none; }
  main { padding: 0; }
  .page-header { margin-bottom: 10px; }
  h1 { font-size: 31px; }
  .card { break-inside: avoid; padding: 11px 13px; }
  .stack { gap: 7px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts div { padding: 7px 9px; }
  .checklist label { min-height: 0; padding-block: 3px; }
  .sheet-head, .crop-art { print-color-adjust: exact; }
}
