:root {
  --paper: #f4f1e9;
  --white: #fbfaf7;
  --ink: #1f3029;
  --forest: #29493d;
  --moss: #84937a;
  --clay: #a36b54;
  --ochre: #d3aa62;
  --line: rgba(31, 48, 41, .18);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", sans-serif;
  --content: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { color: inherit; font: inherit; }
::selection { background: var(--ochre); color: var(--ink); }

.announcement { min-height: 36px; display: flex; align-items: center; justify-content: center; padding: 7px 20px; background: var(--forest); color: var(--white); font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-align: center; text-transform: uppercase; }
.site-header { position: sticky; z-index: 20; top: 0; background: rgba(244, 241, 233, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { width: min(calc(100% - 64px), var(--content)); min-height: 78px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.wordmark strong { font-family: var(--serif); font-size: 29px; font-weight: 400; letter-spacing: 1px; }
.wordmark small { margin-top: 3px; color: var(--clay); font-family: var(--serif); font-size: 11px; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { position: relative; padding: 9px 0; font-size: 12px; font-weight: 600; letter-spacing: .4px; text-decoration: none; white-space: nowrap; }
.main-nav a[aria-current="page"] { color: var(--clay); }
.main-nav a::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; background: var(--clay); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.collection-link { display: inline-flex; align-items: center; gap: 9px; padding: 12px 15px; border: 1px solid var(--ink); border-radius: 2px; font-size: 11px; font-weight: 700; letter-spacing: .7px; text-decoration: none; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
.collection-link:hover { background: var(--ink); color: var(--white); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 2px; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 19px; height: 1px; margin: 5px auto; background: var(--ink); transition: transform .2s ease; }

.detail-hero { width: min(calc(100% - 64px), var(--content)); min-height: 650px; margin: 32px auto 0; display: grid; grid-template-columns: 1.02fr .98fr; background: var(--white); }
.product-media { min-height: 650px; display: flex; flex-direction: column; background: #e3e6dd; }
.product-media.conditioner-media { background: #e8ded3; }
.product-media.serum-media { background: #e8e0d1; }
.product-stage { position: relative; min-height: 0; flex: 1; overflow: hidden; }
.product-stage > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.product-media:hover .product-stage > img { transform: scale(1.025); }
.product-stage.serum-stage { display: grid; place-items: center; }
.product-stage.serum-stage > img { width: 82%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.step-label { position: absolute; top: 22px; left: 22px; padding: 9px 11px; background: rgba(251, 250, 247, .86); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.gallery-thumbnails { height: 102px; flex: 0 0 102px; padding: 10px 12px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.gallery-thumb { min-width: 0; padding: 0; overflow: hidden; border: 1px solid rgba(31, 48, 41, .15); border-radius: 2px; background: var(--white); cursor: pointer; }
.gallery-thumb[aria-pressed="true"] { border: 2px solid var(--forest); }
.gallery-thumb:focus-visible, a:focus-visible, summary:focus-visible, .menu-toggle:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { align-self: center; padding: 64px 10%; }
.breadcrumbs { margin: 0 0 30px; color: #718077; font-size: 12px; }
.breadcrumbs a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--clay); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.eyebrow::before { width: 25px; height: 1px; background: currentColor; content: ""; }
.detail-copy h1 { margin: 22px 0 8px; font-family: var(--serif); font-size: 58px; font-weight: 400; line-height: 1.04; }
.product-kind { margin: 0 0 23px; color: #718077; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.detail-lede { max-width: 510px; margin: 0; color: #56635c; font-size: 16px; line-height: 1.8; }
.detail-actions { margin-top: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.button-primary { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 16px; padding: 0 18px; background: var(--forest); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .8px; text-decoration: none; text-transform: uppercase; transition: background .2s ease, transform .2s ease; }
.button-primary:hover { background: var(--clay); transform: translateY(-2px); }
.text-link { font-size: 12px; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.detail-meta { margin-top: 36px; padding-top: 19px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.detail-meta strong, .detail-meta span { display: block; }
.detail-meta strong { margin-bottom: 4px; font-size: 12px; letter-spacing: .5px; }
.detail-meta span { color: #718077; font-size: 11px; }

.section-nav { width: min(calc(100% - 64px), var(--content)); margin: 0 auto; display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-top: 0; }
.section-nav a { flex: 1 1 auto; min-height: 58px; padding: 17px 14px; border-right: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .4px; text-align: center; text-decoration: none; text-transform: uppercase; }
.section-nav a:last-child { border-right: 0; }
.section-nav a:hover { background: rgba(255,255,255,.55); }
.detail-sections { width: min(calc(100% - 64px), var(--content)); margin: 0 auto; }
.detail-section { padding: 92px 5%; display: grid; grid-template-columns: .42fr 1.58fr; gap: 55px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.section-label { color: var(--clay); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.section-body { max-width: 900px; }
.section-body h2 { margin: -9px 0 24px; font-family: var(--serif); font-size: 39px; font-weight: 400; line-height: 1.12; }
.section-body > p { max-width: 760px; color: #58665d; font-size: 15px; line-height: 1.8; }
.ingredient-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 28px; background: var(--line); border: 1px solid var(--line); }
.ingredient-card { min-height: 132px; padding: 20px; background: var(--white); }
.ingredient-card small { color: var(--clay); font-family: var(--serif); font-size: 15px; }
.ingredient-card h3 { margin: 12px 0 7px; font-size: 13px; letter-spacing: .2px; }
.ingredient-card p { max-width: 480px; margin: 0; color: #67736a; font-size: 13px; line-height: 1.75; }
.formula-note, .claim-note { margin-top: 19px; padding: 14px 16px; border-left: 2px solid var(--ochre); background: #ece9df; color: #606d64; font-size: 13px; line-height: 1.75; }
.full-ingredients { margin-top: 10px; background: var(--white); border: 1px solid var(--line); }
.full-ingredients summary { min-height: 68px; padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.full-ingredients summary::-webkit-details-marker { display: none; }
.full-ingredients summary::after { color: var(--clay); content: "+"; font-size: 20px; font-weight: 400; }
.full-ingredients[open] summary::after { content: "-"; }
.inci { margin: 0; padding: 0 19px 21px; color: #67736a; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.benefit-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 35px; list-style: none; }
.benefit-list li { min-height: 60px; padding: 14px 0; display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line); color: #42554a; font-size: 14px; line-height: 1.65; }
.benefit-list li::before { width: 6px; height: 6px; flex: 0 0 6px; margin-top: 6px; border-radius: 50%; background: var(--ochre); content: ""; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: directions; }
.steps li { position: relative; min-height: 58px; padding: 15px 0 15px 43px; border-bottom: 1px solid var(--line); color: #42554a; font-size: 14px; line-height: 1.65; counter-increment: directions; }
.steps li::before { position: absolute; top: 13px; left: 0; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--clay); content: counter(directions, decimal-leading-zero); font-family: var(--serif); font-size: 12px; }
.caution { margin-top: 22px; padding: 17px 19px; background: #ece9df; color: #606d64; font-size: 13px; line-height: 1.75; }
.product-switcher { width: min(calc(100% - 64px), var(--content)); margin: 0 auto 48px; padding: 28px 5%; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #e3e7dd; }
.product-switcher a { font-size: 12px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.product-switcher a:last-child { text-align: right; }
.switcher-label { color: #718077; font-size: 11px; letter-spacing: .8px; text-align: center; text-transform: uppercase; }
footer { background: #202f28; color: var(--white); }
.footer-inner { width: min(calc(100% - 64px), var(--content)); min-height: 130px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand .wordmark strong { font-size: 24px; }
.footer-brand .wordmark small { color: #d5b27a; }
.footer-inner p { margin: 0; color: rgba(255,255,255,.65); font-size: 12px; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { color: rgba(255,255,255,.85); font-size: 12px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 980px) {
  .header-inner { gap: 12px; }
  .main-nav { gap: 12px; }
  .collection-link { padding: 11px 10px; font-size: 10px; }
  .detail-hero { min-height: 570px; }
  .product-media { min-height: 570px; }
  .detail-copy { padding: 48px 8%; }
  .detail-copy h1 { font-size: 49px; }
  .detail-section { grid-template-columns: .35fr 1.65fr; gap: 32px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 74px; }
  .announcement { min-height: 34px; font-size: 10px; letter-spacing: 1px; }
  .header-inner { width: calc(100% - 36px); min-height: 68px; gap: 12px; }
  .wordmark strong { font-size: 25px; }
  .main-nav { position: absolute; top: 68px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px 18px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: flex; flex-direction: column; }
  .main-nav a { padding: 14px 4px; border-top: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .collection-link { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .detail-hero { width: calc(100% - 28px); margin-top: 14px; grid-template-columns: 1fr; }
  .product-media { min-height: 0; height: 480px; }
  .product-stage { min-height: 0; }
  .gallery-thumbnails { height: 88px; flex-basis: 88px; gap: 7px; padding: 8px 9px 0; }
  .detail-copy { padding: 34px 25px 36px; }
  .breadcrumbs { margin-bottom: 23px; }
  .detail-copy h1 { font-size: 44px; }
  .detail-lede { font-size: 15px; }
  .detail-meta { margin-top: 27px; }
  .section-nav { width: calc(100% - 28px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-nav a { min-height: 48px; padding: 15px 8px; border-bottom: 1px solid var(--line); }
  .section-nav a:nth-child(2n) { border-right: 0; }
  .section-nav a:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .detail-sections { width: calc(100% - 28px); }
  .detail-section { padding: 62px 10px; grid-template-columns: 1fr; gap: 16px; scroll-margin-top: 82px; }
  .section-body h2 { font-size: 34px; }
  .ingredient-grid { grid-template-columns: 1fr; }
  .ingredient-card { min-height: 0; padding: 17px; }
  .benefit-list { grid-template-columns: 1fr; }
  .product-switcher { width: calc(100% - 28px); margin-bottom: 20px; padding: 23px 18px; }
  .switcher-label { display: none; }
  .footer-inner { width: calc(100% - 36px); min-height: 0; padding: 30px 0; align-items: flex-start; flex-direction: column; gap: 22px; }
  .footer-nav { flex-wrap: wrap; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}