/* Ooh! Bakery: site styles */

/* ---------- tokens ---------- */
:root {
  --bg: #FFF8F1;
  --bg-tint: #FCEFE3;
  --surface: #FFFFFF;
  --surface-2: #FBF1E8;
  --text: #2B1A14;
  --muted: #6E5A50;
  --border: #EBDCCF;
  --brand: #C92A62;
  --brand-hover: #A81F50;
  --brand-ink: #FFFFFF;
  --brand-soft: #FCE4EC;
  --accent: #F2B44F;
  --accent-soft: #FDF0D5;
  --danger: #B42318;
  --danger-hover: #912018;
  --success: #1F7A4D;
  --focus: #2563EB;
  --shadow-sm: 0 1px 2px rgb(60 30 20 / .06), 0 2px 6px rgb(60 30 20 / .06);
  --shadow: 0 6px 24px rgb(60 30 20 / .10);
  --shadow-lg: 0 18px 50px rgb(60 30 20 / .18);
  --header-bg: rgb(255 248 241 / .86);
  --slot-a: #F9D9C4;
  --slot-b: #F5C6D3;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --header-h: 72px;
  --fab-bottom: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #1A120F;
  --bg-tint: #211714;
  --surface: #251A16;
  --surface-2: #2E221D;
  --text: #F7EDE6;
  --muted: #C4B1A6;
  --border: #3E2E27;
  --brand: #FF6F9C;
  --brand-hover: #FF92B4;
  --brand-ink: #1A120F;
  --brand-soft: #3A1E28;
  --accent: #F4BE62;
  --accent-soft: #3A2C17;
  --danger: #F97066;
  --danger-hover: #FDA29B;
  --success: #4ADE80;
  --focus: #93C5FD;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
  --shadow: 0 6px 24px rgb(0 0 0 / .35);
  --shadow-lg: 0 18px 50px rgb(0 0 0 / .5);
  --header-bg: rgb(26 18 15 / .86);
  --slot-a: #3A2A22;
  --slot-b: #47262F;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg .fill { fill: currentColor; stroke: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1.5px; transition: color .2s; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
::selection { background: var(--brand); color: var(--brand-ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap-narrow { --wrap: 760px; }
.eyebrow { font: 700 .78rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: .75em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-inline: auto; }
kbd { font: 600 .75rem var(--font-body); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--surface-2); }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  background: var(--brand); color: var(--brand-ink); padding: 12px 18px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; color: var(--brand-ink); }

/* ---------- buttons (every one has a hover, active and focus state) ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: var(--brand-ink); --btn-bg-hover: var(--brand-hover);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border: 2px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 700 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn svg { transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bg-hover: var(--surface-2); border-color: var(--border); box-shadow: none; }
.btn-ghost:hover { border-color: var(--text); }
.btn-light { --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bg-hover: var(--accent-soft); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bg-hover: var(--danger-hover); }
:root[data-theme="dark"] .btn-danger { --btn-fg: #1A120F; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: .7; }
.btn.is-loading::after {
  content: ""; width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--text);
  cursor: pointer; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border); color: var(--brand); transform: rotate(-6deg) scale(1.06); }
.icon-btn:active { transform: scale(.94); }
.link-btn {
  background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: .18em; text-decoration-color: transparent;
  transition: color .2s, text-decoration-color .2s;
}
.link-btn:hover { color: var(--brand); text-decoration-color: currentColor; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  background: var(--bg); transition: opacity .45s var(--ease), visibility .45s;
  animation: loader-failsafe 0s 3s forwards;
}
.no-loader .loader, .loader.is-done, html:not(.js) .loader { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: grid; justify-items: center; gap: 14px; }
.loader-word { font: italic 800 3.5rem/1 var(--font-display); color: var(--brand); animation: pop 1s var(--ease) infinite alternate; }
.loader-dots { display: flex; gap: 8px; }
.loader-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: bounce .9s ease-in-out infinite; }
.loader-dots i:nth-child(2) { animation-delay: .15s; }
.loader-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes pop { from { transform: scale(.94) rotate(-3deg); } to { transform: scale(1.04) rotate(2deg); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-8px); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* scroll reveal: only hides things once JS is confirmed running */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: .08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: .16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 900; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--brand)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 800;
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
/* blur lives on a pseudo-element: a backdrop-filter on the header itself would trap the fixed mobile nav inside it */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-scrolled .header-inner { height: 62px; }
.brand { display: inline-flex; align-items: baseline; gap: .35em; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-mark { font: italic 800 1.9rem/1 var(--font-display); color: var(--brand); transition: transform .3s var(--ease); display: inline-block; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-sub { font: 700 .8rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  position: relative; display: block; padding: 10px 14px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .98rem;
  transition: background-color .2s, color .2s;
}
.site-nav ul a:hover { background: var(--surface-2); color: var(--brand); }
.site-nav ul a[aria-current="page"] { color: var(--brand); }
.site-nav ul a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--accent);
}
.nav-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-order { margin-left: 8px; position: relative; }
.cart-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: #2B1A14; font-size: .75rem; font-weight: 800;
}
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.menu-toggle { display: none; }
.menu-toggle path { transition: transform .3s var(--ease), opacity .2s; transform-origin: 12px 12px; }
.menu-toggle[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .l2 { opacity: 0; }
.menu-toggle[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-grid; }
  .header-order span:not(.cart-count) { display: none; }
  .header-order { padding: .6em .8em; margin-left: 4px; }
  .site-nav {
    position: fixed; top: var(--nav-top, var(--header-h)); left: 0; right: 0; bottom: 0;
    margin: 0; padding: 20px 16px 32px; overflow-y: auto;
    background: var(--bg); border-top: 1px solid var(--border);
    visibility: hidden; opacity: 0; transform: translateY(-12px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { font: 700 1.6rem/1.2 var(--font-display); padding: 14px 12px; border-radius: var(--radius-sm); }
  .site-nav ul a[aria-current="page"]::after { left: auto; right: 16px; top: 50%; bottom: auto; margin-top: -4px; width: 8px; height: 8px; }
  .nav-extra { display: block; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); }
  .nav-extra p { margin-top: 20px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .header-inner { gap: 8px; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, var(--brand-soft), transparent); z-index: -1; opacity: .9;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lead { margin-bottom: 1.6em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; font-weight: 600; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { color: var(--brand); }
.hero-art { position: relative; }
.hero-art .photo { border-radius: 200px 200px var(--radius) var(--radius); box-shadow: var(--shadow-lg); }
.hero-sticker {
  position: absolute; left: -18px; top: 36px; display: grid; place-items: center; text-align: center;
  width: 128px; height: 128px; border-radius: 50%; background: var(--accent); color: #2B1A14;
  font: italic 800 1.05rem/1.1 var(--font-display); transform: rotate(-12deg); box-shadow: var(--shadow);
  animation: wobble 6s ease-in-out infinite;
}
@keyframes wobble { 50% { transform: rotate(-4deg) translateY(-6px); } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-sticker { left: 0; width: 108px; height: 108px; font-size: .92rem; }
}

/* ---------- photos ---------- */
.photo { width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.photo-slot {
  display: grid; place-items: end start; padding: 18px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 22% 28%, rgb(255 255 255 / .35) 0 14%, transparent 15%),
    radial-gradient(circle at 78% 70%, rgb(255 255 255 / .22) 0 20%, transparent 21%),
    radial-gradient(circle at 60% 20%, rgb(255 255 255 / .18) 0 8%, transparent 9%),
    linear-gradient(135deg, var(--slot-a), var(--slot-b));
}
:root[data-theme="dark"] .photo-slot { background-blend-mode: soft-light, soft-light, soft-light, normal; }
.photo-slot span {
  font: italic 600 .95rem/1.3 var(--font-display); color: var(--text);
  background: var(--surface); padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); max-width: 100%;
}

/* ---------- cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover, .card.hoverable:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; }
.feature-card .photo { margin: -28px -28px 22px; width: calc(100% + 56px); border-radius: var(--radius) var(--radius) 0 0; }
.price-from { font-weight: 700; color: var(--brand); }

/* ---------- marquee strip ---------- */
.strip { background: var(--brand); color: var(--brand-ink); overflow: hidden; padding: 14px 0; }
.strip-track { display: flex; gap: 40px; width: max-content; animation: marquee 32s linear infinite; font: italic 700 1.2rem/1 var(--font-display); }
.strip-track span::after { content: "✿"; margin-left: 40px; opacity: .7; font-style: normal; }
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- quotes ---------- */
.quote { font: italic 600 1.25rem/1.45 var(--font-display); margin: 0 0 16px; }
.quote-by { font-size: .95rem; color: var(--muted); font-weight: 600; margin: 0; }
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: linear-gradient(120deg, var(--brand), #E0577F); color: #fff; border-radius: calc(var(--radius) * 1.5);
  padding: clamp(32px, 5vw, 56px); box-shadow: var(--shadow-lg);
}
:root[data-theme="dark"] .cta-band { background: linear-gradient(120deg, #8E1F48, #B8325F); }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { margin: 0; opacity: .92; }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 48px); }
.page-hero p { max-width: 62ch; }

/* ---------- about ---------- */
.values { counter-reset: v; }
.values .card h3::before { counter-increment: v; content: "0" counter(v); display: block; font: 800 .9rem/1 var(--font-body); color: var(--brand); letter-spacing: .1em; margin-bottom: 10px; }
.about-photo-stack { position: relative; padding: 0 0 48px 48px; }
.about-photo-stack .photo:last-child { position: absolute; left: 0; bottom: 0; width: 46%; border: 6px solid var(--bg); box-shadow: var(--shadow); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq-tools { display: flex; justify-content: flex-end; margin-bottom: 8px; max-width: 820px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.faq details:hover { border-color: var(--brand); }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--brand); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; border-radius: var(--radius-sm);
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C92A62' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform .3s var(--ease);
}
:root[data-theme="dark"] .faq summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6F9C' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq-body { padding: 0 20px 18px; color: var(--muted); }
.faq-body p:last-child { margin: 0; }
.faq details[open] .faq-body { animation: faq-in .35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field .label { font-weight: 700; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
textarea { min-height: 140px; resize: vertical; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .88rem; font-weight: 600; margin: 0; }
.form-msg { margin: 10px 0 0; font-weight: 600; min-height: 0; }
.form-msg.is-error { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.2); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.success-panel { text-align: center; padding: 12px 0; animation: faq-in .5s var(--ease); }
.success-panel .check {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: var(--success); color: #fff; animation: pop-in .5s var(--ease);
}
:root[data-theme="dark"] .success-panel .check { color: #1A120F; }
.success-panel .check svg { width: 32px; height: 32px; stroke-width: 3; }
.success-date { display: inline-block; margin-top: 4px; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); font-weight: 700; font-size: .92rem; }
@keyframes pop-in { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } }

/* password visibility toggle (auto-attached to any password field) */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; }
.pw-toggle:hover { transform: translateY(-50%) scale(1.06); }

/* ---------- newsletter ---------- */
.newsletter { max-width: 480px; }
.nl-label { display: block; font-weight: 700; margin-bottom: 8px; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; border-radius: 999px; padding-inline: 18px; }
.nl-row .btn { flex-shrink: 0; }
.nl-fine { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.newsletter-footer .nl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 420px) { .nl-row { flex-direction: column; } }
.newsletter-band { background: var(--accent-soft); border-radius: calc(var(--radius) * 1.5); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 760px) { .newsletter-band { grid-template-columns: 1fr; } }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.post-card-media { display: block; overflow: hidden; }
.post-card-media .photo { border-radius: 0; transition: transform .6s var(--ease); }
.post-card:hover .post-card-media .photo { transform: scale(1.05); }
.post-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-body .post-meta { margin-top: auto; }
.post-card-title { font-size: 1.35rem; }
.post-card-title a { color: var(--text); text-decoration: none; }
.post-card-title a:hover { color: var(--brand); }
.post-card-title a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-meta { font-size: .88rem; color: var(--muted); margin: 0; }
.post-hero { padding-block: clamp(40px, 6vw, 72px) 28px; }
.post-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { font-weight: 700; }
.post-dek { font-size: 1.2rem; color: var(--muted); }
.post-hero .post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.post-updated { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.post-updated::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.post-photo { margin-bottom: 40px; }
.prose { font-size: 1.1rem; }
.prose h2 { font-size: 1.85rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--brand); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font: italic 500 1.25rem/1.5 var(--font-display); }
.post-foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 40px; }
.post-nav-link {
  display: block; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-weight: 700; transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.post-nav-link span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: 4px; }
.post-nav-link:hover { border-color: var(--brand); background: var(--surface); color: var(--text); transform: translateY(-2px); }
.post-nav-older { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav-older { grid-column: auto; text-align: left; } }
.post-cta { background: var(--bg-tint); border-radius: var(--radius); padding: 32px; text-align: center; }
.post-cta h2 { font-size: 1.6rem; }

/* recipe card */
.recipe { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); margin: 2em 0; box-shadow: var(--shadow-sm); }
.recipe h2 { margin-top: 0; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.recipe-facts li { background: var(--accent-soft); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; margin: 0; }
.recipe-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.recipe-head h3 { margin: 0; }

/* code / copy */
.code-block { position: relative; margin: 1.5em 0; }
.code-block pre {
  margin: 0; padding: 22px 20px; padding-top: 48px; overflow-x: auto; border-radius: var(--radius-sm);
  background: #2B1A14; color: #F7EDE6; font: 500 .92rem/1.6 ui-monospace, "Cascadia Code", Consolas, monospace;
}
:root[data-theme="dark"] .code-block pre { background: #120C0A; border: 1px solid var(--border); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: 700 .82rem/1 var(--font-body); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.copy-btn:hover { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); transform: translateY(-1px); }
.copy-btn.is-copied { background: var(--success); border-color: var(--success); color: #fff; }
.code-block .copy-btn { position: absolute; top: 10px; right: 10px; background: rgb(255 255 255 / .1); color: #F7EDE6; border-color: rgb(255 255 255 / .2); }
.code-block .copy-btn:hover { background: var(--brand); color: #fff; }
.copy-btn svg { width: 14px; height: 14px; }

/* ---------- order page ---------- */
.order-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
@media (max-width: 1000px) { .order-layout { grid-template-columns: 1fr; } }
.order-layout > * { min-width: 0; }
.menu-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; position: sticky; top: calc(var(--header-h) - 6px); z-index: 5; background: var(--bg); padding: 10px 0; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); font: 700 .92rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.menu-cat { margin-bottom: 48px; }
.menu-cat h2 { font-size: 1.8rem; }
.menu-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.menu-item {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.menu-item:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.menu-item:target { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.menu-item .photo { border-radius: 0; }
.menu-item-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.menu-item h3 { font-size: 1.2rem; margin: 0; }
.menu-item p { margin: 0; color: var(--muted); font-size: .96rem; }
.menu-item-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.price { font: 700 1.15rem/1 var(--font-body); }
.price small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--text); margin-right: 6px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty button {
  width: 36px; height: 36px; border: 0; background: transparent; color: var(--text); font: 700 1.15rem/1 var(--font-body); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.qty button:hover { background: var(--brand); color: var(--brand-ink); }
.qty output { min-width: 28px; text-align: center; font-weight: 700; }

.cart { position: sticky; top: calc(var(--header-h) + 16px); }
.cart h2 { font-size: 1.6rem; display: flex; justify-content: space-between; align-items: baseline; }
.cart-empty { text-align: center; color: var(--muted); padding: 18px 0; }
.cart-empty .big { font: italic 700 1.4rem var(--font-display); color: var(--text); margin-bottom: 4px; }
.cart-lines { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--border); animation: faq-in .3s var(--ease); }
.cart-line-name { font-weight: 700; }
.cart-line-sub { color: var(--muted); font-size: .9rem; }
.cart-line .qty button { width: 30px; height: 30px; font-size: 1rem; }
.cart-line-actions { display: flex; align-items: center; gap: 10px; grid-column: 1 / -1; }
.remove-btn { margin-left: auto; font-size: .88rem; color: var(--danger); font-weight: 600; }
.remove-btn:hover { color: var(--danger-hover); }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.2rem; padding: 6px 0 4px; }
.cart-note { font-size: .88rem; color: var(--muted); margin: 0 0 18px; }
.cart-clear { display: block; margin: 12px auto 0; font-size: .88rem; color: var(--muted); }
.cart-clear:hover { color: var(--danger); }
.mobile-cart-bar {
  display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 700;
  justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 12px 20px;
  background: var(--text); color: var(--bg); border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 700;
}
.mobile-cart-bar .btn { --btn-bg: var(--brand); }
@media (max-width: 1000px) {
  .cart { position: static; }
  .page-order.has-items .mobile-cart-bar { display: flex; }
  .page-order.has-items { --fab-bottom: 84px; }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .card-icon { width: 44px; height: 44px; border-radius: 12px; margin: 0; flex-shrink: 0; }
.contact-list .card-icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; }
.hours { margin: 0; display: grid; gap: 6px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--muted); text-align: right; }
.map-frame { border: 0; width: 100%; aspect-ratio: 16/10; border-radius: var(--radius); filter: saturate(.9); }

/* ---------- 404 ---------- */
.nf { text-align: center; padding-block: clamp(48px, 8vw, 110px); }
.nf-cookie {
  position: relative; width: 210px; height: 210px; margin: 0 auto 28px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 32%, #4A2A1C 0 7%, transparent 7.5%),
    radial-gradient(circle at 62% 26%, #4A2A1C 0 6%, transparent 6.5%),
    radial-gradient(circle at 46% 58%, #4A2A1C 0 8%, transparent 8.5%),
    radial-gradient(circle at 24% 66%, #4A2A1C 0 5%, transparent 5.5%),
    radial-gradient(circle at 70% 64%, #4A2A1C 0 6%, transparent 6.5%),
    radial-gradient(circle at 50% 50%, #E2A35B, #C47E3A);
  -webkit-mask: radial-gradient(circle at 92% 18%, transparent 0 17%, #000 17.5%), radial-gradient(circle at 100% 40%, transparent 0 12%, #000 12.5%);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle at 92% 18%, transparent 0 17%, #000 17.5%), radial-gradient(circle at 100% 40%, transparent 0 12%, #000 12.5%);
  mask-composite: intersect;
  box-shadow: var(--shadow-lg);
  animation: nf-float 4s ease-in-out infinite;
}
.nf-crumbs i { position: absolute; width: 10px; height: 10px; border-radius: 3px; background: #C47E3A; animation: crumb 2.4s ease-in infinite; }
.nf-crumbs { position: relative; width: 210px; margin: -60px auto 40px; height: 40px; }
.nf-crumbs i:nth-child(1) { left: 160px; animation-delay: 0s; }
.nf-crumbs i:nth-child(2) { left: 180px; width: 7px; height: 7px; animation-delay: .6s; }
.nf-crumbs i:nth-child(3) { left: 150px; width: 6px; height: 6px; animation-delay: 1.2s; }
@keyframes nf-float { 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes crumb { 0% { transform: translate(0, -30px) rotate(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(14px, 40px) rotate(160deg); opacity: 0; } }
.nf h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.nf-code { font: 800 .9rem/1 var(--font-body); letter-spacing: .3em; color: var(--brand); }
.nf-search { display: flex; gap: 8px; max-width: 480px; margin: 28px auto 40px; }
.nf-search input { border-radius: 999px; padding-inline: 18px; }
.nf-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; text-align: left; }
.nf-links .card { padding: 20px; }
.nf-links h2 { font-size: 1.15rem; margin-bottom: .25em; }
.nf-links p { font-size: .92rem; color: var(--muted); }
@media (max-width: 800px) { .nf-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .nf-links { grid-template-columns: 1fr; } .nf-search { flex-direction: column; } }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-tint); border-top: 1px solid var(--border); padding-top: 64px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr 1fr 1.4fr; gap: 36px; }
.footer-grid p { color: var(--muted); }
.footer-grid a { color: var(--text); text-decoration-color: var(--border); }
.footer-grid a:hover { color: var(--brand); text-decoration-color: currentColor; }
.footer-h { font: 800 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.footer-brand .brand { margin-bottom: 12px; }
.socials { display: flex; gap: 4px; margin-left: -10px; }
.socials a { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 28px; margin-top: 48px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a, .footer-bottom .link-btn { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover, .footer-bottom .link-btn:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- floating contact + back to top ---------- */
.fab { position: fixed; right: 20px; bottom: var(--fab-bottom); z-index: 750; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; transition: bottom .3s var(--ease); }
.fab-btn {
  width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-lg);
  transition: background-color .2s, transform .25s var(--ease);
}
.fab-btn:hover { background: var(--brand-hover); transform: scale(1.08) rotate(-8deg); }
.fab-btn:active { transform: scale(.95); }
.fab-btn svg { width: 26px; height: 26px; grid-area: 1 / 1; transition: transform .3s var(--ease), opacity .2s; }
.fab-btn svg:last-child { opacity: 0; transform: rotate(-90deg); }
.fab-btn[aria-expanded="true"] svg:first-child { opacity: 0; transform: rotate(90deg); }
.fab-btn[aria-expanded="true"] svg:last-child { opacity: 1; transform: none; }
.fab-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); animation: ping 2.4s var(--ease) infinite; pointer-events: none; }
.fab-btn { position: relative; }
.fab-btn[aria-expanded="true"]::before { display: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.fab-menu { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; min-width: 210px; transform-origin: bottom right; animation: fab-in .25s var(--ease); }
@keyframes fab-in { from { opacity: 0; transform: scale(.85) translateY(10px); } }
.fab-menu a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 600; transition: background-color .2s, color .2s; }
.fab-menu a:hover { background: var(--brand-soft); color: var(--brand); }
.fab-menu a svg { color: var(--brand); }
.to-top {
  position: fixed; right: 28px; bottom: calc(var(--fab-bottom) + 76px); z-index: 740;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ease), background-color .2s, color .2s, bottom .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); transform: translateY(-3px); }
.fab-open .to-top { opacity: 0; visibility: hidden; }

/* ---------- dialogs (search + confirm) ---------- */
dialog { border: 0; padding: 0; color: var(--text); background: var(--surface); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgb(20 10 6 / .55); backdrop-filter: blur(3px); }
dialog[open] { animation: dlg-in .25s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.search-dialog { width: min(680px, calc(100% - 24px)); max-height: min(78vh, 680px); margin: 10vh auto auto; border-radius: var(--radius); display: none; flex-direction: column; }
.search-dialog[open] { display: flex; }
.search-box { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--border); }
.search-box > svg { color: var(--muted); }
.search-box input { border: 0; padding: 12px 4px; font-size: 1.15rem; background: transparent; box-shadow: none; }
.search-box input:focus { box-shadow: none; }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-status { margin: 0; padding: 12px 20px 0; font-size: .88rem; color: var(--muted); }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; }
.search-results a { display: block; padding: 12px 14px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; transition: background-color .15s; }
.search-results a:hover, .search-results a:focus, .search-results a.is-active { background: var(--brand-soft); outline: none; }
.search-results .r-kind { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.search-results .r-title { display: block; font-weight: 700; font-size: 1.05rem; }
.search-results .r-snip { display: block; font-size: .9rem; color: var(--muted); margin-top: 2px; }
.search-results mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
.search-hint { margin: 0; padding: 10px 20px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
@media (max-width: 600px) { .search-dialog { margin-top: 12px; max-height: calc(100vh - 24px); } .search-hint { display: none; } }
.confirm-dialog { width: min(440px, calc(100% - 32px)); border-radius: var(--radius); }
.confirm-dialog form { padding: 28px; }
.confirm-dialog h2 { font-size: 1.5rem; }
.confirm-dialog p { color: var(--muted); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 760; max-width: 400px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 20px 22px; font-size: .94rem; animation: fab-in .4s var(--ease);
}
.cookie-banner p { margin: 0 0 14px; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  body.cookie-visible { --fab-bottom: var(--cookie-h, 190px); }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 1100; transform: translate(-50%, calc(100% + 40px));
  background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-lg);
  transition: transform .35s var(--ease), visibility .35s; pointer-events: none; max-width: calc(100% - 32px);
  visibility: hidden;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; }

/* ==========================================================================
   Pop-art theme: matches the Ooh! Bakery flyer (hot pink, teal, sunshine
   yellow, halftone dots, comic outlines). Overrides the base styles above.
   ========================================================================== */
:root {
  --bg: #FFF8EC;
  --bg-tint: #FFEFD6;
  --surface: #FFFFFF;
  --surface-2: #FFF3E2;
  --text: #1D1A2E;
  --muted: #5A5368;
  --border: #E6D5BE;
  --brand: #D1176A;
  --brand-hover: #B0105A;
  --brand-ink: #FFFFFF;
  --brand-soft: #FFE0EE;
  --teal: #17B3B0;
  --teal-ink: #0B6F6D;
  --teal-soft: #D4F4F2;
  --accent: #FFD23F;
  --accent-soft: #FFF4C7;
  --line: #1D1A2E;
  --hard: #1D1A2E;
  --dot-pink: rgb(209 23 106 / .17);
  --dot-teal: rgb(23 179 176 / .22);
  --header-bg: rgb(255 248 236 / .92);
  /* "Luckiest Guy" is loaded as a digits-only subset, so it supplies numbers and Bangers supplies letters */
  --font-display: "Luckiest Guy", "Bangers", "Impact", "Arial Black", sans-serif;
  --font-script: "Lobster", "Brush Script MT", cursive;
}
:root[data-theme="dark"] {
  --bg: #16162B;
  --bg-tint: #1C1C37;
  --surface: #232344;
  --surface-2: #2B2B50;
  --text: #FFF5E6;
  --muted: #CBC4DB;
  --border: #3B3B66;
  --brand: #FF5FA2;
  --brand-hover: #FF8ABD;
  --brand-ink: #16162B;
  --brand-soft: #3C1D3B;
  --teal: #3DD9D6;
  --teal-ink: #5EE6E3;
  --teal-soft: #163A44;
  --accent: #FFD23F;
  --accent-soft: #3A3418;
  --line: #EDE3F7;
  --hard: #FF5FA2;
  --dot-pink: rgb(255 95 162 / .13);
  --dot-teal: rgb(61 217 214 / .13);
  --header-bg: rgb(22 22 43 / .92);
}

/* type */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: .03em; line-height: 1.04; }
h1 { font-size: clamp(2.9rem, 6.6vw, 5.4rem); }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.65rem; }
.prose h2 { font-size: 2.3rem; }
.post-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); }
.eyebrow { color: var(--teal-ink); }
.eyebrow-tag {
  display: inline-block; background: var(--accent); color: #1D1A2E; padding: 7px 14px;
  border: 2.5px solid var(--line); box-shadow: 3px 3px 0 var(--hard); transform: rotate(-2deg);
}
.pop-word {
  font-family: var(--font-script); color: var(--brand); letter-spacing: 0; display: inline-block;
  -webkit-text-stroke: 2px var(--line); paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--teal); transform: rotate(-4deg); padding: 0 .08em;
}

/* brand wordmark */
.brand { gap: .32em; align-items: center; }
.brand-mark, .brand-sub {
  font-family: var(--font-script); font-weight: 400; font-style: normal; letter-spacing: 0; text-transform: none;
  -webkit-text-stroke: 1.5px var(--line); paint-order: stroke fill;
}
.brand-mark { font-size: 2.1rem; color: var(--brand); text-shadow: 2px 2px 0 var(--line); }
.brand-sub { font-size: 1.7rem; color: var(--teal); text-shadow: 2px 2px 0 var(--line); }
@media (max-width: 420px) { .brand-sub { display: inline; font-size: 1.35rem; } .brand-mark { font-size: 1.75rem; } }
.loader-word { font-family: var(--font-script); font-style: normal; color: var(--brand); -webkit-text-stroke: 2px var(--line); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--teal); font-size: 4rem; }
.loader-dots i:nth-child(1) { background: var(--brand); }
.loader-dots i:nth-child(2) { background: var(--teal); }
.loader-dots i:nth-child(3) { background: var(--accent); }
.progress span { background: linear-gradient(90deg, var(--teal), var(--brand), var(--accent)); }

/* header */
.site-header { border-bottom: 3px solid var(--line); }
.site-header.is-scrolled { border-color: var(--line); }
.site-nav ul a[aria-current="page"]::after { background: var(--teal); }
.nav-phone { font-family: var(--font-display); font-size: 2rem; letter-spacing: .04em; text-decoration: none; }
.cart-count { border: 2px solid var(--line); color: #1D1A2E; }

/* halftone backgrounds */
.halftone { background-image: radial-gradient(var(--dot-pink) 1.7px, transparent 2px); background-size: 14px 14px; }
.halftone-teal { background-image: radial-gradient(var(--dot-teal) 1.7px, transparent 2px); background-size: 14px 14px; }
.hero::before { display: none; }
.hero, .page-hero { border-bottom: 3px solid var(--line); }
.section-tint { background-color: var(--bg-tint); border-block: 3px solid var(--line); }

/* comic buttons */
.btn {
  font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; letter-spacing: .06em;
  border: 2.5px solid var(--line); box-shadow: 4px 4px 0 var(--hard); padding: .7em 1.4em .62em;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--hard); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--hard); }
.btn-sm { font-size: 1.02rem; padding: .5em 1em .44em; box-shadow: 3px 3px 0 var(--hard); }
.btn-sm:hover { box-shadow: 5px 5px 0 var(--hard); }
.btn-ghost { --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bg-hover: var(--accent-soft); border-color: var(--line); box-shadow: 4px 4px 0 var(--hard); }
.btn-ghost:hover { border-color: var(--line); }
.btn-sm.btn-ghost { box-shadow: 3px 3px 0 var(--hard); }
.btn-light { --btn-bg: var(--accent); --btn-fg: #1D1A2E; --btn-bg-hover: #FFE27A; }
.btn-big { font-size: 1.7rem; padding: .55em 1.1em .48em; }
.btn-big svg { width: 1em; height: 1em; }
.btn-big:hover svg { transform: rotate(-12deg); }
.btn[disabled] { box-shadow: 2px 2px 0 var(--hard); }
.icon-btn:hover { border-color: var(--line); background: var(--accent); color: #1D1A2E; }

/* comic panels */
.card, .post-card, .menu-item, .form-card, .recipe, .newsletter-band, .post-nav-link, .post-cta, .menu-board, .call-panel {
  border: 2.5px solid var(--line); box-shadow: 6px 6px 0 var(--hard); border-radius: 16px;
}
a.card:hover, .card.hoverable:hover, .post-card:hover, .menu-item:hover {
  transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--hard); border-color: var(--line);
}
.post-nav-link:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--hard); border-color: var(--line); }
.card-icon { background: var(--accent); color: #1D1A2E; border: 2.5px solid var(--line); }
.steps .card:nth-child(2) .card-icon { background: var(--teal); }
.steps .card:nth-child(3) .card-icon { background: var(--brand-soft); color: var(--brand); }
.values .card h3::before { color: var(--brand); font-family: var(--font-display); font-size: 1.4rem; }
.faq details { border: 2.5px solid var(--line); box-shadow: 4px 4px 0 var(--hard); }
.faq details:hover, .faq details[open] { border-color: var(--line); }
.faq details[open] { box-shadow: 6px 6px 0 var(--hard); }
.faq summary::after { border: 2px solid var(--line); background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1A2E' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .faq summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1A2E' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.tag { background: var(--accent); color: #1D1A2E; border: 2px solid var(--line); }
.chip { border: 2.5px solid var(--line); font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; letter-spacing: .05em; }
.chip:hover { border-color: var(--line); background: var(--accent); color: #1D1A2E; }
.chip.is-active { background: var(--brand); color: var(--brand-ink); border-color: var(--line); }
.price { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: .03em; color: var(--brand); }
.price small { font-family: var(--font-body); color: var(--muted); letter-spacing: 0; }
.price-ask { font-size: 1.15rem; color: var(--teal-ink); }
.menu-item-ask { background: var(--surface-2); }
.menu-note { color: var(--muted); font-weight: 600; margin: -.3em 0 18px; }
.menu-cat h2 { font-size: 2.4rem; }
.qty { border: 2.5px solid var(--line); }
.cart-empty .big { font-family: var(--font-display); font-style: normal; font-weight: 400; font-size: 1.7rem; letter-spacing: .03em; }
.cart h2 { font-size: 2.1rem; }
input, select, textarea { border: 2px solid var(--line); }
input:hover, select:hover, textarea:hover { border-color: var(--brand); }
.code-block pre { border: 2.5px solid var(--line); }

/* photos get a comic frame */
.photo { border: 2.5px solid var(--line); }
.post-card .photo, .menu-item .photo { border: 0; border-bottom: 2.5px solid var(--line); }
.hero-art .photo { border-radius: 18px; border-width: 3px; box-shadow: 9px 9px 0 var(--hard); transform: rotate(1.5deg); }

/* starburst sticker (outline via drop-shadow on the wrapper, shape via clip-path on the child) */
.burst { filter: drop-shadow(3px 0 0 var(--line)) drop-shadow(-3px 0 0 var(--line)) drop-shadow(0 3px 0 var(--line)) drop-shadow(0 -3px 0 var(--line)) drop-shadow(5px 5px 0 var(--hard)); }
.burst span {
  display: grid; place-items: center; width: 100%; height: 100%; text-align: center; background: var(--accent); color: #1D1A2E;
  clip-path: polygon(50.0% 0.0%, 56.1% 11.5%, 65.5% 2.4%, 67.7% 15.3%, 79.4% 9.5%, 77.6% 22.4%, 90.5% 20.6%, 84.7% 32.3%, 97.6% 34.5%, 88.5% 43.9%, 100.0% 50.0%, 88.5% 56.1%, 97.6% 65.5%, 84.7% 67.7%, 90.5% 79.4%, 77.6% 77.6%, 79.4% 90.5%, 67.7% 84.7%, 65.5% 97.6%, 56.1% 88.5%, 50.0% 100.0%, 43.9% 88.5%, 34.5% 97.6%, 32.3% 84.7%, 20.6% 90.5%, 22.4% 77.6%, 9.5% 79.4%, 15.3% 67.7%, 2.4% 65.5%, 11.5% 56.1%, 0.0% 50.0%, 11.5% 43.9%, 2.4% 34.5%, 15.3% 32.3%, 9.5% 20.6%, 22.4% 22.4%, 20.6% 9.5%, 32.3% 15.3%, 34.5% 2.4%, 43.9% 11.5%);
  font-family: var(--font-display); font-size: 1.45rem; line-height: .95; letter-spacing: .04em;
}
.hero-sticker {
  background: none; box-shadow: none; border-radius: 0; width: 150px; height: 150px;
  left: -26px; top: auto; bottom: -22px; transform: rotate(-10deg); font: inherit; display: block;
}
@media (max-width: 860px) { .hero-sticker { left: -6px; width: 118px; height: 118px; } .burst span { font-size: 1.15rem; } }

/* marquee strip */
.strip { background: var(--teal); color: #1D1A2E; border-block: 3px solid var(--line); }
.strip-track { font-family: var(--font-display); font-style: normal; font-weight: 400; font-size: 1.6rem; letter-spacing: .06em; }
.strip-track span::after { content: "♥"; color: var(--brand); opacity: 1; }
:root[data-theme="dark"] .strip { color: #16162B; }

/* home menu board */
.menu-board { background: var(--surface); padding: 0 0 18px; overflow: hidden; transform: rotate(-1deg); }
.menu-board::before {
  content: "Menu"; display: block; background: var(--brand); color: #fff; border-bottom: 2.5px solid var(--line);
  font: 400 2rem/1 var(--font-display); letter-spacing: .08em; padding: 14px 24px 10px;
}
:root[data-theme="dark"] .menu-board::before { color: #16162B; }
.menu-board ul { list-style: none; margin: 0; padding: 10px 24px 0; }
.menu-board a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0;
  border-bottom: 2px dashed var(--border); color: var(--text); text-decoration: none; transition: color .2s, padding .2s;
}
.menu-board a span { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: .04em; }
.menu-board a b { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; letter-spacing: .04em; color: var(--brand); white-space: nowrap; }
.menu-board a:hover { color: var(--brand); padding-left: 8px; }
.menu-board-foot { margin: 14px 24px 0; font-size: .92rem; font-weight: 700; color: var(--teal-ink); }

/* gallery of real orders */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gallery figure { margin: 0; }
.gallery .photo { box-shadow: 6px 6px 0 var(--hard); transition: transform .3s var(--ease), box-shadow .3s; }
.gallery figure:nth-child(odd) .photo { transform: rotate(-1.5deg); }
.gallery figure:nth-child(even) .photo { transform: rotate(1.5deg); }
.gallery figure:hover .photo { transform: rotate(0) scale(1.03); box-shadow: 9px 9px 0 var(--hard); }
.gallery figcaption { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .04em; text-align: center; margin-top: 14px; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { gap: 16px; } .gallery figcaption { font-size: 1.05rem; } }

/* contact */
.call-panel {
  text-align: center; padding: 28px 20px; margin-bottom: 32px; background-color: var(--brand);
  background-image: radial-gradient(rgb(255 255 255 / .18) 1.7px, transparent 2px); background-size: 14px 14px; color: #fff;
}
.call-panel .eyebrow { color: #fff; }
:root[data-theme="dark"] .call-panel, :root[data-theme="dark"] .call-panel .eyebrow { color: #16162B; }
.call-number {
  display: inline-block; font: 400 clamp(2.4rem, 7vw, 3.4rem)/1 var(--font-display); letter-spacing: .04em; color: #fff;
  -webkit-text-stroke: 2px var(--line); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--line); text-decoration: none;
  transition: transform .2s var(--ease);
}
.call-number:hover { color: var(--accent); transform: scale(1.04) rotate(-1deg); }
.call-panel .btn-ghost { --btn-bg: var(--surface); }
.contact-list .card-icon { border-radius: 12px; }

/* pickup / delivery toggle */
.segmented { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.segmented legend { padding: 0; margin-bottom: 6px; width: 100%; }
.segmented label { flex: 1; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span {
  display: block; text-align: center; padding: 10px 12px 8px; border: 2.5px solid var(--line); border-radius: 999px;
  font: 400 1.15rem/1 var(--font-display); letter-spacing: .05em; background: var(--surface);
  box-shadow: 3px 3px 0 var(--hard); transition: background-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.segmented label:hover span { background: var(--accent-soft); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--hard); }
.segmented input:checked + span { background: var(--brand); color: var(--brand-ink); }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

/* CTA band */
.cta-band {
  background-color: var(--brand); color: #fff; border: 3px solid var(--line); box-shadow: 9px 9px 0 var(--hard);
  background-image: radial-gradient(rgb(255 255 255 / .16) 1.7px, transparent 2px); background-size: 14px 14px;
}
:root[data-theme="dark"] .cta-band { background-color: #B0105A; background-image: radial-gradient(rgb(255 255 255 / .1) 1.7px, transparent 2px); box-shadow: 9px 9px 0 var(--teal); }
.newsletter-band { background-color: var(--accent-soft); }

/* footer */
.site-footer { border-top: 3px solid var(--line); background-image: radial-gradient(var(--dot-teal) 1.5px, transparent 1.8px); background-size: 16px 16px; }
.footer-h { color: var(--brand); font: 400 1.35rem/1 var(--font-display); letter-spacing: .06em; text-transform: none; }
.footer-phone a { white-space: nowrap; font: 400 2rem/1 var(--font-display); letter-spacing: .04em; color: var(--brand); text-decoration: none; }
.footer-phone a:hover { color: var(--teal-ink); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--muted); font-weight: 600; }
.footer-list li::before { content: "♥"; color: var(--brand); margin-right: 8px; }

/* fab + toast + misc */
.fab-btn { border: 2.5px solid var(--line); box-shadow: 4px 4px 0 var(--hard); }
.fab-btn:hover { box-shadow: 6px 6px 0 var(--hard); }
.fab-menu, .cookie-banner, .confirm-dialog, .search-dialog { border: 2.5px solid var(--line); box-shadow: 8px 8px 0 var(--hard); }
.to-top { border: 2.5px solid var(--line); box-shadow: 3px 3px 0 var(--hard); }
.search-results mark { background: var(--accent); color: #1D1A2E; }
.success-panel .check { border: 2.5px solid var(--line); }
.success-date { border: 2px solid var(--line); background: var(--accent); color: #1D1A2E; }
.post-updated::before { background: var(--teal); }
.prose blockquote { border-left-color: var(--brand); font-family: var(--font-display); font-style: normal; font-size: 1.6rem; letter-spacing: .03em; }
.recipe-facts li { background: var(--accent); color: #1D1A2E; border: 2px solid var(--line); }
.post-cta { background-color: var(--teal-soft); }
.nf-code { color: var(--teal-ink); font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .25em; }
.nf-links .card h2 { font-size: 1.5rem; }

/* order page on phones: one scrolling row of category tabs, and keep the cart bar clear */
@media (max-width: 700px) {
  .menu-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 10px 16px 12px; gap: 8px; }
  .menu-tabs::-webkit-scrollbar { display: none; }
  .menu-tabs .chip { flex-shrink: 0; font-size: .95rem; padding: 7px 13px 5px; }
}
@media (max-width: 1000px) {
  .page-order.has-items .fab { display: none; }
  .page-order.has-items .toast { bottom: 92px; }
}

/* very small phones: keep every header control on screen */
@media (max-width: 400px) {
  .header-inner { gap: 6px; }
  .header-actions { gap: 0; }
  .header-actions .icon-btn { width: 40px; height: 40px; }
  .header-order { padding: .45em .6em .4em; margin-left: 2px; }
}
@media (max-width: 360px) {
  .brand-sub { display: none; }
}

/* about: owner photo (a dashed "photo goes here" frame until about/owner.webp exists) */
.baker { grid-template-columns: .8fr 1.2fr; }
.baker-photo { max-width: 420px; width: 100%; justify-self: center; }
.baker-photo .photo { box-shadow: 9px 9px 0 var(--hard); transform: rotate(-2deg); }
.baker-photo .photo-slot { border-style: dashed; background: var(--surface-2); background-image: radial-gradient(var(--dot-pink) 1.7px, transparent 2px); background-size: 14px 14px; place-items: center; }
.baker-photo .photo-slot span { font: 400 1.4rem/1.1 var(--font-display); letter-spacing: .04em; text-align: center; background: var(--accent); color: #1D1A2E; border: 2.5px solid var(--line); border-radius: 12px; padding: 10px 16px; }
.baker-photo .photo-slot span::before { content: "Owner photo goes here"; display: block; }
.baker-photo .photo-slot span { font-size: 0; }
.baker-photo .photo-slot span::before { font-size: 1.4rem; }
@media (max-width: 760px) { .baker { grid-template-columns: 1fr; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .strip-track { animation: none; }
}
