/* Blossom Butter — design tokens and styles. Natural greens palette: --plum is the deep green, --ink the darkest green. */
:root {
  --shea: #f7f8f0;
  --shea-deep: #e8eedc;
  --mango: #f2b84b;
  --mango-soft: #fbe3ae;
  --plum: #2f5233;
  --plum-soft: #5e7d55;
  --leaf: #6f8f3d;
  --ink: #1f2e21;
  --line: rgba(47, 82, 51, 0.16);
  --display: "Young Serif", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, sans-serif;
  --arch: 999px 999px 18px 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--shea);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plum); color: var(--shea); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--plum); margin: 0; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 62ch; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247, 248, 240, 0.92); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 104px; }
.brand { display: flex; align-items: center; flex-shrink: 0; line-height: 0; }
.brand img { height: 96px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--plum); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--mango); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--plum); color: var(--shea); border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 600; }
.cart-btn .count { background: var(--mango); color: var(--plum); min-width: 22px; height: 22px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 0.8rem; padding: 0 6px; }
@media (max-width: 560px) {
  .site-header .wrap { gap: 14px; height: 84px; }
  .nav { gap: 14px; font-size: 0.95rem; }
  .brand img { height: 76px; }
  .cart-btn .label { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 14px 26px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn-primary { background: var(--plum); color: var(--shea); }
.btn-primary:hover { background: var(--ink); }
.btn-mango { background: var(--mango); color: var(--plum); }
.btn-mango:hover { background: #eaa92c; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.text-link { color: var(--plum); font-weight: 600; text-decoration-color: var(--mango); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { font-size: 1.2rem; color: var(--plum-soft); max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-art .sun { position: absolute; inset: -9% -14% auto auto; width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--mango); z-index: 0; }
.hero-art .arch { position: relative; z-index: 1; }
.hero-art figcaption { position: absolute; z-index: 2; left: -10%; bottom: 8%; background: var(--shea); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; font-size: 0.92rem; color: var(--plum); max-width: 15rem; box-shadow: 0 10px 30px -18px rgba(47, 82, 51, 0.6); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { width: min(80%, 340px); margin-top: 8px; }
  .hero-art figcaption { left: -6%; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art .sun { animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { transform: translateY(40%) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- the arch frame ---------- */
.arch { border-radius: var(--arch); overflow: hidden; background: var(--shea-deep); aspect-ratio: 4 / 5; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.section-head p { margin: 10px 0 0; color: var(--plum-soft); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(20px, 3vw, 36px) clamp(16px, 2.4vw, 28px); }
.tile { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.tile .arch { transition: transform .25s ease; }
.tile:hover .arch { transform: translateY(-4px); }
.tile h3 { font-size: 1.25rem; }
.tile .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--plum-soft); font-size: 0.95rem; }
.tile .price { color: var(--plum); font-weight: 600; }
.tile .ribbon { align-self: flex-start; background: var(--mango-soft); color: var(--plum); border-radius: 999px; padding: 3px 10px; font-size: 0.82rem; font-weight: 600; }
.tile .choose { font-weight: 600; color: var(--plum); text-decoration: underline; text-decoration-color: var(--mango); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.skeleton .arch { animation: pulse 1.4s ease-in-out infinite; }
.skeleton .bar { height: 14px; border-radius: 6px; background: var(--shea-deep); margin-top: 6px; }
@keyframes pulse { 50% { opacity: .55; } }
.notice { padding: 28px; border: 1px dashed var(--line); border-radius: 18px; color: var(--plum-soft); }

/* ---------- inside band ---------- */
.inside { background: var(--plum); color: var(--shea); }
.inside h2, .inside h3 { color: var(--shea); }
.inside .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.inside p { color: #dfe9da; }
.butters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.butters li { padding: 16px 0; border-top: 1px solid rgba(255, 248, 236, 0.18); }
.butters strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--mango); }
.butters span { font-size: 0.95rem; color: #dfe9da; }
@media (max-width: 820px) { .inside .wrap { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .butters { grid-template-columns: 1fr; } }

/* ---------- story teaser ---------- */
.story-teaser .wrap { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 24px; text-align: center; }
.story-teaser .arch { aspect-ratio: 5 / 6; width: 100%; max-width: 380px; }
.pull { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; color: var(--plum); margin: 0 0 22px; max-width: 30ch; }
@media (max-width: 820px) { .story-teaser .arch { max-width: 300px; } }

/* ---------- delivery band ---------- */
.delivery { background: var(--mango); color: var(--plum); }
.delivery .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 40px; padding-top: 30px; padding-bottom: 30px; }
.delivery p { margin: 0; font-size: 1.1rem; }
.delivery strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; display: block; }

/* ---------- product page ---------- */
.pdp { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }
.pdp .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.pdp .arch { aspect-ratio: 4 / 5; position: sticky; top: 92px; }
.crumbs { font-size: 0.92rem; color: var(--plum-soft); margin-bottom: 18px; }
.crumbs a { color: var(--plum-soft); }
.pdp h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 14px; }
.pdp .price { font-size: 1.5rem; font-weight: 600; color: var(--plum); margin-bottom: 26px; }
.group { border: 0; padding: 0; margin: 0 0 24px; }
.group legend { font-weight: 600; margin-bottom: 10px; color: var(--plum); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { border: 1.5px solid var(--plum); background: transparent; border-radius: 999px; padding: 10px 18px; font-weight: 500; color: var(--plum); }
.pill[aria-pressed="true"] { background: var(--plum); color: var(--shea); }
.pill:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.buy { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin-bottom: 10px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { background: none; border: 0; width: 44px; height: 48px; font-size: 1.25rem; color: var(--plum); }
.qty output { min-width: 28px; text-align: center; font-weight: 600; }
.buy .btn { flex: 1; min-width: 200px; }
.hint { font-size: 0.92rem; color: var(--plum-soft); min-height: 1.4em; margin: 0 0 26px; }
.error { color: #9b1c31; font-weight: 500; }
.details { border-top: 1px solid var(--line); padding-top: 22px; }
.details h2 { font-size: 1.3rem; margin-bottom: 10px; }
.details .desc p { margin: 0 0 .4em; }
.ingredients { background: var(--shea-deep); border-radius: 18px; padding: 20px 22px; margin-top: 18px; }
.ingredients p { margin: 0; }
.care { margin-top: 18px; font-size: 0.95rem; color: var(--plum-soft); }
@media (max-width: 820px) {
  .pdp .wrap { grid-template-columns: 1fr; }
  .pdp .arch { position: static; max-height: 45vh; width: auto; aspect-ratio: 4 / 5; margin: 0 auto; }
}

/* ---------- story page ---------- */
.story-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); }
.story-hero h1 { max-width: 14ch; }
.story-body .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.story-body p { font-size: 1.12rem; line-height: 1.7; }
.story-body aside .arch { aspect-ratio: 5 / 6; }
.quotes { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.quotes li { font-family: var(--display); font-size: 1.3rem; color: var(--plum); padding-left: 18px; border-left: 3px solid var(--mango); }
@media (max-width: 820px) { .story-body .wrap { grid-template-columns: 1fr; } .story-body aside { max-width: 320px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #dfe9da; padding: 56px 0 40px; font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.site-footer h2 { color: var(--shea); font-size: 1.8rem; margin-bottom: 10px; }
.site-footer h3 { color: var(--mango); font-family: var(--body); font-size: 0.95rem; font-weight: 600; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #dfe9da; text-decoration-color: rgba(242, 184, 75, .6); text-underline-offset: 3px; }
.site-footer .small { max-width: none; grid-column: 1 / -1; border-top: 1px solid rgba(255, 248, 236, .14); padding-top: 22px; margin-top: 8px; color: #a3b79c; font-size: 0.85rem; }


/* ---------- cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(31, 46, 33, 0.45); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--shea); z-index: 90; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.7,.2,1); box-shadow: -20px 0 50px -30px rgba(31, 46, 33, .6); visibility: hidden; }
.drawer-open .scrim { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: none; visibility: visible; }
.drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer, .scrim, .tile .arch { transition: none; } }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 1.6rem; }
.icon-btn { background: none; border: 0; width: 40px; height: 40px; border-radius: 999px; font-size: 1.5rem; color: var(--plum); }
.icon-btn:hover { background: var(--shea-deep); }
.drawer .lines { flex: 1; overflow-y: auto; padding: 8px 22px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img, .line .ph { width: 72px; height: 88px; object-fit: cover; border-radius: 999px 999px 10px 10px; background: var(--shea-deep); }
.line h3 { font-family: var(--body); font-weight: 600; font-size: 1rem; color: var(--plum); }
.line .opts { font-size: 0.88rem; color: var(--plum-soft); margin: 2px 0 8px; }
.line .qty button { width: 34px; height: 34px; font-size: 1.05rem; }
.line .remove { background: none; border: 0; color: var(--plum-soft); font-size: 0.85rem; text-decoration: underline; padding: 6px 0 0; }
.line .amt { font-weight: 600; color: var(--plum); text-align: right; }
.line .was { display: block; text-decoration: line-through; color: var(--plum-soft); font-weight: 400; font-size: 0.85rem; }
.drawer footer { border-top: 1px solid var(--line); padding: 18px 22px 22px; }
.sum { display: flex; justify-content: space-between; margin-bottom: 6px; }
.sum.total { font-weight: 700; font-size: 1.1rem; color: var(--plum); margin-top: 6px; }
.drawer footer .note { font-size: 0.88rem; color: var(--plum-soft); margin: 8px 0 14px; }
.drawer footer .btn { width: 100%; }
.empty { padding: 40px 0; text-align: center; color: var(--plum-soft); }
.empty p { margin: 0 auto 18px; }
.drawer.busy .lines, .drawer.busy footer { opacity: .6; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- polish pass ---------- */
.ribbons { display: flex; flex-wrap: wrap; gap: 6px; }
.ribbon { display: inline-block; background: var(--mango-soft); color: var(--plum); border-radius: 999px; padding: 3px 10px; font-size: 0.82rem; font-weight: 600; }
.pdp .ribbons { margin-bottom: 12px; }
.pdp .lead { color: var(--plum-soft); font-size: 1.1rem; margin: 4px 0 18px; }
.pdp .lead p { margin: 0 0 .6em; }
.pill { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-width: 7.5rem; border-radius: 16px; padding: 10px 16px; }
.pill small { font-size: 0.85rem; opacity: .8; font-weight: 600; }
.assurances { list-style: none; padding: 0; margin: 4px 0 26px; display: grid; gap: 8px; font-size: 0.95rem; color: var(--plum); }
.assurances li { display: flex; gap: 10px; align-items: baseline; }
.assurances li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mango); transform: translateY(-1px); }
.details details { border-bottom: 1px solid var(--line); }
.details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-family: var(--display); font-size: 1.2rem; color: var(--plum); }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; font-family: var(--body); font-size: 1.4rem; line-height: 1; color: var(--plum-soft); }
.details details[open] summary::after { content: "−"; }
.details details p { margin: 0 0 14px; }
.details .care { margin-top: 0; }
.details { border-top: 1px solid var(--line); padding-top: 0; }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .tile { gap: 10px; }
  .tile h3 { font-size: 1.05rem; }
  .tile .meta { flex-direction: column; gap: 2px; font-size: 0.88rem; }
  .tile .choose { font-size: 0.92rem; }
}
.hero-video { position: relative; isolation: isolate; min-height: clamp(520px, 82vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: var(--plum); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; }
.hero-tint { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(31, 46, 33, 0.85) 0%, rgba(47, 82, 51, 0.62) 45%, rgba(47, 82, 51, 0.18) 100%); }
.hero-copy { width: 100%; padding-top: 120px; padding-bottom: clamp(56px, 9vw, 104px); }
.hero-video h1 { color: var(--shea); max-width: 14ch; margin-bottom: 22px; }
.hero-video .lede { color: #eef3e8; font-size: 1.2rem; max-width: 44ch; margin-bottom: 30px; }
.text-link.on-dark { color: var(--shea); }
.video-toggle { position: absolute; right: var(--gutter); bottom: 20px; background: rgba(255, 248, 236, 0.14); color: var(--shea); border: 1px solid rgba(255, 248, 236, 0.4); border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; font-weight: 600; backdrop-filter: blur(6px); }
.video-toggle:hover { background: rgba(255, 248, 236, 0.26); }
@media (max-width: 720px) {
.hero-tint { background: linear-gradient(0deg, rgba(31, 46, 33, 0.9) 0%, rgba(47, 82, 51, 0.6) 55%, rgba(47, 82, 51, 0.25) 100%); }
.hero-copy { padding-bottom: 72px; }
.hero-video .lede { font-size: 1.05rem; }
}
