:root {
    color-scheme: light;
    --green: #244936;
    --ink: #172e24;
    --line: #d2dacd;
    --paper: #f8f8f1;
    --sage: #e4eadc;
    font: 100%/1.5 system-ui,sans-serif;
    color: var(--ink);
    background: var(--paper);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.wrap {
    width: min(1160px,calc(100% - 2.25rem));
    margin-inline: auto;
}

header,footer,nav,.line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.brand,h1,h2,footer strong {
    font-family: Georgia,serif;
}

.brand {
    font-size: 1.75rem;
    text-decoration: none;
    line-height: 1;
}

.brand span,.eyebrow {
    display: block;
    font: 650 .7rem/1.4 system-ui;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.brand span {
    margin-top: .3rem;
    font-size: .57rem;
}

.eyebrow {
    margin: 0 0 1rem;
    color: #48634e;
}

a {
    color: inherit;
}

button,input,textarea,select {
    font: inherit;
}

button {
    cursor: pointer;
}

.navbutton,.action,.secondary,.tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--green);
    border-radius: 100px;
    padding: .65rem 1rem;
    font-weight: 650;
    font-size: .9rem;
}

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

.action {
    gap: 1.2rem;
    background: var(--green);
    color: white;
    padding: .85rem 1.35rem;
}

.action:hover {
    background: #163724;
}

header form {
    margin: 0;
}

.hero {
    display: grid;
    background: var(--sage);
    border-radius: 1.4rem;
    overflow: hidden;
    margin: 1.45rem 0;
}

.intro {
    padding: clamp(1.75rem,4.5vw,4.2rem);
    align-self: center;
}

.intro>p:not(.eyebrow) {
    max-width: 38ch;
    margin: 1.4rem 0 1.8rem;
}

.hero-photo {
    width: 100%;
    height: 100%;
    min-height: 180px;
    max-height: 520px;
    object-fit: cover;
}

h1,h2 {
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -.043em;
    margin: 0 0 1rem;
}

h1 {
    font-size: clamp(2.4rem,5.3vw,4.75rem);
}

h2 {
    font-size: clamp(1.7rem,3.2vw,2.7rem);
}

p {
    margin: .65rem 0 1rem;
}

small {
    display: block;
    color: #4f6257;
    font-size: .84rem;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: clamp(1.25rem,3.2vw,2.7rem);
    background: #fff;
    margin: 1rem 0;
    min-width: 0;
}

.contact {
    display: grid;
    gap: 1.5rem;
}

.contact p {
    max-width: 38ch;
}

form label {
    display: grid;
    gap: .3rem;
    font-weight: 600;
    margin: 0 0 .85rem;
    font-size: .94rem;
}

input,select,textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #aeb9ac;
    border-radius: .45rem;
    background: white;
    padding: .7rem;
    color: var(--ink);
}

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

.narrow,.order {
    max-width: 620px;
    margin: 2.5rem auto;
}

.feedback {
    background: #ecf0da;
    border-left: 4px solid var(--green);
    padding: 1rem;
    margin: 1rem 0;
}

.feedback p {
    margin: 0;
}

.pagehead {
    padding: 2rem 0 1rem;
}

.tabs {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: .5rem;
}

.tabs a {
    border-color: var(--line);
    padding: .5rem .85rem;
}

.tabs [aria-current] {
    background: var(--green);
    color: white;
}

.line,.entry {
    border-bottom: 1px solid var(--line);
    padding: .8rem 0;
}

.line input {
    width: 5rem;
}

.entry summary {
    cursor: pointer;
}

.entry p {
    margin: .35rem 0;
}

.cards {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.cards .panel {
    margin: 0;
}

footer {
    margin-top: 2rem;
    border-top: 1px solid var(--line);
    padding: 1.4rem 0 2rem;
    font-size: .85rem;
}

@media(min-width:740px) {
    .hero,.contact,.cards {
        grid-template-columns: 1fr 1fr;
    }
    .hero {
        min-height: 395px;
    }
    .hero-photo {
        max-height: none;
    }
    .contact {
        gap: 4rem;
    }
    .intro h1 {
        max-width: 10ch;
    }
}

@media(max-width:739px) {
    .hero-photo {
        height: clamp(190px,57vw,340px);
    }
    .intro h1 {
        max-width: 12ch;
    }
    header nav {
        gap: .65rem;
    }
    .pagehead h1,.narrow h1 {
        overflow-wrap: anywhere;
    }
}
