:root {
  --paper: #f7f7f4;
  --white: #ffffff;
  --ink: #171816;
  --muted: #656962;
  --line: #d9dcd5;
  --lime: #d7ff45;
  --blue: #1746d1;
  --coral: #ff6b4a;
  --focus: #78a4ff;
  --shadow: 0 18px 50px rgba(23, 24, 22, 0.18);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); letter-spacing: 0; }
body.overlay-open { overflow: hidden; }
button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-160%); background: var(--white); padding: 10px 14px; }
.skip-link:focus { transform: none; }

.demo-strip { min-height: 30px; display: grid; place-items: center; padding: 6px 16px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 800; text-align: center; }
.site-header { min-height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 clamp(18px, 4vw, 64px); background: rgba(247, 247, 244, 0.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.wordmark { width: max-content; font-size: 14px; font-weight: 900; text-decoration: none; }
.primary-nav { display: flex; gap: 28px; }
.primary-nav a, .footer-links button { border: 0; background: transparent; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; padding: 8px 0; }
.primary-nav a:hover, .footer-links button:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.icon-button { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; flex: 0 0 42px; }
.icon-button:hover { background: var(--white); }
.icon-button svg { width: 18px; height: 18px; }
.bag-button { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 5px 0 13px; border: 1px solid var(--ink); border-radius: 24px; background: var(--ink); color: var(--white); cursor: pointer; font-size: 13px; font-weight: 800; }
.bag-button svg { width: 17px; height: 17px; }
.bag-count { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); }

.hero { min-height: min(72svh, 720px); position: relative; display: flex; align-items: flex-end; overflow: hidden; background-image: url('/assets/candle.jpg'); background-size: cover; background-position: center 58%; color: var(--white); }
.hero-overlay { position: absolute; inset: 0; background: rgba(13, 15, 12, 0.48); }
.hero-content { position: relative; z-index: 1; width: min(720px, calc(100% - 36px)); margin: 0 0 clamp(72px, 11vh, 110px) clamp(18px, 7vw, 112px); }
.eyebrow { margin: 0 0 14px; font-size: 11px; line-height: 1.3; font-weight: 900; }
.eyebrow.dark { color: var(--blue); }
.hero h1 { margin: 0; max-width: 680px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(54px, 7.6vw, 112px); font-weight: 400; line-height: 0.94; }
.hero-content > p:not(.eyebrow) { max-width: 540px; margin: 24px 0 30px; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.5; }
.primary-button, .primary-dark-button, .secondary-button, .checkout-button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 3px; padding: 0 20px; font-size: 13px; font-weight: 850; text-decoration: none; cursor: pointer; }
.primary-button { background: var(--lime); color: var(--ink); }
.primary-button svg, .checkout-button svg { width: 17px; height: 17px; }
.hero-note { position: absolute; right: clamp(18px, 4vw, 64px); bottom: 24px; z-index: 1; display: flex; gap: 30px; font-size: 10px; font-weight: 850; }

.product-section { padding: clamp(48px, 5vw, 72px) clamp(18px, 4vw, 64px) clamp(64px, 9vw, 128px); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr); gap: 48px; align-items: end; max-width: 1440px; margin: 0 auto 44px; }
.section-heading h2, .story-copy h2, .modal h2, .drawer h2, .consent-banner h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.04; }
.section-heading h2 { max-width: 780px; font-size: clamp(34px, 4.6vw, 64px); }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.7; }
.product-grid { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.product-image-button { width: 100%; aspect-ratio: 4 / 5; position: relative; overflow: hidden; padding: 0; border: 0; background: #e6e7e2; cursor: zoom-in; }
.product-image-button img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.product-card:nth-child(1) img { object-position: center; }
.product-card:nth-child(2) img { object-position: center; }
.product-card:nth-child(3) img { object-position: center 62%; }
.product-card:nth-child(4) img { object-position: center; }
.product-image-button:hover img { transform: scale(1.035); }
.product-badge { position: absolute; top: 12px; left: 12px; padding: 7px 9px; border-radius: 2px; background: var(--lime); font-size: 9px; font-weight: 900; }
.product-badge.coral { background: var(--coral); color: var(--white); }
.product-info { min-height: 94px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px; }
.product-info h3 { margin: 0 0 7px; font-size: 16px; }
.product-info p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.price { font-size: 14px; font-weight: 850; white-space: nowrap; }
.add-button { width: calc(100% - 36px); min-height: 42px; margin: 0 18px 18px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); border-radius: 3px; background: transparent; font-size: 12px; font-weight: 850; cursor: pointer; }
.add-button:hover { background: var(--ink); color: var(--white); }
.add-button svg { width: 15px; height: 15px; }

.story-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 9vw, 140px); padding: clamp(74px, 10vw, 140px) clamp(18px, 7vw, 112px); background: var(--white); border-top: 1px solid var(--line); }
.story-copy h2 { max-width: 620px; font-size: clamp(40px, 5.8vw, 78px); }
.story-copy > p:last-child { max-width: 580px; margin: 28px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.story-facts { align-self: end; border-top: 1px solid var(--ink); }
.story-facts > div { min-height: 84px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.story-facts strong { width: 64px; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 400; }
.story-facts span { color: var(--muted); font-size: 13px; }

.site-footer { min-height: 240px; padding: 54px clamp(18px, 4vw, 64px); display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: start; gap: 32px; background: var(--ink); color: var(--white); }
.site-footer > p { margin: 0; max-width: 520px; color: #c6c8c2; font-size: 13px; line-height: 1.7; }
.footer-links { justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 20px; color: #c6c8c2; font-size: 12px; }
.footer-links button { color: inherit; }

.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(12, 13, 12, 0.64); }
.drawer { width: min(460px, 100%); height: 100dvh; position: fixed; top: 0; right: 0; z-index: 60; display: flex; flex-direction: column; background: var(--paper); transform: translateX(102%); transition: transform 240ms ease; box-shadow: var(--shadow); }
.drawer.open { transform: none; }
.drawer-header { min-height: 112px; display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer h2 { font-size: 32px; }
.cart-items { flex: 1; overflow-y: auto; padding: 0 24px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 76px; height: 88px; object-fit: cover; border-radius: 3px; }
.cart-item h3 { margin: 4px 0 7px; font-size: 14px; }
.cart-item p { margin: 0; color: var(--muted); font-size: 12px; }
.quantity-control { width: max-content; height: 32px; display: flex; align-items: center; margin-top: 14px; border: 1px solid var(--line); border-radius: 3px; }
.quantity-control button { width: 32px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.quantity-control button svg { width: 13px; height: 13px; }
.quantity-control span { min-width: 28px; text-align: center; font-size: 12px; font-weight: 800; }
.remove-item { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.remove-item svg { width: 16px; height: 16px; }
.cart-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; color: var(--muted); text-align: center; }
.cart-empty > svg { width: 28px; height: 28px; }
.cart-empty p { margin: 0; }
.text-button { padding: 6px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font-weight: 800; }
.cart-summary { padding: 22px 24px 26px; border-top: 1px solid var(--line); background: var(--white); }
.cart-summary > div { display: flex; justify-content: space-between; font-size: 17px; }
.cart-summary p { margin: 12px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.checkout-button { width: 100%; background: var(--blue); color: var(--white); }
.checkout-button:hover { background: #0e318f; }

.modal { width: min(880px, calc(100% - 32px)); max-height: min(860px, calc(100dvh - 32px)); position: fixed; inset: 50% auto auto 50%; z-index: 70; overflow: auto; transform: translate(-50%, -50%); background: var(--white); border-radius: 6px; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; background: rgba(255, 255, 255, 0.9); }
.product-modal { display: grid; }
#product-modal:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; }
#product-modal > img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.modal-body { padding: clamp(34px, 6vw, 72px); }
.modal h2 { font-size: clamp(36px, 5vw, 60px); }
.modal-body > p:not(.eyebrow, .checkout-disclaimer) { margin: 22px 0; color: var(--muted); line-height: 1.7; }
.product-modal-body { display: flex; flex-direction: column; justify-content: center; }
.modal-price-row { display: flex; justify-content: space-between; margin: 28px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modal-price-row span { color: var(--muted); font-size: 12px; }
.checkout-modal, .confirmation-modal, .search-modal, .privacy-modal { width: min(620px, calc(100% - 32px)); }
.checkout-lines { margin: 28px 0 12px; border-top: 1px solid var(--line); }
.checkout-line { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.checkout-line span:last-child { white-space: nowrap; }
.checkout-total { display: flex; justify-content: space-between; padding: 18px 0; font-size: 17px; }
.checkout-disclaimer { padding: 14px; background: #f0f2ec; color: var(--muted); font-size: 12px; line-height: 1.6; }
.confirmation-body { text-align: center; }
.confirmation-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 26px; border-radius: 50%; background: var(--lime); }
.confirmation-icon svg { width: 24px; height: 24px; }
.primary-dark-button { background: var(--ink); color: var(--white); }
.secondary-button { border-color: var(--ink); background: transparent; }
.search-form { margin-top: 30px; }
.search-form label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.search-form > div { display: grid; grid-template-columns: 1fr 44px; gap: 8px; }
.search-form input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 3px; padding: 0 14px; }
.search-results { margin-top: 22px; }
.search-result { width: 100%; display: flex; justify-content: space-between; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; text-align: left; }
.search-result strong { font-size: 13px; }
.search-result span { color: var(--muted); font-size: 12px; }
.search-empty { color: var(--muted); font-size: 13px; }

.consent-banner { width: min(920px, calc(100% - 28px)); position: fixed; left: 50%; bottom: 14px; z-index: 90; transform: translateX(-50%); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 22px; background: var(--white); border: 1px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow); }
.consent-banner h2 { font-size: 25px; }
.consent-banner p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.consent-actions { display: flex; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 100; transform: translateX(-50%); min-width: min(360px, calc(100% - 36px)); padding: 13px 18px; border-radius: 3px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 800; text-align: center; box-shadow: var(--shadow); }

@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; justify-self: start; justify-content: flex-start; }
}

@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 60px; gap: 12px; }
  .primary-nav { display: none; }
  .header-actions { gap: 5px; }
  .bag-button > span:not(.bag-count) { display: none; }
  .bag-button { padding-left: 10px; }
  .hero { min-height: 66svh; background-position: center 60%; }
  .hero-content { margin-bottom: 78px; }
  .hero h1 { font-size: clamp(48px, 15vw, 72px); }
  .hero-note { left: 18px; right: auto; bottom: 20px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .product-section { padding-top: 72px; }
  .product-grid { gap: 10px; }
  .product-info { min-height: 112px; display: block; padding: 14px; }
  .product-info .price { display: block; margin-top: 10px; }
  .add-button { width: calc(100% - 28px); margin: 0 14px 14px; }
  .story-section { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { grid-column: auto; }
  #product-modal:not([hidden]) { grid-template-columns: 1fr; }
  #product-modal > img { height: 42dvh; min-height: 260px; }
  .product-modal-body { padding-top: 32px; }
  .consent-banner { grid-template-columns: 1fr; gap: 18px; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .wordmark { font-size: 12px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-info { min-height: auto; display: flex; }
  .product-info .price { display: inline; margin-top: 0; }
  .consent-actions { grid-template-columns: 1fr; }
}

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