:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #182820;
  background: #f6f7f2;
  --green: #23513b;
  --border: #d0d9ce;
}

* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(68rem, 100% - 2rem); margin-inline: auto; }
.masthead { background: #132f24; color: #fff; }
.masthead-inner { min-height: 4.75rem; display: flex; align-items: center; gap: .8rem; }
.mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid #a8c8a6;
  border-radius: .4rem;
  font: bold 1.45rem Georgia, serif;
  color: #d7edb4;
}
.brand { font: 700 1.45rem Georgia, serif; }
main { padding-block: clamp(2rem, 6vw, 4.5rem); }
h1 { margin: 0 0 1.65rem; font: 700 clamp(2.35rem, 6vw, 4.3rem)/1.05 Georgia, serif; letter-spacing: -.045em; }
.filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: .85rem;
  padding: 1.15rem;
  background: #e9efe4;
  border: 1px solid var(--border);
  border-radius: .7rem;
}
label { display: grid; gap: .35rem; font-weight: 650; }
input, select, button { min-height: 2.85rem; border-radius: .35rem; padding: .5rem .75rem; font: inherit; }
input, select { width: 100%; border: 1px solid #899e8e; background: #fff; color: inherit; }
select {
  appearance: none;
  padding-right: 2.15rem;
  background-image: linear-gradient(45deg, transparent 50%, #23513b 50%), linear-gradient(135deg, #23513b 50%, transparent 50%);
  background-position: right 1.05rem center, right .7rem center;
  background-size: .35rem .35rem;
  background-repeat: no-repeat;
}
button { border: 1px solid var(--green); background: var(--green); color: #fff; font-weight: 650; cursor: pointer; }
button:hover:not(:disabled) { background: #163827; color: #fff; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #a95419; outline-offset: 3px; }
#status { min-height: 1.5em; margin-block: 1.6rem .8rem; color: #405c49; }
.results { display: grid; gap: .65rem; list-style: none; padding: 0; margin: 0; }
.product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: .55rem;
}
.product h2 { margin: 0 0 .25rem; font: 700 1.45rem Georgia, serif; overflow-wrap: anywhere; }
.product p { margin: 0; color: #435b4b; overflow-wrap: anywhere; }
.secondary { background: #fff; color: var(--green); }
.farm-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .85rem; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: 1rem; }
[hidden] { display: none !important; }
dialog { width: min(30rem, 100% - 2rem); border: 1px solid var(--border); border-radius: .7rem; padding: 1.25rem; color: inherit; }
dialog::backdrop { background: #142b22b0; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dialog-heading h2 { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  .filters { grid-template-columns: 1fr; }
  .pagination button { padding-inline: .45rem; }
}
