
:root {
    --ink: #20221d;
    --green: #506c20;
    --cream: #f7f5ef;
    --line: #e2e3dc;
    --muted: #62665c;
}

/* ========================================
   GLOBAL
======================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--green);
    text-underline-offset: 4px;
}

.wrap {
    max-width: 1200px;
    margin: auto;
    padding: 0 32px;
}

main.wrap {
    min-height: 65vh;
    padding-top: 24px;
    padding-bottom: 64px;
}

section {
    margin-bottom: 36px;
}

h1,
h2 {
    line-height: 1.15;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(36px, 5vw, 64px);
    margin: 12px 0 20px;
}

h2 {
    font-size: 28px;
}

p {
    max-width: 70ch;
}

/* ========================================
   HEADER AND NAVIGATION
======================================== */

header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    min-height: 108px;
    padding-block: 8px;
    flex-wrap: nowrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 100%;
    color: var(--ink);
    text-decoration: none;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.brand span {
    color: var(--green);
}

.brand img {
    display: block;
    width: 400px;
    height: auto;
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    object-position: left center;
    margin: 0;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.15s ease;
}

nav a:hover {
    color: var(--green);
}

.header nav a {
    white-space: nowrap;
}

.header nav a[href="/cart/"] {
    border-left: 1px solid var(--line);
    padding-left: 24px;
}

/* ========================================
   HOMEPAGE HERO
======================================== */

.hero {
    background: none;
    border-radius: 0;
    padding: 44px 0 36px;
    margin-bottom: 0;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 0.13em;
    font-weight: 750;
    color: var(--green);
}

.hero .eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px;
    color: var(--ink);
    letter-spacing: 0.18em;
}

.hero .eyebrow::after {
    content: "";
    width: 72px;
    height: 1px;
    background: var(--green);
}

.hero h1 {
    font-size: clamp(46px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.055em;
    margin: 0 0 18px;
    font-weight: 800;
}

.hero h1 span {
    display: block;
    color: var(--green);
}

.hero p:not(.eyebrow) {
    font-size: 20px;
    line-height: 1.5;
    max-width: 530px;
    margin: 0 0 24px;
}

/* ========================================
   BUTTONS
======================================== */

.button,
button {
    display: inline-block;
    background: var(--green);
    color: white;
    border: 0;
    border-radius: 8px;
    padding: 13px 24px;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.button:hover,
button:not(:disabled):hover {
    background: #405719;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   BENEFITS
======================================== */

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 22px 0 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.benefits > div {
    padding: 8px 20px;
}

.benefits > div + div {
    border-left: 1px solid var(--line);
}

.benefits strong {
    font-size: 17px;
}

.benefits p {
    margin: 5px auto 0;
    color: var(--muted);
    font-size: 14px;
}

/* ========================================
   FEATURED PRODUCT
======================================== */

.featured > h2 {
    text-align: center;
    font-size: 32px;
    margin: 0 0 24px;
}

.product-card,
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}

.product-card,
.panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
}

.featured .product-card {
    border: 0;
    padding: 0;
    gap: 40px;
}

.featured .product-card h2 {
    font-size: 32px;
    margin: 8px 0;
}

.product-card h2 a {
    color: var(--ink);
    text-decoration: none;
}

.product-card h2 a:hover {
    color: var(--green);
}

.product-card .eyebrow {
    margin: 0;
}

.product-card [data-price] {
    font-size: 23px;
    font-weight: 750;
}

/* ========================================
   PRODUCT PHOTOGRAPHY
======================================== */

.photo {
    background: var(--cream);
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    border-radius: 12px;
    overflow: hidden;
    color: var(--muted);
    text-align: center;
    padding: 12px;
}

.photo:has(img) {
    padding: 0;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.large {
    aspect-ratio: 1;
}

/* ========================================
   PRODUCT PAGE
======================================== */

.product-layout {
    gap: 40px;
    align-items: start;
}

.product-layout h1 {
    font-size: clamp(32px, 4vw, 48px);
}

.price {
    font-size: 24px;
    font-weight: 750;
}

.crumb {
    font-size: 14px;
    color: var(--muted);
}

/* ========================================
   CARE GUIDES
======================================== */

.reading {
    max-width: 760px;
    margin: auto;
}

/* ========================================
   CONTACT AND FORM ELEMENTS
======================================== */

form {
    display: grid;
    gap: 10px;
    max-width: 560px;
}

label {
    font-weight: 600;
}

input,
select,
textarea {
    font: inherit;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    width: 100%;
    background: white;
    color: var(--ink);
}

.trap {
    display: none;
}

/* ========================================
   SHOPPING CART
======================================== */

.cart-line {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
    flex-wrap: wrap;
}

.cart-line input {
    width: 85px;
}

.cart-line button {
    padding: 8px 12px;
}

/* ========================================
   FOOTER
======================================== */

footer {
    background: var(--cream);
    padding: 32px 0;
}

footer small {
    display: block;
    margin-top: 20px;
}

/* ========================================
   ACCESSIBILITY
======================================== */

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 10px;
    top: 10px;
    background: white;
    padding: 10px;
    z-index: 10;
}

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

/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {
    .brand img {
        width: 340px;
        max-height: 90px;
    }

    .header {
        gap: 20px;
        min-height: 98px;
    }

    .header nav {
        gap: 20px;
    }

    .header nav a[href="/cart/"] {
        padding-left: 16px;
    }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 760px) {
    .wrap {
        padding-inline: 22px;
    }

    .header {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding-block: 12px 16px;
        min-height: 0;
    }

    .brand {
        justify-content: center;
        max-width: 100%;
    }

    .brand img {
        width: 320px;
        height: auto;
        max-height: 85px;
        object-position: center;
    }

    .header nav {
        width: 100%;
        justify-content: center;
        gap: 24px;
    }

    .header nav a {
        font-size: 14px;
    }

    .header nav a[href="/cart/"] {
        padding-left: 16px;
    }

    .hero {
        padding: 30px 0 24px;
    }

    .hero h1 {
        font-size: clamp(42px, 9vw, 64px);
    }

    .hero p:not(.eyebrow) {
        font-size: 18px;
    }

    .benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 14px 0 24px;
    }

    .benefits > div {
        padding: 6px 8px;
    }

    .benefits strong {
        font-size: 14px;
    }

    .benefits p {
        font-size: 12px;
    }

    .product-card,
    .product-layout,
    .featured .product-card {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .product-card {
        padding: 16px;
    }

    .featured > h2 {
        font-size: 27px;
    }

    .featured .product-card h2 {
        font-size: 28px;
    }
}

/* ========================================
   SMALL MOBILE DEVICES
======================================== */

@media (max-width: 400px) {
    .header nav {
        gap: 16px;
    }

    .header nav a {
        font-size: 13px;
    }

    .header nav a[href="/cart/"] {
        padding-left: 12px;
    }

    .brand img {
        width: 280px;
    }
}

@media (max-width: 360px) {
    .header nav {
        gap: 12px;
    }

    .header nav a {
        font-size: 12px;
    }

    .benefits {
        grid-template-columns: 1fr;
    }

    .benefits > div + div {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}
