@font-face { font-family: 'Young Serif'; src: url('/fonts/young-serif-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

/* Colors from the bakery's own look: near-black boards with soft pink lettering,
   a hibiscus red for anything you can press, and a little gold like the cake stands. */
:root {
  --ink: #161111;
  --ink-2: #221919;
  --ink-3: #2e2323;
  --ink-line: #43353a;
  --blush: #f6dfe1;
  --blush-2: #fbeeef;
  --blush-3: #f1d0d4;
  --cream: #fffaf8;
  --paper: #fffdfc;
  --rose: #b31d47;
  --rose-dark: #8a1336;
  --gold: #e2b357;
  --gold-deep: #8a6118;
  --text: #1d1515;
  --muted: #5d5052;
  --on-dark: #ead6d8;
  --on-dark-muted: #c9b1b4;
  --line: #e6d3d5;
  --line-strong: #c9b3b6;
  --ok: #1f6b3a;
  --warn: #8a5300;
  --error: #a3152f;
  --radius: 10px;
  --radius-lg: 18px;
  --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', 'Segoe UI', Helvetica, Arial, sans-serif;
  /* One easing curve for the whole site; UI changes at 220ms, entrances at 800ms */
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --fast: 220ms;
  --slow: 800ms;
  --shadow-sm: 0 1px 2px rgba(22, 17, 17, .06), 0 2px 6px rgba(22, 17, 17, .05);
  --shadow: 0 2px 4px rgba(22, 17, 17, .05), 0 12px 28px -8px rgba(22, 17, 17, .16);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
b, strong { font-weight: 800; }
a { color: var(--rose); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--fast) var(--ease-soft), text-decoration-color var(--fast); }
a:hover { color: var(--rose-dark); text-decoration-thickness: 2px; }
::selection { background: var(--rose); color: #fff; }

/* Visible focus everywhere, for keyboard users */
:focus-visible { outline: 3px solid var(--rose-dark); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .top :focus-visible, .foot :focus-visible { outline-color: var(--gold); }

.skip { position: absolute; left: 12px; top: -80px; background: var(--gold); color: var(--ink); font-weight: 800; padding: 10px 16px; z-index: 60; border-radius: 999px; text-decoration: none; transition: top var(--fast) var(--ease); }
.skip:focus { top: 10px; color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* Bilingual text: both languages are in the page; the toggle shows one.
   Without JavaScript, English shows. */
[lang="es"]:not(html) { display: none; }
html.es [lang="es"]:not(html) { display: revert; }
html.es [lang="en"]:not(html) { display: none; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 40; background: rgba(22, 17, 17, .97); color: var(--blush);
  border-bottom: 1px solid transparent;
  transition: background-color var(--fast) var(--ease-soft), border-color var(--fast), box-shadow 300ms var(--ease-soft);
}
@supports (backdrop-filter: blur(1px)) {
  .top.scrolled { background: rgba(22, 17, 17, .86); backdrop-filter: blur(14px) saturate(1.3); }
}
.top.scrolled { border-color: var(--ink-line); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: var(--header-h); }
.brand { color: var(--blush); text-decoration: none; font-family: var(--serif); font-size: 1.5rem; line-height: 1; white-space: nowrap; transition: transform 300ms var(--ease); transform-origin: left center; }
.brand small { display: block; font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 5px; }
.brand:hover { color: #fff; text-decoration: none; }
.top.scrolled .brand { transform: scale(.94); }
.top nav { display: flex; align-items: center; gap: 4px 22px; }
.top nav a { position: relative; color: var(--blush); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 0; white-space: nowrap; }
.top nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease);
}
.top nav a:hover { color: #fff; }
.top nav a:hover::after, .top nav a:focus-visible::after { transform: scaleX(1); }
.top nav .nav-cta {
  background: var(--blush); color: var(--ink); padding: 8px 16px; border-radius: 999px;
  transition: background-color var(--fast), transform var(--fast) var(--ease);
}
.top nav .nav-cta:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }
.lang-toggle { display: inline-flex; border: 1px solid #6d5659; border-radius: 999px; padding: 2px; gap: 2px; }
.lang-toggle button {
  background: transparent; color: var(--blush); border: 0; border-radius: 999px; font: 700 .8rem var(--sans); letter-spacing: .04em;
  padding: 5px 10px; cursor: pointer; min-height: 30px; min-width: 38px; transition: background-color var(--fast), color var(--fast);
}
.lang-toggle button:hover { background: var(--ink-3); }
.lang-toggle button[aria-pressed="true"] { background: var(--blush); color: var(--ink); }

/* Piped-frosting edges: under dark bands, and on top of the footer */
.scallop { position: relative; }
.scallop::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -13px; height: 14px; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at 12px 0, var(--ink) 11px, transparent 11.5px) repeat-x;
  background-size: 24px 14px;
}
.scallop-top { position: relative; }
.scallop-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px; pointer-events: none;
  background: radial-gradient(circle at 12px 14px, var(--ink) 11px, transparent 11.5px) repeat-x;
  background-size: 24px 14px;
}

/* ---------- buttons + forms ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--rose); color: #fff; border: 2px solid var(--rose); border-radius: 999px;
  font: 700 1rem/1.2 var(--sans); padding: 12px 24px; min-height: 48px; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 16px -8px rgba(138, 19, 54, .7);
  transition: background-color var(--fast) var(--ease-soft), border-color var(--fast), color var(--fast), transform var(--fast) var(--ease), box-shadow 300ms var(--ease);
}
.btn:hover { background: var(--rose-dark); border-color: var(--rose-dark); color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 12px 22px -10px rgba(138, 19, 54, .8); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: 90ms; }
.btn.ghost { background: transparent; color: var(--rose); box-shadow: none; }
.btn.ghost:hover { background: var(--blush-2); color: var(--rose-dark); }
.btn.light { background: var(--blush); border-color: var(--blush); color: var(--ink); box-shadow: 0 8px 22px -12px rgba(246, 223, 225, .55); }
.btn.light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn.small { min-height: 38px; padding: 7px 14px; font-size: .9rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: not-allowed; transform: none; }

label { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 10px 13px; min-height: 48px;
  transition: border-color var(--fast) var(--ease-soft), box-shadow var(--fast) var(--ease-soft), background-color var(--fast);
}
input:hover, select:hover, textarea:hover { border-color: #a88d91; }
textarea { min-height: 128px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--rose-dark); box-shadow: 0 0 0 4px rgba(179, 29, 71, .2); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); background: #fff8f9; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--rose); margin: 0; flex: none; box-shadow: none; }
input[type="file"] { padding: 9px; min-height: 0; border-style: dashed; cursor: pointer; }
input[type="file"]::file-selector-button { font: 700 .9rem var(--sans); border: 0; border-radius: 999px; background: var(--ink); color: var(--blush); padding: 8px 14px; margin-right: 12px; cursor: pointer; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.field { margin-bottom: 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius); padding: 13px 16px; margin: 0 0 16px; border: 1.5px solid; border-left-width: 5px; animation: pop 300ms var(--ease) both; }
.alert.error { border-color: var(--error); background: #fdeef0; color: var(--error); }
.alert.ok { border-color: var(--ok); background: #eef8f1; color: var(--ok); }
.alert.info { border-color: #c9a6ab; background: var(--blush-2); color: var(--text); }
.consent { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }

/* Loading: a small rotating ring before the text */
.is-loading::before, .loading-line::before {
  content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -3px;
  border: 2px solid var(--line); border-top-color: var(--rose); border-radius: 50%; animation: spin .8s linear infinite;
}

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #dcc8ca; margin-top: 96px; padding: 52px 0 32px; font-size: .95rem; }
.foot a { color: var(--blush); text-decoration-color: rgba(246, 223, 225, .4); }
.foot a:hover { color: #fff; text-decoration-color: currentColor; }
.foot .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot h2 { font-size: 1.45rem; color: var(--blush); }
.foot p { margin: 0 0 .45em; }
.foot .legal { border-top: 1px solid var(--ink-line); margin-top: 32px; padding-top: 18px; display: flex; gap: 8px 22px; flex-wrap: wrap; color: var(--on-dark-muted); font-size: .9rem; }

/* ---------- shared motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.985); } }
@keyframes fade { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll reveal: motion.js adds .reveal-ready only when it will also reveal things */
/* Hiding is instant (it happens before the element is on screen); only the reveal animates */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(26px); }
.reveal-ready [data-reveal].in {
  opacity: 1; transform: none;
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .top .wrap { flex-wrap: wrap; padding-block: 8px; }
  .brand { font-size: 1.3rem; }
  .top nav:has(> a) { flex: 1 1 100%; gap: 4px 18px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .top nav::-webkit-scrollbar { display: none; }
  .top .wrap { position: relative; }
  .top nav:has(> a) .lang-toggle { position: absolute; right: 0; top: 12px; } /* stays beside the name, outside the scrolling links */
  .top nav .nav-cta { padding: 6px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
