@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
    color-scheme: light;
    --ink: #1b2923;
    --ink-soft: #34443c;
    --muted: #758078;
    --paper: #f5f6f1;
    --surface: #fffefa;
    --line: #e3e7df;
    --lime: #c9f27a;
    --lime-strong: #b4df5d;
    --terracotta: #dc8060;
    --shadow-soft: 0 16px 50px rgba(31, 47, 38, .08);
    --shadow-lift: 0 24px 55px rgba(31, 47, 38, .14);
    --radius-lg: 28px;
    --radius-md: 18px;
    --ease-out: cubic-bezier(.2, .75, .25, 1);
    font-family: 'DM Sans', 'Avenir Next', Avenir, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
}

body::before {
    position: fixed;
    z-index: -1;
    inset: -20%;
    background:
        radial-gradient(ellipse at 10% 12%, rgba(213, 238, 178, .2), transparent 30%),
        radial-gradient(ellipse at 90% 30%, rgba(247, 222, 194, .18), transparent 27%);
    content: '';
    pointer-events: none;
}

::selection {
    background: var(--lime);
    color: var(--ink);
}

[hidden] {
    display: none !important;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(149, 190, 72, .68);
    outline-offset: 3px;
}

button {
    color: inherit;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 21px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: .91rem;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1;
    text-decoration: none;
    transition: background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}

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

.button:active {
    transform: translateY(0) scale(.98);
}

.button-dark {
    background: var(--ink);
    color: #fff;
}

.button-dark:hover {
    background: #2a3a32;
    box-shadow: 0 10px 25px rgba(27, 41, 35, .18);
}

.button-accent {
    background: var(--lime);
    color: var(--ink);
}

.button-accent:hover {
    background: var(--lime-strong);
    box-shadow: 0 10px 24px rgba(157, 194, 89, .2);
}

.button-outline {
    border-color: var(--line);
    background: rgba(255, 255, 255, .42);
}

.button-outline:hover {
    border-color: #c4ccbf;
    background: #fff;
}

.button-quiet {
    padding-right: 12px;
    padding-left: 12px;
    color: var(--ink-soft);
}

.button-quiet:hover {
    background: rgba(27, 41, 35, .055);
}

.button-wide {
    width: 100%;
    min-height: 54px;
}

.button:disabled,
button:disabled {
    cursor: not-allowed;
    opacity: .5;
    transform: none;
}

.cart-heading h1 em,
.admin-heading h1 em,
.confirmation-card h1 em {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #718071;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .17em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 23px;
    height: 1px;
    background: currentColor;
    content: '';
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink);
    transition: transform .4s var(--ease-out);
}

.brand:hover .brand-mark {
    transform: rotate(-12deg) scale(1.05);
}

.brand-word {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -.065em;
    line-height: 1;
}

.brand-word small {
    color: #78847a;
    font-size: .51rem;
    font-weight: 700;
    letter-spacing: .13em;
}

.brand-dot {
    color: #89a94c;
}

.announcement {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    overflow: hidden;
    padding: 7px 16px;
    background: var(--ink);
    color: rgba(255, 255, 255, .88);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-align: center;
    text-transform: uppercase;
}

.announcement-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 4px rgba(201, 242, 122, .12);
    animation: soft-pulse 2.5s ease-in-out infinite;
}

.site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    border-bottom: 1px solid rgba(227, 231, 223, .8);
    background: rgba(248, 249, 244, .86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    width: min(100% - 64px, 1240px);
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
}

.site-nav,
.header-actions {
    display: flex;
    align-items: center;
}

.site-nav {
    gap: clamp(20px, 3vw, 42px);
    margin-left: auto;
}

.site-nav a {
    position: relative;
    padding: 9px 0;
    color: #536158;
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 1px;
    background: currentColor;
    content: '';
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s var(--ease-out);
}

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

.site-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    gap: 4px;
    margin-left: clamp(8px, 2vw, 28px);
}

.user-greeting {
    max-width: 120px;
    overflow: hidden;
    color: var(--muted);
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-button {
    min-height: 42px;
    gap: 11px;
    padding: 0 14px 0 18px;
    font-size: .83rem;
}

.cart-indicator {
    display: inline-grid;
    min-width: 23px;
    height: 23px;
    place-items: center;
    padding: 0 5px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
}

.icon-arrow {
    width: 17px;
    height: 17px;
    transition: transform .25s var(--ease-out);
}

.button:hover .icon-arrow,
a:hover .icon-arrow {
    transform: translateX(3px);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast {
    position: fixed;
    z-index: 100;
    right: 24px;
    bottom: 24px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 15px;
    background: var(--ink);
    box-shadow: var(--shadow-lift);
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s var(--ease-out);
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes soft-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(201, 242, 122, .1); }
    50% { box-shadow: 0 0 0 7px rgba(201, 242, 122, .02); }
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@media (max-width: 880px) {
    .header-inner {
        width: min(100% - 36px, 1240px);
        gap: 15px;
    }

    .site-nav {
        gap: 18px;
    }

    .header-actions {
        margin-left: 4px;
    }

    .user-greeting {
        display: none;
    }
}

@media (max-width: 680px) {
    html {
        scroll-padding-top: 78px;
    }

    .header-inner {
        min-height: 68px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .brand-word {
        font-size: 1rem;
    }

    .brand-word small {
        font-size: .46rem;
    }

    .site-nav {
        display: none;
    }

    .header-actions {
        gap: 1px;
        margin-left: auto;
    }

    .header-actions .button {
        min-height: 40px;
        padding-right: 10px;
        padding-left: 10px;
        font-size: .77rem;
    }

    .header-actions .cart-button {
        gap: 7px;
        padding-right: 10px;
        padding-left: 12px;
    }

    .announcement {
        min-height: 31px;
        font-size: .57rem;
        letter-spacing: .1em;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}
