/*
Theme Name: Scent of Earth
Description: A fragrance storefront for WordPress and WooCommerce.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: scent-of-earth
*/

:root{--paper:#f5f0e8;--ink:#24271e;--muted:#57594e;--moss:#333d2b;--line:#d7cfc1;--serif:Georgia,"Times New Roman",serif}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.6 system-ui,sans-serif}
img{display:block;max-width:100%;height:auto}
figure,dl,dd{margin:0}
a{color:inherit;text-underline-offset:.22em}
button,input,select,textarea{font:inherit}
:focus-visible{outline:2px solid #9d583a;outline-offset:4px}
h1,h2,h3,p{margin:0 0 1rem}
h1,h2,h3,.wordmark{font-family:var(--serif);font-weight:400;line-height:1}
h1{font-size:clamp(3rem,6vw,6.4rem);letter-spacing:-.06em}
h2{font-size:clamp(2.3rem,4vw,4rem);letter-spacing:-.05em}
h3{font-size:1.6rem;letter-spacing:-.025em}
.container{width:min(90%,78rem);margin-inline:auto}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.screen-reader-text:focus{clip-path:none;width:auto;height:auto;background:white;padding:1rem;z-index:4}
.announcement{text-align:center;background:var(--moss);color:#f7f1e5;padding:.42rem;font-size:.875rem;letter-spacing:.12em}
.site-header{border-bottom:1px solid var(--line)}
.header-inner,.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:1.2rem;flex-wrap:wrap;padding-block:1.3rem}
.wordmark{font-size:clamp(1.5rem,3vw,2.2rem);text-decoration:none;white-space:nowrap;letter-spacing:-.045em}
.wordmark span{font-style:italic}
.site-header nav{display:flex;gap:clamp(.95rem,3vw,2.7rem);flex-wrap:wrap}
.site-header nav a{text-decoration:none;font-size:.94rem}
.site-header nav a:hover{text-decoration:underline}
.bag-link,.primary-button{display:inline-block;padding:.65rem 1.15rem;border:1px solid var(--moss);text-decoration:none}
.primary-button{background:var(--moss);color:#fff;padding:.8rem 1.25rem}
.primary-button:hover{background:#4c573f}
.hero{background:#eae3d6;padding-block:clamp(1.7rem,4vw,3.4rem) clamp(2.5rem,6vw,5rem)}
.hero-panel{display:grid;grid-template-columns:1fr 1.07fr;align-items:center;gap:clamp(1.7rem,5vw,5rem)}
.hero-switch,.collection-nav{display:flex;flex-wrap:wrap;gap:.55rem;margin-bottom:1.5rem}
.hero-switch button,.collection-nav a{border:1px solid #969889;background:transparent;padding:.48rem .9rem;color:var(--ink);text-decoration:none;font-size:.875rem;cursor:pointer}
.hero-switch button[aria-pressed=true],.collection-nav a:hover,.collection-nav a[aria-current=page]{background:var(--moss);color:white;border-color:var(--moss)}
.eyebrow{font-size:.875rem;text-transform:uppercase;letter-spacing:.12em;font-weight:650;color:var(--muted)}
.hero-panel h2{font-size:clamp(3rem,6vw,6.4rem);letter-spacing:-.06em}
.hero-intro{max-width:32rem;color:var(--muted);font-size:1.12rem}
.hero-image{overflow:hidden;background:#d3cbbd;border-radius:45% 45% 3px 3px / 23% 23% 3px 3px}
.hero-image img{aspect-ratio:1;object-fit:cover;width:100%}
.text-link{display:inline-block;margin:.6rem 0;text-decoration:underline}
.hero-copy .text-link{margin-left:1rem}
.scent-notes{display:grid;gap:.8rem;grid-template-columns:repeat(3,minmax(0,1fr));padding:1rem 0;border-block:1px solid #bcb4a5;margin:1.5rem 0}
.scent-notes dt{font-size:.875rem;font-weight:650;margin-bottom:.3rem}
.scent-notes dd{font-family:var(--serif);line-height:1.35}
.collection,.story,.content-flow,.commerce{padding-block:clamp(2.5rem,6vw,5.5rem)}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:1rem;flex-wrap:wrap;margin-bottom:1.3rem}
.section-heading h2{margin:0}
.fragrance-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2rem 1.15rem}
.fragrance{border-bottom:1px solid var(--line);padding-bottom:.6rem}
.fragrance-image{display:block;background:#e5ddcf;margin-bottom:.9rem}
.fragrance-image img{width:100%;aspect-ratio:1;object-fit:cover}
.fragrance h3 a{text-decoration:none}
.fragrance h3 a:hover{text-decoration:underline}
.fragrance h3,.fragrance .eyebrow{margin-bottom:.5rem}
.price del{color:var(--muted);margin-right:.35em}
.price ins{text-decoration:none;font-weight:650}
.scent-finder{background:var(--moss);color:#f7f0e4}
.scent-finder .eyebrow{color:#eee4ce}
.finder-inner,.story{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(1.5rem,5vw,5rem)}
.finder-inner{padding-block:3rem}
.finder-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.finder-links a{padding:1rem;border:1px solid #a5ad9b;text-decoration:none}
.finder-links a:hover{background:#49543e}
.story img{width:100%;max-height:32rem;object-fit:contain;background:#ede6d9}
.story p:not(.eyebrow){max-width:32rem}
.site-footer{border-top:1px solid var(--line)}
.footer-inner{align-items:start}
.footer-inner p{margin:.5rem 0 0}
.footer-inner div>a{display:block}
.site-footer ul{list-style:none;padding:0;margin:.4rem 0}
.woocommerce div.product .product_title{font-size:clamp(2.7rem,5vw,5rem)}
.woocommerce div.product p.price,.woocommerce ul.products li.product .price{color:var(--moss)}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1.4rem}
.woocommerce :is(a,button,input).button,.woocommerce :is(a,button,input).button.alt{background:var(--moss);color:white;border-radius:0;padding:.85rem 1.15rem}
.woocommerce :is(a,button,input).button:hover,.woocommerce :is(a,button,input).button.alt:hover{background:#4c573f;color:white}
.woocommerce span.onsale{background:var(--moss)}
.woocommerce .woocommerce-breadcrumb{margin-bottom:1.4rem;color:var(--muted)}
.woocommerce div.product form.cart .button{margin-left:.35rem}
.woocommerce .quantity .qty{padding:.45rem}
.woocommerce-cart .content-flow,.woocommerce-checkout .content-flow{min-height:55vh}
@media(max-width:800px){
  .hero-panel,.finder-inner,.story{grid-template-columns:1fr}
  .hero-image{max-width:34rem;margin-inline:auto;width:100%}
  .fragrance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .header-inner{row-gap:.65rem}
  .site-header nav{order:3;width:100%}
  .hero-copy .text-link{margin-left:0;display:block}
  .scent-notes{gap:.45rem}
  .scent-notes dd{font-size:.92rem}
}
