:root {
  --paper: #fffaf2;
  --ink: #27221c;
  --muted: #766b61;
  --line: #e6dacb;
  --plum: #5a314f;
  --rose: #d96d74;
  --sage: #637a57;
  --sky: #eaf4f2;
  --butter: #f7d06f;
  --card: rgba(255, 255, 255, 0.78);
  --shadow: 0 22px 70px rgba(63, 44, 28, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(234, 244, 242, 0.9), rgba(255, 250, 242, 0.5) 42%, rgba(247, 208, 111, 0.18)),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(90, 49, 79, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 49, 79, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

a {
  color: inherit;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(3.1rem, 8vw, 6.9rem);
  font-weight: 800;
}

h2 {
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

h3 {
  font-size: 1.15rem;
}

strong {
  font-weight: 750;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px;
  border: 1px solid rgba(90, 49, 79, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.86);
  box-shadow: 0 14px 38px rgba(63, 44, 28, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-right: 0.85rem;
  border: 0;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--plum);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(90, 49, 79, 0.08);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--plum);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: #fff;
}

main {
  overflow: hidden;
}

.hero,
.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: calc(100vh - 76px);
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2.8rem, 7vw, 6rem) 0 4rem;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.32rem 0.68rem;
  border: 1px solid rgba(90, 49, 79, 0.14);
  border-radius: 999px;
  color: var(--plum);
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--plum);
  box-shadow: 0 12px 26px rgba(90, 49, 79, 0.22);
}

.button.secondary {
  border: 1px solid rgba(90, 49, 79, 0.18);
  background: rgba(255, 255, 255, 0.62);
}

.hero-media {
  position: relative;
  min-height: 600px;
}

.hero-media img {
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-main {
  width: 100%;
  height: 540px;
  margin-left: auto;
  border: 10px solid rgba(255, 250, 242, 0.9);
  border-radius: var(--radius);
  object-position: center;
}

.hero-card {
  position: absolute;
  border: 8px solid var(--paper);
  border-radius: var(--radius);
}

.card-one {
  left: 0;
  bottom: 8px;
  width: 230px;
  height: 170px;
}

.card-two {
  right: 18px;
  top: 26px;
  width: 174px;
  height: 130px;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.creature-section {
  display: grid;
  grid-template-columns: minmax(230px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  border-top: 1px solid var(--line);
}

.section-copy {
  position: sticky;
  top: 112px;
}

.section-copy p:last-child {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.section-copy.wide {
  position: static;
  max-width: 780px;
  margin-bottom: 2rem;
}

.gallery-carousel {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.gallery-stage {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eadfcf;
  box-shadow: 0 18px 54px rgba(63, 44, 28, 0.14);
  cursor: grab;
  touch-action: pan-y;
  outline: none;
}

.gallery-stage:focus-visible {
  box-shadow: 0 0 0 4px rgba(90, 49, 79, 0.22), 0 18px 54px rgba(63, 44, 28, 0.14);
}

.gallery-stage.dragging {
  cursor: grabbing;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(5%);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.gallery-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 0.75rem;
}

.gallery-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(90, 49, 79, 0.16);
  border-radius: 50%;
  color: var(--plum);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(63, 44, 28, 0.08);
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  color: #fff;
  background: var(--plum);
  outline: none;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(90, 49, 79, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.gallery-dot.active,
.gallery-dot:hover,
.gallery-dot:focus-visible {
  background: var(--plum);
  outline: none;
}

.recipe-section {
  border-top: 1px solid var(--line);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.recipe-card {
  display: grid;
  grid-template-rows: 190px auto auto;
  gap: 0.15rem;
  min-width: 0;
  padding: 10px 10px 14px;
  border: 1px solid rgba(90, 49, 79, 0.12);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 14px 42px rgba(63, 44, 28, 0.1);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(63, 44, 28, 0.15);
}

.recipe-card img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.recipe-card span,
.recipe-card small {
  padding: 0 0.35rem;
}

.recipe-card span {
  margin-top: 0.55rem;
  font-weight: 850;
  line-height: 1.25;
}

.recipe-card small {
  color: var(--muted);
  font-size: 0.9rem;
}

.recipe-details {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.recipe-detail {
  scroll-margin-top: 96px;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(90, 49, 79, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 60px rgba(63, 44, 28, 0.09);
}

.recipe-title {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.recipe-photo {
  max-height: 420px;
  margin: 0 0 1.5rem;
  overflow: hidden;
  border-radius: var(--radius);
}

.recipe-photo img {
  width: 100%;
  height: min(48vw, 420px);
  object-fit: cover;
}

.recipe-detail h3 {
  margin: 1.45rem 0 0.55rem;
  color: var(--plum);
}

.recipe-detail ul,
.recipe-detail ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.recipe-detail li + li {
  margin-top: 0.35rem;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.lang-switch button,
.recipe-control select {
  min-height: 42px;
  border: 1px solid rgba(90, 49, 79, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.lang-switch button {
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-weight: 800;
}

.lang-switch button.active {
  color: #fff;
  border-color: var(--plum);
  background: var(--plum);
}

.recipe-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.recipe-control label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recipe-control select {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
}

.lang-section {
  padding-top: 0.2rem;
}

.zh-title {
  color: var(--muted);
  font-weight: 500;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 520px;
  }

  .hero-main {
    margin: 0 auto;
  }

  .creature-section {
    grid-template-columns: 1fr;
  }

  .section-copy {
    position: static;
  }

  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header {
    align-items: flex-start;
    border-radius: 24px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    padding: 0.45rem;
    border: 1px solid rgba(90, 49, 79, 0.14);
    border-radius: 18px;
    background: rgba(255, 250, 242, 0.96);
    box-shadow: 0 16px 38px rgba(63, 44, 28, 0.12);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    border-radius: 12px;
  }

  .hero-actions,
  .recipe-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 430px;
  }

  .hero-main {
    width: 100%;
    height: 390px;
  }

  .card-one {
    width: 160px;
    height: 118px;
    bottom: 20px;
  }

  .card-two {
    width: 130px;
    height: 96px;
  }

  .gallery-stage {
    min-height: 300px;
  }

  .gallery-controls {
    grid-template-columns: 40px 1fr 40px;
  }

  .gallery-arrow {
    width: 40px;
    height: 40px;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .recipe-card {
    grid-template-rows: 220px auto auto;
  }

  .recipe-detail {
    padding: 1rem;
  }
}

@media (max-width: 440px) {
  .hero,
  .section,
  .site-header,
  .site-footer {
    width: min(100% - 20px, var(--max));
  }

  h1 {
    font-size: 2.75rem;
  }

  .hero-media {
    min-height: 350px;
  }

  .hero-main {
    width: 100%;
    height: 330px;
  }

  .hero-card {
    border-width: 5px;
  }

  .card-one {
    width: 130px;
    height: 96px;
  }

  .card-two {
    width: 104px;
    height: 76px;
  }

  .gallery-stage {
    min-height: 230px;
  }
}
