:root {
    --bg: #EEF2E6;
    --surface: #fff;
    --ink: #12251F;
    --muted: #4D5F57;
    --forest: #12372F;
    --onforest: #EEF2E6;
    --oil: #E3A32B;
    --line: #CBD5C3;
    --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
    --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px)
}

@media (prefers-color-scheme:dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0E1815;
        --surface: #16251F;
        --ink: #E9EFE2;
        --muted: #A3B3AA;
        --forest: #0A2A24;
        --line: #2A3D35
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0E1815;
    --surface: #16251F;
    --ink: #E9EFE2;
    --muted: #A3B3AA;
    --forest: #0A2A24;
    --line: #2A3D35
}

html {
    scroll-padding-top: env(safe-area-inset-top, 0px);
    scroll-behavior: smooth
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.6 var(--body)
}

h1,
h2,
h3 {
    font-family: var(--display);
    line-height: 1.05;
    margin: 0;
    letter-spacing: -.02em
}

h1 {
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 800
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700
}

h3 {
    font-size: 1.4rem;
    font-weight: 700
}

p {
    margin: 0
}

a {
    color: inherit
}

:focus-visible {
    outline: 3px solid var(--oil);
    outline-offset: 3px
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px
}

section {
    padding: 88px 0
}

.muted {
    color: var(--muted)
}

header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 20;
    background: var(--bg);
    border-bottom: 1px solid var(--line)
}

body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: env(safe-area-inset-top, 0px);
    background: var(--bg);
    z-index: 30
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px
}

.logo {
    font: 800 1.5rem var(--display);
    text-decoration: none;
    letter-spacing: -.03em
}

.logo i {
    font-style: normal;
    color: var(--oil)
}

.links {
    display: flex;
    gap: 28px;
    align-items: center
}

.links a {
    text-decoration: none;
    font-weight: 500
}

.links a:hover {
    text-decoration: underline
}

.cart {
    background: var(--forest);
    color: var(--onforest);
    border: 0;
    border-radius: 99px;
    padding: 9px 18px;
    font: 600 .95rem var(--body);
    cursor: pointer
}

@media(max-width:720px) {
    .links a.l {
        display: none
    }
}

.btn {
    display: inline-block;
    background: var(--oil);
    color: #1A1204;
    border: 0;
    border-radius: 99px;
    padding: 15px 30px;
    font: 600 1rem var(--body);
    text-decoration: none;
    cursor: pointer
}

.btn:hover {
    filter: brightness(1.07)
}

.btn.ghost {
    background: transparent;
    color: inherit;
    border: 2px solid currentColor;
    padding: 13px 28px
}

/* hero */
.hero {
    background: var(--forest);
    color: var(--onforest);
    padding: 72px 0 0;
    overflow: hidden
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 32px;
    align-items: end
}

.hero p.lead {
    font-size: 1.25rem;
    max-width: 30em;
    margin: 24px 0 32px;
    opacity: .9
}

.hero .cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 72px
}

.hero h1 .o {
    display: inline-block;
    color: var(--oil);
    animation: drop 2.4s cubic-bezier(.5, 0, .3, 1) 1 both
}

@keyframes drop {
    0% {
        transform: translateY(-.6em) scaleY(1.5);
        opacity: 0
    }

    45% {
        opacity: 1
    }

    70% {
        transform: translateY(.08em) scale(1.12, .86)
    }

    100% {
        transform: none
    }
}

.stage {
    position: relative;
    height: 460px;
    display: flex;
    justify-content: center;
    align-items: flex-end
}

.stage svg {
    width: min(300px, 80%);
    height: auto
}

.pool {
    position: absolute;
    bottom: -40px;
    width: 130%;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, var(--oil) 0, rgba(227, 163, 43, 0) 68%);
    opacity: .5
}

@media(max-width:820px) {
    .hero .wrap {
        grid-template-columns: 1fr
    }

    .stage {
        height: 380px
    }

    .hero .cta {
        padding-bottom: 24px
    }
}

.strip {
    background: var(--oil);
    color: #1A1204;
    padding: 16px 0;
    font-weight: 600
}

.strip .wrap {
    display: flex;
    gap: 12px 36px;
    flex-wrap: wrap;
    justify-content: space-between
}

/* products */
.head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 44px
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

@media(max-width:900px) {
    .grid {
        grid-template-columns: 1fr
    }
}

.card {
    background: var(--surface);
    border-radius: 28px 28px 28px 6px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid var(--line)
}

.card .art {
    height: 200px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden
}

.card .art svg {
    height: 180px;
    width: auto
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto
}

.price {
    font: 700 1.3rem var(--display)
}

.add {
    background: var(--forest);
    color: var(--onforest);
    border: 0;
    border-radius: 99px;
    padding: 10px 20px;
    font: 600 .95rem var(--body);
    cursor: pointer
}

.add:hover {
    background: var(--oil);
    color: #1A1204
}

.tag {
    font-size: .9rem;
    color: var(--muted)
}

/* ingredients */
.ing {
    background: var(--surface);
    border-block: 1px solid var(--line)
}

.ing .cols {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: start
}

@media(max-width:820px) {
    .ing .cols {
        grid-template-columns: 1fr;
        gap: 32px
    }
}

.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px
}

.tabs button {
    border: 2px solid var(--line);
    background: none;
    color: var(--ink);
    border-radius: 99px;
    padding: 8px 18px;
    font: 600 .95rem var(--body);
    cursor: pointer
}

.tabs button[aria-selected="true"] {
    background: var(--forest);
    color: var(--onforest);
    border-color: var(--forest)
}

.panel {
    border-left: 6px solid var(--oil);
    padding: 4px 0 4px 22px;
    min-height: 120px
}

.panel h3 {
    margin-bottom: 8px
}

/* steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: s;
    padding: 0;
    list-style: none;
    margin: 0
}

@media(max-width:900px) {
    .steps {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:520px) {
    .steps {
        grid-template-columns: 1fr
    }
}

.steps li {
    counter-increment: s;
    border-top: 4px solid var(--oil);
    padding-top: 16px
}

.steps li::before {
    content: counter(s);
    font: 800 2.6rem var(--display);
    color: var(--oil);
    display: block;
    line-height: 1
}

.steps h3 {
    font-size: 1.15rem;
    margin: 8px 0 6px
}

/* reviews */
.rev {
    background: var(--forest);
    color: var(--onforest)
}

.quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px
}

@media(max-width:900px) {
    .quotes {
        grid-template-columns: 1fr
    }
}

blockquote {
    margin: 0;
    font: 500 1.25rem/1.35 var(--display)
}

blockquote footer {
    font: 400 .95rem var(--body);
    opacity: .75;
    margin-top: 12px;
    border: 0;
    position: static;
    background: none
}

/* faq */
details {
    border-bottom: 1px solid var(--line);
    padding: 18px 0
}

summary {
    font: 600 1.1rem var(--body);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px
}

summary::after {
    content: "+";
    font-size: 1.5rem;
    line-height: 1;
    color: var(--oil)
}

details[open] summary::after {
    content: "–"
}

details p {
    margin-top: 10px;
    color: var(--muted);
    max-width: 44em
}

/* signup */
.sign {
    background: var(--oil);
    color: #1A1204;
    text-align: center
}

.sign form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px
}

.sign input {
    padding: 15px 22px;
    border-radius: 99px;
    border: 2px solid #1A1204;
    background: #fff;
    color: #1A1204;
    font: 400 1rem var(--body);
    min-width: min(320px, 100%)
}

.sign .btn {
    background: #12372F;
    color: #EEF2E6
}

.msg {
    margin-top: 14px;
    font-weight: 600;
    min-height: 1.6em
}

footer.site {
    padding: 48px 0;
    position: static;
    border-top: 1px solid var(--line)
}

footer.site .wrap {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 200%);
    background: var(--forest);
    color: var(--onforest);
    padding: 14px 24px;
    border-radius: 99px;
    font-weight: 600;
    transition: transform .3s;
    z-index: 40;
    border: 2px solid var(--oil)
}

.toast.on {
    transform: translate(-50%, 0)
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

/* Shopping Cart */

.cart-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    max-width: 90%;
    height: 100vh;
    background: #F4F1E4;
    z-index: 9999;
    padding: 25px;
    box-sizing: border-box;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    color: #12251F;
}

.cart-panel.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.cart-header button,
.cart-item button {
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #12251F;
    background: transparent;
    color: #12251F;
    border-radius: 5px;
}

.cart-item {
    padding: 15px 0;
    border-bottom: 1px solid #ccc;
}

.cart-item h3 {
    margin-bottom: 8px;
}

.cart-item button {
    margin: 5px 5px 0 0;
}

.cart-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #ccc;
}

.cart-footer p {
    font-size: 18px;
    margin-bottom: 20px;
}

#checkoutBtn {
    width: 100%;
    padding: 14px;
    background: #12251F;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.checkout-form {
    display: none;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
}

.checkout-form.show {
    display: block;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: white;
    font: inherit;
}

.checkout-form textarea {
    min-height: 90px;
    resize: vertical;
}

.checkout-form form button {
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    background: #12251F;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}