:root {
    color-scheme: light;
    font-family: system-ui, sans-serif;
    color: #1e2c27;
    background: #f2f4ef;
    --green: #234c3d;
    --muted: #52645c;
    --line: #d4ded6;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
.wrap { max-width: 70rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
main { padding-block: clamp(1.5rem, 5vw, 3.5rem); }
.masthead { background: #172e25; color: #f5faf6; }
.top { min-height: 4.75rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: .65rem; }
.top a { color: inherit; text-decoration: none; }
.brand { font-family: Georgia, serif; font-size: 1.65rem; font-weight: bold; margin-right: auto; }
nav { display: flex; gap: .25rem; }
nav a { padding: .6rem .7rem; border-radius: .5rem; }
nav a[aria-current], nav a:hover { background: #345446; }
h1, h2, p { margin: 0; }
h1 { font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; letter-spacing: -.035em; }
h2 { font-size: 1.05rem; margin-bottom: .65rem; }
p, small, time { color: var(--muted); }
small { font-weight: normal; }
.panel, .metric { padding: clamp(1rem, 3vw, 1.65rem); background: #fff; border: 1px solid var(--line); border-radius: 1rem; }
.narrow { max-width: 36rem; margin-inline: auto; }
.stack { display: grid; gap: 1rem; margin-top: 1.35rem; }
label { display: grid; gap: .35rem; font-weight: 600; }
[hidden] { display: none !important; }
input, select, textarea, button, .button { font: inherit; min-height: 2.85rem; }
input, select, textarea { padding: .6rem .75rem; width: 100%; min-width: 0; color: inherit; border: 1px solid #aabbb0; border-radius: .5rem; background: #fff; }
textarea { resize: vertical; }
button, .button { display: inline-flex; align-items: center; justify-content: center; padding: .6rem 1rem; border: 1px solid transparent; border-radius: .55rem; background: var(--green); color: white; text-decoration: none; font-weight: 700; cursor: pointer; }
button:hover, .button:hover { filter: brightness(1.18); }
.quiet { background: transparent; color: inherit; border-color: currentColor; }
:focus-visible { outline: 3px solid #ae7430; outline-offset: 2px; }
fieldset { margin: 0; padding: .8rem; min-width: 0; border: 1px solid var(--line); border-radius: .6rem; }
legend { font-weight: 700; padding-inline: .35rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.heading p { margin-top: .35rem; }
.filter { display: flex; align-items: end; gap: .6rem; margin-bottom: 1rem; }
.filter label { width: min(18rem, 100%); }
.metrics, .dashboard { display: grid; gap: .85rem; }
.metrics { grid-template-columns: repeat(3, 1fr); margin-bottom: .85rem; }
.metric h2 { font-size: .9rem; color: var(--muted); }
.metric strong { font-size: clamp(1.6rem, 4vw, 2.75rem); line-height: 1; }
.dashboard { grid-template-columns: 1fr 1.5fr; align-items: start; }
.species { display: grid; grid-template-columns: 1fr auto; gap: .2rem .5rem; margin-top: .7rem; }
meter { width: 100%; grid-column: 1 / -1; accent-color: var(--green); }
.harvest { padding-block: .75rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.harvest:last-child { padding-bottom: 0; }
.harvest-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; column-gap: .75rem; }
.harvest-title span, time { font-size: .875rem; }
.message { max-width: 36rem; margin: 0 auto 1rem; padding: .75rem 1rem; background: #dceee2; border-radius: .5rem; }
.error { color: #792a23; background: #fff0ee; }
@media (max-width: 42rem) {
    .dashboard { grid-template-columns: 1fr; }
    .metrics { gap: .4rem; }
    .metric { padding: .65rem; }
}
@media (max-width: 31rem) {
    nav { order: 3; width: 100%; }
}
#weather-lookup { margin-bottom: .75rem; }
#weather-status { font-size: .9rem; margin-bottom: .4rem; }
.checkbox { display: flex; align-items: center; gap: .45rem; font-size: .9rem; min-height: 2rem; }
.checkbox input { width: 1.1rem; min-height: 1.1rem; margin: 0; }
button:disabled { opacity: .6; cursor: wait; }
