:root {
    color-scheme: light;
    --paper: #faf8f1;
    --white: #fffdf8;
    --ink: #202c20;
    --muted: #4b5749;
    --green: #28583b;
    --pale: #e8eddb;
    --line: #d6dcce;
    font: 100%/1.6 system-ui,sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
}

a {
    color: var(--green);
    text-underline-offset: .2em;
}

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

picture {
    display: block;
    min-width: 0;
}

.wrap {
    width: min(1120px,100% - 2rem);
    margin-inline: auto;
}

.site-header,.site-footer {
    background: var(--white);
}

.site-header {
    border-bottom: 1px solid var(--line);
}

.site-header nav,.site-footer .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 1.4rem;
    padding-block: .6rem;
}

.site-footer {
    margin-top: 4rem;
    padding-block: 1.5rem;
    border-top: 1px solid var(--line);
}

.nav-links {
    display: flex;
    gap: .1rem 1rem;
    flex-wrap: wrap;
}

.nav-links a,.brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.brand {
    font: 700 1.5rem Georgia,serif;
    text-decoration: none;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -10rem;
    background: white;
    padding: .5rem;
    z-index: 1;
}

.skip:focus {
    top: 0;
}

h1,h2,h3 {
    line-height: 1.12;
    font-family: Georgia,serif;
    margin: 0 0 .6em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.2rem,5vw,4.15rem);
}

h2 {
    font-size: clamp(1.65rem,3vw,2.6rem);
}

p {
    max-width: 66ch;
}

section {
    margin-block: clamp(2rem,6vw,5rem);
}

.stack {
    padding-block: 2rem;
}

.eyebrow {
    font-size: .82rem;
    letter-spacing: .08em;
    color: var(--green);
    font-weight: 700;
    text-transform: uppercase;
}

.hero,.split {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-items: center;
    gap: clamp(1rem,4vw,4rem);
}

.hero img,.split img {
    border-radius: 1.2rem;
    object-fit: cover;
}

.hero img {
    aspect-ratio: 5/4;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.button,button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border: 1px solid var(--green);
    border-radius: .45rem;
    background: var(--green);
    color: white;
    padding: .55rem .85rem;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.secondary {
    color: var(--green);
    background: transparent;
}

.free-note {
    padding: clamp(1rem,4vw,2.25rem);
    border-radius: 1rem;
    background: var(--pale);
}

.free-note p {
    margin-bottom: 0;
}

.cards {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr));
    gap: 1rem;
}

.cards li,.card {
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: .75rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.faq details {
    padding: .8rem;
    border-bottom: 1px solid var(--line);
}

summary {
    cursor: pointer;
    font-weight: 650;
}

form {
    display: grid;
    gap: .8rem;
    max-width: 42rem;
}

label {
    display: grid;
    gap: .3rem;
}

input,textarea,select {
    min-height: 44px;
    width: 100%;
    border: 1px solid #778472;
    border-radius: .4rem;
    padding: .55rem;
    background: white;
    color: var(--ink);
    font: inherit;
}

input[type=checkbox] {
    min-height: auto;
    width: auto;
}

textarea {
    min-height: 6rem;
}

form button {
    justify-self: start;
}

output {
    display: block;
    margin-block: 1rem;
}

[hidden] {
    display: none!important;
}

:focus-visible {
    outline: 3px solid #b54b14;
    outline-offset: 3px;
}

fieldset {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: .5rem;
}

@media(max-width:760px) {
    .hero,.split {
        grid-template-columns: 1fr;
    }
    .hero {
        margin-top: 1.6rem;
    }
    .hero img {
        aspect-ratio: 4/3;
    }
    .split picture {
        order: 2;
    }
}

.map {
    height: clamp(250px,48vh,530px);
    position: relative;
    overflow: hidden;
    border-radius: .8rem;
    border: 1px solid var(--line);
    background: #e1ead9;
}

.map.leaflet-container {
    background: #d2e6e9;
    z-index: 0;
}

.map-pin {
    border-radius: 50%;
    height: 44px;
    width: 44px;
    justify-content: center;
    padding: 0;
}

#panel .map .leaflet-tile {
    width: 256px;
    border-radius: 0;
}

#panel article,#cart-items article {
    margin-block: 1rem;
}

#panel button {
    margin: .25rem;
}

#panel details {
    margin-block: .8rem;
}

#panel img {
    width: min(22rem,100%);
    border-radius: .5rem;
}

#panel form {
    padding: .65rem 0;
}

.map-pin:hover {
    background: #1e432d;
}

/* Shared navigation, catalog cards and map. */
:root {
    --paper: #f8f6ed;
    --white: #fffefa;
    --ink: #223427;
    --green: #234f39;
    --line: #dddcd0;
}
.icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 1.15em;
    height: 1.15em;
    vertical-align: middle;
}
.brand, .nav-links a, .button, button {
    gap: .55rem;
}
.brand-mark {
    flex: none;
    width: 2rem;
    height: 2rem;
}
.site-header nav {
    min-height: 4.8rem;
}
.site-header .nav-links a {
    text-decoration: none;
    font-weight: 650;
}
.site-header .nav-links a:hover {
    text-decoration: underline;
}
.hero {
    gap: 0;
    overflow: hidden;
    border-radius: 1.55rem;
    background: #e8ecd9;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    margin-top: 2.6rem;
    margin-bottom: 2rem;
    align-items: stretch;
}
.android-download {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin-bottom: 2rem;
}
.android-download p {
    margin: 0;
}
.android-download small {
    color: var(--muted);
}
.hero-copy {
    align-self: center;
    padding: clamp(1.35rem, 4vw, 3.75rem);
}
.hero h1 {
    font-size: clamp(2.65rem, 5.5vw, 5.05rem);
    letter-spacing: -.065em;
    line-height: .99;
    text-wrap: initial;
    margin-bottom: 1rem;
}
.hero p {
    color: var(--muted);
    margin-bottom: 1.4rem;
}
.hero img {
    height: 100%;
    min-height: 22rem;
    border-radius: 0;
    object-position: 65%;
}
.category-section {
    margin-top: 1.8rem;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .3rem 1rem;
}
.category-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.4rem), 1fr));
    gap: .65rem;
}
.category-grid a {
    display: flex;
    height: 100%;
    gap: .65rem;
    align-items: center;
    min-height: 4.4rem;
    padding: .6rem .75rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: .75rem;
    text-decoration: none;
    font-weight: 650;
    font-size: .94rem;
    line-height: 1.25;
}
.category-grid a:hover {
    border-color: var(--green);
    background: #eef0e3;
}
.category-grid .icon {
    width: 1.8rem;
    height: 1.8rem;
}
.map-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
#map-filter {
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: .85rem;
}
#farm-preview,
#mail-feedback {
    width: min(28rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: .85rem;
    background: var(--white);
    color: inherit;
}
#farm-preview::backdrop,
#mail-feedback::backdrop {
    background: rgb(0 0 0 / .45);
}
#farm-preview form,
#mail-feedback form {
    display: flex;
    justify-content: flex-end;
}
#farm-preview-status:empty,
#farm-preview-products:empty {
    display: none;
}
.farm-profile-photo {
    width: min(100%, 34rem);
    max-height: 18rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: .75rem;
}
@media (max-width: 760px) {
    .hero, .map-layout { grid-template-columns: 1fr; }
    .hero { margin-top: 1.05rem; }
    .hero img { min-height: 0; aspect-ratio: 16 / 9; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid a { overflow-wrap: anywhere; }
}
.map-pin .icon {
    width: 1.45rem;
    height: 1.45rem;
}
