/* mujun.cafe -- cozy interior, magazine layout, warm earthy palette */

:root {
  --cafe-cream: #F8F0E0;
  --toast-brown: #8A6840;
  --espresso-dark: #2A1810;
  --latte-warm: #D8C0A0;
  --butter-yellow: #F0D888;
  --cinnamon: #A07040;
  --steam-white: rgba(248, 240, 224, 0.8);
  --warm-shadow: 0 2px 12px rgba(42, 24, 16, 0.06);
  --warm-shadow-strong: 0 4px 16px rgba(42, 24, 16, 0.1);
  --spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
  background: var(--cafe-cream);
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.75;
  color: var(--espresso-dark);
  background: var(--cafe-cream);
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---------- Wood-paneled side walls ---------- */

.wall-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  width: clamp(20px, 5vw, 60px);
  background:
    repeating-linear-gradient(
      180deg,
      rgba(160, 112, 64, 0.18) 0 1px,
      transparent 1px 14px
    ),
    linear-gradient(180deg, var(--latte-warm), #C9AE8A);
  z-index: 0;
  pointer-events: none;
}

.wall-left { left: 0; box-shadow: inset -6px 0 14px rgba(42, 24, 16, 0.08); }
.wall-right { right: 0; box-shadow: inset 6px 0 14px rgba(42, 24, 16, 0.08); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 8vh, 96px) clamp(40px, 8vw, 120px);
  z-index: 1;
}

.hero-inner {
  text-align: center;
  max-width: 720px;
  width: 100%;
}

.logotype {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 76px);
  color: var(--espresso-dark);
  letter-spacing: -0.01em;
  margin-bottom: 0.4em;
  opacity: 0;
  transform: translateY(8px);
}

.logotype.is-shown {
  animation: fadeWarm 600ms ease-out forwards;
}

.hero-tagline {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(16px, 1.5vw, 22px);
  color: var(--cinnamon);
  margin-bottom: clamp(28px, 4vh, 44px);
  opacity: 0;
}

.hero-tagline.is-shown,
.hero-sub.is-shown {
  animation: fadeWarm 600ms ease-out 200ms forwards;
}

.cup-stage {
  position: relative;
  width: clamp(220px, 30vw, 360px);
  height: clamp(220px, 30vw, 360px);
  margin: 0 auto clamp(24px, 4vh, 44px);
}

.cup-svg {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 70%;
}

.cup-fill { fill: var(--latte-warm); }
.cup-stroke {
  fill: none;
  stroke: var(--toast-brown);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cup-coffee { fill: var(--cinnamon); opacity: 0.85; }
.cup-stroke.saucer { fill: rgba(240, 216, 136, 0.2); }

.steam-svg {
  position: absolute;
  inset: 0 0 30% 0;
  width: 100%;
  height: 70%;
  pointer-events: none;
}

.steam-path {
  fill: none;
  stroke: var(--toast-brown);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  opacity: 0;
}

.steam-1 { animation: steamRise 3.4s ease-in-out infinite; }
.steam-2 { animation: steamRise 3.6s ease-in-out 0.6s infinite; }
.steam-3 { animation: steamRise 3.2s ease-in-out 1.2s infinite; }

.steam-foot {
  stroke: var(--latte-warm);
  stroke-width: 1.6;
  animation: steamRise 4s ease-in-out infinite;
}

@keyframes steamRise {
  0% { stroke-dashoffset: 200; opacity: 0; transform: translateY(0); }
  20% { opacity: 0.85; }
  60% { opacity: 0.6; }
  100% { stroke-dashoffset: 0; opacity: 0; transform: translateY(-20px); }
}

@keyframes fadeWarm {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.2vw, 18px);
  color: var(--toast-brown);
  opacity: 0;
}

.hero-shelf {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  margin-top: clamp(28px, 4vh, 48px);
  align-items: flex-end;
  height: 64px;
  border-top: 2px solid var(--toast-brown);
  padding-top: 8px;
  width: min(520px, 70%);
}

.shelf-jar {
  display: inline-block;
  width: 24px;
  height: 36px;
  background: var(--butter-yellow);
  border: 1.6px solid var(--toast-brown);
  border-radius: 6px 6px 4px 4px;
  box-shadow: var(--warm-shadow);
}

.shelf-jar-tall { height: 52px; background: var(--latte-warm); }
.shelf-jar-short { height: 28px; background: #E9C68C; }

/* ---------- Magazine ---------- */

.magazine {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 8vh, 96px) clamp(40px, 8vw, 120px);
  max-width: 1100px;
  margin: 0 auto;
}

.magazine-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  max-width: 1000px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: clamp(24px, 4vh, 40px);
  padding-bottom: 16px;
  border-bottom: 1.5px dashed var(--latte-warm);
}

.section-icon {
  width: 48px;
  height: 48px;
  display: block;
  margin-bottom: 8px;
}

.section-icon.small {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
}

.hand-drawn {
  fill: rgba(240, 216, 136, 0.2);
  stroke: var(--toast-brown);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hand-drawn .leaf {
  fill: rgba(160, 112, 64, 0.4);
  stroke: var(--toast-brown);
}

.section-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--espresso-dark);
  letter-spacing: -0.01em;
}

.section-kicker {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(15px, 1.2vw, 19px);
  color: var(--cinnamon);
  margin-top: 4px;
}

/* ---------- Features ---------- */

.feature {
  margin-bottom: clamp(32px, 5vh, 56px);
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.feature-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--espresso-dark);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature-byline {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.95em;
  color: var(--toast-brown);
  margin-bottom: 16px;
}

.feature-body {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.85;
  color: var(--espresso-dark);
  margin-bottom: 18px;
}

.pull-quote {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(20px, 2.5vw, 32px);
  color: var(--toast-brown);
  border-left: 3px solid var(--latte-warm);
  padding-left: 20px;
  margin: 2em 0;
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- Sidebar ---------- */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vh, 32px);
}

.recipe-card,
.tip-card,
.menu-panel {
  background: #FCF6E8;
  border: 1.5px solid var(--latte-warm);
  border-radius: 14px;
  padding: clamp(18px, 2vw, 26px);
  box-shadow: var(--warm-shadow);
}

.recipe-card,
.tip-card,
.spring-card {
  transition: transform 0.4s var(--spring), box-shadow 0.3s ease;
}

.spring-card:hover {
  transform: scale(1.03);
  box-shadow: var(--warm-shadow-strong);
}

.recipe-card.is-bouncing {
  animation: recipeBounce 0.6s var(--spring);
}

@keyframes recipeBounce {
  0% { transform: scale(0.92); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.recipe-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.recipe-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.recipe-title {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: clamp(16px, 1.2vw, 20px);
  color: var(--espresso-dark);
  letter-spacing: -0.005em;
}

.recipe-list {
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
}

.recipe-list li {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95em;
  color: var(--espresso-dark);
  padding: 4px 0;
  border-bottom: 1px dotted rgba(160, 112, 64, 0.2);
}

.recipe-list li:last-child {
  border-bottom: none;
}

.recipe-note {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.92em;
  color: var(--cinnamon);
  margin-top: 6px;
}

.menu-title,
.tip-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(17px, 1.4vw, 22px);
  color: var(--toast-brown);
  margin-bottom: 12px;
}

.menu-panel {
  background: var(--cafe-cream);
  border-style: dashed;
}

.menu-list {
  list-style: none;
  padding: 0;
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: clamp(15px, 1.1vw, 18px);
  color: var(--espresso-dark);
  padding: 6px 0;
  border-bottom: 1px dotted rgba(160, 112, 64, 0.25);
}

.menu-list li:last-child {
  border-bottom: none;
}

.menu-price {
  color: var(--toast-brown);
  font-variant-numeric: tabular-nums;
}

.menu-foot {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.85em;
  color: var(--cinnamon);
  margin-top: 10px;
  text-align: right;
}

.tip-card {
  background: rgba(240, 216, 136, 0.35);
  border-color: var(--butter-yellow);
}

.tip-body {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95em;
  color: var(--espresso-dark);
  line-height: 1.7;
}

/* ---------- Hours strip ---------- */

.hours-strip {
  margin-top: clamp(40px, 6vh, 72px);
  padding: clamp(28px, 4vw, 48px);
  background: var(--latte-warm);
  border-radius: 18px;
  box-shadow: var(--warm-shadow);
  position: relative;
  overflow: hidden;
}

.hours-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(248, 240, 224, 0.6), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(240, 216, 136, 0.4), transparent 45%);
  pointer-events: none;
}

.hours-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.hours-label {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 1.4vw, 22px);
  color: var(--espresso-dark);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.hours-line {
  display: flex;
  justify-content: space-between;
  font-family: 'Lora', serif;
  font-size: clamp(14px, 1vw, 17px);
  color: var(--espresso-dark);
  padding: 4px 0;
  gap: 10px;
}

.hours-line span:last-child {
  color: var(--toast-brown);
  font-weight: 500;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}

.reveal.is-shown {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  padding: clamp(40px, 6vh, 80px) clamp(40px, 8vw, 120px) clamp(20px, 3vh, 40px);
  text-align: center;
  background: var(--cafe-cream);
  border-top: 1.5px dashed var(--latte-warm);
  z-index: 1;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
}

.footer-mark {
  display: block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--espresso-dark);
  margin-bottom: 6px;
}

.footer-line {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--cinnamon);
  font-size: clamp(13px, 1vw, 16px);
}

.footer-steam {
  width: 200px;
  height: 60px;
  margin: 16px auto 0;
  display: block;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .magazine-grid {
    grid-template-columns: 1fr;
  }
  .hours-inner {
    grid-template-columns: 1fr;
  }
  .wall-panel {
    width: 12px;
  }
  .hero {
    padding-left: 24px;
    padding-right: 24px;
  }
  .magazine {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steam-1, .steam-2, .steam-3, .steam-foot {
    animation: none;
    opacity: 0.5;
  }
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .logotype, .hero-tagline, .hero-sub {
    animation: none;
    opacity: 1;
  }
}
