/* ==========================================================
   Made with Amor — styles
   Palette sampled from the logo. Edit the variables below.
   ========================================================== */
:root {
  --cream: #FBEBD9;
  --cream-deep: #F5DEC4;
  --paper: #FFF6EA;
  --choc: #5A2008;
  --terra: #C0654A;
  --rose: #D9706E;
  --peach: #F4A58A;
  --caramel: #B8651F;
  --ink: #4A2A1B;

  --font-head: "Fraunces", "Cooper Black", Georgia, serif;
  --font-script: "Lobster Two", "Brush Script MT", cursive;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --shadow: 0 8px 20px -10px rgba(90, 32, 8, .35), 0 2px 0 rgba(255,255,255,.6) inset;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  /* subtle paper grain */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .18  0 0 0 0 .08  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--terra); }
a:hover { color: var(--choc); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.pre { white-space: pre-line; }

.skip { position: absolute; left: -999px; top: 0; background: var(--choc); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

h1, h2, h3 { font-family: var(--font-head); color: var(--choc); line-height: 1.1; margin: 0 0 .6em; font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 7vw, 4.3rem); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 900; }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: var(--font-script);
  font-size: 1.7rem; font-weight: 700; font-style: italic;
  color: var(--terra); margin: 0 0 .1em; line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  background: var(--rose); color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  border: 2px dashed rgba(255,255,255,.75);
  outline: 3px solid var(--rose); outline-offset: -3px;
  box-shadow: 0 6px 0 #b4504f, 0 12px 18px -8px rgba(90,32,8,.5);
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  cursor: pointer;
}
.btn:hover { color: #fff; background: #cf6361; transform: translateY(-2px); box-shadow: 0 8px 0 #b4504f, 0 14px 20px -8px rgba(90,32,8,.5); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #b4504f; }
.btn-small { padding: .55rem 1.1rem; font-size: .95rem; box-shadow: 0 4px 0 #b4504f; }
.btn-ghost { background: transparent; color: var(--choc); border: 2px dashed var(--caramel); outline: none; box-shadow: none; }
.btn-ghost:hover { background: rgba(184,101,31,.12); color: var(--choc); box-shadow: none; }
.btn-wa { background: var(--terra); box-shadow: 0 6px 0 #9c4e38, 0 12px 18px -8px rgba(90,32,8,.5); outline-color: var(--terra); font-size: 1.2rem; padding: 1rem 2rem; }
.btn-wa:hover { background: #c96f54; box-shadow: 0 8px 0 #9c4e38, 0 14px 20px -8px rgba(90,32,8,.5); }
.wa-icon { width: 1.5rem; height: 1.5rem; }

/* ---------- Header ---------- */
/* solid band behind the phone's top bar, so nothing scrolls into view above the sticky header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--cream); }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 2px dashed rgba(184,101,31,.45);
}
.header-row { display: flex; align-items: center; gap: 1.2rem; padding-block: .55rem; }
.brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 8px -2px rgba(90,32,8,.4); }
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a { font-weight: 700; color: var(--choc); text-decoration: none; padding: .3rem 0; background: linear-gradient(var(--rose), var(--rose)) 0 100% / 0 3px no-repeat; transition: background-size .2s; }
.nav a:hover { background-size: 100% 3px; }
.header-actions { display: flex; align-items: center; gap: .8rem; }

.lang { display: inline-flex; align-items: center; gap: .15rem; background: var(--paper); border: 2px dashed var(--caramel); border-radius: 999px; padding: .15rem .5rem; color: var(--caramel); }
.lang-btn { font: 800 .9rem var(--font-head); background: none; border: 0; color: var(--ink); padding: .3rem .45rem; cursor: pointer; border-radius: 999px; min-width: 2.4rem; min-height: 2.2rem; }
.lang-btn[aria-pressed="true"] { background: var(--choc); color: var(--cream); }

.burger { display: none; width: 44px; height: 44px; background: var(--paper); border: 2px dashed var(--caramel); border-radius: 12px; cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 20px; height: 3px; background: var(--choc); border-radius: 2px; }

@media (max-width: 860px) {
  .burger { display: flex; }
  .header-actions { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--paper); border-bottom: 2px dashed rgba(184,101,31,.45);
    padding: .5rem 1.25rem 1rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px dashed rgba(184,101,31,.35); }
  .header-actions .btn-small { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 3rem 0 0; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1.05fr .95fr; padding-bottom: 3.5rem; }
.hero-copy .lead { font-size: 1.2rem; max-width: 32ch; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.hero h1 { max-width: 12ch; }
.hero h1::after { content: ""; display: block; width: 84px; height: 14px; margin-top: .5rem;
  background: radial-gradient(circle at 7px 7px, var(--caramel) 5px, transparent 6px) 0 0 / 28px 14px repeat-x; }

.hero-art { display: grid; place-items: center; }
.hero-logo { width: min(100%, 380px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; transform: rotate(-4deg); box-shadow: 0 18px 30px -12px rgba(90,32,8,.5); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(100%, 300px); margin-inline: auto; }
}

.stitch-divider { height: 22px; border-top: 3px dashed var(--caramel); opacity: .6; width: min(var(--wrap), 100% - 2.5rem); margin: 0 auto; }

/* ---------- Photo placeholders / images ---------- */
.photo {
  position: relative; margin: 0; overflow: hidden;
  background: var(--cream-deep);
  border: 3px dashed var(--caramel); border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid; place-items: center; text-align: center;
}
.photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo.is-placeholder::before { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(217,112,110,.09) 14px 28px); }
.ph-inner { position: relative; padding: 1rem; color: var(--caramel); display: grid; gap: .35rem; justify-items: center; }
.ph-inner svg { width: 34px; height: 31px; fill: var(--rose); }
.ph-label { font-family: var(--font-head); font-weight: 800; font-size: .95rem; color: var(--choc); }
.ph-path { font-size: .72rem; opacity: .75; word-break: break-all; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; position: relative; }
.section-head { text-align: center; margin-bottom: 2.4rem; }
.section-head.left { text-align: left; }
.section-intro { max-width: 52ch; margin: 0 auto; }

/* ---------- Menu ---------- */
.menu { background: var(--paper); border-block: 3px dashed rgba(184,101,31,.5); }
.tabs { display: flex; justify-content: center; gap: .6rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tabs button {
  font: 800 1.05rem var(--font-head); color: var(--choc); background: var(--cream);
  border: 2px dashed var(--caramel); border-radius: 999px; padding: .65rem 1.5rem; cursor: pointer; transition: background .15s;
}
.tabs button[aria-selected="true"] { background: var(--choc); color: var(--cream); border-color: var(--choc); }
.tabs button:not([aria-selected="true"]):hover { background: var(--cream-deep); }

.panel-head { text-align: center; margin-bottom: 1.6rem; }
.panel-head h3 { font-size: 1.7rem; margin-bottom: .15em; }
.panel-head p { margin: 0; }
.cake-price { margin-top: .5rem !important; font-family: var(--font-head); font-weight: 800; color: var(--terra); }
.cake-price strong { font-size: 1.8rem; color: var(--choc); }

.menu-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem 1.4rem; }
.item {
  display: flex; flex-direction: column; background: var(--cream); border-radius: var(--radius);
  border: 2px dashed var(--caramel); padding: .7rem; box-shadow: var(--shadow);
  transition: transform .2s;
}
.item:nth-child(3n+1) { transform: rotate(-.7deg); }
.item:nth-child(3n+2) { transform: rotate(.5deg); }
.item:hover { transform: rotate(0) translateY(-4px); }
.item .photo { aspect-ratio: 4 / 3; border-width: 2px; border-radius: 16px; box-shadow: none; }
.item-body { padding: .9rem .5rem .4rem; display: flex; flex-direction: column; flex: 1; }
.item-top { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.item h4 { font: 800 1.2rem/1.2 var(--font-head); color: var(--choc); margin: 0; font-variation-settings: "SOFT" 100; }
.item-price { font: 900 1.4rem var(--font-head); color: var(--terra); white-space: nowrap; }
.item-price small { font: 800 .8rem var(--font-body); color: var(--caramel); margin-left: .15em; }
.item p { margin: .5rem 0 1rem; font-size: .97rem; flex: 1; }
.item .order-link { align-self: flex-start; font-weight: 800; color: var(--rose); text-decoration: none; border-bottom: 2px dashed var(--rose); padding-bottom: 1px; }
.item .order-link:hover { color: var(--choc); border-color: var(--choc); }
.fine-print { text-align: center; font-size: .9rem; opacity: .8; margin: 2.2rem 0 0; }

/* ---------- Owner ---------- */
.owner-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3.5rem; align-items: center; }
.photo-owner { aspect-ratio: 4 / 5; border-radius: 200px 200px 28px 28px; transform: rotate(-2deg); }
.owner-copy p { max-width: 58ch; }
.signature { font-family: var(--font-script); font-style: italic; font-weight: 700; font-size: 1.9rem; color: var(--terra); margin: 1.2rem 0 1.6rem; }
.verse {
  position: relative; margin: 0; padding: 1.6rem 1.8rem 1.3rem 2.4rem;
  background: var(--paper); border: 3px dashed var(--caramel); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.verse-heart { position: absolute; width: 38px; height: 35px; fill: var(--rose); top: -18px; left: 18px; transform: rotate(-12deg); }
.verse p { font: 700 1.25rem/1.4 var(--font-head); color: var(--choc); margin: 0 0 .6rem; font-variation-settings: "SOFT" 100; }
.verse footer { font-family: var(--font-script); font-style: italic; font-weight: 700; font-size: 1.3rem; color: var(--terra); text-align: right; }
.verse cite { font-style: inherit; }

@media (max-width: 860px) {
  .owner-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .photo-owner { width: min(100%, 320px); margin-inline: auto; }
}

/* ---------- Why ---------- */
.why { background: var(--cream-deep); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4rem; }
.why-item { background: var(--cream); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.5rem; border: 2px dashed var(--caramel); position: relative; box-shadow: var(--shadow); }
.why-item h3 { font-size: 1.25rem; }
.why-item p { margin: 0; }
.why-1 { grid-column: span 3; transform: rotate(-.8deg); }
.why-2 { grid-column: span 3; transform: rotate(.7deg); margin-top: 1.4rem; background: var(--rose); border-color: rgba(255,255,255,.8); }
.why-2 h3, .why-2 p { color: #fff; }
.why-3 { grid-column: 2 / span 3; transform: rotate(.6deg); }
.why-4 { grid-column: span 3; transform: rotate(-.5deg); margin-top: -.6rem; }
.why-num { position: absolute; top: -16px; right: 18px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--choc); color: var(--cream); font: 900 1.1rem var(--font-head); }
.why-heart { position: absolute; top: -18px; right: 16px; width: 40px; height: 37px; fill: #fff; }
.why-2 .why-heart { fill: var(--choc); }
@media (max-width: 760px) {
  .why-list { grid-template-columns: 1fr; }
  .why-1, .why-2, .why-3, .why-4 { grid-column: auto; margin-top: 0; }
}

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; }
.gallery-grid .photo { height: 100%; }
.gallery-grid .g1 { grid-column: span 2; grid-row: span 2; }
.gallery-grid .g4 { grid-row: span 2; }
.gallery-grid .g5 { grid-column: span 2; }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery-grid .g1 { grid-column: span 2; }
  .gallery-grid .g5 { grid-column: span 2; }
}

/* ---------- Order ---------- */
.order { background: var(--paper); border-top: 3px dashed rgba(184,101,31,.5); }
.steps { list-style: none; margin: 0 0 2.4rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: s; }
.steps li { text-align: center; padding: 0 .5rem; }
.step-n { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--peach); color: var(--choc); font: 900 1.5rem var(--font-head); border: 3px dashed var(--choc); margin-bottom: .6rem; }
.steps p { margin: 0; }
.order-card { text-align: center; background: var(--cream); border: 3px dashed var(--caramel); border-radius: 30px; padding: 2.2rem 1.5rem; box-shadow: var(--shadow); margin-bottom: 2rem; }
.order-contact { margin: 1.3rem 0 0; font-weight: 700; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1.4rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem 2rem; margin: 0; }
.info-grid dt { font: 800 1.1rem var(--font-head); color: var(--choc); margin-bottom: .2rem; }
.info-grid dd { margin: 0; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--choc); color: var(--cream); padding: 3.5rem 0 1.5rem; margin-top: 0; border-top: 6px solid var(--caramel); }
.site-footer h3 { color: var(--peach); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.site-footer h3.mt { margin-top: 1.4rem; }
.site-footer p { margin: 0 0 .4rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--peach); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; }
.footer-brand img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: .8rem; }
.footer-brand p { font-family: var(--font-script); font-style: italic; font-weight: 700; font-size: 1.5rem; color: var(--peach); }
.footer-verse { max-width: 62ch; margin: 2.5rem auto 0 !important; text-align: center; font-size: .88rem; opacity: .85; border-top: 2px dashed rgba(251,235,217,.35); padding-top: 1.4rem; }
.footer-copy { text-align: center; font-size: .8rem; opacity: .6; margin-top: .8rem !important; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.photo-owner img { object-position: 50% 12%; }

/* ---------- Order builder ---------- */
[hidden] { display: none !important; }
.rule { max-width: 56ch; margin: 0 auto 1.6rem; text-align: center; font-weight: 700; color: var(--choc); background: var(--cream); border: 2px dashed var(--caramel); border-radius: 16px; padding: .8rem 1rem; }

.qty { display: flex; align-items: center; gap: .6rem; margin-top: auto; padding-top: .2rem; }
.qty-btn { width: 46px; height: 46px; border-radius: 50%; border: 2px dashed var(--caramel); background: var(--paper); color: var(--choc); font: 800 1.6rem/1 var(--font-head); cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.qty-btn:disabled { opacity: .35; cursor: default; }
.qty-plus { background: var(--rose); color: #fff; border-color: rgba(255,255,255,.8); outline: 2px solid var(--rose); outline-offset: -3px; }
.qty-btn:not(:disabled):active { transform: scale(.94); }
.qty-val { min-width: 2.4ch; text-align: center; font: 900 1.5rem var(--font-head); color: var(--choc); font-variant-numeric: tabular-nums; }
.qty-unit { font-weight: 700; font-size: .9rem; color: var(--caramel); }
.qty.has-qty .qty-val { color: var(--terra); }
.item p { margin-bottom: .9rem; }

body.has-cart { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .55rem;
  /* right side stays clear so host badges (e.g. "Powered by Netlify") never cover the button */
  padding: .8rem max(215px, env(safe-area-inset-right, 0px)) calc(.8rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--choc); color: var(--cream); border-top: 3px dashed var(--peach);
}
.cartbar-sum { display: flex; flex-direction: column; min-width: 0; }
.cartbar-sum strong { font: 900 1.5rem/1.1 var(--font-head); }
.cartbar-sum span { font-size: .9rem; opacity: .9; }
.cartbar .btn { white-space: nowrap; min-width: 150px; }

.sheet-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(60, 22, 6, .55); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: min(560px, 100%); max-height: 92%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: 26px 26px 0 0; border: 3px dashed var(--caramel); border-bottom: 0;
  padding: 1.2rem max(18px, env(safe-area-inset-right, 0px)) calc(1.4rem + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.sheet-head h2 { margin: 0; font-size: 1.8rem; }
.sheet-close { width: 44px; height: 44px; border-radius: 50%; border: 2px dashed var(--caramel); background: var(--cream); color: var(--choc); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.sheet-list { list-style: none; margin: 0 0 .6rem; padding: 0; }
.sheet-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed rgba(184,101,31,.45); }
.sheet-list li span:last-child { font-weight: 800; font-variant-numeric: tabular-nums; }
.sheet-min { margin: .4rem 0 0; font-weight: 700; min-height: 1.2em; }
.sheet-min.ok { color: #3f6b2a; }
.sheet-min.warn { color: #a3402f; }
.sheet-total { display: flex; justify-content: space-between; align-items: baseline; font: 800 1.2rem var(--font-head); color: var(--choc); margin: .6rem 0 1rem; }
.sheet-total strong { font-size: 1.8rem; color: var(--terra); }
.field { display: grid; gap: .25rem; margin-bottom: .9rem; }
.field label { font-weight: 800; color: var(--choc); }
.field small { opacity: .8; }
.field input, .field textarea { font: inherit; padding: .75rem .9rem; border: 2px solid var(--caramel); border-radius: 14px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
.sheet-error { color: #a3402f; font-weight: 700; min-height: 1.3em; margin: 0 0 .5rem; }
.sheet .btn-wa { width: 100%; font-size: 1.1rem; }
.sheet-how { text-align: center; font-size: .9rem; margin: .8rem 0 0; opacity: .85; }

/* long email addresses must wrap on small phones */
.js-email { overflow-wrap: anywhere; }

.contact-ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; margin-right: .45em; }
.order-contact a, .site-footer a.js-phone, .site-footer a.js-instagram, .site-footer a.js-email { display: inline-flex; align-items: center; }
.order-contact .contact-ico { color: var(--terra); }
.site-footer .contact-ico { color: var(--peach); }
.order-contact .js-email { font-size: .86rem; }
.site-footer .js-email { font-size: .92rem; }
