:root {
  --cream: #f3eadc;
  --ink: #2a1c14;
  --terra: #c45c26;
  --sage: #3d5a3a;
  --foam: #fff7ec;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: Nunito, system-ui, sans-serif;
  overflow-x: hidden;
}

.back {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 20;
  background: var(--foam);
  color: var(--terra);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.steam {
  position: fixed;
  right: 8%;
  top: 70px;
  z-index: 0;
  pointer-events: none;
}
.steam span {
  display: block;
  width: 8px;
  height: 40px;
  margin: 0 6px;
  border-radius: 20px;
  background: rgba(255,255,255,0.55);
  animation: steam 3.2s ease-in-out infinite;
  float: left;
}
.steam span:nth-child(2) { animation-delay: 0.5s; height: 52px; }
.steam span:nth-child(3) { animation-delay: 1s; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  position: relative;
  z-index: 2;
}
.logo {
  font-family: Fraunces, serif;
  font-style: italic;
  font-size: 34px;
  text-decoration: none;
  color: var(--sage);
}
nav { display: flex; gap: 18px; }
nav a { color: var(--ink); text-decoration: none; font-weight: 700; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px 28px 40px;
  align-items: center;
}
.blob {
  position: absolute;
  width: 340px;
  height: 340px;
  background: #e7c9a6;
  border-radius: 62% 38% 43% 57% / 48% 42% 58% 52%;
  left: 8%;
  top: -20px;
  z-index: 0;
  animation: blob 10s ease-in-out infinite;
}
.hero-text { position: relative; z-index: 1; }
.eyebrow { color: var(--terra); font-weight: 700; margin-bottom: 10px; }
h1 {
  font-family: Fraunces, serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 700;
}
h1 em { color: var(--sage); font-style: italic; }
.hero-text p { margin-top: 16px; max-width: 36ch; font-size: 18px; }

.polaroids { position: relative; min-height: 420px; }
.tilt {
  width: 240px;
  background: var(--foam);
  padding: 12px 12px 36px;
  box-shadow: 0 16px 30px rgba(42,28,20,0.12);
  position: absolute;
  transform: rotate(-8deg);
  animation: pop 0.8s cubic-bezier(0.2, 1.4, 0.3, 1) both;
}
.tilt.delay { left: 140px; top: 90px; transform: rotate(7deg); animation-delay: 0.15s; }
.tilt img { width: 100%; height: 220px; object-fit: cover; display: block; }
figcaption { text-align: center; margin-top: 10px; font-family: Fraunces, serif; font-style: italic; }

.marquee {
  overflow: hidden;
  border-top: 2px dashed var(--sage);
  border-bottom: 2px dashed var(--sage);
  padding: 10px 0;
  background: #efe0c8;
}
.track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 18s linear infinite;
  font-family: Fraunces, serif;
  font-style: italic;
  font-size: 28px;
  color: var(--sage);
}

.drinks { padding: 64px 28px; }
h2 {
  font-family: Fraunces, serif;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 28px;
}
.drink-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cup {
  background: var(--foam);
  border-radius: 32px;
  padding: 22px 18px 26px;
  text-align: center;
  transition: transform 0.25s ease;
}
.cup:hover { transform: translateY(-8px) rotate(-1deg); }
.circle {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 0 auto 16px;
}
.c1 { background: #6f4a32; }
.c2 { background: #d7b7a0; }
.c3 { background: #8fbf7a; }
.c4 { background: #3c2a21; }

.bakes {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 20px 28px 80px;
  align-items: center;
}
.bakes img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 40% 20% 30% 18%;
}
.bakes ul { list-style: none; margin-top: 18px; font-size: 18px; }
.bakes li + li { margin-top: 8px; }

.visit {
  margin: 0 28px 60px;
  background: var(--sage);
  color: var(--foam);
  border-radius: 36px;
  padding: 48px 36px;
  text-align: center;
}
.visit h2 { color: #f3eadc; }
.pill {
  display: inline-block;
  margin-top: 18px;
  background: var(--terra);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
}

footer { text-align: center; padding-bottom: 40px; color: #7a6554; }

@keyframes steam {
  0% { transform: translateY(12px) scaleX(1); opacity: 0; }
  30% { opacity: 0.7; }
  100% { transform: translateY(-40px) scaleX(1.4); opacity: 0; }
}
@keyframes blob {
  50% { border-radius: 40% 60% 52% 48% / 42% 58% 42% 58%; transform: translate(12px, 8px); }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(24px) rotate(0deg) scale(0.92); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .steam span, .blob, .tilt, .track { animation: none; }
}

@media (max-width: 860px) {
  nav { display: none; }
  .hero, .drink-grid, .bakes { grid-template-columns: 1fr; }
  .polaroids { min-height: 340px; }
  .tilt { width: 200px; }
  .tilt.delay { left: 90px; top: 70px; }
}
