:root {
    --site-bg: #eee7dc;
    --site-paper: #f8f3eb;
    --site-paper-deep: #e1d2bd;
    --site-text: #221b15;
    --site-text-soft: #6b5c4d;
    --site-bark: #5e3f2a;
    --site-bark-dark: #342216;
    --site-leaf: #596b45;
    --site-clay: #a66e4b;
    --site-border: rgba(54, 34, 22, 0.18);
    --site-shadow: 0 22px 60px rgba(48, 31, 19, 0.14);
    --site-radius: 8px;
    --site-max-width: 1180px;
    --site-font-body: "Times New Roman", Times, serif;
    --site-header-offset: 4.8rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--site-text);
    background:
        linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        var(--site-bg);
    background-size: 24px 24px;
    font-family: var(--site-font-body);
    padding-bottom: var(--cookie-banner-height, 0);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(180deg, rgba(248, 243, 235, 0.88), rgba(226, 211, 190, 0.82));
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.site-header,
.site-footer,
.site-main {
    width: min(100% - 2rem, var(--site-max-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 0.85rem 0;
    background: rgba(248, 243, 235, 0.82);
    backdrop-filter: blur(10px);
}

.site-logo {
    color: var(--site-bark-dark);
    font-size: 1.18rem;
    font-weight: 700;
    text-decoration: none;
}

.site-nav,
.hero-menu {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.menu-button,
.button-link,
.stack-form button,
.inline-form button,
.cookie-banner button,
.carousel-button,
.material-arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    padding: 0.58rem 1.35rem;
    border: 1px solid rgba(82, 57, 38, 0.2);
    border-radius: 3px;
    background: linear-gradient(180deg, #decab0, #cfb692);
    color: var(--site-bark-dark);
    box-shadow: 0 8px 18px rgba(61, 42, 28, 0.14);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease,
        color 160ms ease;
}

.menu-button::after,
.button-link::after,
.stack-form button::after,
.inline-form button::after,
.cookie-banner button::after,
.carousel-button::after,
.material-arrow::after {
    position: absolute;
    right: 0.55rem;
    bottom: 0.35rem;
    left: 0.55rem;
    height: 1px;
    content: "";
    background: currentColor;
    opacity: 0;
    transform: scaleX(0.3);
    transition: opacity 160ms ease, transform 160ms ease;
}

.menu-button:hover,
.menu-button:focus-visible,
.button-link:hover,
.button-link:focus-visible,
.stack-form button:hover,
.stack-form button:focus-visible,
.inline-form button:hover,
.inline-form button:focus-visible,
.cookie-banner button:hover,
.cookie-banner button:focus-visible,
.carousel-button:hover,
.carousel-button:focus-visible,
.material-arrow:hover,
.material-arrow:focus-visible {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #eadcc8, #d7bf9b);
    box-shadow: 0 12px 24px rgba(61, 42, 28, 0.2);
}

.menu-button:hover::after,
.menu-button:focus-visible::after,
.button-link:hover::after,
.button-link:focus-visible::after,
.stack-form button:hover::after,
.stack-form button:focus-visible::after,
.inline-form button:hover::after,
.inline-form button:focus-visible::after,
.cookie-banner button:hover::after,
.cookie-banner button:focus-visible::after,
.carousel-button:hover::after,
.carousel-button:focus-visible::after,
.material-arrow:hover::after,
.material-arrow:focus-visible::after {
    opacity: 0.45;
    transform: scaleX(1);
}

.site-nav a {
    position: relative;
    color: var(--site-bark-dark);
    font-size: 1.12rem;
    text-decoration: none;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: -0.32rem;
    left: 0;
    height: 2px;
    content: "";
    background: currentColor;
    opacity: 0.18;
    transform: scaleX(0.4);
    transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    opacity: 0.75;
    transform: scaleX(1);
}

.site-main {
    padding: 1rem 0 3rem;
}

.home-hero {
    display: grid;
    justify-items: center;
    align-content: start;
    min-height: calc(100vh - 6.5rem);
    padding: clamp(1.8rem, 5vh, 3.6rem) 0 clamp(4rem, 10vh, 7rem);
    scroll-margin-top: 7rem;
    text-align: center;
}

.hero-image-wrap {
    position: relative;
    width: min(46vw, 380px);
    min-width: 245px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    border-radius: 30%;
    box-shadow: var(--site-shadow);
}

.hero-image-wrap::before {
    position: absolute;
    inset: -0.85rem -0.65rem -0.55rem -0.95rem;
    z-index: 0;
    content: "";
    border: 1px solid rgba(72, 49, 33, 0.16);
    border-radius: 31%;
    background: rgba(255, 252, 246, 0.78);
    box-shadow: 0 20px 52px rgba(48, 31, 19, 0.12);
    transform: rotate(-0.18deg);
}

.home-hero-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 29%;
    object-fit: cover;
    object-position: center 47%;
}

.hero-menu {
    margin: 1.35rem 0 1.15rem;
}

.menu-button {
    width: 10rem;
}

.home-brand-mark {
    margin: 1.55rem auto 2rem;
    color: var(--site-leaf);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
}

.hero-copy-block {
    width: min(100%, 1040px);
    padding-inline: clamp(1rem, 4vw, 3rem);
}

.hero-copy-block h1 {
    margin: 0 auto;
    color: var(--site-bark-dark);
    font-size: clamp(3rem, 6vw, 5.15rem);
    font-weight: 400;
    line-height: 0.95;
    max-width: 18ch;
}

.hero-copy-block p:last-child {
    max-width: 54rem;
    margin: 1.25rem auto 0;
    padding-inline: clamp(1rem, 4vw, 4rem);
}

.site-kicker {
    margin: 0 0 0.65rem;
    color: var(--site-leaf);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

.page-intro h1 {
    margin: 0;
    color: var(--site-bark-dark);
    font-size: clamp(2.4rem, 7vw, 5.6rem);
    font-weight: 400;
    line-height: 0.98;
}

.page-intro p,
.section-heading p,
.carousel-heading p,
.material-card p,
.grounded-strip p,
.surface-card p,
.site-note {
    color: var(--site-text-soft);
    font-size: 1.12rem;
    line-height: 1.65;
}

.page-intro p {
    font-size: 1.24rem;
}

.carousel-heading p {
    color: var(--site-leaf);
    font-size: 0.9rem;
    letter-spacing: 0.14em;
}

.grounded-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0 auto 2.5rem;
    border: 1px solid var(--site-border);
    background: var(--site-border);
}

.grounded-strip article {
    min-height: 15rem;
    padding: clamp(1.1rem, 3vw, 2rem);
    background: rgba(248, 243, 235, 0.82);
}

.grounded-strip span {
    display: block;
    margin-bottom: 2rem;
    color: var(--site-clay);
    font-size: 0.95rem;
}

.grounded-strip h2,
.section-heading h2,
.carousel-heading h2,
.material-card h3 {
    margin: 0;
    color: var(--site-bark-dark);
    font-weight: 400;
    line-height: 1.1;
}

.grounded-strip h2,
.section-heading h2,
.carousel-heading h2 {
    font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.page-intro {
    width: min(100%, 900px);
    padding: clamp(2rem, 6vw, 4rem) 0 clamp(1.4rem, 3vw, 2.3rem);
}

.page-intro p {
    margin: 1.15rem 0 0;
}

.material-section,
.gallery-stack {
    display: grid;
    gap: 1.6rem;
}

.material-section {
    width: min(100%, 900px);
    margin: 0 auto;
    padding-top: clamp(1.2rem, 3vw, 2rem);
}

.one-page-section {
    padding: clamp(1.25rem, 4vw, 3.2rem) 0;
}

.one-page-section + .one-page-section {
    border-top: 0;
}

.section-display-heading {
    scroll-margin-top: var(--site-header-offset);
    width: 100%;
    border-top: 1px solid var(--site-border);
}

.section-display-heading::after {
    display: block;
    content: "";
    border-top: 1px solid var(--site-border);
}

.section-display-heading p {
    margin: 0;
    padding: clamp(1.2rem, 3vw, 2rem) 0 clamp(1rem, 2.5vw, 1.6rem);
    color: var(--site-leaf);
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 760px;
}

.material-carousel-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
    margin-top: 0.2rem;
}

.material-carousel {
    height: clamp(25rem, 42vw, 33rem);
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: rgba(248, 243, 235, 0.86);
}

.material-card,
.surface-card {
    padding: clamp(1.1rem, 2.5vw, 1.6rem);
    border-radius: var(--site-radius);
    background: rgba(248, 243, 235, 0.86);
}

.material-card {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
    gap: clamp(1.4rem, 3vw, 2.6rem);
    align-items: center;
    padding: clamp(1.3rem, 3vw, 2.4rem);
    overflow: hidden;
}

.material-card[hidden] {
    display: none;
}

.material-card-no-image {
    grid-template-columns: 1fr;
}

.material-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 26rem;
    object-fit: cover;
    border: 1px solid rgba(70, 45, 27, 0.18);
    border-radius: var(--site-radius);
    box-shadow: 0 10px 28px rgba(48, 31, 19, 0.1);
}

.material-copy {
    max-height: 100%;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.material-card h3 {
    font-size: clamp(2rem, 5vw, 4rem);
}

.material-card p {
    max-width: 52rem;
}

.material-arrow {
    width: 3.25rem;
    min-height: 3.25rem;
    padding: 0;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
}

.material-arrow::after {
    display: none;
}

.product-carousel-section {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 2.5vw, 1.5rem) 0;
    border-top: 1px solid var(--site-border);
}

.section-display-heading + .product-carousel-section {
    border-top: 0;
}

.carousel-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
}

.carousel-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.carousel-button {
    min-height: 2.35rem;
    padding: 0.45rem 0.95rem;
}

.image-carousel {
    display: grid;
    grid-auto-columns: minmax(245px, 32%);
    grid-auto-flow: column;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.3rem 0 1rem;
    scroll-padding-left: 0.2rem;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--site-bark) rgba(86, 56, 34, 0.14);
}

.gallery-card {
    position: relative;
    min-height: 25rem;
    margin: 0;
    border: 1px solid rgba(70, 45, 27, 0.18);
    border-radius: var(--site-radius);
    background: var(--site-paper);
    box-shadow: 0 10px 28px rgba(48, 31, 19, 0.1);
    overflow: hidden;
    scroll-snap-align: start;
}

.gallery-card img {
    display: block;
    width: 100%;
    height: 22rem;
    object-fit: cover;
    transition: transform 500ms ease, filter 500ms ease;
}

.gallery-card:hover img,
.gallery-card:focus-within img {
    filter: saturate(1.03) contrast(1.02);
    transform: scale(1.025);
}

.gallery-card figcaption {
    padding: 0.85rem 1rem 1rem;
    color: var(--site-bark-dark);
    font-size: 1.15rem;
}

.site-footer {
    display: block;
    padding: 2rem 0;
    border-top: 1px solid var(--site-border);
    color: var(--site-text-soft);
    text-align: center;
}

.site-footer p {
    margin: 0.35rem 0;
}

.site-messages,
.stack-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.site-message,
.stack-form,
.summary-row {
    padding: 1rem;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: rgba(248, 243, 235, 0.9);
    box-shadow: 0 12px 30px rgba(48, 31, 19, 0.09);
}

.grid-two,
.catalog-grid {
    display: grid;
    gap: 1rem;
}

.grid-two {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stack-list {
    display: grid;
    gap: 1rem;
}

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

.stack-form p,
.inline-form {
    margin: 0;
}

.stack-form label,
.inline-form label {
    display: grid;
    gap: 0.4rem;
}

.stack-form input,
.stack-form textarea,
.stack-form select,
.inline-form input {
    width: 100%;
    padding: 0.78rem 0.9rem;
    border: 1px solid var(--site-border);
    border-radius: 4px;
    background: rgba(255, 252, 247, 0.88);
    color: var(--site-text);
    font: inherit;
}

.button-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.button-link-secondary {
    background: transparent;
}

.product-card,
.cart-item-card {
    display: grid;
    gap: 0.9rem;
}

.product-meta-row,
.cart-item-meta,
.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.card-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--site-radius);
    border: 1px solid var(--site-border);
}

.cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: min(100% - 2rem, var(--site-max-width));
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: rgba(248, 243, 235, 0.95);
    box-shadow: var(--site-shadow);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__title,
.cookie-banner__copy {
    margin: 0;
}

.cookie-banner__title {
    font-weight: 700;
}

.cookie-banner__copy {
    color: var(--site-text-soft);
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cookie-banner button[data-cookie-accept-all] {
    color: #fffaf2;
    background: linear-gradient(180deg, var(--site-bark), var(--site-bark-dark));
}

@media (max-width: 860px) {
    .grounded-strip {
        grid-template-columns: 1fr;
    }

    .carousel-heading,
    .site-footer,
    .product-meta-row,
    .cart-item-meta,
    .summary-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .carousel-actions {
        justify-content: flex-start;
    }

    .image-carousel {
        grid-auto-columns: minmax(238px, 78%);
    }

    .material-carousel-shell {
        grid-template-columns: 1fr;
    }

    .material-arrow {
        width: 3.25rem;
        min-height: 3.25rem;
    }

    .material-carousel-shell {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .material-card {
        grid-template-columns: 1fr;
    }

    .material-image {
        height: 12rem;
        max-height: 12rem;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 560px) {
    .site-header,
    .site-footer,
    .site-main {
        width: min(100% - 1.2rem, var(--site-max-width));
    }

    .menu-button {
        width: calc(50% - 0.4rem);
        padding-inline: 0.7rem;
    }

    .site-header {
        align-items: flex-start;
    }

    .site-nav {
        gap: 0.9rem;
    }

    .home-hero {
        min-height: auto;
        padding-top: 1.7rem;
    }

    .hero-image-wrap {
        width: min(84vw, 360px);
    }

    .hero-copy-block h1 {
        font-size: clamp(2.6rem, 15vw, 4rem);
    }

    .gallery-card {
        min-height: 21rem;
    }

    .gallery-card img {
        height: 18rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
