:root {
    color-scheme: light;
    --bg: #f5f1e9;
    --bg-strong: #e3d6c1;
    --panel: rgba(255, 252, 247, 0.82);
    --panel-strong: #fffaf2;
    --text: #201a14;
    --muted: #6e6355;
    --accent: #8f6432;
    --accent-dark: #5a3b18;
    --line: rgba(32, 26, 20, 0.12);
    --shadow: 0 24px 80px rgba(47, 34, 19, 0.1);
    --radius: 26px;
    --radius-sm: 18px;
    --sans: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
    --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Garamond, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--sans);
    background:
        radial-gradient(circle at top left, rgba(143, 100, 50, 0.18), transparent 24%),
        radial-gradient(circle at bottom right, rgba(90, 59, 24, 0.12), transparent 20%),
        linear-gradient(180deg, #f8f4ec 0%, #f1ebdf 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 48px;
}

.site-header,
.site-footer,
.hero,
.section {
    border: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.site-header,
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px 22px;
    border-radius: 22px;
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 10;
    margin-bottom: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand strong {
    display: block;
    font-family: var(--serif);
    font-size: 25px;
    letter-spacing: 0.02em;
}

.brand small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(160deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff7ea;
    font-family: var(--serif);
    font-size: 24px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text);
    background: rgba(143, 100, 50, 0.12);
}

main {
    display: grid;
    gap: 22px;
}

.hero,
.section {
    border-radius: var(--radius);
    padding: 40px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
    gap: 26px;
    background:
        linear-gradient(135deg, rgba(255, 248, 237, 0.95), rgba(246, 235, 218, 0.9)),
        linear-gradient(135deg, #f8f3eb, #eadfce);
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.split-section h2,
.cta-section h2,
.contact-panel h2 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.hero-copy h1 {
    font-size: clamp(44px, 7vw, 78px);
    max-width: 12ch;
}

.lead,
.hero-copy p,
.page-hero p,
.info-card p,
.dark-card p,
.site-footer p,
.page-copy p,
.check-list p,
.contact-card p,
.stack-list li,
.feature-list li,
.process-list li {
    color: var(--muted);
    line-height: 1.7;
}

.lead {
    margin: 20px 0 0;
    max-width: 62ch;
    font-size: 18px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(160deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff7ea;
}

.button-secondary {
    border-color: rgba(90, 59, 24, 0.18);
    background: rgba(255, 255, 255, 0.62);
}

.hero-panel,
.contact-layout {
    display: grid;
    gap: 14px;
}

.hero-media,
.media-frame,
.product-media,
.about-media {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
}

.hero-media,
.about-media {
    background: rgba(255, 255, 255, 0.72);
}

.hero-media img,
.media-frame img,
.product-media img,
.about-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media {
    min-height: 320px;
}

.hero-media figcaption,
.about-media figcaption {
    padding: 14px 16px 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.media-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.media-frame {
    min-height: 210px;
    background: rgba(255, 255, 255, 0.62);
}

.media-frame.tall {
    grid-column: 1 / -1;
    min-height: 260px;
}

.product-media {
    aspect-ratio: 1 / 1;
    margin: -20px -20px 16px;
    border-radius: 22px 22px 14px 14px;
    border-left: 0;
    border-right: 0;
    border-top: 0;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    gap: 24px;
}

.gallery-section {
    display: grid;
    gap: 18px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.gallery-card {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
}

.gallery-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.gallery-copy {
    padding: 18px 18px 20px;
}

.gallery-copy h3 {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.08;
}

.gallery-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.gallery-meta {
    margin-top: 10px;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-media {
    min-height: 100%;
}

.stat-card,
.info-card,
.contact-card,
.dark-card,
.contact-panel,
.process-list li,
.check-list > div,
.page-copy,
.quote-box {
    border-radius: 22px;
    border: 1px solid var(--line);
}

.stat-card,
.info-card,
.contact-card,
.page-copy,
.quote-box {
    background: rgba(255, 255, 255, 0.68);
    padding: 20px;
}

.stat-card span,
.contact-card span,
.muted-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stat-card strong,
.info-card h3,
.dark-card h3,
.contact-card h3,
.process-list strong {
    display: block;
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.08;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.section-heading.compact {
    margin-bottom: 18px;
}

.section-heading h2,
.split-section h2,
.cta-section h2,
.contact-panel h2,
.page-hero h1 {
    font-size: clamp(34px, 4.6vw, 56px);
}

.card-grid {
    display: grid;
    gap: 16px;
}

.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 24px;
}

.check-list,
.stack-list,
.feature-list,
.process-list {
    display: grid;
    gap: 14px;
}

.check-list > div {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.62);
}

.check-list strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.dark-band {
    color: #f7efdf;
    background:
        radial-gradient(circle at top right, rgba(237, 205, 153, 0.12), transparent 24%),
        linear-gradient(145deg, #21170f, #413020 60%, #574025);
}

.dark-band .eyebrow,
.dark-band p {
    color: rgba(247, 239, 223, 0.74);
}

.dark-card {
    background: rgba(255, 255, 255, 0.06);
    padding: 20px;
    border-color: rgba(255, 255, 255, 0.12);
}

.dark-card p {
    color: rgba(247, 239, 223, 0.76);
}

.cta-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.page-hero {
    padding: 36px 40px;
}

.page-hero p {
    margin: 14px 0 0;
    max-width: 70ch;
}

.stack-list,
.feature-list,
.process-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stack-list li,
.feature-list li {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-list li {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.62);
}

.quote-box {
    border-left: 4px solid var(--accent);
}

.contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-panel {
    padding: 24px;
    background: rgba(255, 255, 255, 0.62);
}

.site-footer {
    margin-top: 22px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
}

@media (max-width: 1024px) {
    .hero,
    .split-section,
    .cta-section,
    .contact-layout,
    .about-layout {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .three-up,
    .two-up,
    .process-list,
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .site-shell {
        width: min(100% - 24px, 1180px);
        padding-top: 12px;
    }

    .site-header,
    .site-footer,
    .hero,
    .section,
    .page-hero {
        padding: 24px;
    }

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

    .site-nav {
        width: 100%;
    }

    .three-up,
    .two-up,
    .process-list,
    .contact-layout,
    .media-stack,
    .about-layout,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .product-media {
        margin-left: -24px;
        margin-right: -24px;
    }
}