/* essential leaf — apothecary palette drawn from the product itself:
   comfrey-green foliage, dark amber glass, cream salve */
:root {
  --green-deep: #063411;   /* brand green sampled from the wordmark */
  --green-leaf: #3f6b48;   /* mid leaf green */
  --amber: #9c6420;        /* dark amber glass */
  --amber-bright: #d0a05d; /* tan leaf from the logo */
  --cream: #f7f3e9;        /* the salve */
  --ink: #212721;
  --paper: #fdfcf8;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--green-deep); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .75rem; }

/* offer bar */
.offer-bar { background: var(--green-deep); color: var(--cream); text-align: center; padding: .45rem 1rem; font-size: .85rem; letter-spacing: .02em; }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: 1rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid #e5e0d2; background: var(--paper); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--green-deep); }
.brand img { width: 42px; height: 42px; }
.brand-text { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.05; display: flex; flex-direction: column; }
.brand-text small { font-family: var(--font-body); font-size: .62rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
.site-nav { display: flex; gap: clamp(.75rem, 2vw, 1.5rem); flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.cart-count { background: var(--amber); color: #fff; border-radius: 999px; padding: 0 .5em; font-size: .8rem; }

/* hero */
.hero { background: linear-gradient(160deg, var(--green-deep), var(--green-leaf)); color: var(--cream); padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem); }
.hero h1 { color: var(--cream); max-width: 18ch; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--amber-bright); margin-bottom: .75rem; }
.hero .lede { max-width: 45ch; margin: 1rem 0 1.75rem; font-size: 1.1rem; opacity: .92; }

/* buttons */
.btn { display: inline-block; padding: .8rem 1.6rem; border: 0; border-radius: 4px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-bright); }
.btn-wide { width: 100%; max-width: 420px; }

/* shop grid */
.shop, .story, .plain-page, .cart-page, .product-page { padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem); max-width: 1100px; margin: 0 auto; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.product-card { text-decoration: none; background: #fff; border: 1px solid #e5e0d2; border-radius: 6px; padding: 1rem; transition: border-color .15s; }
.product-card:hover { border-color: var(--amber); }
.product-card img { border-radius: 4px; background: var(--cream); }
.product-card h3 { margin: .75rem 0 .25rem; font-size: 1.15rem; }
.product-card p { font-size: .9rem; color: #555; }
.product-card .price { display: block; margin-top: .5rem; font-weight: 700; color: var(--amber); }
.shop-note { margin-top: 1.5rem; font-style: italic; color: var(--green-leaf); }

/* product page */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.product-hero img { border-radius: 6px; background: var(--cream); }
.product-buy .tagline { color: #555; margin: .5rem 0 1rem; }
.product-buy .price { font-size: 1.6rem; font-weight: 700; color: var(--amber); margin-bottom: 1.25rem; }
.product-buy .gst { font-size: .8rem; font-weight: 400; color: #777; }
.product-buy label { display: block; font-weight: 700; margin-bottom: .25rem; }
.product-buy select { padding: .6rem; margin: 0 0 1rem; font-size: 1rem; border: 1px solid #cfc9b8; border-radius: 4px; display: block; min-width: 180px; }
.buy-points { margin-top: 1.5rem; padding-left: 1.2rem; }
.buy-points li { margin-bottom: .4rem; }
.product-detail { margin-top: 3rem; max-width: 65ch; }
.product-detail h2 { margin-top: 2rem; }
.disclaimer { margin-top: 2rem; font-size: .85rem; color: #777; }

/* cart */
.jar-progress { background: var(--cream); border: 1px solid #e5e0d2; border-radius: 6px; padding: 1.25rem; margin: 1.5rem 0; text-align: center; }
.jars { display: flex; justify-content: center; gap: .6rem; margin-bottom: .6rem; }
.jar { width: 26px; height: 32px; border: 2px solid var(--amber); border-radius: 3px 3px 5px 5px; position: relative; background: transparent; }
.jar::before { content: ""; position: absolute; top: -6px; left: 3px; right: 3px; height: 5px; background: var(--amber); border-radius: 2px; }
.jar-full { background: var(--amber); }
.jar-msg { font-weight: 700; color: var(--green-deep); }
.jar-msg-won { color: var(--amber); }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.cart-table td { padding: .75rem .5rem; border-bottom: 1px solid #e5e0d2; }
.cart-table .num { text-align: right; white-space: nowrap; }
.cart-row-total td { font-weight: 700; font-size: 1.1rem; border-bottom: 0; }
.qty-form { display: flex; gap: .5rem; }
.qty-form input { width: 4.5rem; padding: .4rem; }
.collect-note { margin-bottom: 1.5rem; }

/* story + footer */
.story a { font-weight: 700; }
.site-footer { background: var(--green-deep); color: var(--cream); padding: 3rem clamp(1rem, 4vw, 3rem) 1.5rem; margin-top: 3rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto; }
.site-footer a { color: var(--cream); display: block; margin-bottom: .4rem; text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; }
.foot-brand { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .5rem; }
.foot-head { font-weight: 700; margin-bottom: .5rem; color: var(--amber-bright); }
.sub-form { display: flex; gap: .5rem; }
.sub-form input { flex: 1; padding: .55rem; border: 0; border-radius: 4px; min-width: 0; }
.sub-form button { padding: .55rem 1rem; border: 0; border-radius: 4px; background: var(--amber); color: #fff; font-weight: 700; cursor: pointer; }
.foot-legal { max-width: 1100px; margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; gap: 1.5rem; font-size: .85rem; }
.foot-legal a { display: inline; margin: 0; }

@media (max-width: 720px) {
  .product-hero { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
