:root {
    background: #f3efe5;
    color: #29261f;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
}

header,
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #c9c0ad;
    padding: 22px clamp(24px, 6vw, 90px);
}

footer {
    border-top: 1px solid #c9c0ad;
    border-bottom: 0;
}

nav {
    display: flex;
    gap: 24px;
}

a {
    text-underline-offset: 4px;
    color: inherit;
}

.logo {
    text-decoration: none;
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
}

main {
    padding: 0 clamp(24px, 6vw, 90px) 80px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(34px, 6vw, 90px);
    align-items: center;
    padding: 9vh 0 10vh;
}

.hero-copy {
    max-width: 820px;
}

.hero-image {
    margin: 0;
}

.hero-image img {
    display: block;
    filter: saturate(0.78) contrast(0.96);
    aspect-ratio: 4 / 5;
    width: 100%;
    object-fit: cover;
}

.hero-image figcaption {
    margin-top: 10px;
    color: #655d50;
    font-size: 0.75rem;
}

.kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #695f4d;
    font-size: 0.75rem;
    font-weight: 700;
}

h1,
h2 {
    font-family: Georgia, serif;
    font-weight: 500;
}

h1 {
    margin: 18px 0;
    max-width: 850px;
    line-height: 0.92;
    font-size: clamp(3rem, 8vw, 7rem);
}

button,
input {
    border: 1px solid #4c493f;
    padding: 0 16px;
    min-height: 44px;
    font: inherit;
}

button {
    background: #34372c;
    color: #fff;
    cursor: pointer;
}

output {
    display: block;
    margin-top: 12px;
    min-height: 1.5em;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    border: 1px solid #a9a18f;
    background: #a9a18f;
}

.catalog-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    gap: 48px;
    align-items: end;
    border-top: 1px solid #c9c0ad;
    padding: 48px 0 28px;
}

.catalog-tools h2 {
    margin: 8px 0 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.catalog-tools form {
    display: grid;
    gap: 9px;
}

.search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.search-controls input {
    width: 100%;
}

#product-search-status {
    margin-top: 2px;
    color: #655d50;
    font-size: 0.85rem;
}

.products article {
    background: #e8e0cf;
    min-width: 0;
}

.products article[hidden] {
    display: none;
}

.products article > img {
    display: block;
    filter: saturate(0.85) contrast(0.96);
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
}

.product-copy {
    padding: 28px;
}

.product-index {
    color: #695f4d;
    font-size: 0.75rem;
}

.product-category {
    float: right;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #695f4d;
    font-size: 0.68rem;
    font-weight: 700;
}

.product-price {
    display: block;
    margin-top: 20px;
    font-family: Georgia, serif;
    font-size: 1.2rem;
}

.stock-status {
    display: inline-block;
    margin-top: 12px;
    border-radius: 999px;
    background: #d4dbc4;
    padding: 6px 10px;
    color: #3d4932;
    font-size: 0.75rem;
    font-weight: 700;
}

.products h2 {
    margin: 30px 0 10px;
}

.newsletter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 48px;
    margin-top: 70px;
    background: #d6cdb9;
    padding: 50px;
}

.newsletter form {
    display: grid;
    gap: 10px;
}

.story {
    margin: 0 auto;
    padding-top: 10vh;
    max-width: 850px;
}

.story h1 {
    font-size: clamp(3rem, 8vw, 6rem);
}

.lede {
    line-height: 1.5;
    font-family: Georgia, serif;
    font-size: 1.5rem;
}

figure {
    margin: 50px 0;
}

.landscape {
    background: linear-gradient(165deg, #e1b784 0 38%, #7f8b69 38% 61%, #384d3f 61%);
    height: min(52vw, 460px);
}

figcaption {
    margin-top: 10px;
    color: #655d50;
    font-size: 0.85rem;
}

@media (width <= 850px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        aspect-ratio: 16 / 9;
    }

    .catalog-tools {
        grid-template-columns: 1fr;
    }
}
