:root {
  --blush: #fdf1ef; --blush-2: #f8dcd8; --paper: #fffaf7; --cocoa: #2a0d0c; --maroon: #4a1012; --maroon-2: #6b1a1d;
  --ink: #2a1614; --muted: #5e4542; --caramel: #e9b46c; --caramel-2: #c98a3a; --line: #ecd3cf; --green: #11753f;
  --r: 20px; --shadow: 0 24px 50px -28px rgba(42, 13, 12, .55);
  --head: 'Corben', Georgia, serif; --body: 'Lexend', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blush); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--maroon-2); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; color: var(--maroon); line-height: 1.06; margin: 0 0 .4em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.6rem, 10vw, 5.6rem); }
h2 { font-size: clamp(2rem, 6vw, 3.4rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--caramel-2); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.kicker { display: inline-block; font: 600 .82rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--maroon-2); margin-bottom: 1em; padding: 7px 12px; border: 1.5px solid currentColor; border-radius: 99px; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.small { font-size: .88rem; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section { padding: 72px 0; }

/* demo strip + header */
.demo { background: var(--cocoa); color: #f6dcd6; font-size: .84rem; text-align: center; padding: 7px 16px; }
header.top { position: sticky; top: 0; z-index: 40; background: rgba(253, 241, 239, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--maroon); font: 700 1.05rem/1.1 var(--head); }
.brand img { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); }
.brand span small { display: block; font: 500 .74rem/1.3 var(--body); color: var(--muted); letter-spacing: .04em; }
.links { display: none; gap: 2px; margin-left: auto; }
.links a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 10px 15px; border-radius: 99px; }
.links a:hover, .links a[aria-current] { background: var(--blush-2); color: var(--maroon); }
.cart-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 99px; border: 0; background: var(--maroon); color: #fff; font: 600 .95rem var(--body); cursor: pointer; }
.cart-btn .n { background: var(--caramel); color: var(--cocoa); border-radius: 99px; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: .82rem; font-weight: 700; }
.cart-btn.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.14) rotate(-3deg); } }
.menu-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); color: var(--maroon); font-size: 1.1rem; cursor: pointer; }
.mnav { display: none; padding: 0 16px 14px; }
.mnav.open { display: grid; }
.mnav a { padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
@media (min-width: 900px) { .links { display: flex; } .cart-btn { margin-left: 8px; } .menu-btn, .mnav { display: none !important; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 99px; border: 0; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--maroon); color: #fff; box-shadow: 0 14px 26px -16px var(--maroon); }
.btn-main:hover { background: var(--cocoa); }
.btn-line { background: transparent; color: var(--maroon); border: 2px solid var(--maroon); }
.btn-line:hover { background: var(--maroon); color: #fff; }
.btn-caramel { background: var(--caramel); color: var(--cocoa); }
.btn-caramel:hover { background: #f2c585; }
.btn-wa { background: var(--green); color: #fff; width: 100%; }
.btn-wa:hover { background: #0c5e31; }

/* hero */
.hero { padding: 28px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 10px; align-items: center; }
.hero h1 .swash { display: block; color: var(--maroon-2); font-style: italic; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 18px; }
.stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; margin-inline: auto; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #fff6f2 0, var(--blush-2) 58%, transparent 70%); }
.stage canvas, .stage img.fallback { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.stage img.fallback { object-fit: cover; border-radius: 50%; padding: 12%; }
.stage .tag { position: absolute; font: 600 .82rem/1.2 var(--body); background: var(--paper); color: var(--maroon); padding: 8px 12px; border-radius: 99px; box-shadow: var(--shadow); white-space: nowrap; }
.stage .t1 { left: 2%; top: 18%; } .stage .t2 { right: 0; top: 46%; } .stage .t3 { left: 10%; bottom: 10%; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; font-size: .95rem; color: var(--muted); }
.facts li::before { content: '\2726'; color: var(--caramel-2); margin-right: 6px; }
@media (min-width: 900px) { .hero { padding: 56px 0 72px; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; } }

/* marquee */
.ribbon { background: var(--maroon); color: #fbe3dc; overflow: hidden; padding: 14px 0; transform: rotate(-1.5deg); margin: 10px -10px; }
.ribbon .track { display: flex; gap: 40px; width: max-content; animation: slide 28s linear infinite; font: 700 1.25rem/1 var(--head); }
.ribbon span::after { content: '\25CF'; color: var(--caramel); margin-left: 40px; font-size: .7em; vertical-align: middle; }
@keyframes slide { to { transform: translateX(-50%); } }

/* section heads */
.head { display: grid; gap: 6px; margin-bottom: 30px; }
@media (min-width: 900px) { .head.split { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; } }

/* product cards */
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: none; }
.chips-row button { flex: none; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 500 .95rem var(--body); cursor: pointer; }
.chips-row button[aria-pressed="true"] { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transform-style: preserve-3d; transition: transform .25s ease; will-change: transform; }
.card .ph { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--blush-2); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .ph img { transform: scale(1.05); }
.card .badge { position: absolute; left: 12px; top: 12px; background: var(--caramel); color: var(--cocoa); font: 600 .78rem/1 var(--body); padding: 7px 10px; border-radius: 99px; }
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.sizes button { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--blush); color: var(--ink); font: 500 .9rem var(--body); cursor: pointer; }
.sizes button[aria-pressed="true"] { border-color: var(--maroon); background: var(--maroon); color: #fff; }
.card input[type=text] { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 12px; font: 400 .95rem var(--body); background: #fff; color: var(--ink); width: 100%; }
.buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.price { font: 700 1.35rem/1 var(--head); color: var(--maroon); }
.add { min-height: 46px; padding: 0 20px; border-radius: 99px; border: 0; background: var(--maroon); color: #fff; font: 600 .95rem var(--body); cursor: pointer; transition: background .2s, transform .15s; }
.add:hover { background: var(--cocoa); }
.add.ok { background: var(--green); }

/* dark band */
.dark { background: var(--cocoa); color: #f6e2dd; }
.dark h2, .dark h3 { color: #fff3ee; }
.dark .lede, .dark .small { color: #e6c9c2; }
.dark .kicker { color: var(--caramel); }
.steps { display: grid; gap: 16px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); padding: 22px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 700 2.2rem/1 var(--head); color: var(--caramel); margin-bottom: 10px; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: #e6c9c2; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* gallery: tilted polaroids */
.wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; perspective: 900px; }
.wall figure { margin: 0; background: #fff; padding: 8px 8px 12px; border-radius: 10px; box-shadow: var(--shadow); transition: transform .35s ease; }
.wall figure:nth-child(odd) { transform: rotate(-2deg); } .wall figure:nth-child(even) { transform: rotate(2deg) translateY(14px); }
.wall figure:hover { transform: rotate(0) scale(1.03); }
.wall img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 6px; }
.wall figcaption { font-size: .85rem; color: var(--muted); padding-top: 8px; text-align: center; }
@media (min-width: 800px) { .wall { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

/* about */
.about-grid { display: grid; gap: 28px; align-items: center; }
.about-grid img { border-radius: var(--r); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.bakers { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.bakers span { background: var(--paper); border: 1.5px solid var(--line); border-radius: 99px; padding: 10px 16px; font-weight: 500; }
@media (min-width: 900px) { .about-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }

/* info */
.info { display: grid; gap: 16px; }
.info .box { background: var(--paper); border-radius: var(--r); padding: 22px; border: 1.5px solid var(--line); }
.info .box h3 { margin-bottom: 8px; }
.info .box p { margin: 0 0 .5em; color: var(--muted); }
@media (min-width: 800px) { .info { grid-template-columns: repeat(3, 1fr); } }

/* page hero */
.phero { padding: 44px 0 18px; }
.phero h1 { font-size: clamp(2.4rem, 8vw, 4.4rem); }

/* gifting */
.gift-grid { display: grid; gap: 24px; align-items: center; }
.gift-grid img { border-radius: var(--r); box-shadow: var(--shadow); width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 900px) { .gift-grid { grid-template-columns: 1fr 1fr; gap: 48px; } .gift-grid.rev > :first-child { order: 2; } }
.form { display: grid; gap: 12px; background: var(--paper); padding: 22px; border-radius: var(--r); border: 1.5px solid var(--line); }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.form input, .form select, .form textarea, .drawer input, .drawer select, .drawer textarea { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); padding: 10px 12px; font: 400 1rem var(--body); background: #fff; color: var(--ink); width: 100%; }
.form textarea, .drawer textarea { min-height: 76px; resize: vertical; }

/* cart bar + drawer */
.cartbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; display: none; align-items: center; justify-content: space-between; gap: 12px; background: var(--cocoa); color: #fff; padding: 10px 10px 10px 18px; border-radius: 99px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); max-width: 560px; margin-inline: auto; }
.cartbar.show { display: flex; animation: up .35s ease; }
.cartbar b { font-family: var(--head); }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.scrim { position: fixed; inset: 0; background: rgba(42, 13, 12, .5); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); z-index: 61; transform: translateX(105%); transition: transform .3s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 1.6rem; margin: 0; }
.drawer .x { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--maroon); }
.drawer .scroll { overflow-y: auto; padding: 14px 18px; flex: 1; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.line img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; }
.line .nm { font-weight: 600; line-height: 1.3; }
.line .meta { font-size: .85rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--maroon); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.addons { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.addons button { min-height: 44px; padding: 0 14px; border-radius: 99px; border: 1.5px dashed var(--caramel-2); background: #fff8ee; color: var(--ink); font: 500 .9rem var(--body); cursor: pointer; }
.drawer .fields { display: grid; gap: 10px; margin-top: 10px; }
.drawer .fields label { display: grid; gap: 4px; font-size: .9rem; font-weight: 500; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 500 .95rem var(--body); cursor: pointer; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.drawer footer { padding: 14px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.total { display: flex; justify-content: space-between; font: 700 1.3rem var(--head); color: var(--maroon); }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }

/* footer */
footer.site { background: var(--cocoa); color: #e6c9c2; padding: 54px 0 100px; }
footer.site h2 { color: #fff3ee; font-size: clamp(2rem, 7vw, 3.6rem); }
footer.site a { color: #fbe3dc; }
.foot-grid { display: grid; gap: 22px; margin-top: 24px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.credit { margin-top: 30px; font-size: .88rem; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .ribbon .track { animation: none; } * { scroll-behavior: auto !important; } }
