/* Red Apron Bakery — demo site
   Warm kitchen-table world: flour-cream ground, apron red, chocolate ink. */

:root {
  --cream:      oklch(96.5% 0.02 85);   /* flour + a little honey */
  --cream-deep: oklch(93%   0.035 80);
  --ink:        oklch(30%   0.06 40);   /* dark chocolate */
  --ink-soft:   oklch(42%   0.05 45);
  --red:        oklch(54%   0.20 27);   /* apron red */
  --red-deep:   oklch(46%   0.18 27);
  --honey:      oklch(72%   0.11 70);
  --white:      oklch(99%   0.008 85);

  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Karla", "Segoe UI", sans-serif;

  --radius-big: 2rem;
  --pad-x: clamp(1.25rem, 5vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section { scroll-margin-top: 74px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
}

img { max-width: 100%; display: block; }
a { color: var(--red); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55em 1.4em;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--red); color: var(--white); }
.btn-solid:hover { background: var(--red-deep); }
.btn-ghost { color: var(--ink); border: 2px solid var(--ink); }
.btn-cream { background: var(--cream); color: var(--red-deep); }
.btn-big { font-size: 1.1rem; padding: 0.7em 1.6em; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.7rem var(--pad-x);
  background: color-mix(in oklch, var(--cream) 88%, transparent);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-badge {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); overflow: hidden; flex-shrink: 0;
  box-shadow: 0 1px 4px oklch(30% 0.06 40 / 0.18);
}
.brand-badge img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--red-deep); }
.topnav { display: flex; gap: 1.4rem; margin-left: auto; }
.topnav a {
  font-family: var(--font-display); font-weight: 600;
  color: var(--ink); text-decoration: none; font-size: 1.02rem;
}
.topnav a:hover { color: var(--red); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.5rem, 6vh, 5rem) var(--pad-x) clamp(2.5rem, 6vh, 4rem);
}
.eyebrow {
  font-family: var(--font-display); font-weight: 700;
  color: var(--red); letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 0.95rem; margin-bottom: 0.6rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
}
.hero h1 em { font-style: normal; color: var(--red); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover;
  border-radius: 46% 46% var(--radius-big) var(--radius-big) / 34% 34% var(--radius-big) var(--radius-big);
}
.hero-photo figcaption {
  position: absolute; left: 50%; bottom: -1rem; transform: translateX(-50%) rotate(-2deg);
  background: var(--white); color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 0.35em 1em; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 2px 10px oklch(30% 0.06 40 / 0.16);
}

/* ---------- ticker ---------- */
.ticker { background: var(--red); overflow: hidden; padding: 0.55rem 0; }
.ticker-track {
  display: flex; gap: 1.6rem; width: max-content;
  animation: slide 22s linear infinite;
  font-family: var(--font-display); font-weight: 700;
  color: var(--cream); font-size: 1.05rem; white-space: nowrap;
}
.ticker .dot { opacity: 0.55; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- menu ---------- */
.menu { padding: clamp(3rem, 8vh, 5.5rem) var(--pad-x); }
.section-head { max-width: 44em; margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 0.5rem; }
.section-head p { color: var(--ink-soft); }

.bake {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 8vh, 5rem);
}
.bake-flip .bake-photos { order: 2; }
.bake-flip .bake-info { order: 1; }

.bake-info h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; margin-bottom: 0.5rem; }
.bake-info h3 .sub { color: var(--honey); font-weight: 700; }
.bake-info > p { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 36em; }

.pricelist { list-style: none; max-width: 26rem; }
.pricelist li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1.5px dashed color-mix(in oklch, var(--ink) 22%, transparent);
  font-size: 1rem;
}
.pricelist li:last-child { border-bottom: none; }
.pricelist b { font-family: var(--font-display); font-weight: 700; color: var(--red-deep); white-space: nowrap; }

.bake-photos { display: grid; gap: 1rem; }
.bake-photos img { border-radius: var(--radius-big); object-fit: cover; width: 100%; }
.bake-photos.single img { aspect-ratio: 5 / 4; }
.bake-feature .bake-photos { grid-template-columns: 1fr 1fr; align-items: start; }
.bake-feature .ph-a { aspect-ratio: 3 / 4; }
.bake-feature .ph-b { aspect-ratio: 3 / 4; margin-top: 2.2rem; }
.bake-photos.trio { grid-template-columns: 1fr 1fr 1fr; }
.bake-photos.trio img { aspect-ratio: 3 / 4; }

.menu-note {
  text-align: center; color: var(--ink-soft); font-style: italic;
  margin-bottom: 1.4rem;
}
.center { text-align: center; }

/* ---------- story ---------- */
.story { background: var(--cream-deep); padding: clamp(3.5rem, 9vh, 6rem) var(--pad-x); }
.story-inner { max-width: 40em; margin: 0 auto; text-align: center; }
.story-badge {
  display: inline-block; width: 92px; height: 92px; border-radius: 50%;
  background: var(--white); overflow: hidden; margin-bottom: 1.2rem;
  box-shadow: 0 2px 12px oklch(30% 0.06 40 / 0.15);
}
.story-badge img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.story h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; margin-bottom: 0.9rem; }
.story p { color: var(--ink-soft); margin-bottom: 0.9rem; }
.story-em {
  font-family: var(--font-display); font-weight: 700;
  color: var(--red-deep) !important; font-size: 1.15rem;
}

/* ---------- visit ---------- */
.visit { padding: clamp(3rem, 8vh, 5.5rem) var(--pad-x); }
.visit-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.visit-block h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--red-deep); }
.visit-block a { text-decoration: none; }
.visit-block a:hover { text-decoration: underline; }
.muted { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.4rem; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding: 2.2rem var(--pad-x); }
.footer-inner { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.footer-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--white); overflow: hidden; flex-shrink: 0; }
.footer-mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.footer p { flex: 1; min-width: 16em; }
.footer b { font-family: var(--font-display); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { max-width: 30rem; }
  .bake, .bake-flip { grid-template-columns: 1fr; }
  .bake-flip .bake-photos { order: 1; }
  .bake-flip .bake-info { order: 2; }
  .visit-grid { grid-template-columns: 1fr; }
  .topnav { display: none; }
}
