/* Shared spacing and content alignment for the storefront sections. */
#site{--section-space:64px;--copy-inset:clamp(24px,4vw,64px);--label-gap:8px}
#site .section-pad{padding-block:var(--section-space)}
#site #reviews{padding-top:48px;padding-bottom:32px}
#site .care-section{padding-top:24px}
#site :is(.care-section,.ingredient-copy,.ritual-copy,.story-copy,.questions,.footer-invitation) .eyebrow,
#site #reviews .eyebrow{margin:0 0 var(--label-gap)}
#site :is(.care-section,.ingredient-copy,.ritual-copy,.story-copy,.questions,.footer-invitation) h2,
#site #reviews h2{line-height:1.4;margin-top:0;margin-bottom:20px}
#site .journal-heading{margin-bottom:24px}
#site .journal-heading h2{margin-bottom:0}
#site .collection-heading-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin-bottom:16px}
#site .collection-heading-row h2{flex:1 0 auto;max-width:100%;margin:0}
#site .collection-heading-row .text-link{flex:none;max-width:100%;margin:0}
#site .collection-intro{margin:0 0 20px;max-width:70ch}
#site .collection-cta{display:inline-flex;margin:0 0 32px;max-width:100%}
.cta-arrow,.rv-action-label>.cta-arrow{display:inline-flex!important;align-items:center;justify-content:center;width:16px!important;height:16px!important;flex:0 0 16px;line-height:0!important;transform:none!important;vertical-align:middle}
.cta-arrow svg{display:block;width:16px;height:16px}
#site .swatch.orange::before{background:#e9a13c}
#site .swatch.mint::before{background:var(--olive)}
/* Shared tracks keep prices and flavour/size rows aligned when titles wrap. */
#site .products{row-gap:0}
#site .product{display:grid;grid-template-rows:subgrid;grid-row:span 4;row-gap:0;min-width:0}
#site .product-info{display:contents}
#site .product h3{margin:20px 0 12px;min-width:0}
#site .product-info>span{align-self:start;line-height:1.6}
#site .variant-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:44px;margin:6px 0 0;min-width:0}
#site .variant-row>p{margin:0;line-height:1.6;min-width:0}
#site .swatches{display:flex;align-items:center;gap:0;justify-self:end}
#site .swatch{width:44px;height:44px;flex:0 0 44px;padding:0}
#site .swatch::before,#site .swatch.selected::after{left:50%;top:50%;transform:translate(-50%,-50%)}
@media(max-width:760px){
 #site .products{row-gap:38px}
 #site .product{grid-template-rows:auto auto auto auto;grid-row:auto}
}
/* Let the green panel fill its row: copy at the top, CTA anchored below. */
#site .ritual-section{align-items:stretch}
#site .ritual-copy{align-self:stretch;display:flex;flex-direction:column;align-items:flex-start;padding:48px var(--copy-inset) var(--copy-inset);min-height:560px}
#site .ritual-copy>p:not(.eyebrow){margin:0 0 32px;max-width:none}
#site .ritual-copy>.store-button{margin-top:auto;flex:none}
/* Alternate the next full-width photo/text panel without an inset frame. */
#site .story-section.section-pad{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;padding:0;align-items:stretch}
#site .story-image{grid-column:1;grid-row:1;align-self:stretch;margin:0;height:auto;min-height:640px;border:0;border-radius:0}
#site .story-image img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
#site .story-copy{grid-column:2;grid-row:1;padding:48px var(--copy-inset) var(--copy-inset);min-height:560px;align-self:stretch;display:flex;flex-direction:column;align-items:flex-start}
#site .story-copy>p:not(.eyebrow){max-width:none;margin:0 0 20px}
#site .story-copy>.text-link{margin-top:auto;flex:none}
#site .questions{padding-top:var(--section-space)}
@media(max-width:1100px){#site .story-image{min-height:560px}}
@media(max-width:700px){
 #site{--section-space:48px;--copy-inset:var(--page-pad)}
 #site #reviews{padding-top:40px;padding-bottom:24px}
 #site .care-section{padding-top:20px}
 #site .collection-heading-row{align-items:flex-start}
 #site .ritual-copy{padding-top:32px;min-height:440px}
 #site .story-section.section-pad{grid-template-columns:minmax(0,1fr)}
 #site .story-image{grid-column:1;grid-row:1;min-height:0;height:110vw;max-height:620px}
 #site .story-copy{grid-column:1;grid-row:2;padding-top:32px;min-height:440px}
}

/* A footer directory with a small editorial strip, rather than another sales CTA. */
#site .editorial-footer{background:var(--espresso);color:var(--linen);padding:56px var(--page-pad) 24px}
.footer-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(40px,6vw,96px)}
.footer-brand{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
#site .footer-logo{margin:0}
/* Trim the asset's transparent 12px/10px inset in its mask, not the image file. */
#site .editorial-footer .wordmark{--logo-width:210px;display:block;width:var(--logo-width);height:calc(var(--logo-width)*77/242);mask-size:calc(var(--logo-width)*266/242) calc(var(--logo-width)*96/242);mask-position:calc(var(--logo-width)*-12/242) calc(var(--logo-width)*-10/242)}
#site .footer-brand h2{font-size:var(--type-section);line-height:1.4;margin:24px 0 40px}
.footer-contact{margin-top:auto}
.footer-contact p{font:400 var(--type-body)/1.6 Poppins,sans-serif;margin:0 0 12px}
.footer-contact>a{display:inline-flex;align-items:center;gap:16px;font:400 var(--type-body)/1.5 Poppins,sans-serif;padding:4px 0;text-decoration:underline;text-underline-offset:6px}
.footer-directory{min-width:0}
.footer-social-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:20px}
.footer-social-heading .eyebrow{margin:0;font-size:var(--type-label)}
.footer-social-heading>a{font-size:var(--type-label);text-decoration:underline;text-underline-offset:5px}
.footer-image-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:36px}
.footer-image-strip a{display:block;aspect-ratio:1;overflow:hidden}
.footer-image-strip img{display:block;width:100%;height:100%;object-fit:cover}
.footer-image-strip a:nth-child(2) img{object-position:52% 45%}
.footer-nav-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.footer-nav-columns>div{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.footer-nav-columns h3{font:500 var(--type-label)/1.6 Poppins,sans-serif;text-transform:uppercase;letter-spacing:.08em;margin:0 0 12px;color:var(--linen)}
.footer-nav-columns a{font:400 var(--type-body)/1.5 Poppins,sans-serif;padding:4px 0}
.footer-legal{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin-top:48px;padding-top:22px;border-top:1px solid #f7efe733;font-size:var(--type-label)}
.footer-legal>span{margin-right:auto}
.editorial-footer a:hover{text-decoration:underline;text-underline-offset:5px}
.editorial-footer a:focus-visible{outline:2px solid var(--linen);outline-offset:5px}
@media(max-width:900px){
 .footer-grid{grid-template-columns:minmax(0,1fr);gap:36px}
 .footer-brand{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 32px}
 #site .footer-brand h2{grid-column:1;margin:0}
 .footer-contact{grid-column:2;grid-row:1/3;align-self:end;margin:0}
}
@media(max-width:550px){
 #site .editorial-footer{padding-top:36px}
 .footer-brand{display:flex;gap:20px}
 .footer-contact{align-self:stretch}
 #site .footer-brand h2{margin:0}
 #site .editorial-footer .wordmark{--logo-width:170px}
 .footer-image-strip{gap:8px;margin-bottom:28px}
 .footer-nav-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
 .footer-nav-columns a{padding-block:7px}
 .footer-legal{margin-top:32px;gap:10px 20px}
 .footer-legal>span{flex-basis:100%}
}
