/* Buttercrumb, sample cakes and bakes site by Solo Trace. Own palette and type: off-white, beige, cocoa, caramel, soft skin-tone neutrals; Fraunces + Manrope. Editorial layout with arch-framed photos. */
:root {
  --cream: #FAF6EF; --beige: #EEE3D3; --sand: #E7D1C0; --blush: #D9B7A3; --cocoa: #4A2C22; --cocoa-deep: #33201A; --caramel: #9B5A1C; --caramel-soft: #C8872F; --muted: #6E5A50; --line: #DCCDBC; --white: #FFFFFF;
  --head: "Fraunces", "Georgia", serif; --body: "Manrope", "Segoe UI", Arial, sans-serif;
  --r: 20px; --max: 76rem; --gutter: clamp(1rem, 4vw, 2.5rem);
  --shadow: 0 24px 50px -28px rgba(74, 44, 34, 0.45);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.03rem; line-height: 1.65; color: var(--cocoa); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -0.01em; color: var(--cocoa); font-variation-settings: "SOFT" 60, "opsz" 72; }
h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
a { color: inherit; }
strong { font-weight: 700; }
em.accent { font-style: italic; color: var(--caramel); }
:focus-visible { outline: 3px solid var(--caramel-soft); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--caramel); margin-bottom: 0.8rem; }
.lead { font-size: 1.15rem; max-width: 36rem; color: var(--muted); }
.muted { color: var(--muted); }
.price { font-family: var(--head); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.1rem; padding: 0.75rem 1.6rem; font: inherit; font-weight: 700; font-size: 0.98rem; text-decoration: none; border-radius: 999px; border: 2px solid var(--cocoa); background: var(--cocoa); color: var(--cream); cursor: pointer; transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.btn:hover { transform: translateY(-2px); background: var(--cocoa-deep); border-color: var(--cocoa-deep); box-shadow: var(--shadow); }
.btn--caramel { background: var(--caramel); border-color: var(--caramel); }
.btn--caramel:hover { background: #7F4914; border-color: #7F4914; }
.btn--line { background: transparent; color: var(--cocoa); }
.btn--line:hover { background: var(--beige); color: var(--cocoa); }
.btn--small { min-height: 2.75rem; padding: 0.45rem 1.1rem; font-size: 0.9rem; }

/* Sample banner */
.banner { background: var(--cocoa); color: var(--cream); font-size: 0.8rem; position: relative; z-index: 5; }
.banner .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem; min-height: 2.5rem; padding-block: 0.3rem; }
.banner a { color: var(--cream); display: inline-flex; align-items: center; min-height: 2.75rem; }
.banner__links { display: flex; align-items: center; gap: 1.25rem; }
.lang { display: inline-flex; gap: 0.2rem; }
.lang a { text-decoration: none; padding-inline: 0.5rem; min-width: 2.75rem; justify-content: center; opacity: 0.7; }
.lang a[aria-current="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 0.25em; }
[hidden] { display: none !important; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(250, 246, 239, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { font-family: var(--head); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; text-decoration: none; color: var(--cocoa); display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; white-space: nowrap; font-variation-settings: "SOFT" 100; }
.brand i { width: 1.1rem; height: 1.1rem; border-radius: 50% 50% 0 0; background: var(--caramel); position: relative; }
.brand i::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.3rem; height: 0.3rem; background: var(--cocoa); border-radius: 0 0 3px 3px; }
.nav { display: none; gap: 0.1rem; }
.nav a { text-decoration: none; font-weight: 700; font-size: 0.92rem; min-height: 2.75rem; display: inline-flex; align-items: center; padding: 0 0.85rem; border-radius: 999px; color: var(--cocoa); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--beige); }
@media (min-width: 960px) { .nav { display: flex; } }
.site-header .btn--small { white-space: nowrap; }
@media (max-width: 479.98px) { .brand { font-size: 1.3rem; } .site-header .btn--small { font-size: 0.82rem; padding-inline: 0.85rem; } }

/* Hero: centred headline over a wide arch photo band */
.hero { position: relative; padding-block: clamp(2rem, 4vw, 3rem) 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: var(--beige); z-index: -1; }
.hero__copy { text-align: center; max-width: 46rem; margin-inline: auto; display: grid; gap: 1.2rem; justify-items: center; }
.hero__copy .lead { max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.hero__media { margin-top: clamp(1.5rem, 3.5vw, 2.5rem); display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: end; }
@media (min-width: 760px) { .hero__media { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: 1.5rem; } }
.arch { overflow: hidden; border-radius: 999px 999px 0 0; position: relative; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--main { aspect-ratio: 4 / 3; }
@media (min-width: 760px) { .arch--main { aspect-ratio: 5 / 4; } }
.arch--side { aspect-ratio: 3 / 4; display: none; }
@media (min-width: 760px) { .arch--side { display: block; } }
.arch--side.arch--low { aspect-ratio: 1; }
.arch figcaption { position: absolute; left: 1rem; bottom: 1rem; background: var(--cream); color: var(--cocoa); font-weight: 700; font-size: 0.82rem; padding: 0.4rem 0.8rem; border-radius: 999px; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); scroll-margin-top: 5rem; }
.section--beige { background: var(--beige); }
.section--sand { background: var(--sand); }
.section--beige .eyebrow, .section--sand .eyebrow, .section--beige em.accent { color: #7A4514; }
.section__head { display: grid; gap: 0.5rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section__head--row { align-items: end; }
@media (min-width: 760px) { .section__head--row { grid-template-columns: 1fr auto; } }
.section__head p { color: var(--muted); max-width: 42rem; }

/* Configurator */
.builder { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .builder { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 2.5rem; align-items: start; } }
.builder__form { display: grid; gap: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.1rem, 3vw, 1.75rem); }
.builder fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.builder legend, .builder label.lbl { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--caramel); padding: 0; margin-bottom: 0.2rem; }
.opts { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0.4rem 0.95rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream); font-weight: 600; font-size: 0.92rem; transition: background 160ms ease, border-color 160ms ease, color 160ms ease; }
.opt span small { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.opt input:checked + span { background: var(--cocoa); border-color: var(--cocoa); color: var(--cream); }
.opt input:checked + span small { color: var(--sand); }
.opt input:focus-visible + span { outline: 3px solid var(--caramel-soft); outline-offset: 2px; }
.opt i { width: 0.9rem; height: 0.9rem; border-radius: 50%; border: 1px solid rgba(74, 44, 34, 0.25); }
.builder input[type="text"] { width: 100%; min-height: 3rem; padding: 0.6rem 0.9rem; font: inherit; font-size: 1rem; color: var(--cocoa); background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; }
.builder input[type="text"]:focus-visible { border-color: var(--caramel); outline-offset: 0; }
.builder .count { font-size: 0.8rem; color: var(--muted); text-align: right; }
.estimate { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.estimate .price { font-size: 2rem; color: var(--cocoa); }
.estimate small { color: var(--muted); font-size: 0.85rem; display: block; }

/* Live cake preview, CSS only */
.preview { position: sticky; top: 5.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.1rem, 3vw, 1.75rem); display: grid; gap: 1rem; }
.stage { aspect-ratio: 1; max-height: 24rem; margin-inline: auto; width: 100%; display: grid; place-items: end center; position: relative; background: radial-gradient(ellipse at 50% 85%, var(--beige), transparent 60%); border-radius: 16px; overflow: hidden; }
.stage::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 7%; height: 1.6rem; border-radius: 50%; background: rgba(74, 44, 34, 0.12); filter: blur(6px); }
.cake { position: relative; display: grid; justify-items: center; align-content: end; gap: 0; margin-bottom: 9%; transition: transform 300ms ease; }
.plate { width: var(--plate, 18rem); height: 1.1rem; border-radius: 50%; background: linear-gradient(180deg, #fff, #e9e1d5); box-shadow: 0 3px 0 #d8cbbb; margin-top: -0.5rem; }
.tier { position: relative; height: var(--h, 4rem); width: var(--w, 10rem); border-radius: 10px 10px 8px 8px; background: var(--frost, #F2D7CF); box-shadow: inset 0 -0.55rem 0 rgba(0, 0, 0, 0.06), inset 0 0.35rem 0 rgba(255, 255, 255, 0.35); transition: width 300ms ease, height 300ms ease, background 300ms ease; }
.tier::before { content: ""; position: absolute; left: 0; right: 0; top: -0.45rem; height: 1rem; border-radius: 50%; background: var(--frost, #F2D7CF); filter: brightness(1.07); }
.tier::after { content: ""; position: absolute; left: 8%; right: 8%; top: 46%; height: 0.5rem; border-radius: 4px; background: var(--fill, #F6C1C8); box-shadow: 0 0.9rem 0 var(--sponge, #F3E2B5); opacity: 0.95; }
.tier--2, .tier--3 { margin-bottom: -0.35rem; }
.tier[hidden] { display: none !important; }
.drip { position: absolute; left: 0; right: 0; top: 0; height: 0.9rem; border-radius: 10px 10px 0 0; background: var(--drip, transparent); }
.drip::after { content: ""; position: absolute; left: 20%; top: 100%; width: 0.6rem; height: 1rem; border-radius: 0 0 6px 6px; background: var(--drip, transparent); box-shadow: 3rem 0.3rem 0 var(--drip, transparent), 6.5rem -0.2rem 0 var(--drip, transparent); }
.topper { position: absolute; top: -1.9rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.3rem; }
.topper i { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--berry, #B03A48); box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.18); }
.plaque { position: absolute; left: 50%; bottom: 0.55rem; transform: translateX(-50%); max-width: 92%; font-family: var(--head); font-style: italic; font-size: 0.78rem; color: var(--cocoa); background: rgba(255, 255, 255, 0.85); padding: 0.15rem 0.6rem; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plaque:empty { display: none; }
.preview__sum { display: grid; gap: 0.25rem; font-size: 0.92rem; color: var(--muted); }
.preview__sum strong { color: var(--cocoa); }

/* Pre-order form */
.form { display: grid; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.1rem, 3vw, 1.75rem); }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--caramel); }
.form input, .form select, .form textarea { width: 100%; min-height: 3rem; padding: 0.6rem 0.9rem; font: inherit; font-size: 1rem; color: var(--cocoa); background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; }
.form textarea { min-height: 5.5rem; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { border-color: var(--caramel); outline-offset: 0; }
.form__check { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 500; font-size: 0.92rem; letter-spacing: 0; text-transform: none; color: var(--cocoa); }
.form__check input { width: 1.3rem; height: 1.3rem; min-height: 0; margin-top: 0.15rem; accent-color: var(--cocoa); }
.form__note { font-size: 0.85rem; color: var(--muted); }
.thanks { background: var(--beige); border-radius: var(--r); padding: 1.5rem; display: grid; gap: 0.5rem; }

/* Gallery: horizontal scroll, filter, CSS-only tilt */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips button { font: inherit; font-weight: 700; font-size: 0.9rem; min-height: 2.75rem; padding: 0.4rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--cocoa); cursor: pointer; transition: background 160ms ease, border-color 160ms ease, color 160ms ease; }
.chips button:hover { border-color: var(--cocoa); }
.chips button[aria-pressed="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--cream); }
.rail { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1rem 0 1.5rem; scrollbar-width: thin; scroll-padding-inline: var(--gutter); perspective: 1200px; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 3px; }
.card { flex: 0 0 min(17rem, 72vw); scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: auto 1fr; transform-style: preserve-3d; transition: transform 320ms ease, box-shadow 320ms ease, opacity 420ms ease, translate 420ms ease; }
.card:hover { transform: rotateY(-5deg) rotateX(3deg) translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card__body { padding: 0.9rem 1rem 1.1rem; display: grid; gap: 0.2rem; }
.card__cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--caramel); }
.card h3 { font-size: 1.15rem; }
.card .price { color: var(--muted); font-size: 0.95rem; }
.card.is-out { display: none; }
.reveal { opacity: 0; translate: 0 18px; }
.reveal.in { opacity: 1; translate: 0 0; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; perspective: 1200px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.grid .card { flex: none; }

/* Steps, notes, info */
.steps { display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.3rem 1.6rem; display: grid; gap: 0.5rem; align-content: start; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--head); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--caramel); }
.step p { color: var(--muted); font-size: 0.96rem; }
.note { background: var(--white); border-left: 4px solid var(--caramel); border-radius: 0 var(--r) var(--r) 0; padding: 1.1rem 1.3rem; display: grid; gap: 0.4rem; max-width: 52rem; }
.note p { color: var(--muted); font-size: 0.96rem; }
.info { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .info { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 5fr); gap: 1.5rem; } }
.info__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 1.75rem); display: grid; gap: 0.75rem; align-content: start; }
.info__card--cocoa { background: var(--cocoa); color: var(--sand); border-color: var(--cocoa); }
.info__card--cocoa h3, .info__card--cocoa h2 { color: var(--cream); }
.info__card--cocoa .eyebrow { color: var(--blush); }
.zones { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.zones li { background: var(--beige); color: var(--cocoa); font-weight: 600; font-size: 0.86rem; padding: 0.35rem 0.8rem; border-radius: 999px; }
.hours { margin: 0; display: grid; gap: 0.3rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(250, 246, 239, 0.18); padding-block: 0.4rem; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--cream); }
.info__img { border-radius: var(--r); overflow: hidden; }
.info__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }

/* FAQ */
.faq { display: grid; gap: 0.6rem; max-width: 50rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.1rem; }
.faq summary { cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 1.15rem; min-height: 3.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--caramel); font-size: 1.5rem; line-height: 1; transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1rem; color: var(--muted); }

/* Gallery page */
.page-hero { background: var(--beige); padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-hero .wrap { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 800px) { .page-hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.page-hero .arch { aspect-ratio: 4 / 5; max-height: 22rem; }
.list { display: grid; gap: 0.5rem; max-width: 52rem; }
.list div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-bottom: 1px dashed var(--line); padding-block: 0.6rem; }
.list div span:first-child { font-weight: 600; }
.list div small { display: block; color: var(--muted); font-weight: 400; font-size: 0.88rem; }

/* Footer */
.site-footer { background: var(--cocoa); color: var(--sand); padding-block: 3rem 2rem; font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 2rem; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.site-footer .brand { color: var(--cream); margin-bottom: 0.75rem; }
.site-footer .brand i::after { background: var(--sand); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.site-footer a { color: var(--cream); display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h4 { margin: 0 0 0.5rem; font-family: var(--body); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blush); }
.site-footer .credit { grid-column: 1 / -1; border-top: 1px solid rgba(250, 246, 239, 0.15); padding-top: 1.25rem; margin-top: 0.5rem; font-size: 0.8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .tier, .cake, .opt span, .faq summary::after { transition: none !important; }
  .card:hover { transform: none; }
  .reveal { opacity: 1; translate: 0 0; }
}

/* No default tap flash on touch devices (2 November 2026); keyboard focus keeps this demo's own ring above. */
a, button, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
