:root {
  --bg: #faf6f2;
  --text: #2b2a28;
  --muted: #716c66;
  --accent: #f8b765;
  --accent-dark: #ee7b50;
  --card-bg: #fff;
  --border: #ebe4dc;
  --shadow: 0 15px 35px rgba(25, 23, 17, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
}

body {
  margin: 0;
  font-family: 'Nunito', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  background: var(--bg);
}

.fade-up {
  animation: fadeUp 1s ease forwards;
}

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

@keyframes heroGlow {
  0% {
    opacity: 0.95;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 0.95;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatCard {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(248, 183, 101, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(248, 183, 101, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(248, 183, 101, 0);
  }
}

.hero {
  position: relative;
  padding: 180px 24px 160px;
  text-align: center;
  color: #fff;
  background: url('https://images.unsplash.com/photo-1509440159596-0249088772ff?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(34, 32, 29, 0.95), rgba(238, 123, 80, 0.65));
  animation: heroGlow 12s ease-in-out infinite;
}

.hero__nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

.hero__menu {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__menu a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero__menu a:hover,
.hero__menu a.is-current {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: #fff;
}

.logo__mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(248, 183, 101, 0.9);
  color: #1c1915;
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.logo__text strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.logo__text small {
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.logo__meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.hero__content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  animation: fadeUp 1.2s ease both;
}

.sub-hero {
  text-align: left;
  padding: 160px 24px 120px;
}

.sub-hero .hero__nav {
  margin-bottom: 30px;
}

.sub-hero__content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeUp 1.2s ease both;
}

.sub-hero__content h1 {
  font-size: 3rem;
}

.sub-hero--recipes {
  background: linear-gradient(120deg, rgba(32, 28, 24, 0.9), rgba(138, 89, 60, 0.8)), url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.sub-hero--atelier {
  background: linear-gradient(120deg, rgba(25, 24, 20, 0.92), rgba(80, 96, 102, 0.8)), url('https://images.unsplash.com/photo-1496417263034-38ec4f0b665a?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.sub-hero--journal {
  background: linear-gradient(120deg, rgba(33, 27, 26, 0.92), rgba(109, 63, 83, 0.78)), url('https://images.unsplash.com/photo-1496116218417-1a781b1c416c?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.hero h1 {
  font-size: 3.5rem;
  margin: 0.5rem 0;
}

.hero .subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.eyebrow {
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
  animation: pulseRing 3.2s ease-out infinite;
}

.cta:hover {
  transform: translateY(-2px);
}

main {
  padding: 0 24px 120px;
}

.breadcrumb {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 100px;
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section__header h2 {
  margin: 0;
  font-size: 2.25rem;
}

.intro p {
  max-width: 720px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stats article {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  animation: fadeUp 1s ease both;
}

.stats article:nth-child(2) {
  animation-delay: 0.15s;
}

.stats article:nth-child(3) {
  animation-delay: 0.3s;
}

.stats strong {
  display: block;
  font-size: 2rem;
}

.filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter {
  border: 1px solid var(--border);
  padding: 0.45rem 1.5rem;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter.is-active,
.filter:hover {
  background: var(--accent);
  color: #fff;
}

.recipe-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 1s ease both;
}

.card:nth-child(2) {
  animation-delay: 0.15s;
}

.card:nth-child(3) {
  animation-delay: 0.3s;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 22px 35px rgba(25, 23, 17, 0.18);
}

.card .tag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--accent-dark);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
}

.card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.card__intro {
  color: var(--muted);
}

.card ul {
  padding-left: 1.2rem;
  margin: 1rem 0;
}

.card__tip {
  font-size: 0.9rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.tips-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.tips-grid article {
  background: #252323;
  color: #f8f3ec;
  border-radius: 18px;
  padding: 1.5rem;
  animation: fadeUp 1s ease both;
  transition: transform 0.3s ease;
}

.tips-grid article:nth-child(2) {
  animation-delay: 0.12s;
}

.tips-grid article:nth-child(3) {
  animation-delay: 0.24s;
}

.tips-grid article:nth-child(4) {
  animation-delay: 0.36s;
}

.tips-grid article:hover {
  transform: translateY(-6px);
}

.filter-panel {
  margin-top: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.filter-panel__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.filter-panel__content {
  position: relative;
}

.recipe-panel {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

.recipe-panel.is-active {
  display: block;
}

.panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.panel__module {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  background: #fffdfb;
  box-shadow: var(--shadow);
}

.module__label {
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.4rem;
  display: inline-block;
}

.seasonal__content {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.seasonal__content h3 {
  margin-bottom: 0.5rem;
}

.seasonal__content ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.seasonal__content > div {
  animation: fadeUp 1s ease both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seasonal__content > div:nth-child(2) {
  animation-delay: 0.18s;
}

.seasonal__content > div:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 32px rgba(34, 32, 29, 0.12);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 1.5rem;
}

.flow-progress {
  margin-top: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.flow-progress__controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.flow-progress__dot {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: #fdf9f5;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  transition: transform 0.2s ease, background 0.2s ease;
  outline: none;
  font-family: inherit;
  color: inherit;
}

.flow-progress__dot span {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.flow-progress__dot.is-active {
  background: var(--accent);
  color: #1c1915;
  transform: translateY(-2px);
}

.flow-progress__panels {
  position: relative;
}

.flow-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  background: #fffdfb;
  box-shadow: var(--shadow);
  display: none;
}

.flow-card.is-active {
  display: block;
}

.flow-card ul {
  margin: 1rem 0 0;
  padding-left: 1rem;
}

.atelier-grid__cards {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.atelier-grid__cards article {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: var(--shadow);
}

.accordion {
  margin-top: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.accordion__item + .accordion__item {
  border-top: 1px solid var(--border);
}

.accordion__header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
}

.accordion__header small {
  color: var(--muted);
  font-weight: 400;
}

.accordion__body {
  padding: 0 1.5rem;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion__body ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1rem;
}

.story-lab__grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 1.5rem;
}

.story-lab__topics {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.story-chip {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  padding: 1rem;
  background: #2a2825;
  color: #fefefe;
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  outline: none;
  font-family: inherit;
}

.story-chip small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.story-chip.is-active {
  background: var(--accent-dark);
  transform: translateX(6px);
}

.story-lab__stage {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  background: #fffdfb;
  box-shadow: var(--shadow);
  min-height: 280px;
}

.story-lab__meta {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.story-lab__meta article {
  background: #f3ede5;
  border-radius: 16px;
  padding: 1rem;
}

.journal-stacks__grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.journal-stacks__grid article {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: var(--shadow);
}

.journal-stacks__grid ol {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.footer {
  text-align: center;
  padding: 60px 24px 80px;
  background: #1d1c1a;
  color: #e9e2da;
}

.footer small {
  color: #8f887f;
}

@media (max-width: 640px) {
  .hero {
    padding: 140px 16px 120px;
  }

  .hero__nav {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .logo__meta {
    letter-spacing: 0.2em;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section {
    padding-top: 80px;
  }

  .hero__menu {
    justify-content: center;
  }

  .sub-hero {
    padding: 140px 16px 100px;
  }

  .story-lab__grid {
    grid-template-columns: 1fr;
  }
}
