:root {
    --bg: #f3efe6;
    --bg-deep: #e7e0d2;
    --ink: #1c1a16;
    --muted: #5f584c;
    --line: rgba(28, 26, 22, 0.12);
    --accent: #3f5d4a;
    --accent-ink: #f7f3ea;
    --surface: rgba(255, 252, 246, 0.82);
    --shadow: 0 24px 60px rgba(28, 26, 22, 0.08);
    --radius: 18px;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "DM Sans", system-ui, sans-serif;
    --container: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(63, 93, 74, 0.12), transparent 34%),
        radial-gradient(circle at 88% 0%, rgba(28, 26, 22, 0.06), transparent 28%),
        linear-gradient(180deg, #f7f3ea 0%, var(--bg) 42%, #efe8da 100%);
    min-height: 100vh;
    line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code {
    font-size: 0.92em;
    background: rgba(28, 26, 22, 0.06);
    padding: 0.12em 0.4em;
    border-radius: 6px;
}

.container {
    width: min(var(--container), calc(100% - 2.5rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(247, 243, 234, 0.78);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    background: rgba(247, 243, 234, 0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.25rem;
}

.brand {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 0.75rem;
}

.nav-toggle {
    display: none;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 1rem;
    height: 2px;
    margin: 0.22rem auto;
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: min(88vh, 760px);
    display: grid;
    align-items: end;
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(28, 26, 22, 0.08) 0%, rgba(28, 26, 22, 0.55) 100%),
        url("../images/hero.svg") center/cover no-repeat;
    transform: scale(1.04);
    animation: heroDrift 14s ease-in-out infinite alternate;
}

.hero__content {
    position: relative;
    z-index: 1;
    color: #f8f4eb;
    padding: 5rem 0 4rem;
    max-width: 40rem;
    margin-left: max(calc((100% - var(--container)) / 2), 1.25rem);
    animation: riseIn 0.9s ease both;
}

.brand-mark {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 0.75rem;
    letter-spacing: -0.03em;
}

.hero h1,
.page-hero h1,
.section-head h2,
.story h2,
.product-detail h1 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin: 0 0 1rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    max-width: 11ch;
}

.lede {
    font-size: 1.08rem;
    color: rgba(248, 244, 235, 0.86);
    max-width: 34ch;
    margin: 0 0 1.75rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn--primary {
    background: var(--accent-ink);
    color: var(--ink);
}

.btn--ghost {
    border-color: rgba(248, 244, 235, 0.35);
    color: #f8f4eb;
}

.section {
    padding: 5rem 0;
}

.section-head {
    margin-bottom: 2rem;
    max-width: 34rem;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-head p,
.page-hero p,
.story p {
    color: var(--muted);
    margin: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.featured-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 1.25rem 0;
    color: var(--muted);
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.product-card:hover { transform: translateY(-4px); }

.product-card__media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-deep);
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card__media img {
    transform: scale(1.04);
}

.product-card__body {
    padding: 1rem 1.1rem 1.2rem;
}

.product-card__body h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.price {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.price--lg {
    font-size: 1.35rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

.section--story {
    padding-top: 0;
}

.story {
    padding: 2.5rem;
    border-radius: calc(var(--radius) + 6px);
    background: linear-gradient(135deg, rgba(63, 93, 74, 0.1), rgba(28, 26, 22, 0.04));
    border: 1px solid var(--line);
}

.story--with-image {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem;
    align-items: center;
}

.story__media img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

.story h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.page-hero {
    padding: 4.5rem 0 1rem;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.product-detail__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.product-detail__media {
    border-radius: calc(var(--radius) + 8px);
    overflow: hidden;
    background: var(--bg-deep);
    border: 1px solid var(--line);
}

.product-detail__info .lede {
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 3.5rem 0 2.5rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.brand--footer { display: inline-block; margin-bottom: 0.6rem; }

.footer-copy,
.footer-meta {
    color: var(--muted);
    margin: 0.35rem 0;
}

.site-footer h3 {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.site-footer a {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--ink);
}

@keyframes heroDrift {
    from { transform: scale(1.04) translateY(0); }
    to { transform: scale(1.08) translateY(-1.5%); }
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .nav { display: none; }
    .nav-toggle { display: inline-block; }
    .product-grid,
    .product-detail__grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero__content {
        margin-left: 1.25rem;
        padding-bottom: 3rem;
    }
}

