/* ==========================================================================
   Cakes & Shapes — holding page
   Palette and type are drawn from the brand logo.
   ========================================================================== */

:root{
  --ground:      #FFF4EF;   /* blush cream ground          */
  --ground-warm: #FFE9E1;   /* warm glow behind the logo   */
  --ink:         #45200F;   /* logo chocolate              */
  --ink-soft:    #8C6354;   /* muted chocolate, body copy  */
  --pink:        #F87C87;   /* logo pink                   */
  --pink-soft:   #FBC3C6;
  --cherry:      #D01730;   /* logo cherry                 */
  --line:        #F0D9D0;

  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body: "Karla", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

html { height: 100%; box-sizing: border-box; }

body{
  height: 100%;
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; }

.page{
  position: relative;
  min-height: 100%;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding-block: 44px;
  padding-inline: 20px;
  background:
    radial-gradient(70% 55% at 50% 22%, var(--ground-warm) 0%, rgba(255,233,225,0) 70%),
    var(--ground);
  overflow: hidden;
}

/* --- sprinkles ----------------------------------------------------------- */

.sprinkles{
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.sprinkles i{
  position: absolute;
  display: block;
  width: 34px;
  height: 7px;
  border-radius: 99px;
  background: var(--pink);
  opacity: .5;
}
.sprinkles i:nth-child(1){ top: 9%;  left: 7%;  transform: rotate(-24deg); background: var(--pink); }
.sprinkles i:nth-child(2){ top: 19%; left: 88%; transform: rotate(38deg);  background: var(--cherry); opacity: .32; }
.sprinkles i:nth-child(3){ top: 45%; left: 3%;  transform: rotate(62deg);  background: var(--ink); opacity: .16; }
.sprinkles i:nth-child(4){ top: 72%; left: 91%; transform: rotate(-15deg); background: var(--pink); }
.sprinkles i:nth-child(5){ top: 86%; left: 13%; transform: rotate(18deg);  background: var(--cherry); opacity: .3; }
.sprinkles i:nth-child(6){ top: 33%; left: 94%; transform: rotate(-52deg); background: var(--ink); opacity: .14; }
.sprinkles i:nth-child(7){ top: 66%; left: 1%;  transform: rotate(-8deg);  background: var(--pink); opacity: .38; }
.sprinkles i:nth-child(8){ top: 91%; left: 76%; transform: rotate(48deg);  background: var(--pink); opacity: .45; }

/* --- content ------------------------------------------------------------- */

.card{
  position: relative;
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}

.logo{
  width: clamp(196px, 48vw, 300px);
  height: auto;
  animation: rise .9s cubic-bezier(.2,.75,.3,1) both;
}

h1{
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.05rem, 7.2vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink);
  animation: rise .9s .1s cubic-bezier(.2,.75,.3,1) both;
}
h1 em{
  font-style: italic;
  color: var(--pink);
}

.blurb{
  margin: 0;
  max-width: 44ch;
  font-size: clamp(1rem, 2.4vw, 1.08rem);
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
  animation: rise .9s .2s cubic-bezier(.2,.75,.3,1) both;
}

.kicker{
  margin: 0;
  max-width: 30ch;
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.02rem, 2.8vw, 1.22rem);
  line-height: 1.5;
  text-wrap: balance;
  color: var(--ink);
  animation: rise .9s .3s cubic-bezier(.2,.75,.3,1) both;
}

/* --- bake stages --------------------------------------------------------- */

.bake{
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  animation: rise .9s .4s cubic-bezier(.2,.75,.3,1) both;
}
.bake li{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: .5;
}
.bake .dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.bake li.done{ opacity: .75; }
.bake li.done .dot{ background: var(--pink-soft); }
.bake li.now{
  opacity: 1;
  color: var(--ink);
}
.bake li.now .dot{
  background: var(--cherry);
  box-shadow: 0 0 0 0 rgba(208,23,48,.45);
  animation: bake 2.4s ease-out infinite;
}

footer{
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  width: min(430px, 92%);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: .72;
  animation: rise .9s .5s cubic-bezier(.2,.75,.3,1) both;
}

/* --- motion -------------------------------------------------------------- */

@keyframes rise{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: none; }
}
@keyframes bake{
  0%   { box-shadow: 0 0 0 0 rgba(208,23,48,.45); }
  70%  { box-shadow: 0 0 0 9px rgba(208,23,48,0); }
  100% { box-shadow: 0 0 0 0 rgba(208,23,48,0); }
}

@media (prefers-reduced-motion: reduce){
  .logo, h1, .blurb, .kicker, .bake, footer{ animation: none; }
  .bake li.now .dot{ animation: none; }
}

/* --- narrow screens ------------------------------------------------------ */

@media (max-width: 560px){
  .sprinkles i{ width: 26px; height: 6px; opacity: .34; }
  .sprinkles i:nth-child(3),
  .sprinkles i:nth-child(7){ display: none; }
}

@media (max-width: 420px){
  .bake{ gap: 10px 16px; }
  .bake li{ font-size: .66rem; letter-spacing: .1em; }
}
