/* NATURAL by Odelya Agam · direction A, "רוזמרין": soft and green. Linen cream, rounded shapes, and the rosemary of her
   photos as the one colour. Bellefair for headings, Assistant for text, the wordmark in Cormorant Garamond capitals
   spaced like on her card. Signature: a rosemary sprig that grows beside each heading, and a kraft box that fills up. */
:root {
  --bg: #F5EFE4;            /* linen */
  --card: #FBF8F1;
  --ink: #2C2A24;
  --soft: #655F52;          /* 5.6:1 on linen */
  --line: #DED4C2;
  --accent: #55633F;        /* rosemary, 5.9:1 on linen */
  --accent-deep: #46532F;
  --on-accent: #F8F4EA;
  --sage: #E6E9D9;          /* the workshops panel */
  --kraft: #CDB38E;
  --kraft-deep: #B4966C;
  --tag-bg: #E9DCC3; --tag-ink: #4A3B20;
  --radius: 26px;
  --font-display: "Bellefair", "Frank Ruhl Libre", serif;
  --font-body: "Assistant", system-ui, sans-serif;
  --font-latin: "Cormorant Garamond", serif;
  --hdr-h: 62px;
  --hdr-over: #fff;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --m-ease: cubic-bezier(.16, 1, .3, 1); --m-dur: 1s; --m-y: 34px;
  --fly-toast-bg: #2C2A24;
  --cart-title: 400 30px/1.1 var(--font-display);
}
body { font-size: 17px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; }
h2 { font-size: clamp(38px, 9.4vw, 60px); line-height: 1.1; }
.mark { font-family: var(--font-latin); font-weight: 500; letter-spacing: .36em; margin-inline-end: -.36em; text-transform: uppercase; }
.kicker { color: var(--accent); font-weight: 600; font-size: 15px; }
.kicker[dir="ltr"] { font: italic 500 19px/1.2 var(--font-latin); letter-spacing: .02em; }
.price { font-size: 17px; color: var(--soft); font-variant-numeric: tabular-nums; }

/* ---- buttons: a rosemary pill that presses in ---- */
.btn {
  display: inline-grid; place-items: center; min-height: 54px; padding: 0 30px; border: 0; border-radius: 99px;
  background: var(--accent); color: var(--on-accent); font: 600 17px/1 var(--font-body); text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s ease;
}
.btn:active { transform: scale(.96); }
.btn--light { background: var(--bg); color: var(--ink); }
@media (hover: hover) { .btn:hover { background: var(--accent-deep); } .btn--light:hover { background: #fff; } }

/* ---- header ---- */
.hdr__brand .mark { font-size: 20px; }
.hdr__nav a { font-weight: 500; font-size: 16.5px; }
.hdr.is-solid { --hdr-bg: rgba(245, 239, 228, .94); }

/* ---- opening: the photo fills the screen and settles; the words rise a beat later over the plain cloth ---- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; border-radius: 0 0 34px 34px; background: #b79a6e; }
.hero__photo { position: absolute; inset: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; animation: a-settle 2.4s var(--ease) both; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(34, 27, 15, .5), rgba(34, 27, 15, 0) 20%), linear-gradient(to top, rgba(34, 27, 15, .74), rgba(34, 27, 15, .4) 30%, rgba(34, 27, 15, 0) 52%);
}
.hero__copy {
  position: absolute; inset-inline: 0; bottom: 0; padding: 0 24px calc(var(--bd-switch-h, 0px) + 30px); color: #fff;
  display: grid; gap: 12px; justify-items: start;
}
.hero__copy > * { animation: a-rise 1.1s var(--ease) both; animation-delay: calc(.8s + var(--i) * .13s); }
.hero__by { font: italic 500 21px/1 var(--font-latin); letter-spacing: .03em; opacity: .95; }
.hero h1 { font-size: clamp(42px, 11.6vw, 84px); line-height: 1.04; text-wrap: balance; }
.hero__btns { display: flex; align-items: center; gap: 22px; margin-top: 8px; }
.hero__more { font-weight: 600; font-size: 17px; text-underline-offset: 6px; text-decoration-thickness: 1px; padding: 12px 0; }
@keyframes a-settle { from { transform: scale(1.09); } to { transform: none; } }
@keyframes a-rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .hero { border-radius: 0 0 44px 44px; }
  .hero__photo img { object-position: 50% 58%; }
  .hero__copy { padding: 0 clamp(40px, 6vw, 96px) 64px; gap: 16px; }
  .hero__shade { background: linear-gradient(to bottom, rgba(34, 27, 15, .5), rgba(34, 27, 15, 0) 22%), linear-gradient(to top, rgba(34, 27, 15, .72), rgba(34, 27, 15, .3) 34%, rgba(34, 27, 15, 0) 58%); }
}

/* ---- the twig from her logo (site.js draws it): the stem stretches out, then every leaf opens from its base ---- */
.sprig { display: block; width: 118px; aspect-ratio: 200 / 84; color: var(--accent); margin-bottom: 12px; }
.sprig--c { margin-inline: auto; width: 136px; }
.sprig svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 96% 80%; }
.sprig__stem { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; transform-box: fill-box; transform-origin: 100% 100%; transform: scale(0); transition: transform 1s var(--ease); }
.sprig__leaf { fill: rgba(85, 99, 63, .16); stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; transform-box: fill-box; transform-origin: 0 50%; transform: scale(0); opacity: 0; transition: transform .9s var(--ease), opacity .4s ease; transition-delay: calc(.2s + var(--i) * 85ms); }
.sprig.is-on .sprig__stem { transform: none; }
.sprig.is-on .sprig__leaf { transform: none; opacity: 1; }
.sprig.is-on svg { animation: a-sway 7s ease-in-out 1.8s infinite; }
@keyframes a-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg); } }

/* ---- her line ---- */
.line { padding: clamp(64px, 16vw, 130px) 24px clamp(48px, 12vw, 96px); text-align: center; }
.line__t { font-size: clamp(31px, 8.1vw, 62px); line-height: 1.22; text-wrap: balance; max-width: 18em; margin-inline: auto; }
.line__by { margin-top: 26px; display: grid; gap: 4px; justify-items: center; color: var(--soft); }
.line__by .mark { font-size: 17px; color: var(--ink); }
.line__by span:last-child { font: italic 500 18px/1.2 var(--font-latin); }

/* ---- categories: four tall rounded tiles ---- */
.cats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; text-decoration: none; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat b {
  position: absolute; inset-inline: 8px; bottom: 8px; padding: 11px 10px; border-radius: 99px; text-align: center;
  background: rgba(251, 248, 241, .94); color: var(--ink); font: 600 16px/1.2 var(--font-body);
}
.cat:active img { transform: scale(1.04); }
@media (hover: hover) { .cat:hover img { transform: scale(1.06); } }
@media (min-width: 900px) { .cats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .cat b { inset-inline: 14px; bottom: 14px; font-size: 18px; padding: 13px; } }

/* ---- sections ---- */
.sec { padding-top: clamp(72px, 17vw, 140px); }
.sec__head { margin-bottom: clamp(26px, 6vw, 48px); }
.sec__sub { margin-top: 12px; font-size: 19px; max-width: 30em; }
.sec__sub b { color: var(--accent); font-weight: 700; white-space: nowrap; }

/* ---- the featured piece with the colour choice ---- */
.feat { display: grid; gap: 22px; }
.feat__photo { border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--line); }
.feat__body { display: grid; gap: 10px; justify-items: start; }
.feat__body h3 { font-size: clamp(38px, 10vw, 62px); line-height: 1.05; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.swatches legend { font-weight: 600; font-size: 15px; color: var(--soft); margin-bottom: 8px; }
.sw { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 18px 0 16px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .25s ease, transform .25s var(--ease); }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sw i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(44, 42, 36, .18); transition: transform .35s var(--ease); }
.sw span { font-weight: 600; font-size: 16px; }
.sw:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); }
.sw:has(input:checked) i { transform: scale(1.18); }
.sw:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.sw:active { transform: scale(.96); }
.feat__buy { display: flex; align-items: center; gap: 20px; margin-top: 10px; }
.feat__buy .price { font-size: 22px; color: var(--ink); }
@media (min-width: 900px) {
  .feat { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
  .feat__photo { aspect-ratio: 5 / 5.6; }
}

/* ---- rows of big cards: a swipe row on phones (the next card peeks in), a plain grid on wide screens ---- */
.row { margin-top: clamp(48px, 11vw, 88px); }
.row__t { font-size: clamp(27px, 6.6vw, 38px); line-height: 1.15; margin-bottom: 16px; }
.row__track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 4px 20px 18px; scroll-padding-inline: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.row__track::-webkit-scrollbar { display: none; }
.row__track > li { flex: 0 0 74vw; max-width: 340px; scroll-snap-align: start; --m-y: 26px; --m-dur: .75s; }
.card { display: grid; gap: 12px; height: 100%; align-content: start; }
.card__photo { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); }
.card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.row__track > li:not(.m-in) .card__photo img { transform: scale(1.07); }
.card__cap { display: grid; gap: 2px; padding-inline: 4px; }
.card__cap h4 { font: 600 18px/1.3 var(--font-body); margin: 0; }
.card__in { color: var(--soft); font-size: 15.5px; line-height: 1.4; }
.card__price { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.tag { font-style: normal; font-weight: 700; font-size: 13.5px; line-height: 1; padding: 6px 10px; border-radius: 99px; background: var(--tag-bg); color: var(--tag-ink); white-space: nowrap; }
.add {
  justify-self: start; min-height: 46px; padding: 0 20px; border-radius: 99px; border: 0; background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-deep); font: 600 16px/1 var(--font-body); margin-inline-start: 2px;
  transition: transform .25s var(--ease), background-color .25s ease, color .25s ease;
}
.add:active { transform: scale(.95); background: var(--accent); color: var(--on-accent); }
@media (hover: hover) { .add:hover { background: var(--accent); color: var(--on-accent); } .card:hover .card__photo img { transform: scale(1.04); } }
@media (min-width: 900px) {
  .row__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 22px; overflow: visible; padding: 0; width: min(100% - 40px, 1180px); margin-inline: auto; }
  .row__track > li { max-width: none; }
}

/* ---- the hanukkiah: the whole photo, never cropped, with a soft light breathing on each flame ---- */
.lamp { padding-top: clamp(72px, 17vw, 140px); }
.lamp__grid { display: grid; gap: 22px; }
.lamp__photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1880 / 2046; background: var(--line); }
.lamp__photo img { width: 100%; height: 100%; object-fit: cover; }
.lamp__glow { position: absolute; inset: 0; pointer-events: none; }
.lamp__glow i {
  position: absolute; left: var(--x); top: var(--y); width: 15%; aspect-ratio: 1; margin: -7.5% 0 0 -7.5%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 208, 128, .5), rgba(255, 190, 100, .16) 55%, rgba(255, 190, 100, 0));
  animation: a-flame var(--t) ease-in-out var(--w) infinite;
}
@keyframes a-flame {
  0%, 100% { opacity: .5; transform: scale(.88); }
  22% { opacity: 1; transform: scale(1.1) translate3d(1%, -2%, 0); }
  41% { opacity: .68; transform: scale(.96); }
  63% { opacity: .95; transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
  82% { opacity: .6; transform: scale(.92); }
}
.lamp__body { display: grid; gap: 8px; justify-items: start; }
.lamp__p { font-size: 20px; }
@media (min-width: 900px) {
  .lamp__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
  .lamp__body { order: -1; }
  .lamp__body h2 { font-size: 72px; }
}

/* ---- boxes ---- */
.row--boxes { margin-top: 0; }
@media (min-width: 900px) { .row--boxes .row__track { grid-auto-columns: minmax(0, 1fr); } }

/* the box the buyer puts together: a kraft box with three places, a thin line that fills, a stamp when it is full */
.kit { margin-top: clamp(56px, 13vw, 100px); display: grid; gap: 18px; }
/* phones: the heading, the box, the products to pick, then the button; wide screens: the box beside the products */
.kit__side { display: contents; }
.kit__picks { order: 4; }
.kit__add { order: 5; }
.kit__head h3 { font-size: clamp(31px, 8vw, 46px); line-height: 1.12; }
.kit__status { margin-top: 6px; font-size: 18px; font-weight: 600; color: var(--accent-deep); min-height: 1.6em; }
.kit__box {
  position: relative; margin-top: 14px; padding: 20px 16px 18px; border-radius: 20px;
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, .13) 0 2px, rgba(255, 255, 255, 0) 2px 9px),
    repeating-linear-gradient(28deg, rgba(120, 90, 45, .1) 0 1.5px, rgba(120, 90, 45, 0) 1.5px 13px),
    var(--kraft);
  box-shadow: inset 0 0 0 7px var(--kraft-deep), inset 0 10px 22px rgba(70, 48, 16, .22);
}
.kit__lip { position: absolute; inset-inline: 22px; top: -9px; height: 16px; border-radius: 8px 8px 0 0; background: var(--kraft-deep); transform-origin: 50% 100%; transition: transform .7s var(--ease); }
.kit.is-ready .kit__lip { transform: scaleY(1.5); }
.kit__slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 6px; }
.kit__slot { aspect-ratio: 1; border-radius: 16px; background: rgba(255, 252, 244, .32); box-shadow: inset 0 0 0 1.5px rgba(86, 62, 24, .42); display: grid; place-items: center; transition: background-color .4s ease, box-shadow .4s ease; }
.kit__slot b { font: italic 500 30px/1 var(--font-latin); color: rgba(74, 52, 18, .78); transition: opacity .3s ease; }
.kit__slot.is-full { background: none; box-shadow: 0 6px 14px rgba(60, 40, 12, .28); }
.kit__slot.is-full b { opacity: 0; }
.kit__item { border-radius: 16px; transition: transform .25s var(--ease); }
.kit__item:active { transform: scale(.94); }
.kit__x { background: var(--ink); color: var(--card); box-shadow: 0 0 0 2px var(--kraft); }
.kit__stamp {
  position: absolute; top: -26px; left: -8px; width: 82px; height: 82px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: var(--accent); color: var(--on-accent); font: 600 14px/1.1 var(--font-body); box-shadow: 0 6px 16px rgba(40, 50, 20, .3);
  transform: scale(0) rotate(-30deg); opacity: 0; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease;
}
.kit__stamp b { display: block; font: 600 26px/1 var(--font-latin); letter-spacing: .01em; margin-bottom: 2px; }
.kit.is-ready .kit__stamp { transform: rotate(-10deg); opacity: 1; }
.kit__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.kit__bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); transform-origin: 100% 50%; transform: scaleX(var(--kit-p, 0)); transition: transform .7s var(--ease); }
.kit__add { width: 100%; }
.kit.is-ready .kit__add { animation: a-ready .9s var(--ease) .25s; }
@keyframes a-ready { 0% { transform: none; } 35% { transform: scale(1.045); } 100% { transform: none; } }
.kit__picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 10px; }
.pick { position: relative; display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; text-align: center; transition: transform .25s var(--ease); }
.pick img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; transition: opacity .3s ease, transform .5s var(--ease); }
.pick span { font-size: 13.5px; line-height: 1.25; font-weight: 600; overflow-wrap: break-word; }
.pick::after {
  content: ""; position: absolute; top: 6px; inset-inline-end: 6px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F8F4EA' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.6 3.6 7.4-8'/%3E%3C/svg%3E") center / 16px no-repeat;
  transform: scale(0); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.pick.is-picked::after { transform: none; }
.pick.is-picked img { opacity: .5; transform: scale(.94); }
.pick:active { transform: scale(.95); }
@media (min-width: 900px) {
  .kit { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
  .kit__side { display: grid; gap: 18px; }
  .kit__picks, .kit__add { order: 0; }
  .kit__picks { gap: 22px 18px; }
  .pick span { font-size: 15px; }
  .kit__add { width: auto; justify-self: start; }
}

/* ---- about ---- */
.about__grid { display: grid; gap: 26px; }
.about__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--line); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.about__body { display: grid; gap: 10px; justify-items: start; }
.about__p { font-size: 20px; line-height: 1.55; max-width: 26em; }
.about__slot { margin-top: 6px; padding: 16px 18px; border-radius: 18px; border: 1.5px dashed var(--kraft-deep); color: var(--soft); font-size: 16px; }
@media (min-width: 900px) { .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; } }

/* ---- workshops: one soft sage panel ---- */
.work { padding-top: clamp(72px, 17vw, 140px); }
.work__panel { background: var(--sage); border-radius: 34px; padding: clamp(40px, 10vw, 80px) 24px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.work__panel p { font-size: 19px; max-width: 24em; }
.work__panel .btn { margin-top: 8px; }

/* ---- footer ---- */
.ftr { margin-top: clamp(72px, 17vw, 130px); padding: 44px 0 40px; border-top: 1px solid var(--line); text-align: center; }
.ftr__in { display: grid; gap: 6px; justify-items: center; }
.ftr__mark { font-size: 26px; }
.ftr__by { font: italic 500 19px/1.2 var(--font-latin); color: var(--soft); margin-bottom: 14px; }
.ftr__line { color: var(--soft); }
.ftr__line a { display: inline-block; padding: 11px 6px; color: var(--ink); font-weight: 600; text-underline-offset: 5px; }
.ftr__note { font-size: 14px; color: var(--soft); margin-top: 8px; }
