/* =========================================================
   KELEB'S — site styles
   Built on top of Tailwind (CDN). Brand tokens and
   component refinements live here so both stay editable.
   ========================================================= */

:root {
  /* === LIGHT BOHO PALETTE ===
     Lifted, airier version: warmer-white parchment base,
     softer terracotta + sage, brighter highlights.     */
  --ivory:   #fdf8ee;   /* lifted warm-white parchment */
  --cream:   #f6ecd8;   /* soft cream */
  --sand:    #ecd9b3;   /* light amber sand */
  --sage-100:#ebe7cd;
  --sage-300:#c5c598;
  --sage-500:#9aa56b;   /* lighter olive */
  --sage-700:#6e7b46;   /* mid olive (primary green) */
  --sage-900:#4a5530;   /* deep olive but not muddy */
  --clay-300:#f0c4a3;   /* peach-terracotta */
  --clay-500:#d68a64;   /* lifted terracotta */
  --clay-700:#a96045;   /* warm burnt sienna */
  --ochre:   #d4a64a;   /* warmer mustard */
  --burgundy:#8a4030;   /* softer wine */
  --ink:     #3b2e1f;   /* warm brown — softer than near-black */
  --muted:   #8a7a63;   /* warm taupe */
  --border:  rgba(59,46,31,.09);
  --shadow-sm: 0 1px 2px rgba(59,46,31,.05);
  --shadow-md: 0 1px 2px rgba(59,46,31,.04), 0 10px 30px rgba(169,96,69,.08);
  --shadow-lg: 0 1px 2px rgba(59,46,31,.05), 0 20px 45px rgba(169,96,69,.10);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.font-display {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-feature-settings: "ss01", "ss02";
  letter-spacing: -0.01em;
}

/* skip link */
.skip-link {
  position: absolute; left: -10000px; top: 0;
  background: var(--ink); color: var(--ivory);
  padding: .75rem 1rem; border-radius: 0 0 12px 0;
  font-weight: 600; z-index: 100;
}
.skip-link:focus { left: 0; }

/* grain */
.grain {
  background-image:
    radial-gradient(rgba(34,33,29,0.04) 1px, transparent 1px),
    radial-gradient(rgba(34,33,29,0.03) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

/* light boho hero bg — soft sun + earth glow, much airier */
.leaf-bg {
  position: relative;
  background:
    radial-gradient(closest-side at 82% 14%, rgba(212,166,74,.18), rgba(212,166,74,0) 70%),
    radial-gradient(closest-side at 8% 92%, rgba(214,138,100,.12), rgba(214,138,100,0) 65%),
    radial-gradient(closest-side at 100% 100%, rgba(110,123,70,.09), rgba(110,123,70,0) 60%),
    linear-gradient(180deg, #fdf8ee 0%, #f6ecd8 100%);
  overflow: hidden;
}
/* Soft sun motif (decorative, behind hero content) */
.leaf-bg::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212,166,74,.13) 0%, rgba(212,166,74,0) 70%);
  pointer-events: none;
}
.leaf-bg::after {
  content: "";
  position: absolute;
  bottom: -160px; left: -100px;
  width: 380px; height: 380px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(214,138,100,.10) 0%, rgba(214,138,100,0) 70%);
  pointer-events: none;
}

/* divider */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(42,31,21,.22), transparent);
}

/* =====================================================
   BOHO COMPONENTS
   ===================================================== */

/* Arched image frame — rounded top, rectangular bottom (window/portal feel) */
.arch {
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  overflow: hidden;
}

/* Soft pebble — slightly irregular blob, organic feel */
.pebble {
  border-radius: 62% 38% 56% 44% / 50% 60% 40% 50%;
  overflow: hidden;
}
.pebble-alt { border-radius: 38% 62% 44% 56% / 60% 50% 50% 40%; overflow: hidden; }

/* Wavy SVG divider (fabric / hand-drawn ribbon) */
.wave-divider {
  display: block;
  width: 100%;
  height: 24px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24' preserveAspectRatio='none'><path d='M0 12 C 30 0, 60 24, 90 12 S 150 0, 180 12, 240 24, 240 12' fill='none' stroke='%23d68a64' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-size: 120px 24px;
  opacity: .55;
}
.wave-divider.olive { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24' preserveAspectRatio='none'><path d='M0 12 C 30 0, 60 24, 90 12 S 150 0, 180 12, 240 24, 240 12' fill='none' stroke='%236e7b46' stroke-width='2' stroke-linecap='round'/></svg>"); }
.wave-divider.cream  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24' preserveAspectRatio='none'><path d='M0 12 C 30 0, 60 24, 90 12 S 150 0, 180 12, 240 24, 240 12' fill='none' stroke='%23f6ecd8' stroke-width='2' stroke-linecap='round'/></svg>"); }

/* Folk-pattern strip — geometric diamonds, fabric-like */
.folk-strip {
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 18'><path d='M0 9 L9 0 L18 9 L9 18 Z M22 9 L31 0 L40 9 L31 18 Z' fill='none' stroke='%23a96045' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/><circle cx='20' cy='9' r='1.4' fill='%23d4a64a'/></svg>");
  background-repeat: repeat-x;
  background-size: 40px 18px;
  opacity: .65;
}

/* Botanical sprig — small leaf flourish for headlines */
.sprig::before {
  content: "";
  display: inline-block;
  width: 32px; height: 18px;
  vertical-align: middle;
  margin-right: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 18'><path d='M2 9 Q 10 9 16 4 T 30 9' fill='none' stroke='%2356632e' stroke-width='1.5' stroke-linecap='round'/><ellipse cx='8' cy='6' rx='3' ry='2' fill='none' stroke='%2356632e' stroke-width='1.2'/><ellipse cx='16' cy='4' rx='3' ry='2' fill='none' stroke='%2356632e' stroke-width='1.2'/><ellipse cx='24' cy='6' rx='3' ry='2' fill='none' stroke='%2356632e' stroke-width='1.2'/></svg>") no-repeat center;
}

/* Sun rays motif (decorative, used as ::before behind hero) */
.sun-motif {
  position: absolute;
  width: 200px; height: 200px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g stroke='%23d4a64a' stroke-width='1.2' fill='none' stroke-linecap='round'><circle cx='100' cy='100' r='34'/><line x1='100' y1='10' x2='100' y2='28'/><line x1='100' y1='172' x2='100' y2='190'/><line x1='10' y1='100' x2='28' y2='100'/><line x1='172' y1='100' x2='190' y2='100'/><line x1='36' y1='36' x2='48' y2='48'/><line x1='152' y1='36' x2='164' y2='36'/><line x1='36' y1='164' x2='48' y2='152'/><line x1='152' y1='152' x2='164' y2='164'/><line x1='62' y1='14' x2='66' y2='28'/><line x1='134' y1='14' x2='138' y2='28'/><line x1='62' y1='186' x2='66' y2='172'/><line x1='134' y1='186' x2='138' y2='172'/><line x1='14' y1='62' x2='28' y2='66'/><line x1='14' y1='138' x2='28' y2='134'/><line x1='186' y1='62' x2='172' y2='66'/><line x1='186' y1='138' x2='172' y2='134'/></g></svg>") no-repeat center / contain;
  opacity: .25;
  pointer-events: none;
}

/* Soft mat (linen-like texture, very subtle) */
.linen {
  background-color: var(--cream);
  background-image:
    repeating-linear-gradient(45deg,
      rgba(169,96,69,.02) 0 1px,
      transparent 1px 4px),
    repeating-linear-gradient(-45deg,
      rgba(110,123,70,.02) 0 1px,
      transparent 1px 4px);
}

/* Highlight underline — hand-drawn-feeling brush stroke */
.brush-underline {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 Q 50 2, 100 6 T 198 4' fill='none' stroke='%23c87149' stroke-width='4' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 0.4em;
  padding: 0 .15em;
}

/* chip */
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem; border-radius: 999px;
  background: var(--cream); color: var(--clay-700);
  font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 600;
  border: 1px solid rgba(142,70,38,.18);
}
.chip-dark { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chip-clay { background: var(--clay-500); color: var(--ivory); border-color: var(--clay-500); }
.chip-sage { background: var(--sage-700); color: var(--ivory); border-color: var(--sage-700); }
.chip-ochre{ background: var(--ochre); color: var(--ink); border-color: var(--ochre); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 500; transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease; cursor: pointer; border: 0; letter-spacing: .01em; }
.btn-primary { background: var(--clay-700); color: var(--ivory); }
.btn-primary:hover { background: var(--burgundy); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid rgba(142,70,38,.32); }
.btn-ghost:hover { border-color: var(--clay-700); color: var(--clay-700); background: rgba(232,176,138,.18); }
.btn-clay { background: var(--clay-500); color: var(--ivory); }
.btn-clay:hover { background: var(--clay-700); }
.btn-light { background: var(--ivory); color: var(--ink); border: 1px solid rgba(142,70,38,.2); }
.btn-light:hover { background: var(--cream); }
.btn-olive { background: var(--sage-700); color: var(--ivory); }
.btn-olive:hover { background: var(--sage-900); }
.btn-block { width: 100%; justify-content: center; padding: .95rem 1.25rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* product card */
.product-card { transition: transform .35s ease, box-shadow .35s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .img-wrap { transition: background .35s ease; }
.product-card:hover .img-wrap { background: var(--cream); }

/* stars */
.stars { color: var(--sage-700); letter-spacing: 0.04em; }

/* pricing */
.price-strike { text-decoration: line-through; color: var(--muted); margin-left: .5rem; font-size: .9rem; }

/* save badge */
.save-badge {
  display: inline-flex; align-items: center;
  background: var(--clay-700); color: var(--ivory);
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  padding: .35rem .65rem; border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(142,70,38,.25);
}

/* marquee */
.marquee {
  display: flex;
  gap: 3rem;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* details/summary */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .chev { transform: rotate(180deg); }
.chev { transition: transform .25s ease; }

/* form fields */
.field {
  width: 100%;
  background: var(--ivory);
  border: 1px solid rgba(34,33,29,.15);
  border-radius: 14px;
  padding: .8rem 1rem;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field:focus {
  outline: none;
  border-color: var(--sage-700);
  box-shadow: 0 0 0 3px rgba(83,96,72,.15);
}
.field-label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .35rem; font-weight: 500; }

/* announcement */
.announcement {
  background: var(--sage-900); color: rgba(250,246,239,.9);
  font-size: 13px;
}
.announcement-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--sage-300); display: inline-block; margin-right: .5rem; }

/* nav */
.brand-nav { backdrop-filter: blur(10px); background: rgba(250,246,239,.85); border-bottom: 1px solid var(--border); }
.nav-link { font-size: .95rem; color: rgba(34,33,29,.78); transition: color .15s ease; }
.nav-link:hover, .nav-link.active { color: var(--ink); }

/* mega menu */
.mega-menu {
  position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%);
  width: min(880px, calc(100vw - 2rem));
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  z-index: 50;
}
.mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.mega-cat {
  display: block; padding: .5rem .25rem; border-radius: 8px;
  color: rgba(34,33,29,.8);
}
.mega-cat:hover { background: var(--cream); color: var(--ink); }
.mega-cat strong { display: block; font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--ink); }

/* drawer (cart, search) */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(34,33,29,.45);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
  z-index: 60;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(420px, 100vw);
  background: var(--ivory);
  z-index: 61;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.6,.05,.2,1);
  box-shadow: -10px 0 40px rgba(34,33,29,.18);
}
.drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
}
.drawer-body { flex: 1; overflow: auto; padding: 1.25rem 1.5rem; }
.drawer-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); background: var(--cream); }

/* cart line */
.cart-line { display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 80px; height: 80px; object-fit: contain; background: var(--cream); border-radius: 12px; padding: .25rem; }
.qty {
  display: inline-flex; align-items: center; gap: .25rem;
  border: 1px solid var(--border); border-radius: 999px; padding: 2px;
  background: var(--ivory);
}
.qty button { width: 26px; height: 26px; border-radius: 999px; background: transparent; border: 0; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--cream); }
.qty span { min-width: 22px; text-align: center; font-size: .85rem; font-weight: 500; }

/* modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(34,33,29,.55);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
  z-index: 70; display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal {
  background: var(--ivory); border-radius: 24px; max-width: 1040px; width: 100%;
  max-height: 92dvh; overflow: auto;
  transform: translateY(20px) scale(.98);
  transition: transform .35s cubic-bezier(.6,.05,.2,1);
  box-shadow: var(--shadow-lg);
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }

/* toast */
.toast {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--ivory);
  padding: .85rem 1.25rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 90;
  box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* cookie banner */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 480px; margin-left: auto;
  background: var(--ink); color: var(--ivory);
  padding: 1.1rem 1.25rem; border-radius: 18px;
  display: none;
  box-shadow: var(--shadow-lg);
  z-index: 80;
  font-size: .9rem;
}
.cookie-banner.show { display: block; }

/* line clamp helper */
.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* pricing card (subscription) */
.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  background: var(--ivory);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.plan-card.popular { border-color: var(--sage-700); box-shadow: var(--shadow-md); }
.plan-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* article body */
.prose-keleb p { font-size: 1.075rem; line-height: 1.75; color: rgba(34,33,29,.84); margin-bottom: 1.25rem; }
.prose-keleb p:first-of-type::first-letter {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: 3.6em; float: left; line-height: 0.9; padding: 4px 8px 0 0; color: var(--sage-700);
}

/* sticky checkout buttons on mobile */
@media (max-width: 768px) {
  .sticky-cta {
    position: sticky; bottom: 0; background: var(--ivory);
    border-top: 1px solid var(--border);
    padding: .75rem 1rem; z-index: 30;
  }
}

/* tabs */
.tab-btn {
  padding: .55rem 1rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500;
  background: transparent; color: rgba(34,33,29,.7);
  border: 1px solid transparent;
  transition: all .15s ease;
  cursor: pointer;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee, .product-card, .reveal { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* focus outline */
:focus-visible {
  outline: 2px solid var(--sage-700);
  outline-offset: 2px;
  border-radius: 6px;
}

/* number input arrows hidden */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }
