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

:root {
  --blue: #0d2456;
  --blue-deep: #061b43;
  --blue-soft: #9bacc8;
  --ink: #16243b;
  --paper: #f4f3f0;
  --cream: #e9e8e4;
  --white: #fff;
  --line: rgba(11, 42, 96, .16);
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-weight: 300; line-height: 1.7; }
body.no-scroll { overflow: hidden; }
img { width: 100%; height: 100%; display: block; object-fit: cover; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
h1, h2 { margin: 0 0 1.25rem; font-family: var(--serif); font-weight: 400; line-height: 1.18; }
h1 { font-size: clamp(3rem, 7vw, 7.5rem); }
h2 { font-size: clamp(2rem, 4vw, 4.25rem); }
p { margin: 0 0 1.5rem; }

.skip-link { position: fixed; z-index: 1000; top: .75rem; left: .75rem; transform: translateY(-160%); padding: .65rem 1rem; background: #fff; }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { margin-bottom: 1rem; font-size: .72rem; font-weight: 600; letter-spacing: .23em; text-transform: uppercase; }
.button { display: inline-flex; min-height: 3.4rem; align-items: center; justify-content: center; padding: .85rem 2rem; border: 1px solid var(--blue); background: var(--blue); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: background .25s, border-color .25s, transform .25s; }
.button:hover { border-color: var(--blue-deep); background: var(--blue-deep); transform: translateY(-2px); }
.button--dark { border-color: var(--ink); background: var(--ink); }
.button--outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.button--outline:hover { background: var(--ink); color: #fff; }
.icon-button { border: 0; background: transparent; cursor: pointer; }

.announcement { min-height: 3.8rem; display: grid; grid-template-columns: 1fr auto; place-items: center; padding: .75rem 2rem; background: #fff; color: var(--blue); font-size: .85rem; }
.announcement p { margin: 0; text-align: center; }
.announcement__close { color: var(--blue); font-size: 1.7rem; line-height: 1; }
.announcement.is-hidden { display: none; }

.site-header { position: relative; height: 5.3rem; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(1.4rem, 6vw, 8rem); background: var(--blue); }
.menu-button { width: 2rem; padding: .25rem; justify-self: start; }
.menu-button span { display: block; height: 1px; margin: 6px 0; background: #fff; }
.brand { width: 5.8rem; height: 4.5rem; display: block; overflow: hidden; border-radius: .35rem; background: var(--blue); }
.brand__image { object-fit: cover; }
.cart-button { position: relative; width: 2.4rem; justify-self: end; color: #fff; }
.cart-button svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.cart-count { position: absolute; right: -8px; top: -7px; min-width: 1.15rem; height: 1.15rem; display: grid; place-items: center; border-radius: 999px; background: #fff; color: var(--blue); font-size: .63rem; }
.site-menu { position: fixed; inset: 0 auto 0 0; width: min(25rem, 88vw); z-index: 101; display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: 4rem; background: var(--paper); transform: translateX(-102%); transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.site-menu.is-open { transform: translateX(0); }
.site-menu a { width: fit-content; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3rem); }
.site-menu a:hover { color: var(--blue); }
.site-menu__close { position: absolute; top: 1rem; right: 1.5rem; border: 0; background: transparent; font-size: 2.5rem; cursor: pointer; }

.hero { position: relative; min-height: calc(100svh - 9.1rem); display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; }
.hero > img, .hero__overlay { position: absolute; inset: 0; }
.hero > img { animation: heroIn 1.4s ease-out both; }
.hero__overlay { background: linear-gradient(180deg, rgba(18, 24, 17, .12), rgba(18, 24, 17, .42)); }
.hero__content { position: relative; z-index: 2; max-width: 70rem; padding: 4rem 1.5rem; }
.hero__content .eyebrow { text-shadow: 0 1px 1rem rgba(0,0,0,.25); }
.hero h1 { text-shadow: 0 2px 1.5rem rgba(0,0,0,.28); }
.scroll-cue { position: absolute; z-index: 3; bottom: 1.5rem; font-size: 1.5rem; animation: bob 1.8s ease-in-out infinite; }
@keyframes heroIn { from { scale: 1.06; opacity: .6; } to { scale: 1; opacity: 1; } }
@keyframes bob { 50% { transform: translateY(.4rem); } }

.split { min-height: 38rem; display: grid; grid-template-columns: 1fr 1fr; }
.split__media { min-height: 38rem; overflow: hidden; }
.split__media img { object-position: center 62%; transition: transform .8s ease; }
.split__media:hover img { transform: scale(1.025); }
.split__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(3rem, 8vw, 9rem); background: #f0eee8; }
.split__copy p:not(.eyebrow) { max-width: 35rem; }

.collections { position: relative; min-height: 40rem; display: flex; align-items: end; overflow: hidden; color: #fff; }
.collections > img, .collections__shade { position: absolute; inset: 0; }
.collections__shade { background: linear-gradient(0deg, rgba(13, 16, 12, .76), rgba(13, 16, 12, .02) 62%); }
.collections__links { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
.collections__links button { display: flex; align-items: center; gap: 1rem; padding: 2rem clamp(1rem, 4vw, 4rem); border: 0; border-top: 1px solid rgba(255,255,255,.45); border-right: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-family: var(--serif); font-size: clamp(1rem, 2vw, 1.5rem); text-align: left; cursor: pointer; transition: background .25s; }
.collections__links button:hover { background: rgba(11,42,96,.86); }

.statement { padding: clamp(6rem, 12vw, 12rem) 1.5rem; text-align: center; }
.statement h2 { font-size: clamp(2.4rem, 6vw, 6rem); }
.statement em { color: var(--blue); font-weight: 400; }

.product-story { min-height: 40rem; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.product-story--reverse .product-story__image { order: 2; }
.product-story__image { min-height: 40rem; overflow: hidden; }
.product-story__image img { transition: transform .8s ease; }
.product-story__image:hover img { transform: scale(1.03); }
.product-story__content { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(3rem, 7vw, 8rem); background: #f0eee8; }
.product-story--reverse .product-story__content { background: #fff; }
.product-story__content p { max-width: 34rem; }
.text-link { display: inline-flex; gap: .75rem; align-items: center; padding: .2rem 0 .45rem; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-size: .75rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; cursor: pointer; }
.text-link span { color: var(--blue); transition: transform .2s; }
.text-link:hover span { transform: translateX(.35rem); }

.story { position: relative; min-height: 45rem; display: grid; place-items: center; padding: 5rem 1.5rem; overflow: hidden; background: #0d2456; color: #fff; text-align: center; }
.story__watermark { position: absolute; width: min(78vw, 45rem); height: auto; max-height: 86%; object-fit: contain; opacity: .085; pointer-events: none; user-select: none; }
.story__line { position: absolute; top: 0; left: 50%; width: 1px; height: 5rem; background: var(--blue-soft); }
.story__content { position: relative; max-width: 52rem; }
.story__content p:not(.eyebrow) { color: rgba(255,255,255,.72); }

.press { max-width: 64rem; margin: 0 auto; padding: clamp(7rem, 13vw, 13rem) 1.5rem; text-align: center; }
.press > p:not(.eyebrow) { max-width: 43rem; margin: 0 auto 2rem; }

.location { min-height: 34rem; display: grid; grid-template-columns: 1fr 1fr; background: #e9e5dd; }
.location__card { min-height: 34rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(3rem, 8vw, 8rem); background: #e9e5dd; text-align: left; }
.location__card address { margin-bottom: 2rem; font-style: normal; }
.location__details { margin: -.6rem 0 2rem; font-size: .9rem; }
.location__details p { margin-bottom: .7rem; }
.location__details a:hover { color: var(--blue-deep); }
.location__media { min-height: 34rem; overflow: hidden; }
.location__media img { object-position: center center; }

.site-footer { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; padding: 3rem clamp(1.5rem, 6vw, 7rem); background: var(--blue); color: #fff; }
.brand--footer { width: 8rem; height: 8rem; }
.site-footer p { margin: 0; color: rgba(255,255,255,.65); }
.site-footer__links { display: flex; gap: 1.4rem; }
.site-footer__links a:hover { color: #b7c8e4; }
.site-footer > small { grid-column: 1 / -1; color: rgba(255,255,255,.42); }

.cart-drawer { position: fixed; z-index: 102; inset: 0 0 0 auto; width: min(29rem, 94vw); display: grid; grid-template-rows: auto 1fr auto; background: var(--paper); transform: translateX(102%); transition: transform .4s cubic-bezier(.22,1,.36,1); }
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 2rem; border-bottom: 1px solid var(--line); }
.cart-drawer__header h2 { margin: 0; font-size: 1.5rem; }
.cart-drawer__header button { border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
.cart-drawer__body { overflow: auto; padding: 1.5rem 2rem; }
.cart-empty { color: #767a73; }
.cart-item { display: grid; grid-template-columns: 4rem 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-item__thumb { width: 4rem; height: 4rem; background: center / cover url('../images/pralines-leonidas.jpg'); }
.cart-item strong { display: block; font-family: var(--serif); font-weight: 400; line-height: 1.3; }
.cart-item small { color: #747871; }
.cart-item button { border: 0; background: transparent; color: #777; cursor: pointer; }
.cart-drawer__footer { padding: 1.5rem 2rem 2rem; border-top: 1px solid var(--line); }
.cart-drawer__footer > div { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.cart-drawer__footer .button { width: 100%; }
.cart-drawer__footer small { display: block; margin-top: .75rem; text-align: center; }
.page-scrim { position: fixed; inset: 0; z-index: 100; visibility: hidden; background: rgba(20,23,19,.48); opacity: 0; transition: opacity .3s, visibility .3s; }
.page-scrim.is-visible { visibility: visible; opacity: 1; }
.toast { position: fixed; z-index: 110; left: 50%; bottom: 2rem; transform: translate(-50%, 150%); padding: .75rem 1.25rem; background: var(--ink); color: #fff; font-size: .85rem; transition: transform .3s; }
.toast.is-visible { transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .announcement { padding: .65rem 1rem; font-size: .72rem; line-height: 1.4; }
  .site-header { height: 4.5rem; padding: 0 1.25rem; }
  .brand { width: 4.6rem; height: 3.6rem; }
  .brand--footer { width: 7rem; height: 7rem; }
  .hero { min-height: calc(100svh - 8.3rem); }
  .hero > img { object-position: 62% center; }
  .split, .product-story { grid-template-columns: 1fr; }
  .split__media, .product-story__image { min-height: 28rem; }
  .split__copy, .product-story__content, .location__card { padding: 4.5rem 1.5rem; }
  .collections { min-height: 45rem; }
  .collections > img { object-position: 51% center; }
  .collections__links { grid-template-columns: 1fr; }
  .collections__links button { min-height: 5.2rem; border-right: 0; }
  .product-story--reverse .product-story__image { order: 0; }
  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer > small { grid-column: auto; }
}

@media (max-width: 560px) {
  .location { grid-template-columns: 1fr; }
  .location__media { min-height: 24rem; }
}

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