/* MOTHER DOUGH — crumb, cocoa, butter, burnt caramel */
:root {
  --crumb: #f6ebd7;
  --crumb-deep: #eddfc4;
  --cocoa: #3e2a1d;
  --butter: #f2c14e;
  --caramel: #b4622b;
  --crust: #8a5a35;
  --display: "Baloo 2", system-ui, sans-serif;
  --body: "Lora", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--crumb);
  color: var(--cocoa);
  font-family: var(--body);
  line-height: 1.75;
  overflow-x: hidden;
}

::selection { background: var(--butter); color: var(--cocoa); }

a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 3px solid var(--caramel);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- flour dust ---------- */
.flour {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.6rem;
  background: rgba(246,235,215,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid rgba(62,42,29,0.12);
}
.nav__brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--caramel);
}
.nav__links { display: flex; gap: 1.8rem; font-family: var(--display); font-weight: 600; font-size: 0.9rem; }
.nav__links a { position: relative; transition: color .25s; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%;
  bottom: -4px;
  height: 3px;
  border-radius: 3px;
  background: var(--butter);
  transition: left .3s cubic-bezier(.3,.7,.3,1.4), right .3s cubic-bezier(.3,.7,.3,1.4);
}
.nav__links a:hover { color: var(--caramel); }
.nav__links a:hover::after { left: 0; right: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8.5rem 2.4rem 4.5rem;
}
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crust);
  margin-bottom: 1.3rem;
}
.eyebrow--light { color: rgba(246,235,215,0.75); }
.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  line-height: 1.02;
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: normal;
  color: var(--caramel);
  position: relative;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: -2%;
  bottom: 0.08em;
  width: 104%;
  height: 0.22em;
  background: var(--butter);
  z-index: -1;
  border-radius: 6px;
  transform: rotate(-1.2deg);
}
.hero__sub { max-width: 30rem; font-size: 1.02rem; color: #5d4433; margin-bottom: 2rem; }
.hero__bake {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  background: #fff;
  border: 2px solid var(--cocoa);
  border-radius: 999px;
  padding: 0.55em 1.3em;
  box-shadow: 3px 3px 0 rgba(62,42,29,0.2);
}
.hero__bake-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--caramel);
  animation: bake-pulse 2s ease-in-out infinite;
}
@keyframes bake-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}
.hero__figure { position: relative; }
.hero__blob {
  border-radius: 48% 52% 55% 45% / 55% 48% 52% 45%;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 22px 50px rgba(62,42,29,0.22);
  animation: blob-breathe 9s ease-in-out infinite alternate;
}
@keyframes blob-breathe {
  from { border-radius: 48% 52% 55% 45% / 55% 48% 52% 45%; }
  to { border-radius: 52% 48% 45% 55% / 48% 55% 45% 52%; }
}
.hero__blob img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.hero__caption {
  margin-top: 1rem;
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--crust);
}

/* ---------- today ---------- */
.today {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 2.4rem;
  text-align: center;
}
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.05;
}
.section-title--light { color: var(--crumb); }
.today__note { margin: 0.9rem 0 3rem; font-style: italic; color: var(--crust); }
.loaves {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
  text-align: left;
}
.loaf {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: 0 12px 30px rgba(62,42,29,0.1);
  border: 2px solid transparent;
  transition: transform .25s cubic-bezier(.3,.7,.3,1.4), border-color .25s;
}
.loaf:hover { transform: translateY(-5px) rotate(-0.6deg); border-color: var(--butter); }
.loaf__time {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--crumb-deep);
  color: var(--crust);
  border-radius: 999px;
  padding: 0.3em 0.9em;
  margin-bottom: 0.8rem;
}
.loaf.gone .loaf__time { background: var(--cocoa); color: var(--crumb); }
.loaf.gone .loaf__time::after { content: " · gone"; color: var(--butter); }
.loaf.gone { opacity: 0.62; }
.loaf h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}
.loaf p { font-size: 0.92rem; color: #5d4433; margin-bottom: 1rem; min-height: 3em; }
.loaf__price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--caramel);
}

/* ---------- agatha ---------- */
.agatha { position: relative; z-index: 1; background: var(--cocoa); color: var(--crumb); }
.agatha__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 2.4rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.jar { position: relative; width: 100%; max-width: 250px; margin: 0 auto; }
.jar__lid {
  width: 62%;
  height: 26px;
  margin: 0 auto;
  background: linear-gradient(#c8a15c, #a37b3c);
  border-radius: 10px 10px 4px 4px;
  border: 3px solid #6f5426;
}
.jar__glass {
  width: 78%;
  height: 240px;
  margin: -4px auto 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.35), rgba(255,255,255,0.08));
  border: 4px solid rgba(246,235,215,0.5);
  border-radius: 14px 14px 26px 26px;
  position: relative;
  overflow: hidden;
}
.jar__dough {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 58%;
  background: linear-gradient(#efe3c8, #e2cfa4);
  border-radius: 40% 55% 0 0 / 22% 30% 0 0;
  animation: dough-rise 6s ease-in-out infinite alternate;
}
@keyframes dough-rise {
  from { height: 55%; }
  to { height: 63%; }
}
.bubble {
  position: absolute;
  bottom: 8%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(180,98,43,0.3);
  animation: bubble-up 4.5s ease-in infinite;
}
.b1 { left: 18%; animation-delay: 0s; width: 9px; height: 9px; }
.b2 { left: 38%; animation-delay: 1.1s; }
.b3 { left: 58%; animation-delay: 2.3s; width: 8px; height: 8px; }
.b4 { left: 74%; animation-delay: 0.6s; width: 14px; height: 14px; }
.b5 { left: 47%; animation-delay: 3.2s; width: 7px; height: 7px; }
@keyframes bubble-up {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-120px) scale(1.15); opacity: 0; }
}
.jar__label {
  text-align: center;
  margin-top: 0.9rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--butter);
}
.agatha__body { max-width: 34rem; color: rgba(246,235,215,0.85); margin-bottom: 2rem; }
.agatha__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.4rem;
}
.astat {
  border-top: 2px solid rgba(242,193,78,0.4);
  padding-top: 0.7rem;
}
.astat dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--butter);
}
.astat dd { font-size: 0.98rem; color: rgba(246,235,215,0.9); }

/* ---------- hands ---------- */
.hands {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 2.4rem;
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hands__figure img {
  display: block;
  width: 100%;
  border-radius: 26px;
  box-shadow: 0 20px 45px rgba(62,42,29,0.2);
  transform: rotate(-1.4deg);
}
.hands__quote p {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-style: italic;
  line-height: 1.5;
}
.hands__quote cite {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--display);
  font-weight: 600;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--crust);
}

/* ---------- club ---------- */
.club { position: relative; z-index: 1; background: var(--crumb-deep); border-top: 2px solid rgba(62,42,29,0.12); }
.club__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7rem) 2.4rem 2.8rem;
  text-align: center;
}
.club__body { margin: 1.2rem 0 2.4rem; color: #5d4433; }
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  background: var(--caramel);
  color: #fff;
  border-radius: 999px;
  padding: 0.85em 1.8em;
  box-shadow: 0 4px 0 rgba(62,42,29,0.4);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(62,42,29,0.4); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(62,42,29,0.4); }
.club__info {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 2px dashed rgba(62,42,29,0.25);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--crust);
}

/* ---------- portal return ---------- */
.portal-return {
  position: fixed;
  bottom: 1.3rem;
  left: 1.5rem;
  z-index: 95;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--cocoa);
  border: 2px solid rgba(62,42,29,0.35);
  border-radius: 999px;
  padding: 0.45em 1em;
  background: rgba(246,235,215,0.92);
  transition: color .25s, border-color .25s;
}
.portal-return:hover { color: var(--caramel); border-color: var(--caramel); }

/* ---------- reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s cubic-bezier(.3,.7,.3,1), transform .9s cubic-bezier(.3,.7,.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 7.5rem; }
  .hero__figure { max-width: 440px; margin: 0 auto; }
  .agatha__inner { grid-template-columns: 1fr; text-align: center; }
  .agatha__stats { text-align: left; }
  .hands { grid-template-columns: 1fr; }
  .hands__figure { max-width: 420px; margin: 0 auto; }
  .nav__links { gap: 1rem; font-size: 0.8rem; }
}
@media (max-width: 560px) {
  .nav { padding: 0.8rem 1.2rem; }
  .hero, .today, .hands { padding-left: 1.3rem; padding-right: 1.3rem; }
  .loaf p { min-height: 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .flour { display: none; }
}
