/* ---------- Tokens ---------- */
:root {
  --cream: #FBF6EC;
  --cream-soft: #F5EDDB;
  --wheat: #E8D5B7;
  --wheat-deep: #D9BE94;
  --crust: #B8895E;
  --crust-deep: #8A5E36;
  --bread: #6B4423;
  --bread-soft: #8A6440;
  --butter: #F5C842;
  --butter-deep: #E0AE1F;
  --jam: #C76060;
  --ink: #3D2A18;
  --muted: #8A7860;
  --line: rgba(107, 68, 35, 0.12);
  --shadow-sm: 0 2px 8px rgba(107, 68, 35, 0.08);
  --shadow-md: 0 6px 24px rgba(107, 68, 35, 0.12);
  --shadow-lg: 0 16px 40px rgba(107, 68, 35, 0.14);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--bread);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.4rem, 5vw + 0.5rem, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--crust-deep); text-decoration-color: rgba(184, 137, 94, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--bread); }

img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crust);
  margin: 0 0 0.8em;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-head .section-lede {
  color: var(--bread-soft);
  font-size: 1.05rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease;
  line-height: 1;
}
.btn-primary {
  background: var(--butter);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--butter-deep), var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--butter-deep);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--butter-deep); }
.btn-ghost {
  background: transparent;
  color: var(--bread);
  border-color: var(--wheat-deep);
}
.btn-ghost:hover {
  background: var(--wheat);
  color: var(--ink);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 236, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  font-size: 1.9rem;
  line-height: 1;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--wheat);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.1;
}
.brand-tag {
  font-size: 0.78rem;
  color: var(--bread-soft);
  letter-spacing: 0.02em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav a {
  text-decoration: none;
  color: var(--bread);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { background: var(--cream-soft); color: var(--ink); }
.site-nav .nav-cta {
  background: var(--ink);
  color: var(--cream);
  margin-left: 6px;
}
.site-nav .nav-cta:hover { background: var(--bread); color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(245, 200, 66, 0.18), transparent 55%),
    radial-gradient(ellipse at 90% 30%, rgba(184, 137, 94, 0.16), transparent 55%),
    var(--cream);
}
.hero-inner {
  position: relative;
  max-width: 780px;
  text-align: center;
}
.hero-lede {
  font-size: 1.18rem;
  color: var(--bread-soft);
  max-width: 620px;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.float-emoji {
  position: absolute;
  font-size: 2.4rem;
  opacity: 0.7;
  filter: drop-shadow(0 4px 12px rgba(107, 68, 35, 0.12));
  animation: float 8s ease-in-out infinite;
}
.float-emoji.f1 { top: 12%; left: 6%; animation-delay: 0s; }
.float-emoji.f2 { top: 22%; right: 8%; animation-delay: 1.3s; font-size: 2.8rem; }
.float-emoji.f3 { bottom: 14%; left: 12%; animation-delay: 2.6s; font-size: 2.6rem; }
.float-emoji.f4 { bottom: 22%; right: 10%; animation-delay: 0.7s; font-size: 2.2rem; opacity: 0.55; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .float-emoji { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Bakes ---------- */
.bakes { padding: 88px 0; }
.bake-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.bake-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.bake-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--wheat-deep);
}
.bake-emoji {
  font-size: 2.4rem;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-soft);
  border-radius: 50%;
  margin-bottom: 14px;
}
.bake-card h3 { color: var(--ink); margin-bottom: 8px; }
.bake-card p { color: var(--bread-soft); font-size: 0.98rem; line-height: 1.55; }
.bake-card-experiment {
  background: linear-gradient(140deg, #FFF7E0 0%, #FBF6EC 100%);
  border-color: rgba(245, 200, 66, 0.5);
}
.bake-card-experiment .bake-emoji { background: rgba(245, 200, 66, 0.25); }

/* ---------- About ---------- */
.about {
  padding: 88px 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%);
}
.about-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}
.about-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.about-circle {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFF7E0, var(--wheat));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md), inset 0 -8px 24px rgba(184, 137, 94, 0.2);
}
.about-emoji { font-size: 6rem; line-height: 1; }
.about-sprinkle {
  position: absolute;
  font-size: 1.8rem;
  filter: drop-shadow(0 3px 8px rgba(107, 68, 35, 0.15));
}
.about-sprinkle.s1 { top: -4px; right: 18px; transform: rotate(15deg); }
.about-sprinkle.s2 { bottom: 8px; left: 6px; transform: rotate(-18deg); }
.about-sprinkle.s3 { top: 50%; right: -8px; transform: rotate(8deg); }
.about-copy p { font-size: 1.05rem; color: var(--bread-soft); }

/* ---------- Request form ---------- */
.request { padding: 88px 0 96px; }
.request-form {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  box-shadow: var(--shadow-md);
}
.field { display: flex; flex-direction: column; margin-bottom: 20px; }
.field:last-of-type { margin-bottom: 24px; }
.field label {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  font-size: 0.98rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--crust);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(184, 137, 94, 0.18);
}
.field textarea { resize: vertical; min-height: 100px; }
.field .hint {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-row .field { margin-bottom: 20px; }

.field input[type="date"] {
  font-family: inherit;
  color: var(--ink);
}
.field input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: rgba(199, 96, 96, 0.6);
}

.btn-submit {
  width: 100%;
  padding: 16px 28px;
  font-size: 1.05rem;
}

.form-status {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.form-status.is-success { color: #4a7c3a; font-weight: 600; }
.form-status.is-error { color: #b14b4b; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 48px 0;
  text-align: center;
}
.footer-inner p { margin: 0 0 6px; }
.footer-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
}
.footer-line { color: var(--wheat); }
.footer-thanks { color: rgba(251, 246, 236, 0.65); font-size: 0.92rem; margin-top: 10px; }

/* ---------- Focus visible ---------- */
:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .bake-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-art { order: -1; }
  .section-head { margin-bottom: 2.25rem; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 72px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .bakes, .about, .request { padding: 64px 0; }
  .bake-grid { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 10px; align-items: stretch; }
  .site-nav { justify-content: center; flex-wrap: wrap; }
  .brand { justify-content: center; }
  .brand-text { align-items: center; text-align: center; }
  .request-form { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .about-circle { width: 200px; height: 200px; }
  .about-emoji { font-size: 5rem; }
  .float-emoji { font-size: 1.8rem !important; }
}
