/* Odelia's cakes. The palette is taken from her own photos: ganache, pink marble boards, gold toppers. */
:root {
  --ganache: #2b1813;
  --ganache-2: #3a221b;
  --cocoa: #5a3a2e;
  --blush: #f2e2dc;
  --marble: #fbf5f2;
  --rose-ink: #8e4f47;
  --rose: #c98f86;
  --gilt: #c49a52;
  --gilt-soft: #e6cf9f;
  --avail: #3e6b4c;
  --sold: #625753;
  --line: rgba(90, 58, 46, 0.16);

  --font-display: "Bellefair", "Frank Ruhl Libre", "David", serif;
  --font-body: "Assistant", "Segoe UI", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 2.9rem);
  --step-4: clamp(2.7rem, 1.6rem + 5vw, 4.9rem);

  --gutter: clamp(16px, 4vw, 48px);
  --arch: 50% 50% 14px 14px / 30% 30% 14px 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blush);
  color: var(--ganache);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
svg { width: 1.2em; height: 1.2em; flex: none; }

:focus-visible { outline: 3px solid var(--gilt); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50;
  background: var(--marble); color: var(--ganache); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.4em; border-radius: 999px;
  font-weight: 600; font-size: var(--step-0); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-gilt { background: var(--gilt); color: var(--ganache); }
.btn-gilt:hover { background: var(--gilt-soft); }
.btn-ghost { border-color: rgba(230, 207, 159, 0.55); color: var(--marble); }
.btn-ghost:hover { border-color: var(--gilt-soft); background: rgba(230, 207, 159, 0.08); }
.btn-line { border-color: var(--cocoa); color: var(--cocoa); background: transparent; }
.btn-line:hover { background: var(--cocoa); color: var(--marble); }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--ganache) 94%, transparent);
  backdrop-filter: blur(8px);
  color: var(--marble);
}
.wordmark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.wordmark-name { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--gilt-soft); }
.wordmark-sub { font-size: var(--step--1); color: rgba(251, 245, 242, 0.72); }
.site-nav { display: none; gap: 28px; }
.site-nav a { text-decoration: none; color: rgba(251, 245, 242, 0.86); font-size: 1rem; }
.site-nav a:hover { color: var(--gilt-soft); }
.header-wa {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid rgba(230, 207, 159, 0.5); color: var(--gilt-soft);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
@media (min-width: 860px) { .site-nav { display: flex; } }

/* ---- hero: a shop window of arches ---- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(201, 143, 134, 0.16), transparent 60%),
    var(--ganache);
  color: var(--marble);
  padding: 36px var(--gutter) 0;
  display: grid; gap: 36px;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 1; max-width: 34rem; }
.hero h1 { font-size: var(--step-4); color: var(--marble); margin-top: 14px; }
.hero-lead { margin-top: 16px; font-size: var(--step-1); line-height: 1.5; color: rgba(251, 245, 242, 0.8); max-width: 28rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-live { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--gilt-soft); }
.hero-live a { text-decoration: none; border-bottom: 1px solid rgba(230, 207, 159, 0.4); }
.hero-live .dot {
  width: 9px; height: 9px; border-radius: 50%; background: #7fc495;
  box-shadow: 0 0 0 0 rgba(127, 196, 149, 0.6); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(127, 196, 149, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 196, 149, 0); } }

.hero-window {
  display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; gap: clamp(10px, 2vw, 22px);
  padding-bottom: 0; margin-inline: calc(var(--gutter) * -0.25);
}
.arch {
  margin: 0; position: relative; border-radius: 999px 999px 0 0; overflow: hidden;
  aspect-ratio: 4 / 5.6; background: var(--ganache-2);
  outline: 1px solid rgba(230, 207, 159, 0.45); outline-offset: 6px;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-1, .arch-3 { aspect-ratio: 4 / 5; }
.arch-2 { aspect-ratio: 4 / 5.8; }
/* the polished shelf the arches stand on */
.hero-window::after {
  content: ""; grid-column: 1 / -1; height: 18px; margin-top: -1px;
  background: linear-gradient(to bottom, rgba(230, 207, 159, 0.5), rgba(230, 207, 159, 0) 2px), linear-gradient(var(--ganache-2), var(--ganache));
}

@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr 1.1fr; align-items: end; padding-top: 56px; min-height: min(78vh, 680px); }
  .hero-copy { align-self: center; padding-bottom: 72px; }
}

/* The page's one orchestrated moment: the arches rise into the window, the middle one last. */
@media (prefers-reduced-motion: no-preference) {
  .arch { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .arch-3 { animation-delay: .08s; }
  .arch-1 { animation-delay: .2s; }
  .arch-2 { animation-delay: .34s; }
  .hero-copy { animation: fade .9s ease-out .1s both; }
}
@media (prefers-reduced-motion: reduce) { .hero-live .dot { animation: none; } html { scroll-behavior: auto; } }
@keyframes rise { from { transform: translateY(70px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- announcement ---- */
.announcement {
  background: var(--gilt-soft); color: var(--ganache); text-align: center;
  padding: 12px var(--gutter); font-weight: 600;
}

/* ---- vitrine ---- */
.vitrine { padding: 64px var(--gutter) 72px; max-width: 1240px; margin: 0 auto; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.section-head h2 { font-size: var(--step-3); }
.vitrine-updated { color: var(--cocoa); font-size: var(--step--1); }

.filters { margin-top: 24px; display: grid; gap: 12px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 42px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1.5px solid var(--line); color: var(--cocoa); font-weight: 600; font-size: 0.98rem;
}
.chip[aria-pressed="true"] { background: var(--ganache); border-color: var(--ganache); color: var(--marble); }
.chip-row-quiet .chip { min-height: 38px; font-weight: 500; font-size: 0.93rem; }
.chip-row-quiet .chip[aria-pressed="true"] { background: var(--marble); color: var(--ganache); border-color: var(--cocoa); }
.chip .n { opacity: .65; margin-inline-start: 4px; font-weight: 500; }

.results-count { margin-top: 18px; color: var(--cocoa); font-size: var(--step--1); }

.cake-grid {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; gap: 28px 18px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px) { .cake-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; } }
@media (min-width: 1100px) { .cake-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cake { position: relative; }
.cake-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; text-align: start; cursor: pointer;
}
.cake-photo {
  position: relative; margin: 0; border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--marble);
}
.cake-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cake-btn:hover .cake-photo img { transform: scale(1.035); }
.cake.is-soldout .cake-photo img { filter: grayscale(.75) contrast(.9); opacity: .78; }

.status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 700; line-height: 1;
  padding: 7px 11px; border-radius: 999px;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-available { background: #e3efe6; color: var(--avail); }
.status-soldout { background: #ece7e5; color: var(--sold); }
.status-order { background: #f6ecd8; color: #7a5a22; }
.cake-photo .status { position: absolute; inset-inline-start: 10px; bottom: 10px; box-shadow: 0 1px 0 rgba(43, 24, 19, .06); }

.cake-name { font-family: var(--font-display); font-size: var(--step-1); margin-top: 14px; line-height: 1.2; }
.cake-desc {
  margin-top: 6px; color: var(--cocoa); font-size: 0.95rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cake-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 0.88rem; color: var(--rose-ink); font-weight: 600; }
@media (max-width: 420px) {
  .cake-grid { gap: 26px 12px; }
  .cake-desc { display: none; }
  .cake-name { font-size: 1.15rem; margin-top: 10px; }
  .cake-photo .status { inset-inline-start: 6px; bottom: 6px; font-size: .78rem; padding: 6px 9px; }
}

.empty { text-align: center; padding: 40px 0; color: var(--cocoa); display: grid; gap: 16px; justify-items: center; }

/* ---- custom order ---- */
.custom { background: var(--marble); border-block: 1px solid var(--line); }
.custom-inner { max-width: 1100px; margin: 0 auto; padding: 72px var(--gutter); }
.custom h2 { font-size: var(--step-3); }
.custom-lead { margin-top: 12px; font-size: var(--step-1); color: var(--cocoa); max-width: 38rem; line-height: 1.5; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 36px 0; display: grid; gap: 28px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; }
.steps li::before {
  content: counter(step); grid-row: span 2; font-family: var(--font-display); font-size: 2.6rem; line-height: 1;
  color: var(--gilt); min-width: 1.2ch;
}
.steps strong { font-size: var(--step-1); font-family: var(--font-display); font-weight: 400; }
.steps span { color: var(--cocoa); max-width: 30rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }

/* ---- about ---- */
.about {
  max-width: 860px; margin: 0 auto; padding: 72px var(--gutter);
  display: grid; gap: 24px; align-items: start;
}
.about-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; outline: 1px solid var(--gilt); outline-offset: 5px; }
.about h2 { font-size: var(--step-2); }
.about p { margin-top: 12px; color: var(--cocoa); max-width: 36rem; }
.about .kosher-line { color: var(--ganache); font-weight: 700; }
.about .workshops a { color: var(--rose-ink); font-weight: 700; }
@media (min-width: 700px) { .about { grid-template-columns: auto 1fr; gap: 36px; } }

/* ---- contact ---- */
.contact {
  background: var(--ganache); color: var(--marble); text-align: center;
  padding: 80px var(--gutter) 88px; display: grid; justify-items: center; gap: 18px;
}
.contact h2 { font-size: var(--step-3); }
.contact-phone {
  font-family: var(--font-display); font-size: clamp(2.2rem, 1.4rem + 4vw, 3.6rem); color: var(--gilt-soft);
  text-decoration: none; direction: ltr; letter-spacing: .02em;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }

.site-footer {
  background: var(--ganache); color: rgba(251, 245, 242, .66); border-top: 1px solid rgba(230, 207, 159, .18);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom)); font-size: var(--step--1);
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: rgba(251, 245, 242, .8); }

/* ---- floating WhatsApp on phones ---- */
.float-wa {
  position: fixed; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gilt); color: var(--ganache); box-shadow: 0 6px 20px rgba(43, 24, 19, .28);
}
.float-wa svg { width: 28px; height: 28px; }
/* Hidden while the hero or the contact section, which have their own WhatsApp buttons, are on screen. */
.float-wa { transition: opacity .25s ease, transform .25s ease; }
.float-wa.is-off { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .float-wa { transition: none; } }
@media (min-width: 860px) { .float-wa { display: none; } }

/* ---- cake sheet ---- */
.sheet {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh;
  width: 100%; margin: auto auto 0; color: var(--ganache);
}
.sheet::backdrop { background: rgba(43, 24, 19, .62); }
.sheet-body {
  position: relative; background: var(--marble); border-radius: 22px 22px 0 0;
  max-height: 92dvh; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom);
}
.sheet-photo { margin: 0; aspect-ratio: 4 / 3.6; overflow: hidden; border-radius: 22px 22px 0 0; }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet-text { padding: 22px 22px 26px; display: grid; gap: 12px; justify-items: start; }
.sheet-text h2 { font-size: var(--step-3); }
.sheet-text > p:not(.status) { color: var(--cocoa); }
.sheet-meta { font-weight: 600; color: var(--rose-ink) !important; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; width: 100%; }
.sheet-actions .btn-gilt { flex: 1 1 220px; }
.sheet-close {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(251, 245, 242, .92); display: grid; place-items: center; cursor: pointer;
}
.sheet-close svg { stroke: var(--ganache); stroke-width: 2; fill: none; }
@media (min-width: 760px) {
  .sheet { width: min(920px, calc(100vw - 48px)); margin: auto; }
  .sheet-body { border-radius: 24px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
  .sheet-photo { border-radius: 0; aspect-ratio: auto; height: 100%; min-height: 480px; }
  .sheet-text { padding: 48px 36px; align-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] .sheet-body { animation: sheet-up .32s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---- plain pages (accessibility, privacy, 404) ---- */
.plain { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 80px; }
.plain h1 { font-size: var(--step-3); margin-bottom: 20px; }
.plain h2 { font-size: var(--step-1); margin: 28px 0 8px; }
.plain p, .plain li { color: var(--cocoa); }
.plain p + p { margin-top: 10px; }
.plain .back { display: inline-block; margin-top: 32px; color: var(--rose-ink); font-weight: 700; }
