/* CouplesCrate — plain CSS. Adjust these tokens to change the brand palette. */
:root {
  --wine: #730b1c;
  --wine-dark: #510713;
  --ink: #242122;
  --muted: #625c5e;
  --white: #fff;
  --blush: #fbf5f5;
  --line: #ddd8d9;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
  --content-width: 1200px;
  --gutter: clamp(22px, 4.6vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
button { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--wine); font-family: var(--serif); font-weight: 600; }
:focus-visible { outline: 3px solid #ae6072; outline-offset: 5px; }
[hidden] { display: none !important; }
.container { width: min(var(--content-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.svg-library, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 10px 20px; background: var(--wine); color: white; z-index: 20; }
.skip-link:focus { top: 12px; }
.icon { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.announcement { padding: 6px 16px; background: var(--wine); color: white; text-align: center; font-size: .875rem; font-weight: 500; letter-spacing: .015em; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { color: var(--wine); font: 600 2.4rem/.95 var(--serif); letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.desktop-nav { display: flex; align-items: center; gap: 36px; margin-left: auto; margin-right: auto; }
.desktop-nav a, .text-nav { font-size: .95rem; text-decoration: none; }
.text-nav { border: 0; padding: 0; background: transparent; }
.desktop-nav a:hover, .text-nav:hover { color: var(--wine); text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; }
.icon-button:hover { background: var(--blush); color: var(--wine); }
.bag-button { position: relative; }
.bag-count { position: absolute; right: 0; top: 0; min-width: 19px; height: 19px; padding: 1px 4px; background: var(--wine); color: white; font-size: 11px; font-weight: 600; border-radius: 20px; line-height: 17px; }
.menu-toggle, .mobile-nav { display: none; }
.hero { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 20px; padding-block: 48px 38px; }
.eyebrow { color: var(--wine); text-transform: uppercase; font-size: .875rem; font-weight: 600; line-height: 1.5; letter-spacing: .16em; }
.hero h1 { margin-top: 12px; margin-bottom: 22px; font-size: clamp(4.5rem, 7.7vw, 7rem); line-height: .87; letter-spacing: -.045em; }
.hero-lead { font-size: clamp(1.125rem, 1.8vw, 1.4rem); letter-spacing: -.025em; line-height: 1.4; }
.hero-description { margin-top: 9px; font-size: .95rem; color: #4c4447; line-height: 1.6; }
.hero-visual img { width: 100%; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; gap: 20px; padding: 11px 26px; border: 1px solid var(--wine); border-radius: 4px; text-decoration: none; text-align: center; font-weight: 600; line-height: 1.3; transition: background-color .18s, color .18s, border-color .18s; }
.button-primary { background: var(--wine); color: white; }
.button-primary:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.button-outline { background: white; color: var(--wine); }
.button-outline:hover { background: var(--blush); }
.button-arrow { font-size: 1.6rem; line-height: .6; font-weight: 400; }
.hero-cta { margin-top: 22px; min-width: 206px; }
.text-link { text-decoration-thickness: 1px; }
.text-link:hover { color: var(--wine); text-decoration-thickness: 2px; }
.hero-secondary { display: block; width: fit-content; margin-top: 12px; font-size: .9rem; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); padding-block: 24px; }
.benefits > div { display: flex; align-items: center; justify-content: center; gap: 20px; padding-inline: 12px; font-size: .95rem; }
.benefits > div + div { border-left: 1px solid var(--line); }
.benefits .icon { width: 29px; height: 29px; flex-shrink: 0; color: var(--wine); }
.collection { padding-block: 42px 46px; }
.section-heading { text-align: center; margin-bottom: 30px; }
h2 { font-size: clamp(2.8rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -.035em; }
.section-heading p { margin-top: 9px; font-size: 1.125rem; letter-spacing: -.015em; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.product-card { min-width: 0; text-align: center; display: flex; flex-direction: column; align-items: stretch; }
.product-image { display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: var(--blush); }
.product-image img { width: 100%; aspect-ratio: 317 / 234; object-fit: cover; transition: transform .35s ease; }
.product-image:hover img { transform: scale(1.025); }
.product-eyebrow { color: var(--wine); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-top: 17px; }
.product-card h3 { font-size: clamp(1.85rem, 2.75vw, 2.55rem); line-height: 1.05; letter-spacing: -.045em; margin-top: 5px; }
.product-description { font-size: .95rem; margin-top: 8px; margin-bottom: 20px; }
.product-cta { width: calc(100% - 20px); margin: auto auto 0; }
.how-it-works { border-top: 1px solid var(--line); padding-block: 35px 28px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 46px; }
.interior-visual img { width: 100%; }
.how-copy .eyebrow { font-size: .8rem; letter-spacing: .12em; margin-bottom: 8px; }
.how-copy h2 { font-size: clamp(2.75rem, 4.1vw, 3.6rem); }
.steps { list-style: none; counter-reset: steps; margin: 23px 0 24px; padding: 0; }
.steps li { display: flex; align-items: center; counter-increment: steps; margin-block: 9px; }
.steps li::before { content: counter(steps, decimal-leading-zero); flex: 0 0 52px; color: var(--wine); font: italic 600 1.95rem/1 var(--serif); }
.steps li span { border-left: 1px solid var(--line); padding-left: 22px; }
.explore-link { display: inline-flex; gap: 15px; align-items: center; color: var(--wine); font-weight: 600; }
.explore-link span { font-size: 1.5rem; text-decoration: none; }
.site-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding-block: 20px 26px; }
.site-footer .wordmark { font-size: 2rem; }
.site-footer p { color: var(--wine); font: italic 600 1.3rem/1 var(--serif); }

/* Optional progressive enhancement: product details, search, and a local preview bag. */
.modal { color: var(--ink); width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: 6px; padding: 38px; background: white; overflow-y: auto; }
.modal::backdrop { background: rgb(32 15 20 / .4); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; right: 10px; top: 10px; }
.modal h2 { font-size: 2.8rem; margin: 9px 0 22px; }
.modal .eyebrow { padding-right: 25px; }
.modal .button { width: 100%; }
.product-modal { width: min(910px, calc(100% - 32px)); padding: 48px 30px 30px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 30px; }
.product-detail-grid > img { width: 100%; margin-top: 20px; }
.product-modal h2 { margin-bottom: 14px; }
.detail-features { padding-left: 20px; font-size: .95rem; margin-block: 20px; }
.detail-features li + li { margin-top: 6px; }
.quantity-field { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
input { min-height: 46px; color: var(--ink); background: white; border: 1px solid #aaa0a3; border-radius: 3px; padding: 10px 12px; }
.quantity-field input { width: 80px; }
.preview-note { color: var(--muted); font-size: .875rem; line-height: 1.5; margin-block: 16px; }
.search-modal input { width: 100%; margin-bottom: 16px; }
.search-result { display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: white; padding: 14px 0; }
.search-result:hover { background: var(--blush); }
.search-result img { width: 85px; height: 65px; object-fit: cover; }
.search-result strong { display: block; color: var(--wine); font-weight: 500; }
.search-result small { display: block; font-size: .875rem; margin-top: 3px; color: var(--muted); }
.empty-state { padding-block: 20px; color: var(--muted); }
.bag-item { display: grid; grid-template-columns: 95px 1fr; gap: 18px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.bag-item h3 { font-size: 1.8rem; line-height: 1; }
.bag-item p { margin-top: 9px; font-size: .9rem; }
.remove-item { background: transparent; border: 0; padding: 0; color: var(--wine); text-decoration: underline; text-underline-offset: 3px; margin-top: 8px; font-size: .875rem; }
.story-modal > p:not(.eyebrow) { margin-bottom: 20px; }
.story-modal > .button { margin-top: 5px; }
.noscript-note { margin: 16px; padding: 16px; background: var(--blush); }

@media (min-width: 1500px) {
  .hero { padding-block: 64px 48px; }
}
@media (max-width: 1000px) {
  .desktop-nav { gap: 22px; }
  .hero h1 { font-size: 5.25rem; }
  .hero { gap: 12px; }
  .hero-description { font-size: .9rem; }
  .benefits > div { gap: 12px; font-size: .875rem; }
  .product-grid { gap: 20px; }
  .product-card h3 { font-size: 2rem; min-height: 2.1em; display: flex; align-items: center; justify-content: center; }
  .product-description { min-height: 3em; font-size: .9rem; }
  .how-it-works { gap: 25px; }
}
@media (max-width: 760px) {
  :root { --gutter: 24px; }
  .header-inner { min-height: 72px; gap: 10px; }
  .wordmark { font-size: 2.15rem; }
  .desktop-nav { display: none; }
  .header-actions { gap: 0; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav:not([hidden]) { display: flex; flex-direction: column; gap: 0; padding-block: 5px 18px; }
  .mobile-nav a, .mobile-nav button { display: block; text-align: left; padding-block: 12px; text-decoration: none; border-top: 1px solid var(--line); }
  .hero { padding-block: 35px 24px; grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: clamp(4.9rem, 13vw, 6.5rem); margin-top: 14px; margin-bottom: 22px; }
  .hero-lead { font-size: 1.2rem; }
  .hero-description { font-size: .95rem; max-width: 340px; margin-inline: auto; }
  .hero-secondary { margin-inline: auto; }
  .hero-visual { max-width: 590px; width: 100%; margin-inline: auto; }
  .benefits { padding-block: 18px; }
  .benefits > div { flex-direction: column; text-align: center; gap: 10px; padding-inline: 10px; font-size: .875rem; line-height: 1.4; }
  .benefits .icon { width: 25px; height: 25px; }
  .collection { padding-block: 36px; }
  h2 { font-size: clamp(2.75rem, 8.5vw, 3.5rem); }
  .section-heading p { font-size: 1rem; max-width: 270px; margin-inline: auto; }
  .product-grid { gap: 30px 20px; grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .product-card h3 { min-height: 0; font-size: 2.65rem; margin-top: 5px; }
  .product-description { min-height: 0; font-size: 1rem; margin-bottom: 18px; }
  .product-eyebrow { margin-top: 16px; font-size: .875rem; }
  .product-cta { width: 100%; }
  .how-it-works { grid-template-columns: 1fr; gap: 26px; padding-block: 28px 35px; }
  .interior-visual { max-width: 540px; margin-inline: auto; }
  .how-copy { max-width: 460px; width: 100%; margin-inline: auto; }
  .how-copy h2 { font-size: clamp(2.8rem, 9vw, 3.4rem); }
  .how-copy .eyebrow { font-size: .8rem; }
  .steps { margin-block: 22px; }
  .site-footer { padding-block: 22px; gap: 15px; }
  .site-footer .wordmark { font-size: 1.8rem; }
  .site-footer p { font-size: 1.15rem; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 20px; }
  .product-detail-grid > img { margin: 0; max-height: 230px; object-fit: contain; }
  .modal { padding: 38px 24px 24px; }
  .product-modal { padding-top: 48px; }
  .modal h2 { font-size: 2.65rem; }
}
@media (max-width: 370px) {
  :root { --gutter: 18px; }
  .header-inner .wordmark { font-size: 1.8rem; }
  .header-actions .icon-button { width: 38px; }
  .hero h1 { font-size: 4.7rem; }
  .hero-lead { font-size: 1.1rem; }
  .benefits > div { padding-inline: 7px; font-size: .8rem; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
