* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --espresso: #30180f;
  --ivory: #fff2e6;
  --line: #896956;
  --filled: linear-gradient(165deg, #8b4625, #3e1d0e 82%);
}
body {
  margin: 0;
  color: var(--espresso);
  background: radial-gradient(ellipse at 50% 46%, #fff7ee 10%, #ffebdc 53%, #e6c9b7 100%);
  font: 16px Arial, sans-serif;
}
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #995c23; outline-offset: 4px; }
header { text-align: center; padding: 12px 12px 0; }
.brand { display: inline-block; width: 120px; }
.brand img { display: block; width: 100%; }
nav, .actions, .contact-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px clamp(7px, 2.8vw, 26px); }
nav { margin-top: 16px; }
.btn, button, nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px clamp(12px, 2.5vw, 24px);
  border: 1px solid #5b3a27;
  border-radius: 999px;
  background: var(--filled);
  color: #fff8f1;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.outline, nav a { background: #f9dfca80; color: var(--espresso); }
nav a { min-height: 34px; font-size: clamp(.79rem, 2.4vw, 1rem); }
.btn:hover, button:hover, nav a:hover { box-shadow: 0 2px 8px #5b3a2750; }
nav [aria-current] { background: var(--filled); color: white; }
.hero { text-align: center; padding: 0 12px; margin: clamp(28px, 5vw, 49px) auto 0; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3rem); line-height: 1.07; margin: 0 0 10px; }
.hero p { margin: 0; font-size: clamp(1rem, 2.7vw, 1.45rem); }
.scene { position: relative; isolation: isolate; width: min(100%, 680px); aspect-ratio: 680 / 560; margin: 8px auto 7px; }
.cake-board {
  position: absolute;
  inset: 53% 2% 1%;
  background: linear-gradient(#cec0b7, #eee3dc 61%, #fff6ef 95%, #b5a197 96%, #cbb9ae);
  clip-path: polygon(13% 0, 87% 0, 99.7% 94%, 100% 97%, 99% 100%, 1% 100%, 0 97%, .3% 94%);
}
.scene::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 7%;
  background: radial-gradient(ellipse, #5a362957, transparent 73%);
}
.cake { position: absolute; display: block; }
.cake {
  left: 14%;
  bottom: 21%;
  width: 72%;
  z-index: 1;
  clip-path: polygon(14.8% 0, 85.3% 0, 85.3% 65%, 84.4% 81%, 82.5% 86%, 78% 89%, 69% 92%, 58% 93.6%, 48% 94%, 38% 93.4%, 28% 91.8%, 21% 89.3%, 17% 86.4%, 15.6% 83%, 14.8% 64%);
}
.board-action {
  position: absolute;
  bottom: 7%;
  z-index: 2;
  background-size: 300% 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 3px 2px #41281950);
}
.packing {
  left: 10%;
  width: 16%;
  aspect-ratio: 420 / 495;
  background-image: url("assets/cake-packing-poses.png");
  animation: board-poses 7s step-end infinite;
}
.tasting {
  right: 12%;
  width: 10.5%;
  aspect-ratio: 319 / 508;
  background-image: url("assets/cake-tasting-poses.png");
  animation: board-poses 6.4s -1.2s step-end infinite;
}
@keyframes board-poses {
  0%, 100% { background-position: 0 0; }
  30% { background-position: 50% 0; }
  56%, 92% { background-position: 100% 0; }
}
.scene.paused .board-action { animation-play-state: paused; }
.board-action.has-motion { animation: none; background-image: none; }
.board-action canvas { display: block; width: 100%; height: 100%; }
.animation-toggle {
  position: absolute;
  top: 2%;
  right: 2%;
  min-height: 30px;
  padding: 4px 10px;
  font-size: .75rem;
}
@media (prefers-reduced-motion: reduce) {
  .board-action { animation: none; background-position: 50% 0; }
  .animation-toggle { display: none; }
}
.hero .actions { gap: 8px clamp(8px, 3.5vw, 32px); }
.hero .actions .btn, .custom .btn { font-size: clamp(.84rem, 2.6vw, 1.16rem); min-height: 44px; }
.hero .actions .btn:first-child { font-family: Georgia, serif; }
.order-link svg, .contact-links svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.order-link svg { margin-right: 6px; }
.hero .delivery { margin: 16px 0 0; font-size: clamp(.86rem, 2.4vw, 1.1rem); }
.delivery svg { width: 16px; height: 20px; vertical-align: -4px; margin-right: 4px; fill: currentColor; }
#landing { text-align: center; }
.oc, .custom { width: min(100% - 28px, 584px); margin: 12px auto 0; }
.oc { max-width: 490px; }
.oc .ruled { margin-bottom: 16px; font-size: clamp(1.12rem, 3vw, 1.52rem); }
.oc > .btn { min-height: 34px; padding: 5px 16px; font-size: .9rem; }
.ruled { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 28px); font-size: clamp(1.32rem, 3.4vw, 1.9rem); font-style: italic; margin: 0 0 24px; }
.ruled::before, .ruled::after { content: ''; height: 1px; flex: 1; background: #785844; }
.tiles { display: grid; gap: 10px; margin-bottom: 16px; }
.tiles a { display: grid; grid-template-columns: 44% minmax(0, 1fr) auto; align-items: center; gap: clamp(10px, 3.5vw, 32px); text-align: left; border-radius: 19px; background: #fff5eb63; box-shadow: 1px 2px 3px #6d452b2e; text-decoration: none; font-size: clamp(.95rem, 3vw, 1.4rem); font-weight: 700; padding-right: clamp(12px, 4vw, 26px); }
.tiles a:hover { background: #fff8f2; }
.tiles img { width: 100%; aspect-ratio: 2.68; object-fit: cover; border-radius: inherit; display: block; }
.tiles b { font-size: 1.4em; font-weight: 400; }
.custom { max-width: 420px; margin-top: 19px; }
.custom .ruled { margin-bottom: 9px; font-size: clamp(1.13rem, 3vw, 1.48rem); }
.custom .btn { min-height: 36px; padding: 5px 16px; font-size: .92rem; }
.cupcake-banner { display: block; width: min(88%, 680px); margin: 7px auto 0; mask-image: linear-gradient(90deg, transparent, black 12% 88%, transparent); }
.collection { width: min(100% - 32px, 1100px); margin: 38px auto; }
.collection h1 { font-size: clamp(2rem, 5vw, 3rem); text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
article { border-radius: 16px; background: #fff8f1ba; padding: 10px 10px 16px; }
article img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
article h3 { font: 1.16rem Georgia, serif; margin: 12px 0 6px; }
article p { margin: 0 0 10px; font-weight: 700; }
footer { background: #3c1e10; color: #fff7ef; text-align: center; padding: 12px 14px; }
.contact-links { font-size: clamp(.88rem, 2.6vw, 1.1rem); gap: 10px 20px; }
.contact-links a { text-underline-offset: 4px; }
.contact-links a:not(:hover) { text-decoration: none; }
.contact-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; }
.contact-links .social-link { padding: 4px 11px; border: 1px solid #fff7ef85; border-radius: 999px; text-decoration: none; }
.contact-links .social-link:hover { background: #fff7ef20; }
.contact-intro { margin: 0 0 14px; }
.contact-intro h2 { margin: 0 0 8px; }
dialog { width: min(90%, 460px); border: 0; border-radius: 16px; background: #fff7ef; color: var(--espresso); }
dialog::backdrop { background: #30180fa8; }
dialog img { display: block; width: 100%; max-height: 45vh; object-fit: contain; }
dialog .alternate { margin-top: 8px; }
@media (max-width: 520px) {
  .brand { width: 92px; }
  nav { margin-top: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (min-width: 900px) {
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 96px, 1280px);
    margin: auto;
    padding: 18px 0;
    border-bottom: 1px solid #89695645;
  }
  .brand { width: 80px; }
  nav { margin: 0; }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    grid-template-rows: 1fr repeat(4, auto) 1fr;
    align-items: center;
    gap: 16px 28px;
    width: min(100% - 96px, 1280px);
    margin: 22px auto 32px;
    padding: 0;
    text-align: left;
  }
  .hero h1 { grid-area: 2 / 1; margin: 0; font-size: clamp(3.1rem, 5vw, 5rem); }
  .hero > p:first-of-type { grid-area: 3 / 1; }
  .hero .actions { grid-area: 4 / 1; justify-content: flex-start; gap: 10px; }
  .hero .delivery { grid-area: 5 / 1; margin: 0; }
  .hero .scene { grid-area: 1 / 2 / 7 / 3; margin: 0; }
  .oc { width: min(100% - 96px, 760px); max-width: none; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .tiles a { grid-template-columns: 1fr auto; gap: 6px 10px; padding: 0 0 9px; font-size: .98rem; }
  .tiles img { grid-column: 1 / -1; aspect-ratio: 3.15; }
  .tiles span { padding-left: 10px; }
  .tiles b { padding-right: 10px; }
}
