@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --cream: #EBE1CD;
  --cream-light: #F5EFE2;
  --brown: #694836;
  --ink: #2B1F16;
  --sage: #7C8F6E;
  --amber: #C9A227;
  --line: rgba(43, 31, 22, 0.14);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream-light);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream-light);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.logo-mark { height: 70px; }

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-size: 15px;
  color: var(--brown);
  position: relative;
}

.main-nav a.active { color: var(--ink); font-weight: 600; }

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--cream-light);
  border: none;
  padding: 10px 18px;
  border-radius: 100px;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cart-btn:hover { background: var(--brown); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}

.btn-primary { background: var(--ink); color: var(--cream-light); }
.btn-primary:hover { background: var(--brown); border-color: var(--brown); }

.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream-light); }

.section-head .btn { white-space: nowrap; flex-shrink: 0; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  color: var(--sage);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 18px;
  display: block;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  max-width: 11ch;
}

.hero p {
  max-width: 46ch;
  margin: 24px 0 32px;
  font-size: 18px;
  color: var(--brown);
}

.hero-actions { display: flex; gap: 14px; }

.hero-visual {
  aspect-ratio: 4/5;
  border-radius: 18px 60px 18px 18px;
  background: linear-gradient(155deg, var(--brown), var(--ink));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual svg { width: 60%; }
.hero-visual img { object-position: 50% 100%; }

/* wavy underline accent, echoes the logo's script */
.wavy {
  display: block;
  width: 120px;
  height: 14px;
  margin-top: 8px;
}

/* ---------- Story strip ---------- */
.story {
  background: var(--brown);
  color: var(--cream-light);
  padding: 64px 0;
}

.story .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.story h3 { font-size: 22px; margin-bottom: 10px; color: var(--cream-light); }
.story p { color: rgba(245,239,226,.82); font-size: 15px; margin: 0; }
.story .stat { font-family: 'Fraunces', serif; font-size: 40px; margin-bottom: 6px; }

/* ---------- Section headers ---------- */
.section { padding: 78px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 42px;
  gap: 24px;
}
.section-head h2 { font-size: clamp(30px, 3.4vw, 42px); }
.section-head p { color: var(--brown); max-width: 40ch; margin: 10px 0 0; }

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  display: block;
  background: var(--cream);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.card-media {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-media svg { width: 46%; }

.stock-flag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--cream-light);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
}

.stock-flag.out { color: #a15a3a; }
.stock-flag.low { color: #7a5e0a; background: #F3E7B8; }
.cart-row-stock { font-size: 12.5px; color: #7a5e0a; margin-top: 6px; font-weight: 600; }

.card-body { padding: 20px 20px 22px; }
.card-cat { font-size: 12px; color: var(--sage); font-weight: 600; margin-bottom: 6px; }
.card-title { font-family: 'Fraunces', serif; font-size: 20px; margin-bottom: 6px; }
.card-desc { font-size: 14px; color: var(--brown); margin-bottom: 16px; min-height: 42px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; }
.card-price { font-family: 'Fraunces', serif; font-size: 19px; }

.add-btn {
  background: var(--ink);
  color: var(--cream-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.add-btn:hover { background: var(--brown); }
.add-btn:disabled { background: var(--line); color: var(--brown); cursor: not-allowed; }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 10px; margin-bottom: 34px; flex-wrap: wrap; }
.filter-btn {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: transparent;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--brown);
}
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--cream-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream-light);
  padding: 56px 0 30px;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 { color: var(--cream-light); font-size: 15px; margin-bottom: 16px; font-family: 'Work Sans', sans-serif; font-weight: 600;}
.site-footer p, .site-footer a { color: rgba(245,239,226,.7); font-size: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(245,239,226,.15);
  font-size: 13px;
  color: rgba(245,239,226,.5);
}

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(43,31,22,.45);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 90;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 92vw;
  background: var(--cream-light);
  z-index: 91;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 26px; border-bottom: 1px solid var(--line);
}
.cart-head h3 { font-size: 22px; }
.cart-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--brown); }

.cart-items { flex: 1; overflow-y: auto; padding: 10px 26px; }
.cart-empty { padding: 60px 0; text-align: center; color: var(--brown); }

.cart-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row-media { width: 62px; height: 62px; border-radius: 8px; background: var(--cream); flex-shrink: 0; display:flex; align-items:center; justify-content:center; }
.cart-row-media svg { width: 60%; }
.cart-row-info { flex: 1; }
.cart-row-title { font-weight: 600; font-size: 14.5px; }
.cart-row-price { color: var(--brown); font-size: 13.5px; margin-top: 2px; }
.qty-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-ctrl button { width: 24px; height: 24px; border-radius: 100px; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 14px; }
.remove-link { font-size: 12.5px; color: #a15a3a; cursor: pointer; margin-left: auto; align-self: flex-start; }

.cart-foot { padding: 22px 26px 28px; border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; justify-content: space-between; font-family: 'Fraunces', serif; font-size: 20px; margin-bottom: 16px; }
.cart-note { font-size: 12.5px; color: var(--brown); margin-top: 12px; text-align: center; }

/* ---------- Checkout ---------- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 56px;
  align-items: flex-start;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--brown); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, select {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1.5px solid var(--line); background: var(--cream-light);
  font-family: 'Work Sans', sans-serif; font-size: 14.5px; color: var(--ink);
}
input:focus, select:focus { outline: none; border-color: var(--brown); }

.summary-card { background: var(--cream); border-radius: 14px; padding: 26px; border: 1px solid var(--line); }
.summary-line { display: flex; justify-content: space-between; font-size: 14.5px; padding: 9px 0; }
.summary-line.total { font-family: 'Fraunces', serif; font-size: 20px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }
.pay-options { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.pay-option { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14.5px; }
.pay-option input { width: auto; }
.pay-option.selected { border-color: var(--brown); background: var(--cream-light); }

.badge-eco {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--sage); font-weight: 600;
  background: rgba(124,143,110,.12); padding: 6px 12px; border-radius: 100px;
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 1/1; }
  .story .wrap, .grid, .checkout-grid, .site-footer .wrap { grid-template-columns: 1fr; }
  .grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 18px; }
}
@media (max-width: 560px) {
  .grid.grid-3 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .main-nav a:not(.always) { display: none; }
}

/* ---------- Policy pages ---------- */
.policy { max-width: 760px; }
.policy h1, .policy h2.policy-title { font-size: 38px; margin-bottom: 8px; }
.policy .updated { font-size: 14px; color: var(--brown); margin-bottom: 36px; }
.policy h3 { font-size: 20px; margin: 34px 0 10px; }
.policy p, .policy li { font-size: 16px; line-height: 1.7; color: var(--ink); }
.policy ul { padding-left: 22px; margin: 8px 0 14px; }
.policy a { text-decoration: underline; }


/* ---------- Email signup ---------- */
.signup {
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.signup h2 { font-size: clamp(22px, 2.4vw, 30px); }
.signup p { margin-top: 8px; max-width: 46ch; color: var(--ink); opacity: .82; }
.signup form { flex: 1 1 340px; max-width: 460px; position: relative; }
.signup-row { display: flex; gap: 10px; }
.signup-row input[type=email] { flex: 1; min-width: 0; }
.signup-row .btn { flex: none; }
.signup .signup-msg { min-height: 22px; margin-top: 10px; font-size: 14px; opacity: 1; }
.signup-msg.ok { color: var(--sage); font-weight: 600; }
.signup-msg.err { color: #9b2c2c; }
@media (max-width: 600px) { .signup { padding: 28px 22px; } }
