@font-face {
  font-family: "Bricolage Grotesque";
  src: url("media/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("media/fonts/outfit.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --cocoa: #391b18;
  --taupe: #b08876;
  --clay: #b77d60;
  --brick: #6b3731;
  --paper: #fff8f0;
  --cream: #fff1e5;
  --warm: #f6e8dc;
  --blush: #f2ded2;
  --panel-radius: clamp(18px, 2.4vw, 30px);
  --media-radius: clamp(13px, 1.6vw, 20px);
  --section-space: clamp(50px, 7vw, 96px);
  --sans: "Outfit", Arial, sans-serif;
  --heading: "Bricolage Grotesque", "Outfit", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--cocoa); background: var(--paper); font: 16px/1.55 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, summary { cursor: pointer; }
button { color: inherit; font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 5; top: 8px; left: 8px; padding: .5rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.shell { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
main section[id] { scroll-margin-top: 22px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 800; line-height: 1.04; letter-spacing: -.038em; }
h2 { font-size: clamp(35px, 4.65vw, 62px); }

.nav { min-height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; }
.brand { justify-self: start; }
.brand img { width: 93px; }
.nav nav, .footer nav { display: flex; align-items: center; gap: 27px; font-size: 14px; font-weight: 600; }
.nav nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.bag { justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 3px 0 3px 8px; border: 0; background: transparent; font-weight: 700; }
.bag span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--blush); font-size: 12px; }

.hero { display: grid; grid-template-columns: 1.03fr 1fr; min-height: 505px; overflow: hidden; border-radius: var(--panel-radius); background: var(--cocoa); color: var(--cream); }
.hero-photo { position: relative; overflow: hidden; min-width: 0; }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.hero-copy { align-self: center; min-width: 0; padding: 44px clamp(25px, 4.5vw, 64px); text-align: center; }
.hero h1 { margin-bottom: 22px; font-size: clamp(44px, 4.9vw, 72px); }
.hero p { max-width: 390px; margin: 0 auto 26px; color: var(--cream); font-size: clamp(15px, 1.3vw, 18px); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 11px 20px; border: 0; border-radius: 999px; background: var(--brick); color: var(--paper); font-size: 14px; font-weight: 700; text-align: center; }
.button:hover { background: var(--cocoa); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.hero .button { min-width: 107px; background: var(--clay); color: var(--cocoa); }
.hero .button:hover { background: var(--taupe); }
.hero .button.secondary { border: 1px solid var(--taupe); background: transparent; color: var(--cream); }
.hero .button.secondary:hover { background: var(--cream); color: var(--cocoa); }
.hero .button:focus-visible { outline-color: var(--cream); }

.shop { padding-block: var(--section-space) 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-heading p { max-width: 330px; padding-bottom: 2px; color: var(--brick); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.product { display: flex; flex-direction: column; scroll-margin-top: 18px; }
.product-photo { aspect-ratio: 1.46; overflow: hidden; border-radius: var(--media-radius); background: var(--warm); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 51%; }
.product-photo.duo { position: relative; background: var(--blush); }
.product-photo.duo img { position: absolute; inset: 0; object-fit: contain; object-position: center; transform: scale(1.15); }
.product-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 10px; margin-top: 16px; }
.product-title h3 { font-size: clamp(30px, 3.4vw, 47px); font-weight: 700; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price { font-weight: 700; white-space: nowrap; }
.compare { color: var(--brick); font-size: 13px; font-weight: 500; white-space: nowrap; }
.product-type { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; margin: 7px 0 9px; font-size: 13px; font-weight: 600; color: var(--brick); }
.saving { color: var(--cocoa); }
.product-copy { margin-bottom: 16px; color: var(--brick); font-size: 15px; }
.button.buy { width: 100%; justify-content: space-between; gap: 12px; text-align: left; }
.button.buy:disabled { background: var(--warm); color: var(--brick); cursor: default; }
.product-fallback { display: inline-block; margin-top: 7px; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.product-details { display: grid; gap: 6px; margin-top: 12px; color: var(--brick); font-size: 14px; }
.product-details summary { font-weight: 700; }
.product-details p, .product-details ul { margin: 7px 0 4px; }
.product-details ul { padding-left: 19px; }
.product-details li + li { margin-top: 6px; }

.why { padding-block: var(--section-space) 0; }
.why h2 { margin-bottom: 23px; }
.why-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.why-list li { padding: 23px clamp(17px, 2.5vw, 30px) 25px; border-radius: var(--media-radius); background: var(--warm); }
.why-number { display: block; color: var(--brick); font: 500 34px/1 var(--heading); margin-bottom: 11px; }
.why-list h3 { margin-bottom: 9px; font: 700 18px/1.3 var(--heading); letter-spacing: 0; }
.why-list p { color: var(--brick); font-size: 15px; }
.complexions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }
.complexions p { color: var(--brick); font-size: 14px; font-weight: 700; }
.complexion-swatches { display: flex; gap: 7px; }
.complexion-swatches span { width: clamp(30px, 3vw, 39px); aspect-ratio: 1; border-radius: 50%; }
.complexion-swatches span:nth-child(1) { background: #f3d4bf; }
.complexion-swatches span:nth-child(2) { background: #e2af8a; }
.complexion-swatches span:nth-child(3) { background: #ca8e60; }
.complexion-swatches span:nth-child(4) { background: #99613e; }
.complexion-swatches span:nth-child(5) { background: #693e29; }
.complexion-swatches span:nth-child(6) { background: var(--cocoa); }

.story { padding-block: var(--section-space) 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1.02fr; align-items: center; gap: clamp(26px, 5.5vw, 75px); padding: clamp(24px, 4.4vw, 58px); border-radius: var(--panel-radius); background: var(--warm); }
.story-label { margin-bottom: 8px; color: var(--cocoa); font-size: 14px; font-weight: 700; }
.story h2 { max-width: 530px; margin-bottom: 19px; font-size: clamp(35px, 4.05vw, 54px); font-weight: 700; }
.story-copy p:not(.story-label) { max-width: 550px; margin-bottom: 13px; color: var(--brick); }
.story-copy .signature { margin-bottom: 0; font-weight: 700; }
.story figure img { width: 100%; aspect-ratio: 1.56; object-fit: cover; border-radius: var(--media-radius); }
.story figcaption { padding-top: 8px; color: var(--brick); font-size: 13px; }
.bundle-feature { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); overflow: hidden; border-radius: var(--panel-radius); background: var(--warm); margin-top: 38px; scroll-margin-top: 18px; }
.bundle-feature .product-photo { aspect-ratio: 1.42; border-radius: 0; }
.bundle-copy { align-self: center; padding: 25px clamp(24px, 5vw, 66px); }
.bundle-copy .product-title { margin-top: 0; }
.bundle-copy .product-copy { max-width: 420px; }
.bundle-copy .product-actions { max-width: 420px; }

.support { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; padding-block: var(--section-space) 0; }
.faq, .social { min-width: 0; border-radius: var(--panel-radius); padding: clamp(24px, 3.6vw, 45px); }
.faq { background: var(--cocoa); color: var(--cream); }
.faq-label { margin-bottom: 9px; color: var(--clay); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.faq h2 { margin-bottom: 22px; font-size: clamp(32px, 3.85vw, 52px); }
.faq-list { display: grid; gap: 10px; width: min(100%, 900px); }
.faq-list details { border: 1px solid color-mix(in srgb, var(--taupe) 65%, var(--cocoa)); border-radius: 13px; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 22px; list-style: none; font-size: 17px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.faq-list summary:focus-visible { outline-color: var(--cream); outline-offset: 2px; border-radius: 12px; }
.faq-mark { color: var(--clay); font-size: 23px; font-weight: 600; line-height: 1; }
.faq-mark::before { content: "+"; }
.faq-list details[open] .faq-mark::before { content: "−"; }
.faq-list details p { padding: 0 22px 18px; color: var(--cream); }
.faq-list details a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

.social { display: grid; align-items: center; background: var(--blush); }
.social-inner { display: grid; gap: 19px; }
.social h2 { margin-bottom: 10px; font-size: clamp(32px, 3.85vw, 52px); }
.social p { max-width: 560px; color: var(--brick); font-size: 17px; }
.social-links { display: flex; flex-wrap: wrap; gap: 9px; }
.social-links a { display: inline-flex; align-items: center; min-height: 43px; border: 1px solid var(--taupe); border-radius: 999px; padding: 8px 13px; color: var(--cocoa); font-size: 14px; font-weight: 700; }
.social-links a:hover { background: var(--paper); }

.site-footer { margin-top: clamp(25px, 4vw, 53px); }
.footer { min-height: 119px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 20px; }
.footer p { color: var(--brick); font-size: 15px; }

dialog { border: 0; margin: 0 0 0 auto; padding: 24px; width: min(470px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; background: var(--paper); color: var(--cocoa); overflow: auto; }
dialog::backdrop { background: color-mix(in srgb, var(--cocoa) 60%, transparent); }
.bag-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.bag-head h2 { font-family: var(--sans); font-size: 48px; font-weight: 700; }
.close { border: 0; background: transparent; font-size: 32px; line-height: 1; padding: 6px 10px; }
.bag-item { display: grid; grid-template-columns: 61px 1fr auto; align-items: center; gap: 12px; margin-bottom: 14px; padding: 10px; background: var(--warm); border-radius: 12px; }
.bag-item img { width: 61px; height: 64px; object-fit: cover; }
.quantity { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.quantity button { min-width: 30px; min-height: 30px; border: 1px solid var(--taupe); background: var(--paper); }
.subtotal { display: flex; justify-content: space-between; margin-top: 22px; font-weight: 700; }
#bag-summary p, #bag-message { margin: 6px 0 15px; color: var(--brick); font-size: 13px; }

@supports (grid-template-rows: subgrid) {
  @media (min-width: 741px) {
    .product-grid { row-gap: 0; }
    .product { display: grid; grid-template-rows: subgrid; grid-row: span 6; }
  }
}
@media (max-width: 940px) {
  .shell { width: calc(100% - 44px); }
  .hero { min-height: 440px; }
  .hero-copy { padding: 39px 30px; }
  .product-grid { gap: 16px; }
}
@media (max-width: 740px) {
  .shell { width: calc(100% - 32px); }
  .nav { grid-template-columns: 1fr 1fr; gap: 8px 12px; padding-block: 9px 12px; }
  .brand img { width: 69px; }
  .nav nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; flex-wrap: wrap; gap: 7px clamp(11px, 4vw, 24px); font-size: 13px; }
  .bag { grid-column: 2; grid-row: 1; font-size: 13px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { grid-row: 1; padding: 32px 24px 30px; }
  .hero h1 { font-size: clamp(35px, 9.4vw, 66px); margin-bottom: 15px; }
  .hero p { margin-bottom: 19px; }
  .hero-photo { aspect-ratio: 1.34; }
  .section-heading { display: block; margin-bottom: 20px; }
  .section-heading p { margin-top: 8px; }
  .product-grid { grid-template-columns: 1fr; gap: 33px; }
  .bundle-feature { grid-template-columns: 1fr; margin-top: 33px; }
  .bundle-copy { padding: 22px 18px 25px; }
  .product-title { margin-top: 11px; }
  .product-title h3 { font-size: 34px; }
  .why-list { grid-template-columns: 1fr; gap: 12px; }
  .why-list li { padding: 19px 20px; }
  .why h2 { margin-bottom: 17px; }
  .complexions { margin-top: 19px; }
  .story-grid { grid-template-columns: 1fr; gap: 25px; }
  .support { grid-template-columns: 1fr; gap: 14px; }
  .faq h2 { margin-bottom: 18px; }
  .faq-list summary { padding: 15px 16px; }
  .faq-list details p { padding: 0 16px 15px; }
  .social p { font-size: 16px; }
  .footer { flex-wrap: wrap; gap: 14px; }
  .footer nav { width: 100%; gap: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
