:root {
  --nen: #fffaf5;
  --nen-dam: #fff1e7;
  --giay: #fffdf9;

  --nau: #684638;
  --nau-dam: #3f2b24;

  --hong: #f6c8cf;
  --hong-nhat: #ffe8ed;

  --vang: #f6df9f;
  --xanh: #cfe8dd;

  --vien:
    rgba(104, 70, 56, 0.22);

  --bong:
    0 20px 60px rgba(104, 70, 56, 0.12);

  --rong:
    min(1120px,
      calc(100% - 32px));

  --rong-hep:
    min(780px,
      calc(100% - 32px));

  --font-chu:
    ui-rounded,
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-width: 320px;

  color: var(--nau);

  background:
    radial-gradient(circle at 8% 14%,
      rgba(246, 200, 207, 0.28),
      transparent 28%),

    radial-gradient(circle at 92% 24%,
      rgba(246, 223, 159, 0.32),
      transparent 25%),

    var(--nen);

  font-family: var(--font-chu);

  line-height: 1.6;

  text-rendering:
    optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

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

.bo-qua-dieu-huong {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;

  padding: 10px 14px;

  color: #fff;
  background: var(--nau-dam);

  transform:
    translateY(-150%);
}

.bo-qua-dieu-huong:focus {
  transform:
    translateY(0);
}

.khung {
  width: var(--rong);
  margin-inline: auto;
}

.khung--hep {
  width: var(--rong-hep);
}

.dau-trang {
  position: sticky;
  top: 0;
  z-index: 30;

  border-bottom:
    1px solid transparent;

  background:
    rgba(255, 250, 245, 0.9);

  backdrop-filter:
    blur(14px);

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.dau-trang.da-cuon {
  border-color: var(--vien);

  box-shadow:
    0 8px 30px rgba(104, 70, 56, 0.08);
}

.dau-trang__ben-trong {
  min-height: 72px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.thuong-hieu {
  display: inline-flex;
  align-items: center;

  gap: 10px;

  min-width: 0;

  color: var(--nau-dam);

  font-size:
    clamp(0.98rem,
      3.7vw,
      1.25rem);

  font-weight: 800;

  text-decoration: none;

  letter-spacing: -0.02em;
}

.thuong-hieu>span:last-child {
  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.thuong-hieu__bieu-tuong {
  flex: 0 0 auto;

  font-size: 1.5rem;
}

.nut-menu {
  width: 46px;
  height: 46px;

  display: grid;
  place-content: center;

  gap: 5px;

  border:
    1px solid var(--vien);

  border-radius: 16px;

  color: var(--nau);

  background: var(--giay);

  cursor: pointer;
}

.nut-menu span {
  width: 20px;
  height: 2px;

  border-radius: 999px;

  background: currentColor;

  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nut-menu[aria-expanded="true"] span:nth-child(1) {
  transform:
    translateY(7px) rotate(45deg);
}

.nut-menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nut-menu[aria-expanded="true"] span:nth-child(3) {
  transform:
    translateY(-7px) rotate(-45deg);
}

.dieu-huong {
  position: absolute;

  top:
    calc(100% + 1px);

  left: 16px;
  right: 16px;

  display: none;

  padding: 10px;

  border:
    1px solid var(--vien);

  border-radius: 20px;

  background: var(--giay);

  box-shadow: var(--bong);
}

.dieu-huong.da-mo {
  display: grid;
}

.dieu-huong a {
  min-height: 46px;

  display: flex;
  align-items: center;

  padding:
    0 14px;

  border-radius: 14px;

  font-weight: 700;

  text-decoration: none;
}

.dieu-huong a:hover,
.dieu-huong a:focus-visible {
  background:
    var(--hong-nhat);
}

.mo-dau {
  position: relative;

  min-height:
    min(760px,
      calc(100svh - 72px));

  overflow: hidden;

  display: grid;
  align-items: center;

  padding:
    74px 0 60px;
}

.mo-dau__nen {
  position: absolute;
  inset: 0;

  pointer-events: none;
}

.mo-dau__nen i {
  position: absolute;

  width: 12px;
  height: 12px;

  border-radius: 50%;

  background: var(--hong);

  opacity: 0.55;

  animation:
    hat-bot 8s ease-in-out infinite;
}

.mo-dau__nen i:nth-child(1) {
  left: 8%;
  top: 24%;
}

.mo-dau__nen i:nth-child(2) {
  left: 20%;
  top: 70%;

  width: 8px;
  height: 8px;

  animation-delay: -2s;
}

.mo-dau__nen i:nth-child(3) {
  right: 11%;
  top: 30%;

  background: var(--vang);

  animation-delay: -4s;
}

.mo-dau__nen i:nth-child(4) {
  right: 22%;
  top: 76%;

  width: 9px;
  height: 9px;

  background: var(--xanh);

  animation-delay: -1s;
}

.mo-dau__nen i:nth-child(5) {
  left: 50%;
  top: 12%;

  width: 7px;
  height: 7px;

  animation-delay: -5s;
}

.mo-dau__noi-dung {
  position: relative;
  z-index: 1;

  text-align: center;
}

.loi-tang-ngan {
  width: fit-content;

  margin:
    0 auto 18px;

  padding:
    8px 14px;

  border:
    1px solid var(--vien);

  border-radius: 999px;

  background:
    rgba(255, 253, 249, 0.74);

  color: var(--nau);

  font-size: 0.9rem;

  font-weight: 800;
}

.mo-dau h1 {
  max-width: 850px;

  margin:
    0 auto;

  color: var(--nau-dam);

  font-size:
    clamp(2.65rem,
      12vw,
      6.8rem);

  line-height: 0.98;

  letter-spacing: -0.065em;
}

.mo-dau__gioi-thieu {
  max-width: 680px;

  margin:
    26px auto 0;

  color: #725b51;

  font-size:
    clamp(1.02rem,
      3.8vw,
      1.28rem);
}

.mo-dau__loi-tang {
  max-width: 680px;

  margin:
    16px auto 0;

  color: var(--nau);

  font-size: 0.98rem;

  font-style: italic;
}

.mo-dau__hanh-dong {
  display: grid;

  gap: 12px;

  justify-content: center;

  margin-top: 30px;
}

.nut-chinh,
.nut-phu {
  min-height: 50px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding:
    0 22px;

  border-radius: 18px;

  font-weight: 800;

  text-decoration: none;

  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.nut-chinh {
  color: #fffaf5;

  background: var(--nau);

  box-shadow:
    0 10px 0 #ead8c7;
}

.nut-phu {
  border:
    1px solid var(--vien);

  background:
    rgba(255, 253, 249, 0.7);
}

.nut-chinh:hover,
.nut-chinh:focus-visible,
.nut-phu:hover,
.nut-phu:focus-visible {
  transform:
    translateY(-2px);
}

.nut-chinh:active,
.nut-phu:active {
  transform:
    translateY(1px) scale(0.99);
}

.minh-hoa-banh {
  position: relative;

  width: 180px;
  height: 150px;

  margin:
    54px auto -12px;
}

.minh-hoa-banh__banh {
  position: absolute;
  z-index: 2;

  left: 50%;
  bottom: 30px;

  font-size: 5.6rem;

  transform:
    translateX(-50%) rotate(-3deg);

  filter:
    drop-shadow(0 14px 12px rgba(104, 70, 56, 0.16));

  animation:
    banh-tho 4s ease-in-out infinite;
}

.minh-hoa-banh__dia {
  position: absolute;

  left: 50%;
  bottom: 18px;

  width: 160px;
  height: 24px;

  border:
    4px solid var(--nau);

  border-radius: 50%;

  background: #fff;

  transform:
    translateX(-50%);
}

.hoi-nong {
  position: absolute;

  top: 10px;

  width: 18px;
  height: 54px;

  border-left:
    3px solid rgba(104, 70, 56, 0.36);

  border-radius: 50%;

  animation:
    hoi-nong 3.2s ease-in-out infinite;
}

.hoi-nong--mot {
  left: 62px;
}

.hoi-nong--hai {
  left: 90px;

  animation-delay: -1.1s;
}

.hoi-nong--ba {
  left: 118px;

  animation-delay: -2.2s;
}

.khu-vuc {
  padding:
    82px 0;
}

.khu-vuc--nhat-ky {
  border-block:
    1px solid var(--vien);

  background:
    rgba(255, 253, 249, 0.62);
}

.tieu-de-khu-vuc {
  max-width: 700px;

  margin:
    0 auto 38px;

  text-align: center;
}

.tieu-de-khu-vuc p {
  margin:
    0 0 8px;

  color: #8a6e61;

  font-size: 0.94rem;

  font-weight: 700;
}

.tieu-de-khu-vuc h2 {
  margin: 0;

  color: var(--nau-dam);

  font-size:
    clamp(2rem,
      8vw,
      3.8rem);

  line-height: 1.05;

  letter-spacing: -0.045em;
}

.danh-sach-banh,
.danh-sach-cong-thuc {
  display: grid;

  gap: 18px;
}

.mon-banh {
  position: relative;

  overflow: hidden;

  min-height: 100%;

  border:
    1px solid var(--vien);

  border-radius: 28px;

  background: var(--giay);

  box-shadow:
    0 12px 36px rgba(104, 70, 56, 0.08);

  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.mon-banh:nth-child(4n + 1) {
  background: #fff5df;
}

.mon-banh:nth-child(4n + 2) {
  background: #ffedf0;
}

.mon-banh:nth-child(4n + 3) {
  background: #edf8f3;
}

.mon-banh:nth-child(4n + 4) {
  background: #fffaf0;
}

.mon-banh:hover {
  transform:
    translateY(-4px) rotate(-0.3deg);

  box-shadow:
    var(--bong);
}

.mon-banh--noi-bat {
  box-shadow:
    0 16px 48px rgba(104, 70, 56, 0.15);
}

.mon-banh__anh {
  width: 100%;

  aspect-ratio: 4 / 3;

  object-fit: cover;

  background:
    rgba(255, 255, 255, 0.55);
}

.mon-banh__anh-thay-the {
  aspect-ratio: 4 / 3;

  display: grid;
  place-items: center;

  font-size: 4.5rem;

  background:
    radial-gradient(circle at 50% 45%,
      rgba(255, 255, 255, 0.9),
      transparent 45%),

    rgba(255, 255, 255, 0.35);
}

.mon-banh__noi-dung {
  padding: 24px;
}

.mon-banh h3,
.cong-thuc h3,
.bai-nhat-ky h3 {
  margin: 0;

  color: var(--nau-dam);

  letter-spacing: -0.025em;
}

.mon-banh h3 {
  font-size: 1.45rem;
}

.mon-banh p {
  margin:
    10px 0 0;
}

.mon-banh__loi-nhan {
  padding-top: 14px;

  border-top:
    1px dashed rgba(104, 70, 56, 0.25);

  color: #7f6256;

  font-size: 0.92rem;

  font-style: italic;
}

.dong-thoi-gian {
  position: relative;

  display: grid;

  gap: 28px;
}

.dong-thoi-gian::before {
  content: "";

  position: absolute;

  top: 10px;
  bottom: 10px;
  left: 13px;

  width: 2px;

  background:
    linear-gradient(var(--hong),
      var(--vang),
      var(--xanh));
}

.bai-nhat-ky {
  position: relative;

  padding-left: 46px;
}

.bai-nhat-ky::before {
  content: "";

  position: absolute;
  z-index: 2;

  top: 9px;
  left: 6px;

  width: 16px;
  height: 16px;

  border:
    4px solid var(--nen);

  border-radius: 50%;

  background: var(--nau);

  box-shadow:
    0 0 0 1px var(--vien);
}

.bai-nhat-ky__anh {
  width: 100%;

  max-height: 360px;

  margin-bottom: 16px;

  border-radius: 22px;

  object-fit: cover;
}

.bai-nhat-ky time {
  display: block;

  margin-bottom: 6px;

  color: #96776a;

  font-size: 0.85rem;

  font-weight: 800;
}

.bai-nhat-ky h3 {
  font-size: 1.35rem;
}

.bai-nhat-ky p {
  margin:
    8px 0 0;

  white-space: pre-line;
}

.cong-thuc {
  overflow: hidden;

  border:
    1px solid var(--vien);

  border-radius: 26px;

  background:
    rgba(255, 253, 249, 0.9);
}

.cong-thuc__anh {
  width: 100%;

  aspect-ratio: 16 / 10;

  object-fit: cover;
}

.cong-thuc__noi-dung {
  padding: 22px;
}

.cong-thuc h3 {
  font-size: 1.35rem;
}

.cong-thuc__mo-ta {
  margin:
    8px 0 18px;

  color: #795f54;
}

.cong-thuc details {
  border-top:
    1px solid var(--vien);
}

.cong-thuc summary {
  min-height: 48px;

  display: flex;
  align-items: center;

  cursor: pointer;

  font-weight: 800;
}

.cong-thuc pre {
  margin:
    0 0 18px;

  white-space: pre-wrap;

  font: inherit;

  color: #604a41;
}

.loi-nhan-cuoi {
  padding:
    30px 0 80px;

  text-align: center;
}

.loi-nhan-cuoi .khung {
  padding:
    32px 22px;

  border:
    1px solid var(--vien);

  border-radius: 30px;

  background:
    linear-gradient(135deg,
      #fff0f3,
      #fff8df);
}

.loi-nhan-cuoi p {
  max-width: 620px;

  margin:
    0 auto 14px;

  color: var(--nau-dam);

  font-size:
    clamp(1.05rem,
      4vw,
      1.32rem);
}

.loi-nhan-cuoi span {
  font-size: 1.5rem;
}

.chan-trang {
  padding:
    32px 0 max(32px,
      env(safe-area-inset-bottom));

  border-top:
    1px solid var(--vien);

  color: #866b60;

  text-align: center;

  font-size: 0.88rem;
}

.chan-trang p {
  margin:
    4px 0;
}

.chan-trang a {
  display: inline-block;

  margin-top: 12px;

  color: inherit;
}

.dang-tai,
.trang-thai-trong {
  grid-column:
    1 / -1;

  margin: 0;

  padding: 24px;

  border:
    1px dashed var(--vien);

  border-radius: 20px;

  color: #856c61;

  text-align: center;
}

.thong-bao {
  position: fixed;
  z-index: 80;

  right: 16px;

  bottom:
    max(16px,
      env(safe-area-inset-bottom));

  left: 16px;

  padding:
    14px 16px;

  border:
    1px solid var(--vien);

  border-radius: 16px;

  color: var(--nau-dam);

  background: var(--giay);

  box-shadow: var(--bong);

  text-align: center;
}

.hien-dan {
  opacity: 0;

  transform:
    translateY(16px);

  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.hien-dan.da-hien {
  opacity: 1;

  transform: none;
}

.dom-sang {
  position: fixed;
  z-index: 100;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--hong);

  pointer-events: none;

  animation:
    dom-sang 650ms ease-out forwards;
}

@keyframes hat-bot {

  0%,
  100% {
    transform:
      translateY(0) scale(1);
  }

  50% {
    transform:
      translateY(-18px) scale(1.2);
  }
}

@keyframes banh-tho {

  0%,
  100% {
    transform:
      translateX(-50%) rotate(-3deg) translateY(0);
  }

  50% {
    transform:
      translateX(-50%) rotate(2deg) translateY(-5px);
  }
}

@keyframes hoi-nong {
  0% {
    opacity: 0;

    transform:
      translateY(12px) scaleX(0.7);
  }

  35% {
    opacity: 0.55;
  }

  100% {
    opacity: 0;

    transform:
      translateY(-18px) translateX(6px) scaleX(1.2);
  }
}

@keyframes dom-sang {
  to {
    opacity: 0;

    transform:
      translate(var(--x),
        var(--y)) scale(0);
  }
}

@media (min-width: 640px) {
  .mo-dau__hanh-dong {
    display: flex;
  }

  .danh-sach-banh,
  .danh-sach-cong-thuc {
    grid-template-columns:
      repeat(2,
        minmax(0, 1fr));
  }

  .thong-bao {
    right: 24px;
    left: auto;

    width:
      min(420px,
        calc(100% - 48px));
  }
}

@media (min-width: 820px) {
  .nut-menu {
    display: none;
  }

  .dieu-huong {
    position: static;

    display: flex;

    padding: 0;

    border: 0;

    border-radius: 0;

    background: transparent;

    box-shadow: none;
  }

  .dieu-huong a {
    padding-inline: 16px;
  }

  .danh-sach-banh {
    grid-template-columns:
      repeat(2,
        minmax(0, 1fr));
  }

  .danh-sach-cong-thuc {
    grid-template-columns:
      repeat(3,
        minmax(0, 1fr));
  }

  .dong-thoi-gian::before {
    left: 50%;

    transform:
      translateX(-50%);
  }

  .bai-nhat-ky {
    width:
      calc(50% - 28px);

    padding: 0;
  }

  .bai-nhat-ky:nth-child(odd) {
    justify-self: start;

    text-align: right;
  }

  .bai-nhat-ky:nth-child(even) {
    justify-self: end;
  }

  .bai-nhat-ky::before {
    top: 10px;
  }

  .bai-nhat-ky:nth-child(odd)::before {
    right: -36px;
    left: auto;
  }

  .bai-nhat-ky:nth-child(even)::before {
    left: -36px;
  }
}

@media (min-width: 1080px) {
  .danh-sach-banh {
    grid-template-columns:
      repeat(4,
        minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  :root {
    --rong:
      min(calc(100% - 24px),
        1120px);

    --rong-hep:
      min(calc(100% - 24px),
        780px);
  }

  .mo-dau {
    padding-top: 54px;
  }

  .mo-dau h1 {
    font-size: 2.5rem;
  }

  .mon-banh__noi-dung,
  .cong-thuc__noi-dung {
    padding: 20px;
  }
}

@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;
  }

  .hien-dan {
    opacity: 1;

    transform: none;
  }
}