:root {
  --blush: #f9dde5;
  --blush-light: #fdf2f5;
  --blush-deep: #f4c8d5;
  --cocoa: #3d2a24;
  --cocoa-soft: #5c4239;
  --white: #ffffff;
  --line: #9a6b7a;
  --error: #a3123f;

  --font-display: "Gveret Levin", "Assistant", cursive;
  --font-text: "Assistant", "Arial Hebrew", Arial, sans-serif;

  --margin: max(clamp(20px, 5vw, 80px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --section-gap: clamp(88px, 12vw, 190px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --cake-shadow: drop-shadow(0 26px 28px rgba(61, 42, 36, 0.2));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: 96px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--blush-light);
  color: var(--cocoa);
  font-family: var(--font-text);
  font-size: 1.1875rem;
  line-height: 1.75;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.1rem, 6vw, 6.25rem);
}

h2 {
  font-size: clamp(2.7rem, 5.2vw, 5rem);
}

h3 {
  font-size: clamp(2.1rem, 3.3vw, 3.1rem);
}

p {
  margin: 0;
  max-width: 54ch;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

a,
button,
label {
  touch-action: manipulation;
}

.button,
.site-nav a,
.whatsapp-float,
.motion-toggle {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

span[dir="ltr"] {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 40;
  padding: 10px 18px;
  background: var(--cocoa);
  color: var(--white);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

main {
  overflow-x: clip;
}

/* Header */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: var(--margin);
  padding-block: 8px;
  background: var(--blush);
  transition: background-color 300ms ease;
}

.site-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  height: 14px;
  background: linear-gradient(rgba(61, 42, 36, 0.07), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.site-header.is-scrolled::after {
  opacity: 1;
}

.site-header.is-scrolled {
  background: var(--blush-light);
}

.site-header img {
  width: 92px;
  transform-origin: right center;
  transition: transform 300ms var(--ease);
}

.site-header.is-scrolled img {
  transform: scale(0.76);
}

.site-nav ul {
  display: flex;
  gap: clamp(2px, 2.4vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.text-link {
  position: relative;
  display: inline-block;
  padding: 8px 10px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a::after,
.text-link::after {
  content: "";
  position: absolute;
  inset-inline: 10px;
  inset-block-end: 4px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms var(--ease);
}

.site-nav a[aria-current="page"]::after,
.text-link::after {
  transform: scaleX(1);
}

.site-nav a:active,
.text-link:active {
  opacity: 0.65;
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover::after {
    transform: scaleX(1);
  }

  .text-link:hover::after {
    transform: scaleX(0.35);
  }
}

/* Buttons */

.button {
  position: relative;
  isolation: isolate;
  display: inline-block;
  overflow: hidden;
  padding: 17px 44px;
  border: 0;
  border-radius: 2px;
  background: var(--cocoa);
  color: var(--blush-light);
  font-family: var(--font-text);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease);
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--cocoa-soft);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover::before {
    transform: scaleX(1);
  }
}

.button:active {
  transform: scale(0.97);
}

/* Hero: the cake on a turning decorator's stand */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  min-height: min(86vh, 860px);
  min-height: min(86svh, 860px);
  padding-inline: var(--margin);
  padding-block: clamp(20px, 3vw, 44px) clamp(56px, 6vw, 96px);
  background: var(--blush);
}

.hero .line {
  display: block;
  overflow: hidden;
  padding-block: 0.08em;
  white-space: nowrap;
}

.hero .line > span {
  display: block;
  animation: line-rise 1100ms var(--ease) both;
}

.hero .line:nth-child(2) > span {
  animation-delay: 160ms;
}

.hero-text > p {
  margin-block: clamp(20px, 2.4vw, 32px) clamp(28px, 3vw, 40px);
  font-size: clamp(1.1875rem, 1.6vw, 1.4375rem);
  line-height: 1.65;
  animation: fade-up 1000ms 450ms var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  animation: fade-up 1000ms 600ms var(--ease) both;
}

.stage {
  position: relative;
  width: min(100%, 640px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.stage-disk {
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  background: var(--blush-deep);
  animation: disk-open 1300ms var(--ease) both;
}

.stage-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: ring-turn 46s linear infinite;
}

.stage-ring text {
  direction: ltr;
  fill: var(--cocoa);
  font-family: var(--font-text);
  font-size: 21px;
  font-weight: 500;
}

.stage-cake {
  position: absolute;
  inset-block-start: 19%;
  inset-inline-start: 18%;
  width: 64%;
  animation: cake-arrive 1300ms 200ms var(--ease) both, cake-float 7s 1500ms ease-in-out infinite alternate;
}

.cake {
  filter: var(--cake-shadow);
}

@keyframes line-rise {
  from {
    transform: translateY(110%);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

@keyframes disk-open {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
}

@keyframes ring-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cake-arrive {
  from {
    opacity: 0;
    transform: translateY(44px) scale(0.95);
  }
}

@keyframes cake-float {
  to {
    translate: 0 -12px;
  }
}

/* Moving ribbon */

.ribbon {
  overflow: hidden;
  padding-block: 12px;
  background: var(--blush-deep);
}

.ribbon-track {
  display: flex;
  width: max-content;
  animation: ribbon-move 44s linear infinite;
}

.ribbon-track span {
  padding-inline: 26px;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  line-height: 1.3;
  white-space: nowrap;
}

.ribbon-track span::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-inline-start: 52px;
  border-radius: 50%;
  background: var(--cocoa);
  vertical-align: middle;
}

@keyframes ribbon-move {
  to {
    transform: translateX(50%);
  }
}

/* Reveal on scroll */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

html.js [data-reveal].d1 {
  transition-delay: 70ms;
}

html.js [data-reveal].d2 {
  transition-delay: 140ms;
}

html.js [data-reveal].d3 {
  transition-delay: 210ms;
}

/* Arched pictures */

.arch {
  overflow: hidden;
  border-radius: 999px 999px 0 0;
}

.arch img,
.arch video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .arch:hover img {
    transform: scale(1.04);
  }
}

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 130px);
  align-items: center;
  padding-inline: var(--margin);
  padding-block-start: var(--section-gap);
}

.about p {
  margin-block-start: 22px;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.7;
}

.about .text-link {
  margin-block-start: 26px;
  margin-inline-start: -10px;
}

.about-pictures {
  position: relative;
  max-width: 500px;
  margin-inline: auto;
  width: 100%;
}

.about-pictures .arch {
  aspect-ratio: 4 / 5.4;
}

.about-small {
  position: absolute;
  inset-block-end: -8%;
  inset-inline-end: -16%;
  width: 52%;
}

/* Collections on the home page */

.collections {
  padding-inline: var(--margin);
  padding-block-start: var(--section-gap);
}

.collections-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  margin-block-start: clamp(36px, 5vw, 72px);
}

.collection {
  display: block;
  text-decoration: none;
}

.collection:nth-child(2) {
  margin-block-start: clamp(0px, 9vw, 150px);
}

.collection-disk {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  max-width: 560px;
  margin-inline: auto;
}

.collection-disk::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: var(--blush);
  transition: transform 600ms var(--ease);
}

.collection-disk img {
  position: relative;
  width: 72%;
  transition: transform 600ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .collection:hover .collection-disk::before {
    transform: scale(1.05);
  }

  .collection:hover .collection-disk img {
    transform: translateY(-14px) scale(1.03);
  }
}

.collection:active .collection-disk img {
  transform: scale(0.98);
}

.collection h3 {
  margin-block-start: 18px;
  text-align: center;
}

.collection p {
  margin-inline: auto;
  margin-block-start: 6px;
  text-align: center;
}

/* Prices beside each cake */

.cake-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 22px;
  margin: 10px 0 0;
  padding: 0;
  font-size: 1.1875rem;
  font-weight: 700;
  list-style: none;
}

.feature .cake-facts {
  justify-content: flex-start;
  margin-block-start: -14px;
}

.feature .price-note {
  margin-block: 2px 26px;
  font-size: 1rem;
}

/* Good to know */

.good-to-know {
  margin-block-start: var(--section-gap);
  padding-inline: var(--margin);
}

.good-to-know ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  margin: clamp(28px, 4vw, 52px) 0 0;
  padding: 0;
  list-style: none;
}

.good-to-know strong {
  display: block;
  margin-block-end: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 2.8vw, 2.625rem);
  font-weight: 400;
  line-height: 1.15;
}

.good-to-know-more {
  margin-block-start: clamp(24px, 3vw, 40px);
}

/* Frequently asked questions */

.faq {
  padding-inline: var(--margin);
  padding-block-start: clamp(64px, 8vw, 120px);
}

.faq-list {
  max-width: 820px;
  margin-block-start: clamp(20px, 3vw, 36px);
}

.faq details {
  interpolate-size: allow-keywords;
  border-block-end: 1.5px solid var(--blush-deep);
}

.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition: block-size 260ms var(--ease), opacity 200ms ease, content-visibility 260ms allow-discrete;
}

.faq details[open]::details-content {
  block-size: auto;
  opacity: 1;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 200ms var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding-block-end: 18px;
}

.faq-more {
  margin-block-start: 22px;
}

/* Closing invitation */

.closing {
  position: relative;
  margin-block-start: var(--section-gap);
  overflow: hidden;
  padding-inline: var(--margin);
  padding-block: clamp(84px, 11vw, 170px);
  background: var(--blush);
  text-align: center;
}

.closing p {
  margin-inline: auto;
  margin-block: 14px 34px;
  font-size: clamp(1.1875rem, 1.6vw, 1.4375rem);
}

.closing > *:not(.closing-cake) {
  position: relative;
  z-index: 1;
}

.closing-cake {
  position: absolute;
  width: clamp(190px, 21vw, 340px);
  inset-block-start: 50%;
  margin-block-start: -130px;
}

.closing-cake-a {
  inset-inline-start: -3%;
}

.closing-cake-b {
  inset-inline-end: -3%;
}

/* Inner page heading */

.page-title {
  position: relative;
  padding-inline: var(--margin);
  padding-block: clamp(36px, 5vw, 72px) clamp(44px, 6vw, 88px);
  background: var(--blush);
  text-align: center;
}

.page-title h1,
.page-title p {
  animation: fade-up 1100ms var(--ease) both;
}

.page-title p {
  margin-inline: auto;
  margin-block-start: 14px;
  font-size: clamp(1.1875rem, 1.6vw, 1.4375rem);
  animation-delay: 150ms;
}

/* Cakes page */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: center;
  padding-inline: var(--margin);
  padding-block-start: var(--section-gap);
}

.feature p {
  margin-block: 18px 30px;
  font-size: clamp(1.1875rem, 1.5vw, 1.375rem);
}

.feature .arch {
  aspect-ratio: 4 / 5;
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
}

.feature .collection-disk img {
  width: 76%;
}

.gallery-section {
  padding-inline: var(--margin);
  padding-block-start: var(--section-gap);
}

.gallery-section > h2 {
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 30px);
  margin: clamp(36px, 5vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}

.gallery li:nth-child(even) {
  margin-block-start: clamp(0px, 5vw, 80px);
}

.gallery-arch {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 3 / 4.2;
  padding: 10% 7% 12%;
  border-radius: 999px 999px 0 0;
  background: var(--blush);
}

.gallery li:nth-child(even) .gallery-arch {
  background: var(--blush-deep);
}

.gallery-arch img {
  width: 100%;
  transition: transform 600ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .gallery-arch:hover img {
    transform: translateY(-12px) scale(1.04);
  }
}

.gallery li {
  text-align: center;
}

.gallery-want {
  margin-block-start: 10px;
}

/* Page not found */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px var(--margin);
  background: var(--blush);
  text-align: center;
}

.not-found img {
  width: min(62vw, 300px);
  margin-block-end: 24px;
}

.not-found p {
  margin-block: 12px 28px;
  font-size: clamp(1.1875rem, 1.6vw, 1.4375rem);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 26px;
}

.video-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  margin-block-start: var(--section-gap);
}

.video-feature .arch {
  width: min(100%, 380px);
  margin-inline: auto;
  aspect-ratio: 4 / 5;
}

.video-feature video {
  object-position: 50% 88%;
  transform: scale(1.18);
  transform-origin: 50% 80%;
}

.video-feature p {
  margin-block-start: 14px;
}

/* Order page */

.order {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding-inline: var(--margin);
  padding-block-start: clamp(48px, 6vw, 96px);
}

.order-form {
  padding: clamp(24px, 4vw, 60px);
  background: var(--white);
}

.order-form > * + * {
  margin-block-start: 28px;
}

.field label,
.field legend {
  display: block;
  padding: 0;
  font-weight: 700;
}

.required-note {
  font-weight: 400;
}

.field input[type="text"],
.field input[type="date"],
.field textarea {
  display: block;
  width: 100%;
  margin-block-start: 4px;
  padding: 12px 2px;
  border: 0;
  border-block-end: 1.5px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--cocoa);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.4;
  transition: border-color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .field input[type="text"]:hover,
  .field input[type="date"]:hover,
  .field textarea:hover {
    border-color: var(--cocoa);
  }
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

fieldset.field {
  margin-inline: 0;
  margin-block-end: 0;
  padding: 0;
  border: 0;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-block-start: 10px;
}

.choices label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 16px;
  background: var(--blush-light);
  font-weight: 400;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .choices label:hover {
    background: var(--blush);
  }
}

.choices input {
  flex: none;
  width: 22px;
  height: 22px;
  accent-color: var(--cocoa);
}

.choices label:has(input:checked) {
  background: var(--blush-deep);
  font-weight: 700;
}

.field-error {
  margin-block-start: 6px;
  color: var(--error);
  font-weight: 700;
  animation: note-in 220ms var(--ease);
}

[aria-invalid="true"] {
  border-color: var(--error) !important;
}

.form-status {
  padding: 16px 20px;
  background: var(--blush);
  font-weight: 700;
  animation: note-in 220ms var(--ease);
}

@keyframes note-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.order-aside {
  padding: clamp(28px, 3vw, 48px);
  background: var(--blush);
}

.order-aside h2 {
  font-size: clamp(2.2rem, 3vw, 2.9rem);
}

.order-aside p {
  margin-block: 12px 24px;
}

.phone {
  display: inline-block;
  margin-block-start: 16px;
  padding-block: 6px;
  font-size: 1.25rem;
  font-weight: 700;
}

.instagram {
  display: inline-block;
  padding-block: 6px;
  font-weight: 500;
}

.closing-link {
  margin-block-start: 18px;
}

.order-aside img {
  width: 76%;
  margin-inline: auto;
  margin-block-start: 28px;
}

.statement {
  padding-inline: var(--margin);
  padding-block: clamp(56px, 7vw, 104px);
}

.statement h2 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
}

.statement h3 {
  margin-block-start: 28px;
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
}

.statement p,
.statement ul {
  margin-block-start: 10px;
  max-width: 68ch;
}

.statement ul {
  padding-inline-start: 22px;
}

/* Footer */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-inline: var(--margin);
  padding-block: 44px calc(96px + env(safe-area-inset-bottom, 0px));
  background: var(--blush-deep);
  text-align: center;
}

.site-footer img {
  width: clamp(150px, 15vw, 210px);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li a {
  display: inline-block;
  padding-block: 6px;
}

.site-footer p {
  font-size: 1rem;
}

/* Fixed controls */

.whatsapp-float,
.motion-toggle {
  position: fixed;
  inset-block-end: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.whatsapp-float {
  inset-inline-end: 18px;
  width: 58px;
  height: 58px;
  background: var(--cocoa);
  color: var(--blush-light);
  box-shadow: 0 8px 22px rgba(61, 42, 36, 0.28);
  transition: transform 160ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .whatsapp-float:hover {
    transform: translateY(-4px);
  }
}

.whatsapp-float:active,
.motion-toggle:active {
  transform: scale(0.95);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.motion-toggle {
  inset-inline-start: 18px;
  width: 44px;
  height: 44px;
  background: var(--blush-light);
  color: var(--cocoa);
  box-shadow: 0 4px 14px rgba(61, 42, 36, 0.18);
  transition: transform 160ms var(--ease);
}

.motion-toggle[hidden] {
  display: none;
}

.motion-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.motion-toggle .icon-play,
.motion-toggle[aria-pressed="true"] .icon-pause {
  display: none;
}

.motion-toggle[aria-pressed="true"] .icon-play {
  display: block;
}

/* Motion switched off by the visitor */

html.motion-off .stage-ring,
html.motion-off .ribbon-track {
  animation-play-state: paused;
}

/* Entrances are skipped, not frozen, so a page opened with motion off still shows its content */
html.motion-off .hero .line > span,
html.motion-off .hero-text > p,
html.motion-off .hero-actions,
html.motion-off .studio,
html.motion-off .stage-disk,
html.motion-off .stage-cake,
html.motion-off .page-title h1,
html.motion-off .page-title p,
html.motion-off .shira-bubble,
html.motion-off .bubble-typing span {
  animation: none;
}

html.motion-off .faq details::details-content,
html.motion-off .faq summary::after {
  transition: none;
}

html.js.motion-off [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Soft crossfade between pages */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

/* Tablet and phone */

@media (max-width: 860px) {
  .hero,
  .about,
  .feature,
  .order,
  .video-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  h1 {
    font-size: min(13.2vw, 4.5rem);
  }

  .good-to-know ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature .cake-facts {
    justify-content: center;
  }

  .hero {
    min-height: 0;
    text-align: center;
  }

  .hero-text > p {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .stage {
    width: min(100%, 460px);
  }

  .about-pictures {
    order: 2;
    max-width: 360px;
  }

  .about-small {
    inset-inline-end: -6%;
  }

  .about,
  .feature p,
  .feature h2,
  .video-feature > div:last-child {
    text-align: center;
  }

  .about p,
  .feature p,
  .video-feature p {
    margin-inline: auto;
  }

  .feature > div:first-child {
    text-align: center;
  }

  .collection:nth-child(2) {
    margin-block-start: 0;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .closing-cake {
    display: none;
  }

  .site-header img {
    width: 76px;
  }

  .site-nav a {
    padding-inline: 8px;
  }
}

@media (max-width: 620px) {
  .collections-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .choices {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after,
  .faq details::details-content {
    animation: none !important;
    transition: none !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .button,
  .whatsapp-float,
  .motion-toggle {
    border: 2px solid ButtonText;
  }
}

/* Only with or without JavaScript */

.js-only {
  display: none;
}

html.js .no-js-only {
  display: none;
}

/* The cake studio */

html.js .studio {
  display: grid;
  gap: 16px;
  animation: fade-up 900ms 350ms var(--ease) both;
}

.studio fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.studio legend,
.studio-words label {
  padding: 0;
  margin-block-end: 6px;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--blush-light);
  line-height: 1.2;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease);
}

.chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip:has(input:checked) {
  background: var(--cocoa);
  color: var(--blush-light);
}

.chip:has(input:focus-visible) {
  outline: 3px solid var(--cocoa);
  outline-offset: 3px;
}

.chip:active {
  transform: scale(0.96);
}

.swatch {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(61, 42, 36, 0.35);
}

.swatch-pink { background: #f28cb0; }
.swatch-blue { background: #a9c2e8; }
.swatch-mint { background: #bfe6db; }
.swatch-sage { background: #a7c08c; }

.studio-words {
  display: grid;
  max-width: 420px;
}

.studio-words input {
  padding: 10px 2px;
  border: 0;
  border-block-end: 1.5px solid var(--cocoa);
  border-radius: 0;
  background: transparent;
  color: var(--cocoa);
  font-family: var(--font-text);
  font-size: 1.25rem;
}

.hero-text .studio-price {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  animation: none;
}

.studio-send {
  justify-self: start;
}

.hero-text .studio-note {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  animation: none;
}

html.js .hero-actions {
  margin-block-start: 8px;
}

.hero {
  position: relative;
  overflow: clip;
}

.hero-text,
.stage {
  position: relative;
  z-index: 1;
}

.stage {
  container-type: inline-size;
}

html.js .studio-cake {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cake-body {
  transform-origin: 300px 300px;
  transition: transform 600ms var(--ease);
}

.cake-body.is-bento {
  transform: scale(0.76);
}

.cake-ring {
  transform-origin: 300px 300px;
}

.rosette {
  transform-box: fill-box;
  transform-origin: center;
}

.cake-bag-spot {
  transform: translate(300px, 66px);
}

.cake-bag {
  opacity: 0;
  transform-box: fill-box;
}

html.js .cake-letters {
  position: absolute;
  inset-block-start: 26%;
  inset-inline-start: 22%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  width: 56%;
  height: 48%;
  font-family: var(--font-display);
  font-size: var(--letters-size, 10cqw);
  line-height: 1.1;
  text-align: center;
  white-space: pre-wrap;
  pointer-events: none;
  transition: transform 600ms var(--ease);
}

.cake-letters span {
  display: inline-block;
}

.cake-letters.is-bento {
  transform: scale(0.76);
}

.dollop {
  z-index: 0;
  pointer-events: none;
}

/* The cake that opens as you scroll */

.layers {
  height: 240vh;
  height: 240svh;
  background: var(--blush-deep);
}

.layers-sticky {
  position: sticky;
  inset-block-start: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-inline: var(--margin);
  padding-block: 88px 40px;
  overflow: clip;
}

.layers-text p {
  margin-block: 16px 28px;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.6;
}

.layers-cake {
  --tilt: clamp(16px, 2.6vh, 26px);
  display: grid;
  width: min(100%, 500px);
  margin-inline: auto;
  padding-block-start: var(--tilt);
}

/* Each part is a little drum: a side, and an ellipse on top that shows once it lifts */
.layers-cake > div {
  position: relative;
  height: clamp(40px, 7vh, 68px);
  border-radius: 0 0 50% 50% / 0 0 var(--tilt) var(--tilt);
  background: var(--side);
  will-change: transform;
}

.layers-cake > div::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: calc(var(--tilt) * -1);
  height: calc(var(--tilt) * 2);
  border-radius: 50%;
  background: var(--face);
}

.layers-cake > :nth-child(1) { z-index: 7; }
.layers-cake > :nth-child(2) { z-index: 6; }
.layers-cake > :nth-child(3) { z-index: 5; }
.layers-cake > :nth-child(4) { z-index: 4; }
.layers-cake > :nth-child(5) { z-index: 3; }
.layers-cake > :nth-child(6) { z-index: 2; }
.layers-cake > :nth-child(7) { z-index: 1; }

.layers-cake .l-sponge {
  --side: #e9c489;
  --face: #f4dcae;
}

.layers-cake .l-cream {
  --side: #ffffff;
  --face: #fffaf3;
  height: clamp(16px, 2.6vh, 26px);
}

/* The iced top, with its ring of piping */
.layers-cake .l-piping {
  --side: #fff7f4;
  --face: #ffffff;
  height: clamp(20px, 3vh, 30px);
}

.layers-cake .l-piping::after {
  content: "";
  position: absolute;
  inset-inline: 1%;
  inset-block-start: calc(var(--tilt) * -1 + 1px);
  height: calc(var(--tilt) * 2 - 2px);
  border: clamp(9px, 1.5vh, 13px) dotted #f28cb0;
  border-radius: 50%;
}

/* The board underneath */
.layers-cake .l-base {
  --side: #c9a35c;
  --face: #e6c67f;
  height: 8px;
}

.layers-cake .l-base::after {
  content: none;
}

html.motion-off .layers {
  height: auto;
}

html.motion-off .layers-sticky {
  position: static;
  min-height: 0;
  padding-block: 72px;
}

/* A message from Shira */

.shira-bubble {
  position: fixed;
  inset-block-end: calc(88px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: 18px;
  z-index: 25;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: min(300px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(61, 42, 36, 0.2);
  animation: bubble-in 420ms var(--ease) both;
}

.shira-bubble[hidden] {
  display: none;
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.92);
  }
}

.bubble-typing {
  display: flex;
  gap: 4px;
  padding: 8px 4px;
}

.bubble-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  animation: typing-dot 900ms ease-in-out infinite;
}

.bubble-typing span:nth-child(2) { animation-delay: 150ms; }
.bubble-typing span:nth-child(3) { animation-delay: 300ms; }

@keyframes typing-dot {
  50% {
    transform: translateY(-5px);
  }
}

.shira-bubble.is-typing .bubble-text,
.shira-bubble.is-typing .bubble-close {
  display: none;
}

.shira-bubble:not(.is-typing) .bubble-typing {
  display: none;
}

.bubble-text {
  flex: 1;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.bubble-close {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--blush-light);
  color: var(--cocoa);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}

/* The studio keeps its send button on the first screen */

.hero h1 {
  font-size: clamp(3.1rem, 5vw, 5.25rem);
}

.hero-text > p {
  margin-block: 14px 18px;
}

html.js .studio {
  gap: 12px;
}

.studio-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.hero-text .studio-note {
  max-width: 46ch;
}

.hero {
  padding-block-start: 6px;
}

/* Cancellation terms stand out wherever they appear */

.policy {
  padding: 18px 20px;
  background: var(--blush-deep);
}

.policy h3 {
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
}

.policy ul {
  margin: 8px 0 0;
  padding-inline-start: 20px;
}

.policy li + li {
  margin-block-start: 6px;
}

.good-to-know .policy-line strong {
  display: inline;
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.5;
}

.policy-line {
  max-width: none;
  margin-block-start: clamp(28px, 4vw, 44px);
  padding: 16px 20px;
  background: var(--blush-deep);
  line-height: 1.5;
}

.good-to-know ul {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

@media (max-width: 860px) {
  .layers-sticky {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 28px;
    text-align: center;
  }

  .layers-text p {
    margin-inline: auto;
  }

  .studio legend,
  .studio-words label {
    text-align: center;
    width: 100%;
  }

  .chips {
    justify-content: center;
  }

  .studio-words {
    margin-inline: auto;
    width: 100%;
  }

  .studio-words input {
    text-align: center;
  }

  .studio-send {
    justify-self: stretch;
    text-align: center;
  }

  .hero h1 {
    font-size: min(13.2vw, 4.5rem);
  }

  html.js .hero-text {
    display: contents;
  }

  html.js .hero h1 {
    order: -2;
  }

  html.js .hero .stage {
    order: -1;
  }

  .studio-cta {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .layers {
    height: auto;
  }

  html.js .layers-sticky {
    position: static;
    min-height: 0;
  }
}