/* Home page (views/home.js): the season's banner, What's new, charm themes, the featured products, two stories */

.page-home main{--ink-soft:#4A3F5C;--hot:#A8327A;padding-bottom:80px}

/* shared bits */
.home-eyebrow{font:600 11px/1.3 var(--sans);letter-spacing:.26em;text-transform:uppercase;color:var(--violet)}
.home-sec{padding-top:76px}
.home-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px 16px;margin-bottom:24px;flex-wrap:wrap}
.home-head--center{flex-direction:column;align-items:center;text-align:center;gap:6px}
.home-h2{font:600 38px/1.15 var(--serif);color:var(--plum)}
.home-h2 em,.home-h3 em,.home-banner__title em{font-style:italic;font-weight:500;color:var(--violet)}
.home-h3{font:600 32px/1.1 var(--serif);color:var(--plum-ink)}
.home-body{font:14.5px/1.7 var(--sans);color:var(--ink-soft);text-wrap:pretty}
.home-more{font:500 14px var(--sans);color:var(--plum);min-height:44px;display:inline-flex;align-items:center}
.home-more:hover{color:var(--plum-ink)}
.home-updated{font:12px var(--sans);letter-spacing:.06em;color:var(--ink-soft)}

/* the season's banner: a photo beside a cream panel with one big line and its buttons */
.home-banner-wrap{padding-top:8px}
.home-banner{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  border-radius:22px;overflow:hidden;border:1px solid var(--hairline);background:var(--cream);
}
.home-banner__photo{position:relative;min-height:560px;background:var(--blush-soft);overflow:hidden}
.home-banner__photo > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 35%}
.home-banner__sticker{
  position:absolute;top:26px;left:26px;width:112px;height:112px;border-radius:50%;padding:10px;
  display:flex;align-items:center;justify-content:center;text-align:center;
  background:var(--plum);color:#fff;font:italic 500 21px/1.05 var(--serif);transform:rotate(10deg);
  box-shadow:0 12px 24px -14px rgba(46,36,64,.7);
}
.home-banner__panel{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;
  padding:56px 48px 44px;text-align:center;background:var(--cream);
}
.home-banner__title{font:500 104px/.9 var(--serif);letter-spacing:-.01em;color:var(--plum-ink)}
.home-banner__lede{font:17px/1.65 var(--sans);color:var(--ink-soft);max-width:560px;text-wrap:pretty}
.home-banner__btns{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:8px;width:100%;max-width:320px}
.home-banner__btn{display:flex;flex-direction:column;gap:6px}
.home-btn{
  display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 26px;border-radius:999px;
  background:var(--plum);color:#fff;font:600 13px var(--sans);letter-spacing:.12em;text-transform:uppercase;
  transition:background-color .15s ease,transform .15s ease;
}
.home-btn:hover{background:var(--plum-ink);color:#fff;transform:translateY(-1px)}
.home-banner__fine{font:12.5px/1.5 var(--sans);color:var(--ink-soft);max-width:420px}

/* What's new: one card per piece of news, up to four across */
.home-news{display:grid;grid-template-columns:repeat(var(--cols, 4),minmax(0,1fr));gap:20px}
.home-news:has(> :nth-child(5)){grid-template-columns:repeat(4,minmax(0,1fr))}
.home-card{display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--hairline);border-radius:16px;overflow:hidden;color:var(--plum-ink);transition:box-shadow .2s ease,transform .2s ease}
a.home-card:hover{color:var(--plum-ink);box-shadow:var(--shadow-card);transform:translateY(-2px)}
.home-card__pic{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--blush-soft)}
.home-card__pic > img{width:100%;height:100%;object-fit:cover}
.home-card__pic--gingham{
  background-color:#fff;
  background-image:linear-gradient(90deg,rgba(241,169,198,.45) 50%,transparent 50%),linear-gradient(rgba(185,160,228,.45) 50%,transparent 50%);
  background-size:24px 24px;
}
.home-card__pic--gingham,.home-card__pic--blush{display:flex;align-items:center;justify-content:center}
.home-card__pic--gingham > img,.home-card__pic--blush > img{width:62%;height:64%;object-fit:contain;filter:drop-shadow(0 12px 14px rgba(46,36,64,.22))}
.home-card__body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:6px;flex:1}
.home-card__tag{align-self:flex-start;font:600 10.5px/1.4 var(--sans);letter-spacing:.16em;text-transform:uppercase;padding:4px 9px;border-radius:999px;background:var(--lilac-soft);color:var(--plum)}
.home-card__tag.is-hot{background:var(--hot);color:#fff}
.home-card__title{font:600 22px/1.12 var(--serif);color:var(--plum-ink)}
.home-card__text{font:13.5px/1.55 var(--sans);color:var(--ink-soft)}
.home-card__link{margin-top:auto;padding-top:6px;font:600 13.5px var(--sans);color:var(--plum)}

/* charm themes: a circle per theme, the new one ringed in pink */
.home-themes{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:26px 18px}
.home-theme{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;font:500 13.5px/1.35 var(--sans);color:var(--plum-ink)}
a.home-theme:hover{color:var(--plum)}
.home-theme__circle{
  width:100%;max-width:132px;aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:var(--lilac-soft);border:1px solid var(--lilac-line);transition:transform .2s ease,box-shadow .2s ease;
}
a.home-theme:hover .home-theme__circle{transform:translateY(-2px);box-shadow:var(--shadow-card)}
.home-theme__circle img{width:58%;height:58%;object-fit:contain;filter:drop-shadow(0 6px 8px rgba(46,36,64,.18))}
.home-theme.is-new .home-theme__circle{background:var(--blush-soft);border-color:var(--blush)}
.home-theme__pill{font:600 10px/1.4 var(--sans);letter-spacing:.16em;text-transform:uppercase;background:var(--hot);color:#fff;padding:2px 8px;border-radius:999px;margin-top:-4px}

/* the featured products */
.home-loved{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.home-prod{display:flex;flex-direction:column;gap:10px;color:var(--plum-ink)}
.home-prod:hover{color:var(--plum)}
.home-prod__media{position:relative;aspect-ratio:4/5;border-radius:14px;overflow:hidden;background:var(--blush-soft)}
.home-loved.is-square .home-prod__media{aspect-ratio:1}
.home-prod__media img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.home-prod:hover .home-prod__media img:not([style*="scale"]){transform:scale(1.03)}
.home-prod__name{font:600 22px/1.2 var(--serif)}
.home-prod__meta{display:flex;gap:10px;align-items:center;font:14px var(--sans);color:var(--ink-soft)}
.home-prod__price{font-weight:600;color:var(--plum-ink)}

/* two stories side by side: about, and how private events work */
.home-stories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.home-story{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:var(--paper);border:1px solid var(--hairline);border-radius:18px;overflow:hidden}
.home-story__img{width:100%;height:100%;min-height:420px;object-fit:cover}
.home-story__copy{padding:32px 30px;display:flex;flex-direction:column;gap:12px;justify-content:center;align-items:flex-start}
.home-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;align-self:stretch}
.home-steps li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start}
.home-steps__num{width:30px;height:30px;border-radius:50%;background:var(--lilac-soft);color:var(--plum);font:600 14px var(--sans);display:flex;align-items:center;justify-content:center}
.home-steps__title{font:600 14.5px/1.4 var(--sans);color:var(--plum-ink)}
.home-steps__body{font:13.5px/1.55 var(--sans);color:var(--ink-soft)}

/* ---------- smaller screens ---------- */
@media (max-width:1040px){
  .home-banner{grid-template-columns:1fr}
  .home-banner__photo{min-height:380px}
  .home-banner__title{font-size:96px}
  .home-news{display:flex;overflow-x:auto;gap:14px;padding-bottom:8px;scroll-snap-type:x mandatory}
  .home-card{flex:none;width:250px;scroll-snap-align:start}
  .home-themes{grid-template-columns:repeat(5,minmax(0,1fr))}
  .home-stories{grid-template-columns:1fr}
}
@media (max-width:760px){
  .home-sec{padding-top:56px}
  .home-banner{border-radius:16px}
  .home-banner__photo{min-height:280px}
  .home-banner__panel{padding:30px 18px}
  .home-banner__sticker{width:86px;height:86px;font-size:16px;top:14px;left:14px}
  .home-banner__title{font-size:64px}
  .home-banner__lede{font-size:15px}
  .home-banner__btns{max-width:none}
  .home-h2{font-size:31px}
  .home-themes{display:flex;overflow-x:auto;gap:14px;padding-bottom:6px;scroll-snap-type:x proximity}
  .home-theme{flex:none;width:96px;scroll-snap-align:start}
  .home-loved{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .home-prod__name{font-size:19px}
  .home-story{grid-template-columns:1fr}
  .home-story__img{min-height:240px;max-height:320px}
  .home-story__copy{padding:26px 22px}
}

/* ---------- edit mode ---------- */
.home-ednote{margin:0 0 14px}
.home-banner__panel .home-ednote{margin:4px 0 0;max-width:460px;text-align:left}
.home-ed-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 20px;margin:-10px 0 16px}
.home-card.is-off{opacity:.55}
.home-card.is-off:hover,.home-card.is-off:focus-within{opacity:1}
.home-card__ed{display:flex;flex-direction:column;gap:10px;padding:12px 18px 16px;border-top:1px dashed var(--lilac-line);background:var(--porcelain)}
.home-card__ed .ed-note{margin:0}
.home-theme__ed{display:flex;flex-direction:column;gap:6px;width:100%;max-width:150px;text-align:left}
.home-pick select,.home-theme__ed select,.home-card__ed select{max-width:100%}
.is-editing .home-theme{min-width:0}
@media (max-width:760px){ .is-editing .home-theme{width:150px} }
.is-editing .home-banner__sticker{top:64px}
