/* Local typefaces; no font requests to third parties. */
@font-face {
    font-family: "Oswald";
    src: url("../oswald-medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Open Sans";
    src: url("../open-sans-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Open Sans";
    src: url("../open-sans-semibold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Silverstar";
    src: url("../silverstar.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --cream: #ffefe1;
    --ink: #0f2f4e;
    --muted: #b5bbc2;
    --line: #cdd6dd;
    --heading-font: "Oswald", sans-serif;
    --body-font: "Open Sans", sans-serif;
    --script-font: "Silverstar", cursive;
    --content-width: 1300px;
    --ease: cubic-bezier(0, .55, .45, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body {
    margin: 0;
    background: var(--cream) url("../sfondo-foglie.png") center top / cover no-repeat;
    color: var(--ink);
    font: 400 14px/1.786 var(--body-font);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { border: 0; border-radius: 0; background: transparent; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
img, svg { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 500;
    text-transform: uppercase;
}
h2 { font-size: 42px; line-height: 58px; letter-spacing: .15em; }
h3 { font-size: 32px; line-height: 48px; letter-spacing: .15em; }
.content-width { width: min(var(--content-width), calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 99999; padding: 10px 20px; background: #fff; }
.skip-link:focus { top: 10px; }
.handwritten { font: 400 100px/1 var(--script-font); }

/* Header and menus. */
.main-header {
    position: absolute;
    z-index: 20;
    inset: 0 0 auto;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 40px;
}
.brand { display: flex; align-items: center; width: 120px; min-height: 44px; }
.brand img { width: 120px; }
.main-nav { position: absolute; left: 50%; transform: translateX(-50%); }
.main-nav > ul { display: flex; align-items: center; gap: 38px; padding: 0; margin: 0; list-style: none; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a, .submenu-toggle {
    display: flex;
    align-items: center;
    min-height: 90px;
    padding: 0;
    font: 500 16px/26px var(--heading-font);
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: opacity .25s;
}
.main-nav a:hover, .main-nav a[aria-current], .submenu-toggle:hover { opacity: .55; }
.submenu {
    position: absolute;
    top: 78px;
    left: -28px;
    min-width: 230px;
    list-style: none;
    padding: 22px 28px;
    margin: 0;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s, visibility .25s, transform .25s;
}
.submenu a { display: block; padding-block: 7px; white-space: nowrap; }
.has-submenu:hover .submenu, .has-submenu:focus-within .submenu, .has-submenu.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.header-actions { display: flex; align-items: center; gap: 31px; }
.cart-toggle { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 5px; gap: 3px; font: 500 16px var(--heading-font); }
.cart-toggle svg { width: 18px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }
.menu-toggle { display: none; }

/* The original double-outline button, animated on hover. */
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 44px;
    padding: 10px 43px;
    border: 1px solid var(--ink);
    font: 500 14px/25px var(--heading-font);
    letter-spacing: .15em;
    text-transform: uppercase;
    white-space: nowrap;
    isolation: isolate;
    transition: color .35s;
}
.outline-button::before, .outline-button::after { content: ""; position: absolute; pointer-events: none; transition: transform .4s var(--ease), background .35s; }
.outline-button::before { inset: 3px -5px -5px 3px; border: 1px solid var(--ink); z-index: -2; }
.outline-button::after { inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; z-index: -1; }
.outline-button:hover::before { transform: translate(-4px, -4px); }
.outline-button:hover::after { transform: scaleX(1); }
.outline-button:hover { color: var(--cream); }
.header-order { min-height: 33px; padding: 3px 36px; }
.text-button { padding: 0; font: 500 14px/25px var(--heading-font); letter-spacing: .12em; text-transform: uppercase; }
.text-button:hover { opacity: .6; }
.text-link { display: inline-block; position: relative; font: 500 14px/21px var(--heading-font); letter-spacing: .15em; text-transform: uppercase; }
.text-link::after { content: ""; display: block; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.text-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Full-height introductory composition. Each layer enters independently. */
.hero { position: relative; height: 100svh; min-height: 640px; }
.hero-copy { position: absolute; left: calc(50% - 702px); top: calc(50% - 209px); z-index: 2; width: 820px; }
.hero h1 { font-size: 68px; line-height: 90px; letter-spacing: 20px; white-space: nowrap; animation: enter-left 1s var(--ease) .1s both; }
.hero-copy p { width: 590px; font-size: 16px; line-height: 27px; margin-top: 20px; animation: enter-left 1s var(--ease) .3s both; }
.hero-copy .outline-button { margin-top: 47px; animation: enter-left 1s var(--ease) .4s both; }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-pack { position: absolute; max-width: none; }
.hero-pack-back { width: 376px; left: calc(50% + 141px); top: calc(50% - 188px); animation: enter-right 1s var(--ease) .5s both; }
.hero-pack-front { width: 429px; left: calc(50% + 320.5px); top: calc(50% - 125px); animation: enter-right 1s var(--ease) .7s both; }
.hero-note { position: absolute; left: calc(50% + 386px); top: calc(50% - 261.5px); width: 493px; font-size: 115px; white-space: nowrap; animation: enter-right 1s var(--ease) .9s both; }
@keyframes enter-left { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: none; } }
@keyframes enter-right { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: none; } }

/* Introductory ingredient and flavor sections. */
.ingredients { display: grid; grid-template-columns: 50% 50%; align-items: center; min-height: 417px; }
.ingredient-art { position: relative; height: 417px; }
.ingredient-pack { position: absolute; width: 345px; left: calc(50% + 24.5px); top: 42.5px; }
.ingredient-note { position: absolute; left: calc(50% - 348px); top: 170px; width: 532px; font-size: 112px; white-space: nowrap; }
.ingredient-copy { padding-left: 95px; padding-right: 40px; }
.section-heading { position: relative; }
.script-title { display: inline-block; font: 400 60px/64px var(--script-font); color: var(--muted); padding-inline: 10%; margin: 0 -10% -8px; }
.section-description { font-size: 16px; line-height: 25px; margin-top: 20px; }
.ingredient-list { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(4, auto); gap: 8px 25px; list-style: none; padding: 0; margin: 14px 0 0; }
.ingredient-list li { display: flex; align-items: center; gap: 13px; min-height: 26px; white-space: nowrap; }
.ingredient-list li::before { content: ""; flex: 0 0 13px; width: 13px; height: 19px; background: url("../icona-elenco.png") center / contain no-repeat; }
.flavor-section { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; padding-top: 180px; padding-bottom: 145px; }
.flavor-card { text-align: center; }
.flavor-icon { position: relative; display: block; width: 149px; height: 149px; margin-inline: auto; }
.flavor-icon img { position: absolute; inset: 0; width: 149px; height: 149px; transition: opacity .35s; }
.flavor-icon-color { opacity: 0; }
.flavor-card:hover .flavor-icon-color, .flavor-icon:focus-visible .flavor-icon-color { opacity: 1; }
.flavor-card:hover .flavor-icon-line, .flavor-icon:focus-visible .flavor-icon-line { opacity: 0; }
.flavor-card h2 { font-size: 24px; line-height: 34px; letter-spacing: .15em; margin-top: 21px; }
.flavor-card p { margin-top: 10px; min-height: 50px; }
.flavor-card .text-link { margin-top: 24px; }
.story { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.story-copy { width: 530px; max-width: calc(100% - 80px); margin-left: auto; margin-right: 8%; }
.story-copy > p { font-size: 16px; line-height: 25px; margin-top: 27px; }
.story-art { position: relative; min-height: 347px; }
.story-pack { position: absolute; width: 312px; left: calc(50% - 367px); top: calc(50% - 180px); }
.story-note { position: absolute; width: 523px; left: calc(50% - 166.5px); top: calc(50% - 11px); white-space: nowrap; font-size: 115px; }

/* Editable WooCommerce product data in a lean custom grid. */
.shop-section { padding-top: 175px; padding-bottom: 145px; }
.shop-section > .section-heading { text-align: center; padding: 0 25px 32px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 40px; row-gap: 43px; margin-top: 35px; }
.product-card { min-width: 0; }
.product-image { position: relative; margin-bottom: 48px; }
.product-image > a { display: block; }
.product-image img { width: 100%; height: auto; transition: transform .55s var(--ease), opacity .35s; }
.product-card:hover .product-image img { transform: translateY(-5px); }
.product-actions { position: absolute; inset: -10px 0 -20px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; opacity: 0; background: rgb(255 239 225 / 88%); transform: translateY(8px); transition: opacity .3s, transform .3s; pointer-events: none; }
.product-card:hover .product-actions, .product-card:focus-within .product-actions { opacity: 1; transform: none; pointer-events: auto; }
.product-actions .text-button { min-height: 27px; }
.favorite-button { font-size: 24px; line-height: 25px; padding: 3px 15px; }
.favorite-button[aria-pressed="true"] { color: #bd4a69; }
.product-card h3 { font-size: 16px; line-height: 26px; letter-spacing: .1em; }
.product-card h3 a:hover { opacity: .6; }
.product-category { margin-top: 4px; }
.product-price { font: 500 16px/25px var(--heading-font); letter-spacing: .15em; margin-top: 8px; }
.product-grid .product-card { padding-bottom: 4px; }

/* Contact form and interactive map. */
.contact-section { display: grid; grid-template-columns: 37% 63%; min-height: 485px; gap: 0; margin-top: 10px; }
.map-panel { width: 100%; height: 485px; background: #ece9de; }
.map-panel iframe { border: 0; display: block; width: 100%; height: 100%; filter: grayscale(1); }
.contact-copy { padding-left: 12%; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 43px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), textarea, select {
    display: block;
    width: 100%;
    min-height: 32px;
    border: 0;
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
    padding: 3px 0;
    margin: 0;
    background: transparent;
    color: var(--ink);
    box-shadow: none;
    outline-offset: 3px;
}
input::placeholder, textarea::placeholder { color: var(--ink); opacity: 1; }
.contact-form > label:not(.consent) { margin-bottom: 20px; }
.contact-form textarea { height: 79px; resize: vertical; }
.form-wide { grid-column: 1 / -1; }
.consent { display: flex; align-items: flex-start; gap: 7px; font-size: 11px; line-height: 18px; margin-bottom: 17px; }
.consent input { width: 13px; height: 13px; margin: 3px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.consent a { text-decoration: underline; }
.form-trap { display: none !important; }
.form-status { font-size: 13px; line-height: 22px; margin-top: 12px; }
.form-status:empty { display: none; }
button[disabled] { opacity: .6; cursor: wait; }

/* Gallery and footer. */
.instagram-section { margin-top: 205px; }
.instagram-section > .section-heading { text-align: center; padding-inline: 25px; }
.instagram-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 57px; }
.gallery-image { display: block; position: relative; padding: 0; overflow: hidden; }
.gallery-image img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-image span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; color: var(--cream); background: rgb(15 47 78 / 45%); opacity: 0; transition: opacity .3s; }
.gallery-image:hover img { transform: scale(1.07); }
.gallery-image:hover span { opacity: 1; }
.footer-top { padding-block: 100px 115px; text-align: center; }
.footer-logo { width: 162px; height: 58px; margin-inline: auto; }
.footer-top > p { width: 530px; max-width: 100%; margin: 20px auto 25px; }
.newsletter-form { width: 530px; max-width: 100%; margin-inline: auto; }
.newsletter-email { display: flex; align-items: center; border-bottom: 1px solid var(--ink); }
.newsletter-email input { border: 0 !important; }
.newsletter-email button { white-space: nowrap; padding-left: 20px; }
.newsletter-email button span { font-family: var(--body-font); padding-left: 8px; }
.newsletter-form .consent { justify-content: center; margin-top: 10px; }
.social-links { display: flex; justify-content: center; gap: 15px; margin-top: 20px; font-size: 17px; }
.social-links a { min-width: 25px; transition: transform .3s; }
.social-links a:hover { transform: translateY(-3px); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 77px; border-top: 1px solid var(--line); margin-inline: 50px; padding-block: 16px; }
.footer-bottom nav { display: flex; gap: 27px; }
.footer-bottom nav a, .footer-bottom > a { font: 500 14px/26px var(--heading-font); letter-spacing: .12em; text-transform: uppercase; }
.footer-bottom a:hover { opacity: .6; }

/* A real pointer-following ice cream cursor, disabled on touch devices. */
.icecream-cursor { display: none; position: fixed; top: 0; left: 0; width: 15px; pointer-events: none; z-index: 999999; transform: translate3d(-100px, -100px, 0); }
.icecream-cursor img { width: 15px; height: 27px; transition: transform .3s ease-out; transform-origin: center; }
.icecream-cursor.is-hovering img { transform: scale(1.3); }
@media (hover: hover) and (pointer: fine) {
    .custom-cursor, .custom-cursor a, .custom-cursor button, .custom-cursor input, .custom-cursor textarea, .custom-cursor select { cursor: none; }
    .custom-cursor .icecream-cursor { display: block; }
}
.back-to-top { position: fixed; right: 32px; bottom: 30px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--ink); z-index: 15; font-size: 21px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, visibility .3s, transform .3s; background: var(--cream); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.site-toast { position: fixed; right: 25px; bottom: 90px; z-index: 100; max-width: min(420px, calc(100% - 50px)); padding: 15px 22px; background: var(--ink); color: #fff; opacity: 0; transform: translateY(15px); pointer-events: none; transition: opacity .3s, transform .3s; }
.site-toast.is-visible { opacity: 1; transform: none; }

/* Native dialogs: keyboard support, focus trapping and Escape built into the browser. */
dialog { color: var(--ink); border: 0; padding: 55px; background: var(--cream); max-width: calc(100% - 40px); max-height: calc(100svh - 60px); overflow: auto; }
dialog::backdrop { background: rgb(15 47 78 / 55%); backdrop-filter: blur(2px); }
dialog[open] { animation: dialog-in .25s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.dialog-close { position: absolute; top: 8px; right: 12px; width: 44px; height: 44px; font-size: 32px; line-height: 44px; }
.product-dialog[open] { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 45px; width: 960px; }
.dialog-product-image { width: 100%; }
.dialog-product-details h2 { font-size: 28px; line-height: 40px; letter-spacing: .1em; }
.dialog-product-price { font: 500 24px var(--heading-font); margin-block: 15px; }
.dialog-product-description { margin-bottom: 25px; }
#quick-cart-form { display: flex; align-items: end; gap: 20px; flex-wrap: wrap; }
#quick-cart-form label { width: 65px; font-size: 12px; }
#quick-cart-form input { text-align: center; }
#quick-cart-form .outline-button { padding-inline: 23px; }
.product-detail-link { display: inline-block; margin-top: 28px; text-decoration: underline; }
.cart-dialog { width: 600px; }
.cart-dialog h2 { font-size: 28px; line-height: 42px; margin-bottom: 25px; }
.cart-dialog-items { margin-bottom: 25px; }
.cart-row { display: flex; justify-content: space-between; gap: 25px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-weight: 600; padding-top: 18px; }
.gallery-dialog[open] { display: grid; grid-template-columns: 44px minmax(0, 600px) 44px; align-items: center; gap: 10px; padding: 50px 15px 20px; }
.gallery-dialog figure img { width: 550px; max-height: 70svh; object-fit: contain; image-rendering: auto; }
.gallery-dialog figcaption { margin-top: 10px; text-align: center; }
.gallery-prev, .gallery-next { min-width: 44px; min-height: 44px; font-size: 40px; }

/* Reveal states only attach when JavaScript is running. */
.motion-ready [data-reveal] .script-title { clip-path: inset(0 100% 0 100%); transition: clip-path 2s var(--ease); }
.motion-ready [data-reveal].is-visible .script-title { clip-path: inset(0); }
.motion-ready .ingredient-art, .motion-ready .story-art { opacity: 0; transform: translateY(25px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.motion-ready .ingredient-art.is-visible, .motion-ready .story-art.is-visible { opacity: 1; transform: none; }

/* Secondary pages and the WooCommerce screens share the same typography. */
.page-main { width: min(1100px, calc(100% - 80px)); margin: 0 auto; padding: 175px 0 100px; min-height: 65svh; }
.page-main > h1 { font-size: 48px; line-height: 1.35; letter-spacing: .15em; margin-bottom: 50px; }
.page-content { max-width: 820px; }
.page-content p, .page-content h2, .page-content h3 { margin-bottom: 24px; }
.page-content h2 { font-size: 30px; line-height: 42px; }
.page-main .product-grid { margin-top: 50px; }
.woocommerce .products { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 35px; }
.woocommerce .products .product { min-width: 0; }
.woocommerce .products img { width: 100%; margin-bottom: 25px; }
.woocommerce .woocommerce-loop-product__title { font-size: 20px; line-height: 30px; letter-spacing: .08em; }
.woocommerce .price { display: block; font-family: var(--heading-font); font-size: 20px; margin-block: 12px; }
.woocommerce .button, .woocommerce button.button { display: inline-block; border: 1px solid var(--ink); padding: 9px 22px; background: transparent; font: 500 14px/25px var(--heading-font); text-transform: uppercase; letter-spacing: .12em; }
.woocommerce .button:hover { background: var(--ink); color: var(--cream); }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { display: inline-block; margin: 0 20px 35px 0; }
.woocommerce .product > .woocommerce-product-gallery { float: left; width: 45%; margin-right: 8%; }
.woocommerce .summary { overflow: hidden; }
.woocommerce .summary h1 { font-size: 36px; line-height: 48px; letter-spacing: .1em; }
.woocommerce .summary .cart { display: flex; align-items: end; gap: 20px; margin-block: 25px; }
.woocommerce .quantity { width: 70px; }
.woocommerce .woocommerce-tabs, .woocommerce .related { clear: both; padding-top: 60px; }
.woocommerce .tabs { display: flex; gap: 30px; padding: 0; list-style: none; font-family: var(--heading-font); text-transform: uppercase; }
.woocommerce .woocommerce-Tabs-panel h2, .woocommerce .related h2 { font-size: 28px; line-height: 40px; margin-bottom: 20px; }
.woocommerce table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.woocommerce th, .woocommerce td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); }
.woocommerce table img { max-width: 100px; }
.woocommerce table .quantity { width: 70px; }
.woocommerce .cart_totals { width: min(500px, 100%); margin-left: auto; }
.woocommerce .cart_totals h2 { font-size: 30px; }
.woocommerce .checkout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.woocommerce .checkout h3 { font-size: 24px; line-height: 36px; margin-bottom: 20px; }
.woocommerce form .form-row { margin-block: 15px; }
.woocommerce-error, .woocommerce-message, .woocommerce-info { padding: 18px; border: 1px solid var(--ink); list-style-position: inside; margin-bottom: 25px; }
.woocommerce .product_meta { margin-top: 25px; font-size: 12px; }
.diary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.diary-grid h2 { font-size: 25px; line-height: 38px; letter-spacing: .1em; margin-block: 20px; }
.diary-grid img { width: 100%; aspect-ratio: 1.3; object-fit: contain; }

@media (max-width: 1700px) {
    .hero-copy { left: calc(50% - 550px); top: calc(50% - 189px); width: 474px; }
    .hero h1 { font-size: 56px; line-height: 66px; letter-spacing: 8px; }
    .hero-copy p { width: 382px; margin-top: 24px; }
    .hero-copy .outline-button { margin-top: 50px; }
    .hero-pack-back { width: 220px; left: calc(50% + 127px); top: calc(50% - 115.5px); }
    .hero-pack-front { width: 253px; left: calc(50% + 250.5px); top: calc(50% - 78.5px); }
    .hero-note { left: calc(50% + 264.5px); top: calc(50% - 170px); width: 321px; font-size: 80px; }
    .ingredients, .ingredient-art { min-height: 317px; height: 317px; }
    .ingredient-pack { width: 253px; left: calc(50% + 69.5px); top: 41.5px; }
    .ingredient-note { width: 432px; left: calc(50% - 239px); top: 145px; font-size: 90px; }
    .story-pack { width: 225px; left: calc(50% - 256.5px); top: calc(50% - 130px); }
    .story-note { width: 432px; left: calc(50% - 143px); top: calc(50% - 32.5px); font-size: 90px; }
}
@media (max-width: 1440px) {
    :root { --content-width: 1100px; }
    .ingredient-copy { padding-left: 45px; }
    .ingredient-list { gap: 8px 14px; font-size: 13px; }
    .story-copy { margin-right: 6%; }
}
@media (max-width: 1200px) {
    :root { --content-width: 960px; }
    .hero-copy { left: 60px; }
    .hero-pack-back { left: calc(50% + 50px); }
    .hero-pack-front { left: calc(50% + 170px); }
    .hero-note { left: calc(50% + 180px); font-size: 70px; }
    .ingredient-copy { padding-left: 20px; }
    .ingredient-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; gap: 3px; }
    .ingredients, .ingredient-art { height: auto; min-height: 370px; }
    .ingredient-pack { left: calc(50% + 10px); }
    .ingredient-note { left: 35px; font-size: 75px; }
    .story-copy { max-width: calc(100% - 60px); }
    .story-note { font-size: 75px; }
    .main-nav > ul { gap: 24px; }
    .header-actions { gap: 16px; }
    .product-grid { column-gap: 25px; }
}
@media (max-width: 1024px) {
    :root { --content-width: 768px; }
    .main-header { height: 70px; padding-inline: 30px; }
    .brand, .brand img { width: 100px; }
    .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px; padding: 8px; margin-left: auto; }
    .menu-toggle span { width: 27px; height: 1px; background: var(--ink); transition: transform .25s; }
    .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
    .header-actions { margin-left: 12px; }
    .header-order { display: none; }
    .main-nav { position: absolute; top: 70px; left: 0; width: 100%; padding: 10px 30px 25px; background: var(--cream); transform: none; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
    .main-nav.is-open { opacity: 1; visibility: visible; }
    .main-nav > ul { display: block; }
    .main-nav > ul > li > a, .submenu-toggle { min-height: 44px; width: 100%; }
    .submenu { position: static; display: none; visibility: visible; opacity: 1; transform: none; background: transparent; padding: 0 15px 10px; }
    .has-submenu.is-open .submenu { display: block; }
    .hero { min-height: 800px; }
    .hero-copy { top: 210px; left: 55px; width: 475px; }
    .hero h1 { line-height: 50px; }
    .hero-copy p { width: 426px; margin-top: 30px; }
    .hero-copy .outline-button { margin-top: 30px; }
    .hero-pack-back { left: auto; right: 200px; top: auto; bottom: 113px; }
    .hero-pack-front { left: auto; right: 38px; top: auto; bottom: 70px; }
    .hero-note { left: auto; right: 20px; top: auto; bottom: 340px; }
    .ingredients { grid-template-columns: 55% 45%; min-height: 460px; margin-top: -40px; }
    .ingredient-art { min-height: 460px; }
    .ingredient-pack { left: 120px; top: 110px; width: 286px; }
    .ingredient-note { left: 30px; top: 28px; width: 289px; font-size: 68px; }
    .ingredient-copy { padding: 35px 20px 50px; }
    .ingredient-copy h3 { font-size: 27px; line-height: 40px; }
    .ingredient-list { gap: 8px; }
    .flavor-section { grid-template-columns: 1fr 1fr; gap: 60px 90px; padding: 55px 0 153px; }
    .story { display: flex; flex-direction: column-reverse; }
    .story-copy { width: 100%; max-width: 100%; margin: 0; padding: 55px 100px 62px 40px; }
    .story-art { width: 100%; min-height: 280px; }
    .story-pack { left: calc(50% - 230px); }
    .story-note { left: calc(50% - 50px); }
    .shop-section { padding-top: 164px; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 45px 40px; }
    .contact-section { grid-template-columns: 1fr; }
    .contact-copy { padding: 0; margin-top: 73px; }
    .instagram-section { margin-top: 176px; }
    .instagram-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-bottom { flex-wrap: wrap; justify-content: center; text-align: center; margin-inline: 30px; }
    .footer-bottom p { width: 100%; }
    .woocommerce .products { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    :root { --content-width: 420px; }
    .content-width { width: calc(100% - 60px); }
    h2 { font-size: 32px; line-height: 44px; letter-spacing: .12em; }
    h3 { font-size: 26px; line-height: 39px; letter-spacing: .12em; }
    .hero { min-height: 640px; }
    .hero-copy { left: 35px; top: calc(50% - 196px); width: calc(100% - 60px); }
    .hero h1 { font-size: 42px; line-height: 58px; letter-spacing: 5px; }
    .hero-copy p { width: min(334px, 100%); margin-top: 29px; }
    .hero-copy .outline-button { margin-top: 40px; }
    .hero-art { display: none; }
    .ingredients { grid-template-columns: 1fr; margin-top: 0; }
    .ingredient-art { height: 250px; min-height: 250px; }
    .ingredient-pack { width: 170px; height: auto; left: calc(50% - 23px); top: 35px; }
    .ingredient-note { width: 200px; left: calc(50% - 140px); top: 125px; font-size: 53px; }
    .ingredient-copy { padding: 25px 30px 0; }
    .ingredient-list { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 9px 15px; margin-top: 20px; font-size: 11px; }
    .ingredient-list li { white-space: normal; align-items: flex-start; gap: 7px; }
    .ingredient-list li::before { margin-top: 3px; flex-basis: 10px; width: 10px; height: 15px; }
    .flavor-section { grid-template-columns: 1fr; padding: 90px 0 100px; gap: 60px; }
    .flavor-card p { min-height: 0; }
    .story-copy { padding: 40px 30px 62px; }
    .story-art { min-height: 200px; }
    .story-pack { width: 160px; left: calc(50% - 149px); top: 8px; }
    .story-note { width: 179px; left: calc(50% - 30px); top: 100px; font-size: 52px; }
    .shop-section { padding-top: 14px; padding-bottom: 90px; }
    .section-description { font-size: 15px; }
    .shop-section > .section-heading { padding-bottom: 32px; }
    .product-grid { grid-template-columns: 1fr; margin-top: 35px; row-gap: 48px; }
    .product-image { margin-bottom: 29px; }
    .product-actions { position: static; flex-direction: row; flex-wrap: wrap; opacity: 1; transform: none; pointer-events: auto; background: transparent; margin-top: 15px; gap: 12px; justify-content: flex-start; }
    .product-actions .text-button { font-size: 11px; min-height: 36px; }
    .favorite-button { order: 3; margin-left: auto; }
    .contact-copy { margin-top: 75px; }
    .contact-form { gap: 0 20px; margin-top: 35px; }
    .map-panel { height: 400px; }
    .contact-copy h3 { font-size: 26px; }
    .instagram-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .instagram-section { margin-top: 130px; }
    .footer-top { padding-block: 100px 80px; }
    .footer-bottom { gap: 15px; margin-inline: 20px; }
    .footer-bottom nav { gap: 18px; flex-wrap: wrap; justify-content: center; }
    .footer-bottom p { font-size: 11px; }
    .newsletter-form .consent { text-align: left; justify-content: flex-start; }
    .script-title { font-size: 55px; }
    dialog { padding: 50px 25px 30px; }
    .product-dialog[open] { grid-template-columns: 1fr; gap: 25px; }
    .dialog-product-image { width: 250px; margin-inline: auto; }
    .dialog-product-details h2 { font-size: 23px; line-height: 34px; }
    .gallery-dialog[open] { grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 0; padding-inline: 5px; }
    .gallery-prev, .gallery-next { min-width: 30px; }
    .page-main { width: calc(100% - 50px); padding-top: 135px; }
    .page-main > h1 { font-size: 34px; letter-spacing: .1em; }
    .woocommerce .products, .woocommerce .checkout, .diary-grid { grid-template-columns: 1fr; }
    .woocommerce .product > .woocommerce-product-gallery { float: none; width: 100%; margin: 0 0 35px; }
    .woocommerce th, .woocommerce td { padding: 10px 5px; font-size: 12px; }
    .woocommerce .product-thumbnail { display: none; }
    .back-to-top { right: 16px; bottom: 16px; }
}
@media (max-width: 380px) {
    .hero h1 { font-size: 36px; line-height: 52px; letter-spacing: 4px; }
    .ingredient-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; font-size: 13px; }
    .contact-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
    .motion-ready [data-reveal] .script-title { clip-path: none; }
    .motion-ready .ingredient-art, .motion-ready .story-art { opacity: 1; transform: none; }
}
