:root {
  --ivory: #f7efe5;
  --ink: #21140f;
  --muted: #9d8c7d;
  --berry: #c84645;
  --nutella: #3a1d16;
  --caramel: #ba7040;
  --pistachio: #75824d;
  --serif: "Italiana", "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
  --script: "Mrs Saint Delafield", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button { font: inherit; }

.preview-ribbon {
  position: relative;
  z-index: 20;
  min-height: 38px;
  padding: 8px clamp(18px, 3vw, 48px);
  background: var(--ivory);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.preview-ribbon span { display: flex; align-items: center; gap: 9px; }
.preview-ribbon i { width: 7px; height: 7px; border-radius: 50%; background: var(--berry); box-shadow: 0 0 0 4px rgba(200, 70, 69, .12); }
.preview-ribbon a { font-weight: 600; border-bottom: 1px solid rgba(33, 20, 15, .4); }

.preview-header {
  position: relative;
  z-index: 10;
  min-height: 92px;
  padding: 18px clamp(22px, 5vw, 78px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid rgba(247, 239, 229, .16);
  background: rgba(33, 20, 15, .78);
  backdrop-filter: blur(16px);
}

.preview-brand { width: 180px; display: block; filter: invert(1) sepia(.2) saturate(.4) brightness(1.25); }
.preview-brand img { display: block; width: 100%; height: auto; }
.preview-header p { margin: 0; color: rgba(247, 239, 229, .55); font-size: 10px; letter-spacing: .23em; text-transform: uppercase; }
.preview-contact { justify-self: end; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.preview-contact span { display: inline-block; margin-left: 12px; color: #e5b4a4; }

.fraises-collection {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 130px);
  overflow: hidden;
  padding: clamp(70px, 8vw, 126px) 0 64px;
  background:
    radial-gradient(circle at 12% 18%, rgba(145, 48, 43, .16), transparent 28%),
    radial-gradient(circle at 92% 74%, rgba(117, 130, 77, .12), transparent 24%),
    #21140f;
}

.fraises-collection::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .26;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  pointer-events: none;
}

.ambient { position: absolute; z-index: -1; border: 1px solid rgba(247, 239, 229, .07); border-radius: 50%; pointer-events: none; }
.ambient-one { width: 44vw; height: 44vw; left: -28vw; top: 18%; }
.ambient-two { width: 24vw; height: 24vw; right: -13vw; bottom: 7%; }

.collection-shell { width: min(1380px, calc(100% - clamp(36px, 7vw, 112px))); margin: 0 auto; }

.collection-heading {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 54px;
  margin-bottom: clamp(54px, 6vw, 88px);
}

.collection-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 23px;
  color: #d8a798;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .27em;
  text-transform: uppercase;
}

.collection-kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }

.collection-heading h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(49px, 7vw, 104px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .82;
}

.collection-heading h1 em {
  color: #e4b5a5;
  font-family: var(--script);
  font-size: 1.02em;
  font-weight: 400;
  white-space: nowrap;
}

.heading-note { justify-self: end; width: min(100%, 410px); padding-bottom: 10px; }
.note-line { display: block; width: 100%; height: 1px; margin-bottom: 23px; background: linear-gradient(90deg, rgba(247,239,229,.55), transparent); }
.heading-note p { margin: 0 0 20px; color: rgba(247, 239, 229, .67); font-family: var(--serif); font-size: clamp(17px, 1.5vw, 22px); line-height: 1.48; }
.explore-cue { color: rgba(247,239,229,.38); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }

.recipe-deck { display: flex; align-items: stretch; gap: clamp(10px, 1.5vw, 22px); min-height: 660px; }

.recipe-card {
  --card-bg: var(--nutella);
  --card-fg: var(--ivory);
  --card-accent: #eab6a5;
  position: relative;
  flex: .88 1 0;
  min-width: 0;
  overflow: hidden;
  padding: 25px clamp(20px, 2.2vw, 32px) 29px;
  color: var(--card-fg);
  background: var(--card-bg);
  border: 1px solid rgba(247,239,229,.13);
  border-radius: 180px 180px 22px 22px;
  cursor: pointer;
  transition: flex .65s cubic-bezier(.2,.8,.2,1), transform .45s ease, filter .45s ease, border-color .45s ease;
  outline: none;
}

.recipe-card[data-recipe="caramel"] { --card-bg: var(--caramel); --card-fg: #2b1710; --card-accent: #52291d; }
.recipe-card[data-recipe="pistache"] { --card-bg: var(--pistachio); --card-fg: #fff9ed; --card-accent: #e9d7ad; }

.recipe-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 0;
  border: 1px solid color-mix(in srgb, var(--card-fg) 17%, transparent);
  border-radius: inherit;
  pointer-events: none;
}

.recipe-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .22;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 30%), rgba(255,255,255,.32), transparent 30%);
  pointer-events: none;
}

.recipe-card:hover { transform: translateY(-9px); }
.recipe-card:focus-visible { box-shadow: 0 0 0 3px var(--ivory), 0 0 0 6px var(--berry); }
.recipe-card.is-active { flex: 1.2 1 0; border-color: color-mix(in srgb, var(--card-fg) 35%, transparent); }
.recipe-card:not(.is-active) { filter: saturate(.78) brightness(.83); }
.recipe-card:not(.is-active):hover { filter: saturate(.95) brightness(.94); }

.card-topline, .recipe-copy, .discover-button { position: relative; z-index: 3; }
.card-topline {
  position: absolute;
  z-index: 5;
  top: 62px;
  left: clamp(42px, 4vw, 62px);
  right: clamp(42px, 4vw, 62px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.recipe-number { font-family: var(--serif); font-size: 18px; }
.recipe-mood { color: color-mix(in srgb, var(--card-fg) 80%, transparent); font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }

.recipe-artwork { position: relative; z-index: 2; height: 365px; margin: 5px -22px -4px; display: grid; place-items: end center; }
.recipe-canvas {
  position: relative;
  z-index: 2;
  display: block;
  width: min(117%, 440px);
  height: auto;
  max-height: 405px;
  object-fit: contain;
  transform: translate3d(var(--shift-x, 0), var(--shift-y, 0), 0) rotate(var(--rotate, 0deg));
  transform-origin: 50% 80%;
  filter: drop-shadow(0 24px 18px rgba(25, 12, 8, .3));
  transition: transform .65s cubic-bezier(.2,.8,.2,1), filter .45s ease;
}

.recipe-card:hover .recipe-canvas, .recipe-card.is-active .recipe-canvas { --shift-y: -8px; filter: drop-shadow(0 31px 22px rgba(25, 12, 8, .38)); }
.recipe-card.is-active:hover .recipe-canvas { --shift-y: -15px; }
.recipe-shadow { position: absolute; z-index: 1; left: 17%; right: 17%; bottom: 7px; height: 25px; border-radius: 50%; background: rgba(24,10,7,.31); filter: blur(15px); }

.ingredient-callout {
  position: absolute;
  z-index: 4;
  max-width: 90px;
  opacity: 0;
  color: var(--card-fg);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.45;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: opacity .4s ease .18s, transform .4s ease .18s;
}

.ingredient-callout::after { content: ""; position: absolute; top: 50%; width: 36px; height: 1px; background: currentColor; opacity: .45; }
.callout-one { top: 42%; left: 0; text-align: right; }
.callout-one::after { left: calc(100% + 8px); }
.callout-two { top: 19%; right: 0; }
.callout-two::after { right: calc(100% + 8px); }
.recipe-card.is-active .ingredient-callout { opacity: .72; transform: translateY(0); }

.recipe-copy { min-height: 170px; }
.recipe-script { display: block; margin-bottom: -12px; color: var(--card-accent); font-family: var(--script); font-size: 40px; line-height: 1; }
.recipe-copy h2 { margin: 0 0 13px; font-family: var(--serif); font-size: clamp(27px, 2.8vw, 42px); font-weight: 400; line-height: .98; letter-spacing: -.025em; }
.recipe-copy h2 span { color: var(--card-accent); font-family: var(--script); font-size: 1.23em; }
.recipe-copy p { max-width: 390px; margin: 0; color: color-mix(in srgb, var(--card-fg) 69%, transparent); font-size: 12px; line-height: 1.62; }

.ingredient-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 0; margin: 0; padding: 0; overflow: hidden; list-style: none; opacity: 0; transition: max-height .45s ease, margin .45s ease, opacity .4s ease; }
.ingredient-list li { padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--card-fg) 23%, transparent); border-radius: 99px; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.recipe-card.is-active .ingredient-list { max-height: 46px; margin-top: 14px; opacity: 1; }

.discover-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding: 15px 0 4px;
  color: var(--card-fg);
  background: none;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--card-fg) 24%, transparent);
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.discover-button i { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid color-mix(in srgb, var(--card-fg) 28%, transparent); border-radius: 50%; font-style: normal; transition: transform .3s ease, background .3s ease; }
.discover-button:hover i { transform: rotate(45deg); background: color-mix(in srgb, var(--card-fg) 12%, transparent); }

.collection-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 34px;
  padding: 24px 2px 0;
  border-top: 1px solid rgba(247,239,229,.14);
}

.collection-action p { display: flex; align-items: baseline; gap: 18px; margin: 0; }
.collection-action p span { color: rgba(247,239,229,.42); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.collection-action p strong { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.collection-cta { display: inline-flex; align-items: center; gap: 28px; padding: 15px 21px; color: var(--ink); background: var(--ivory); font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; transition: background .3s ease, transform .3s ease; }
.collection-cta:hover { background: #e4b5a5; transform: translateY(-2px); }
.collection-cta i { font-size: 17px; font-style: normal; }

@media (max-width: 980px) {
  .preview-header { grid-template-columns: 1fr auto; }
  .preview-header p { display: none; }
  .collection-heading { grid-template-columns: 1fr; align-items: start; }
  .heading-note { justify-self: start; }
  .recipe-deck { min-height: 620px; gap: 10px; }
  .recipe-card { padding-inline: 18px; border-radius: 130px 130px 18px 18px; }
  .recipe-artwork { height: 320px; margin-inline: -18px; }
  .card-topline { top: 55px; left: 40px; right: 40px; }
  .ingredient-callout { display: none; }
  .recipe-copy h2 { font-size: 29px; }
}

@media (max-width: 720px) {
  .preview-ribbon { justify-content: center; text-align: center; }
  .preview-ribbon a { display: none; }
  .preview-header { min-height: 76px; padding-block: 14px; }
  .preview-brand { width: 145px; }
  .preview-contact { font-size: 9px; }
  .fraises-collection { padding-top: 64px; }
  .collection-shell { width: min(100% - 28px, 540px); }
  .collection-heading { gap: 31px; margin-bottom: 45px; }
  .collection-heading h1 { font-size: clamp(48px, 16vw, 78px); }
  .heading-note { width: 100%; }
  .recipe-deck { flex-direction: column; min-height: 0; gap: 16px; }
  .recipe-card, .recipe-card.is-active { flex: auto; min-height: 590px; border-radius: 48vw 48vw 18px 18px; }
  .card-topline { top: 58px; left: 48px; right: 48px; }
  .recipe-card:not(.is-active) { min-height: 124px; filter: saturate(.82) brightness(.84); }
  .recipe-card:not(.is-active) .recipe-artwork,
  .recipe-card:not(.is-active) .recipe-copy p,
  .recipe-card:not(.is-active) .ingredient-list,
  .recipe-card:not(.is-active) .discover-button { display: none; }
  .recipe-card:not(.is-active) .recipe-copy { min-height: 0; margin-top: 25px; }
  .recipe-card:not(.is-active) .recipe-script { margin-bottom: -7px; font-size: 29px; }
  .recipe-card:not(.is-active) .recipe-copy h2 { margin: 0; font-size: 26px; }
  .recipe-artwork { height: 338px; }
  .recipe-copy { min-height: 150px; }
  .recipe-copy h2 { font-size: 36px; }
  .collection-action { align-items: stretch; flex-direction: column; }
  .collection-action p { justify-content: space-between; gap: 14px; }
  .collection-cta { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .recipe-canvas { transform: none !important; }
}
