:root {
    --canvas: #F7F9F4;
    --ink: #14261C;
    --muted: #4B5E52;
    --brand: #15803D;
    --forest: #14532D;
    --sun: #FACC15;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
}

body {
    min-width: 320px;
    background: var(--canvas);
    color: var(--ink);
}

::selection {
    background: #FACC15;
    color: #14532D;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: -5rem;
    z-index: 100;
    border-radius: 0.75rem;
    background: var(--sun);
    color: var(--forest);
    padding: 0.75rem 1rem;
    font-weight: 800;
    transition: top 160ms ease;
}

.skip-link:focus {
    top: 1rem;
}

.site-container {
    width: min(100% - 2rem, 80rem);
    margin-inline: auto;
}

.section-kicker {
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.display-title {
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.hero-surface {
    background-color: var(--forest);
    background-image:
        radial-gradient(circle at 84% 15%, rgba(250, 204, 21, 0.17), transparent 30%),
        radial-gradient(circle at 10% 100%, rgba(45, 212, 191, 0.12), transparent 36%);
}

.hero-grid {
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
}

.card-lift {
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card-lift:hover {
    transform: translateY(-5px);
    border-color: rgba(21, 128, 61, 0.32);
    box-shadow: 0 20px 45px rgba(20, 38, 28, 0.09);
}

.product-cover {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #E7F0E6;
}

.product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.group:hover .product-cover img {
    transform: scale(1.035);
}

.clamp-2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.filter-field {
    width: 100%;
    border: 1px solid #D8E1D6;
    border-radius: 0.9rem;
    background: #FFFFFF;
    color: var(--ink);
    padding: 0.8rem 1rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.filter-field:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.1);
}

.prose-content {
    color: #34493C;
    font-size: 1.0625rem;
    line-height: 1.85;
}

.prose-content > * + * {
    margin-top: 1.25rem;
}

.prose-content h2 {
    margin-top: 2.5rem;
    color: var(--ink);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.prose-content h3 {
    margin-top: 2rem;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 800;
}

.prose-content ul,
.prose-content ol {
    padding-left: 1.5rem;
}

.prose-content ul {
    list-style: disc;
}

.prose-content ol {
    list-style: decimal;
}

.prose-content li + li {
    margin-top: 0.5rem;
}

.prose-content strong {
    color: var(--ink);
}

.prose-content a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose-content blockquote {
    border-left: 4px solid var(--sun);
    border-radius: 0 1rem 1rem 0;
    background: #FFFFFF;
    padding: 1.25rem 1.5rem;
    color: var(--forest);
    font-weight: 600;
}

.order-dialog {
    width: min(100% - 2rem, 32rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    border: 0;
    border-radius: 1.75rem;
    background: #FFFFFF;
    color: var(--ink);
    padding: 0;
    box-shadow: 0 28px 90px rgba(20, 38, 28, 0.3);
}

.order-dialog::backdrop {
    background: rgba(9, 29, 17, 0.72);
    backdrop-filter: blur(4px);
}

.order-dialog[open] {
    animation: dialog-enter 180ms ease-out;
}

@keyframes dialog-enter {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 640px) {
    .site-container {
        width: min(100% - 3rem, 80rem);
    }
}

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