/* Les Bouillottes de Jamila: sun patchwork. Yellow + cream quilt, cobalt ink, a touch of rose. */
:root {
  --sun: #f4b21b;
  --sun-soft: #fbd66b;
  --cream: #faefd2;
  --paper: #fff9ea;
  --ink: #1d2f7a;
  --ink-soft: #4b5b9c;
  --rose: #f08ba8;
  --line: #ecd79d;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 "Figtree", system-ui, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: "Caprasimo", Georgia, serif; font-weight: 400; line-height: 1.1; margin: 0 0 .45em; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header + patchwork bands */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 48px); background: transparent; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Caprasimo", Georgia, serif; font-size: 1.35rem; text-decoration: none; }
.nav { display: flex; gap: 22px; font-weight: 600; font-size: .95rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 5px; }
/* the sun patchwork as a faded texture behind the whole page */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url(/img/patch.svg) 0 0 / 220px 220px; opacity: .07; }
body { position: relative; isolation: isolate; }

main > section { padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px); }
main > section > * { max-width: 1160px; margin-left: auto; margin-right: auto; }

/* product: gallery + buy box */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; max-width: 1256px; margin: 0 auto; padding-top: clamp(24px, 4vw, 48px) !important; }
.product > * { max-width: none; margin: 0; }
.quilt { background: none; padding: 0; }
.quilt img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 28px rgba(29, 47, 122, .18); }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; }
.thumb { padding: 0; border: 3px solid transparent; border-radius: 10px; background: none; cursor: pointer; overflow: hidden; }
.thumb img { aspect-ratio: 1; object-fit: cover; }
.thumb[aria-pressed="true"] { border-color: var(--ink); }

.buy { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); position: sticky; top: 16px; }
.unique { display: inline-flex; align-items: center; gap: 8px; background: var(--rose); color: #fff; font-weight: 700; font-size: .9rem; padding: 5px 14px 5px 8px; border-radius: 999px; margin-bottom: 14px; }
.unique img { background: #fff; border-radius: 50%; padding: 2px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.badges .unique { margin: 0; }
.badge-soft { display: inline-flex; align-items: center; background: var(--cream); color: var(--ink); font-weight: 700; font-size: .9rem; padding: 5px 14px; border-radius: 999px; border: 2px solid var(--line); }
.price-label { display: block; font-family: "Figtree", sans-serif; font-size: .9rem; font-weight: 700; color: var(--rose); letter-spacing: .01em; margin-bottom: 2px; }
.presale { background: var(--sun-soft); border-radius: 14px; padding: 14px 16px; margin: 0 0 18px; }
.presale p { margin: 0; }
.presale-title { font-family: "Caprasimo", Georgia, serif; font-size: 1.25rem; line-height: 1.2; margin-bottom: 4px !important; }
.presale-stock { font-weight: 700; margin-bottom: 8px !important; }
.presale-stock strong { font-size: 1.15rem; }
.presale-dates { font-size: .92rem; }
.price { font-family: "Caprasimo", Georgia, serif; font-size: 2.3rem; margin: 0 0 .4em; }
.lede { color: var(--ink-soft); }
.label { font-weight: 700; margin: 0 0 8px; }
.row { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
.row .label { margin: 0; }
select, .relay-row input { font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; margin-bottom: 8px; background: var(--paper); }
.choice:has(input:checked) { border-color: var(--ink); background: #fff; }
.choice input { accent-color: var(--ink); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.choice strong { display: block; }
.hint { display: block; color: var(--ink-soft); font-size: .92rem; margin: 0; }
.gift { background: var(--cream); }
.delivery { margin: 20px 0 0; background: var(--cream); border-radius: 14px; padding: 14px 16px; }
.delivery .label { margin-bottom: 4px; }
.delivery-free { margin: 0 0 6px; }
.relay { margin-top: 16px; }
.relay-row { display: flex; gap: 10px; flex-wrap: wrap; }
.relay-row input { width: 9em; border-radius: 999px; }
#relay-chosen { margin-top: 10px; }
.total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.2rem; border-top: 2px dashed var(--line); padding-top: 16px; margin: 22px 0 4px; }
.total-note { margin: 0 0 14px; }
/* payment step: the Stripe form opens inside the buy box */
.buy.checkout-open { position: static; }
.checkout-step { margin-top: 8px; }
.checkout-step .relay { background: var(--cream); border: 2px solid var(--sun); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; }
.ship-msg { background: #fff3f1; border-left: 5px solid #b3261e; color: #8c1d18; font-weight: 600; border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
.checkout-form { min-height: 120px; }
.linklike { background: none; border: 0; padding: 0; margin: 14px 0 0; font: inherit; font-size: .9rem; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.btn { display: inline-block; font: 700 1rem "Figtree", sans-serif; border-radius: 999px; padding: 13px 24px; cursor: pointer; text-decoration: none; border: 2px solid var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--sun-soft); }
.btn.pay { width: 100%; background: var(--ink); color: var(--cream); font-size: 1.1rem; padding: 16px; }
.btn.pay:hover { background: #283f9e; }
.btn.pay:disabled { opacity: .6; cursor: not-allowed; }
.form-msg { min-height: 1.4em; color: #b3261e; font-weight: 600; margin: 10px 0 0; }
.secure { color: var(--ink-soft); font-size: .85rem; margin: 6px 0 0; }

/* story: a sun rises behind the text */
.story { background: var(--sun); position: relative; overflow: hidden; }
.story::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -120px; background: url(/img/sun.svg) center / contain no-repeat; filter: brightness(1.12) saturate(.8); opacity: .55; }
/* story as a path: photo, short paragraph, curved dashed arrow, next step */
.story { padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }
.story-title { text-align: center; color: var(--ink); position: relative; margin-bottom: clamp(20px, 3vw, 36px); }
.path { position: relative; max-width: 900px !important; margin: 0 auto clamp(48px, 7vw, 88px) !important; }
.path-head { text-align: center; margin: 0 auto 26px; max-width: 640px; }
.path-head h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; color: var(--ink); margin: 0 0 6px; }
.path-head .lead { display: inline-block; background: var(--rose); color: #fff; font-weight: 700; padding: 4px 16px; border-radius: 999px; margin: 0; }
.step { display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 3vw, 36px); align-items: center; }
.step.right { grid-template-columns: 1fr 300px; }
.step.right .polaroid { order: 2; }
.step.text-only { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.bubble { background: var(--paper); border-radius: var(--radius); padding: 20px 24px; box-shadow: 0 7px 0 var(--ink); font-size: 1.06rem; }
.bubble p { margin: 0 0 .6em; }
.bubble p:last-child { margin-bottom: 0; }
.bubble .quote { font-family: "Caprasimo", Georgia, serif; font-size: 1.35rem; line-height: 1.25; color: var(--ink); }
.path-arrow { height: 90px; margin: 6px 12%; }
.path-arrow svg { width: 100%; height: 100%; overflow: visible; }
.path-arrow path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 10; vector-effect: non-scaling-stroke; }
.path-arrow path.head { stroke-dasharray: none; }
.path-arrow.flip svg { transform: scaleX(-1); }
.polaroid { background: #fff; padding: 10px 10px 30px; box-shadow: 0 8px 22px rgba(29, 47, 122, .22); transform: rotate(-3deg); position: relative; margin: 0; }
.step.right .polaroid { transform: rotate(2.5deg); }
.polaroid::before { content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 20px; margin-left: -35px; background: rgba(251, 214, 107, .9); transform: rotate(-3deg); }
.polaroid img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .step, .step.right { grid-template-columns: 1fr; justify-items: center; }
  .step.right .polaroid { order: 0; }
  .step .polaroid { max-width: 210px; }
  .polaroid::before { width: 50px; margin-left: -25px; height: 15px; }
  .bubble { width: 100%; }
  .path-arrow { height: 70px; margin: 4px 22%; }
}
.chapter-close { position: relative; max-width: 680px !important; margin: clamp(48px, 7vw, 80px) auto 0 !important; text-align: center; background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: 0 10px 0 var(--ink); }
.chapter-close h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); color: var(--ink); }
.chapter-close .close-cta { width: auto; display: inline-block; padding: 15px 32px; margin: 8px 0 18px; }
.story-inner p { font-size: 1.08rem; }
.sign { font-family: "Caprasimo", Georgia, serif; font-size: 1.4rem; margin: 0; color: var(--ink); }

/* how to use */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--cream); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; background: url(/img/sun.svg) center / contain no-repeat; font-family: "Caprasimo", Georgia, serif; font-size: 1.2rem; color: var(--ink); }
.steps p { margin: 0; }

/* delivery */
.ship { background: var(--cream); }
.ship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ship-card { background: #fff; border-radius: var(--radius); padding: 24px; border-top: 8px solid var(--sun); }
.ship-card:nth-child(2) { border-top-color: var(--rose); }
.ship-card p { margin: 0; }

/* faq */
.faq details { border-bottom: 2px dashed var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; list-style-position: inside; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 24px clamp(16px, 4vw, 48px) 36px; background: var(--cream); }
.foot p { margin: 0; }
.brand-foot { display: flex; align-items: center; gap: 8px; font-family: "Caprasimo", Georgia, serif; font-size: 1.15rem; }
.links { display: flex; gap: 20px; }

/* legal + thank-you pages */
.legal { max-width: 720px; margin: 0 auto; padding: 40px 16px 80px; }

/* Sendcloud relay picker: centred pop-up instead of full screen */
div:has(> #sendcloudshipping_service_point_map) {
  inset: 0 !important; display: flex !important; align-items: center; justify-content: center;
  background: rgba(29, 47, 122, .45) !important;
}
#sendcloudshipping_service_point_map {
  width: min(880px, 94vw) !important; height: min(620px, 82vh) !important;
  border: 0 !important; border-radius: 16px; box-shadow: 0 18px 50px rgba(29, 47, 122, .35); background: #fff;
}

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .buy { position: static; }
  .steps, .ship-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .story::before { width: 320px; height: 320px; right: -110px; top: -90px; }
}
@media (max-width: 420px) {
  .brand { font-size: 1.1rem; }
  .thumbs { gap: 6px; }
}

.top-link { font-weight: 600; text-decoration: none; }

/* gift wrap: what the premium wrap looks like */
.giftwrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 1256px; margin: 0 auto; }
.giftwrap > * { max-width: none; margin: 0; }
.giftwrap-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.giftwrap-photos figure { margin: 0; }
.giftwrap-photos img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 28px rgba(29, 47, 122, .18); }
@media (max-width: 760px) { .giftwrap { grid-template-columns: 1fr; } }
