@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,600;6..72,700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --cream: #faf6ef;
  --cream-dark: #f0e8da;
  --forest: #1a3c34;
  --forest-mid: #2d5a4e;
  --ember: #d4622a;
  --ember-soft: #e8956a;
  --sage: #7a9e8e;
  --text: #1c2824;
  --text-muted: #5c6b65;
  --white: #fff;
  --border: #ddd4c4;
  --font: 'Outfit', system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); background: var(--cream); color: var(--text); line-height: 1.6; }
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h1v1H0zm30 30h1v1h-1z' fill='%23ddd4c4' fill-opacity='0.35'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }

/* Centered masthead — different from sticky top bars */
.masthead { text-align: center; padding: 28px 0 20px; border-bottom: 1px solid var(--border); background: var(--white); }
.masthead .logo { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--forest); letter-spacing: -0.02em; display: inline-block; }
.masthead .logo em { font-style: normal; color: var(--ember); }
.masthead .tagline { font-size: 12px; color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px; }
.nav-pill {
  display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: center;
  margin-top: 18px; padding: 5px; background: var(--cream); border-radius: 999px; border: 1px solid var(--border);
}
.nav-pill a { padding: 9px 18px; font-size: 13px; font-weight: 600; color: var(--text-muted); border-radius: 999px; transition: all 0.2s; }
.nav-pill a:hover { color: var(--forest); }
.nav-pill a.active { background: var(--forest); color: var(--white); }
.masthead-actions { position: absolute; top: 28px; right: calc(50% - min(var(--max), calc(100% - 36px)) / 2); display: flex; gap: 8px; }
.masthead-wrap { position: relative; }
.cart-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
  background: var(--ember); color: var(--white); font-size: 12px; font-weight: 600; border-radius: 999px;
}
.cart-count {
  background: var(--forest); min-width: 18px; height: 18px; border-radius: 999px; font-size: 10px;
  display: none; align-items: center; justify-content: center;
}
.cart-count.show { display: inline-flex; }
.search-btn { width: 36px; height: 36px; border: 1px solid var(--border); background: var(--white); border-radius: 50%; cursor: pointer; font-size: 15px; }
.nav-toggle { display: none; }

.btn {
  display: inline-block; padding: 12px 24px; font-size: 14px; font-weight: 600;
  border-radius: 6px; border: none; cursor: pointer; font-family: var(--font); transition: all 0.2s;
}
.btn-forest { background: var(--forest); color: var(--white); }
.btn-forest:hover { background: var(--forest-mid); }
.btn-ember { background: var(--ember); color: var(--white); }
.btn-ember:hover { background: #b85222; }
.btn-outline { background: transparent; border: 2px solid var(--forest); color: var(--forest); }

/* Hero editorial */
.hero-editorial { padding: 48px 0 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; }
.hero-editorial h1 { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.08; margin: 0 0 16px; color: var(--forest); letter-spacing: -0.02em; }
.hero-editorial .deck { font-size: 18px; color: var(--text-muted); max-width: 420px; margin: 0 0 24px; line-height: 1.65; }
.hero-editorial img { border-radius: 8px 8px 8px 48px; height: 380px; object-fit: cover; box-shadow: 20px 20px 0 var(--cream-dark); border: 1px solid var(--border); }

/* Journal masonry */
.section-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember); margin-bottom: 8px; }
.section-heading { font-family: var(--serif); font-size: 1.85rem; font-weight: 700; margin: 0 0 28px; color: var(--forest); }

.journal-masonry { columns: 3; column-gap: 20px; padding-bottom: 56px; }
.post-card {
  break-inside: avoid; margin-bottom: 20px; background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26,60,52,0.1); }
.post-card img { width: 100%; height: 180px; object-fit: cover; }
.post-card.tall img { height: 240px; }
.post-card-body { padding: 16px 18px 20px; }
.post-card .cat { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); margin-bottom: 6px; }
.post-card h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin: 0 0 8px; line-height: 1.3; }
.post-card p { font-size: 13px; color: var(--text-muted); margin: 0 0 10px; line-height: 1.55; }
.post-card .meta { font-size: 11px; color: var(--text-muted); }
.post-card.hidden { display: none; }

.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { padding: 7px 16px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--white); border-radius: 999px; cursor: pointer; color: var(--text-muted); }
.chip.active, .chip:hover { background: var(--forest); border-color: var(--forest); color: var(--white); }

/* ★ Apothecary bento shop block */
.apothecary-section {
  background: linear-gradient(145deg, var(--forest) 0%, #0f2922 100%);
  border-radius: 16px; padding: 40px 36px 44px; margin: 48px 0 56px; color: var(--white);
  position: relative; overflow: hidden;
}
.apothecary-section::before {
  content: ''; position: absolute; top: -80px; right: -80px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(212,98,42,0.25) 0%, transparent 70%); pointer-events: none;
}
.apothecary-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; position: relative; }
.apothecary-head h2 { font-family: var(--serif); font-size: 2rem; font-weight: 700; margin: 0; color: var(--white); }
.apothecary-head p { color: rgba(255,255,255,0.65); font-size: 14px; max-width: 340px; margin: 0; }
.apothecary-head .btn { background: var(--ember); color: var(--white); }

.bento-shop { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(120px, auto); gap: 14px; position: relative; }
.bento-item {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, background 0.2s;
  backdrop-filter: blur(8px);
}
.bento-item:hover { transform: scale(1.02); background: rgba(255,255,255,0.1); }
.bento-item.featured { grid-column: span 6; grid-row: span 2; }
.bento-item.medium { grid-column: span 3; }
.bento-item.small { grid-column: span 3; }
.bento-item img { width: 100%; flex: 1; min-height: 100px; object-fit: cover; opacity: 0.92; }
.bento-item.featured img { min-height: 200px; }
.bento-body { padding: 14px 16px 16px; }
.bento-body .tag { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember-soft); margin-bottom: 4px; }
.bento-body h3 { font-family: var(--serif); font-size: 1rem; font-weight: 600; margin: 0 0 6px; line-height: 1.25; }
.bento-item.featured h3 { font-size: 1.25rem; }
.bento-body .price { font-size: 1.1rem; font-weight: 700; color: var(--ember-soft); margin-bottom: 10px; }
.bento-actions { display: flex; gap: 6px; }
.bento-actions .btn { flex: 1; padding: 8px 10px; font-size: 11px; text-align: center; border-radius: 4px; }
.bento-actions .btn-add { background: var(--ember); color: var(--white); border: none; cursor: pointer; font-weight: 600; font-family: var(--font); border-radius: 4px; padding: 8px 10px; font-size: 11px; flex: 1; }
.bento-actions .btn-add:hover { background: var(--ember-soft); color: var(--forest); }
.bento-actions .btn-ghost-w { background: transparent; border: 1px solid rgba(255,255,255,0.35); color: var(--white); padding: 8px 10px; font-size: 11px; border-radius: 4px; text-align: center; flex: 1; }

/* Shop page grid */
.shop-page-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 56px; }
.shop-product {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  transition: box-shadow 0.2s;
}
.shop-product:hover { box-shadow: 0 12px 32px rgba(26,60,52,0.08); }
.shop-product img { width: 100%; height: 200px; object-fit: cover; }
.shop-product-body { padding: 16px; }
.shop-product h3 { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 6px; }
.shop-product .price { color: var(--ember); font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.shop-product .btns { display: flex; gap: 6px; }
.shop-product .btn { flex: 1; padding: 8px; font-size: 11px; text-align: center; }

/* Magazine article */
.page-top { padding: 40px 0 28px; max-width: 720px; }
.page-top .cat { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember); margin-bottom: 8px; }
.page-top h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; margin: 0 0 12px; line-height: 1.12; color: var(--forest); }
.page-top .lead { font-size: 18px; color: var(--text-muted); line-height: 1.65; margin: 0 0 10px; }
.page-top .byline { font-size: 13px; color: var(--text-muted); }

.mag-article { max-width: 680px; margin: 0 auto; padding-bottom: 64px; }
.mag-article .lead-img { width: 100%; height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 32px; border: 1px solid var(--border); }
.mag-article h2 { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; margin: 32px 0 12px; color: var(--forest); }
.mag-article p { font-size: 17px; line-height: 1.85; color: var(--text); margin-bottom: 16px; }
.mag-article .pullquote {
  font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--forest);
  border-left: 4px solid var(--ember); padding: 8px 0 8px 24px; margin: 28px 0;
}

/* Product buy layout */
.product-split { display: grid; grid-template-columns: 1fr 300px; gap: 36px; padding-bottom: 64px; }
.product-split .hero-img { width: 100%; height: 380px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.product-split p { color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.buy-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 22px;
  position: sticky; top: 24px; box-shadow: 0 8px 24px rgba(26,60,52,0.06);
}
.buy-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; margin-bottom: 14px; }
.buy-card h3 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 8px; }
.buy-card .price { font-size: 1.5rem; font-weight: 700; color: var(--ember); margin-bottom: 6px; }
.buy-card .note { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.buy-card .btn { width: 100%; margin-bottom: 8px; }
.buy-card .added { font-size: 12px; color: var(--sage); display: none; text-align: center; }
.buy-card .added.show { display: block; }

/* Cart */
.cart-wrap { max-width: 720px; padding: 40px 0 64px; }
.cart-empty { text-align: center; padding: 48px; background: var(--white); border: 2px dashed var(--border); border-radius: 8px; }
.cart-row { display: grid; grid-template-columns: 72px 1fr 100px 80px 44px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.cart-row h4 { font-size: 14px; margin: 0 0 4px; }
.qty-ctrl { display: flex; gap: 4px; align-items: center; }
.qty-ctrl button { width: 28px; height: 28px; border: 1px solid var(--border); background: var(--cream); border-radius: 4px; cursor: pointer; font-weight: 700; }
.cart-summary { background: var(--forest); color: var(--white); padding: 24px; border-radius: 8px; margin-top: 20px; max-width: 360px; margin-left: auto; }
.cart-summary .line { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.cart-summary .total { font-family: var(--serif); font-size: 1.3rem; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 10px; margin-top: 10px; }
.cart-summary .btn { width: 100%; margin-top: 14px; background: var(--ember); color: var(--white); }
.cart-remove { background: none; border: none; color: var(--ember); font-size: 11px; cursor: pointer; text-decoration: underline; }

.faq-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; background: var(--white); }
.faq-q { width: 100%; padding: 16px 18px; background: none; border: none; text-align: left; font-weight: 600; font-size: 14px; cursor: pointer; display: flex; justify-content: space-between; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a-inner { padding: 0 18px 14px; color: var(--text-muted); font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px 0 64px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; font-family: var(--font); margin-bottom: 10px; background: var(--white); }
.contact-form textarea { min-height: 110px; resize: vertical; }

.modal-overlay { position: fixed; inset: 0; background: rgba(26,60,52,0.5); z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: 80px 20px; }
.modal-overlay.show { display: flex; }
.modal-box { background: var(--white); border-radius: 8px; padding: 28px; width: min(440px,100%); position: relative; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 22px; cursor: pointer; }
.search-input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 10px; font-family: var(--font); }
.search-results a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }

#cookieBar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 3000; background: var(--forest); color: var(--white); padding: 14px 24px; transform: translateY(100%); transition: transform 0.3s; }
#cookieBar.show { transform: translateY(0); }
.cookie-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cookie-inner p { margin: 0; font-size: 13px; flex: 1; }
.cookie-inner a { color: var(--ember-soft); }
.cookie-btns button { padding: 8px 16px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; border-radius: 4px; margin-left: 8px; }
#cookieAccept { background: var(--ember); color: var(--white); }
#cookieDecline { background: transparent; border: 1px solid rgba(255,255,255,0.35); color: var(--white); }

#toastContainer { position: fixed; bottom: 24px; right: 24px; z-index: 2500; }
.toast { background: var(--forest); color: var(--white); padding: 12px 20px; font-size: 13px; border-radius: 6px; margin-top: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.site-footer { background: var(--forest); color: rgba(255,255,255,0.75); padding: 44px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.footer-col h4 { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember-soft); margin: 0 0 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.7); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; font-size: 12px; }

@media (max-width: 992px) {
  .hero-editorial, .product-split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .journal-masonry { columns: 2; }
  .shop-page-grid { grid-template-columns: 1fr 1fr; }
  .bento-item.featured, .bento-item.medium, .bento-item.small { grid-column: span 6; grid-row: span 1; }
  .masthead-actions { position: static; justify-content: center; margin-top: 12px; }
}
@media (max-width: 640px) {
  .journal-masonry, .shop-page-grid { columns: 1; display: block; }
  .journal-masonry { columns: 1; }
  .nav-pill { display: none; flex-direction: column; width: 100%; border-radius: 8px; }
  .nav-pill.open { display: flex; }
  .nav-toggle { display: inline-block; margin-top: 12px; padding: 8px 16px; border: 1px solid var(--border); background: var(--white); border-radius: 6px; cursor: pointer; }
  .bento-item.featured, .bento-item.medium, .bento-item.small { grid-column: span 12; }
  .cart-row { grid-template-columns: 60px 1fr; gap: 8px; }
}
