:root {
  --maroon: #6E1E2B;
  --maroon-deep: #3E1019;
  --gold: #E3A62F;
  --gold-soft: #F0C766;
  --leaf: #3F5D42;
  --chili: #D9552B;
  --cream: #FBF0DE;
  --paper: #FFFCF6;
  --ink: #241410;
  --ink-soft: #6b5b52;
  --line: rgba(43, 24, 16, 0.10);
  --shadow-sm: 0 2px 8px rgba(62, 16, 25, .08);
  --shadow: 0 16px 36px rgba(62, 16, 25, .14);
  --shadow-lg: 0 30px 60px rgba(62, 16, 25, .22);
  --radius: 16px;
  --star: #E3A62F;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15.5px;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--maroon-deep);
  letter-spacing: -.01em;
}

p {
  color: var(--ink-soft);
}

.eyebrow {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  color: var(--chili);
  font-weight: 700;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

::selection {
  background: var(--gold-soft);
  color: var(--maroon-deep);
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    scroll-behavior: auto !important;
  }
}

/* ---------- textures ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- top strip ---------- */
.topstrip {
  background: var(--maroon-deep);
  color: var(--gold-soft);
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  letter-spacing: .08em;
  text-align: center;
  padding: 7px 10px;
  text-transform: uppercase;
}

/* ---------- nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 249, 238, .97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 6px 28px;
  max-width: 1280px;
  margin: 0 auto;
}

header.shrink .topbar {
  padding: 10px 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--maroon-deep);
  letter-spacing: -.01em;
  flex-shrink: 0;
}

.logo .stamp {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--gold), var(--chili), var(--leaf), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.logo .stamp::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--paper);
  display: flex;
}

.logo .stamp span {
  position: relative;
  z-index: 2;
  font-size: 1rem;
}

.topsearch {
  flex: 1;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 6px 8px 6px 18px;
  transition: .2s;
}

.topsearch:focus-within {
  border-color: var(--chili);
  box-shadow: 0 0 0 3px rgba(217, 85, 45, .12);
}

.topsearch input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: .94rem;
  color: var(--ink);
}

@media(max-width:820px) {
  .topsearch {
    max-width: none;
  }

  .topsearch .btn-label {
    display: none;
  }

  .topsearch button {
    padding: 9px 12px;
  }
}

@media(max-width:480px) {
  .topbar {
    gap: 10px;
    padding: 12px 16px;
    display: inline-grid !important;
  }

  .logo {
    font-size: 1.15rem;
    gap: 7px;
  }

  .logo .stamp {
    width: 28px;
    height: 28px;
  }

  .topsearch {
    padding: 5px 6px 5px 12px;
    gap: 6px;
  }

  .topsearch input {
    font-size: .82rem;
  }

  .navcta {
    gap: 8px;
  }

  .iconbtn {
    width: 36px;
    height: 36px;
    font-size: .95rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 99px;
  font-weight: 700;
  font-size: .88rem;
  transition: .25s;
}

.btn-primary {
  background: var(--chili);
  color: #fff;
  box-shadow: 0 8px 18px rgba(217, 85, 45, .35);
}

.btn-primary:hover {
  background: var(--maroon);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--maroon-deep);
}

.btn-ghost:hover {
  border-color: var(--maroon);
  background: rgba(110, 30, 43, .05);
}

.iconbtn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--maroon-deep);
  border: 1.5px solid var(--line);
  transition: .2s;
  flex-shrink: 0;
}

.iconbtn:hover {
  background: rgba(110, 30, 43, .06);
  border-color: var(--maroon);
}

.fav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--chili);
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
}

.login-tabs {
  display: flex;
  gap: 6px;
  background: var(--cream);
  border-radius: 99px;
  padding: 4px;
  margin-bottom: 22px;
}

.login-tabs button {
  flex: 1;
  padding: 10px;
  border-radius: 99px;
  font-weight: 800;
  font-size: .85rem;
  color: var(--ink-soft);
  transition: .2s;
}

.login-tabs button.active {
  background: var(--maroon);
  color: #fff;
}

.navcta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.megabar {
  background: var(--maroon-deep);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.megalist {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.megalist>li {
  position: relative;
}

.megalist .navlink {
  padding: 14px 18px;
  font-weight: 700;
  font-size: .88rem;
  color: rgba(255, 255, 255, .82);
  transition: .2s;
  display: block;
}

.megalist .navlink:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

.megalist .navlink.active {
  color: var(--gold-soft);
}

.megapanel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  padding: 26px;
  display: none;
  gap: 36px;
  min-width: 520px;
  z-index: 50;
  border-top: 3px solid var(--gold);
}

.megapanel.simple {
  min-width: 340px;
}

.has-mega:hover .megapanel {
  display: flex;
}

.megacol {
  min-width: 170px;
}

.megacol.wide {
  min-width: 280px;
  columns: 2;
  column-gap: 20px;
}

.megacol h5 {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--chili);
  margin-bottom: 12px;
}

.megacol ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.megacol.wide ul {
  display: block;
}

.megacol.wide li {
  margin-bottom: 9px;
  break-inside: avoid;
}

.megacol a, .megacol button {
  font-size: .9rem;
  color: var(--ink-soft);
  font-weight: 600;
  transition: .15s;
  text-align: left;
  display: block;
}

.megacol a:hover, .megacol button:hover {
  color: var(--chili);
}

.megafeature {
  width: 180px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

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

.megafeature .tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(43, 24, 16, .85), transparent);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 24px 12px 10px;
}

@media(max-width:1080px) {
  .megabar {
    display: none;
  }
}

.hamburger {
  display: none;
}

@media(max-width:1080px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 26px;
  }
}

.hamburger span {
  height: 2px;
  background: var(--maroon-deep);
  border-radius: 2px;
  transition: .25s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobilemenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: var(--paper);
}

@media(max-width:1080px) {
  .mobilemenu {
    display: flex;
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-bottom: 1px solid var(--line);
    transition: max-height .35s ease, opacity .3s ease, padding .35s ease;
  }

  .mobilemenu.open {
    max-height: 600px;
    opacity: 1;
    padding: 10px 28px 20px;
  }
}

.mobilemenu button {
  text-align: left;
  padding: 12px 6px;
  font-weight: 700;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.mobilemenu button.active {
  color: var(--chili);
}

.mobile-accordion {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.mobile-accordion summary {
  padding: 12px 6px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-accordion summary::-webkit-details-marker {
  display: none;
}

.mobile-accordion summary::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--chili);
}

.mobile-accordion[open] summary::after {
  content: '−';
}

.mobile-accordion-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 6px 14px 14px;
}

.mobile-accordion-body button, .mobile-accordion-body a {
  text-align: left;
  padding: 9px 0;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-soft);
  border-bottom: none;
}

.mobile-accordion-body button:hover, .mobile-accordion-body a:hover {
  color: var(--chili);
}

/* ---------- page system ---------- */
body {
  animation: fadein .5s cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.995);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page.active {
    animation: none;
  }
}

/* ---------- HERO / SLIDER ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--maroon-deep);
}

.slider {
  position: relative;
  height: 640px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
}

.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide:nth-child(1) .slide-bg {
  background: radial-gradient(circle at 80% 20%, #8a3040 0%, var(--maroon-deep) 55%), var(--maroon-deep);
}

.slide:nth-child(2) .slide-bg {
  background: radial-gradient(circle at 75% 30%, #6a5620 0%, var(--maroon-deep) 55%), var(--maroon-deep);
}

.slide:nth-child(3) .slide-bg {
  background: radial-gradient(circle at 78% 25%, #3c5636 0%, var(--maroon-deep) 55%), var(--maroon-deep);
}

.slide-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .15;
  background-image: radial-gradient(circle, #fff 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.slide-copy .eyebrow {
  color: var(--gold-soft);
}

.slide-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  color: #fff;
  margin: 14px 0 18px;
  letter-spacing: -.01em;
}

.slide-copy h1 em {
  font-style: italic;
  color: var(--gold-soft);
}

.slide-copy p {
  color: rgba(255, 255, 255, .78);
  font-size: 1.08rem;
  max-width: 460px;
  margin-bottom: 26px;
  line-height: 1.6;
}

.slide-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.slide-actions .btn-ghost {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

.slide-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
}

.plate {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #f2ead9 45%, #e4d6b6 70%, #cdb987 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4), inset 0 0 0 14px rgba(255, 255, 255, .5), inset 0 0 0 16px #d8c391;
  animation: spin 34s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.plate .dish {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: spinback 34s linear infinite;
  overflow: hidden;
  position: relative;
}

.plate .dish img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes spinback {
  to {
    transform: rotate(-360deg);
  }
}

.dish.curry {
  background: radial-gradient(circle at 40% 35%, #e8834a, var(--chili) 55%, #9c3a1e 100%);
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, .25);
}

.dish.biryani {
  background: repeating-radial-gradient(circle at 50% 50%, #e3a62f 0 6px, #d18e1f 6px 12px);
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, .2);
}

.dish.sweet {
  background: radial-gradient(circle at 40% 35%, #f0c766, var(--gold) 60%, #b47a17 100%);
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, .2);
}

.plate .garnish {
  position: absolute;
  border-radius: 50%;
  background: var(--leaf);
}

.slider-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  transition: .25s;
}

.slider-dots button.active {
  background: var(--gold);
  width: 26px;
  border-radius: 6px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, .25);
}

.slider-arrow.prev {
  left: 24px;
}

.slider-arrow.next {
  right: 24px;
}

@media(max-width:820px) {
  .slide-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .slide-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .slide-actions {
    justify-content: center;
  }

  .plate {
    width: 200px;
    margin: 0 auto;
  }

  .slider {
    height: 720px;
  }

  .slider-arrow {
    display: none;
  }
}

/* ---------- ticker ---------- */
.ticker {
  background: var(--gold);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.ticker-track {
  display: inline-flex;
  gap: 48px;
  padding: 12px 0;
  animation: ticker 28s linear infinite;
  font-family: 'Space Mono', monospace;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--maroon-deep);
  font-weight: 700;
  text-transform: uppercase;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- sections ---------- */
section {
  padding: 96px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}

.section-head .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.underline {
  display: block;
  width: 64px;
  height: 8px;
  margin-top: 14px;
}

.underline svg {
  width: 100%;
  height: 100%;
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.stat {
  background: var(--paper);
  padding: 34px 24px;
  text-align: center;
}

.stat .num {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--chili);
}

.stat .lbl {
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
}

@media(max-width:720px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* category strip */
.catstrip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cattile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 14px;
  text-align: center;
  transition: .25s;
  cursor: pointer;
}

.cattile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.cattile .ic {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.cattile .name {
  font-weight: 800;
  font-size: .86rem;
  color: var(--maroon-deep);
}

.cattile .count {
  font-family: 'Space Mono', monospace;
  font-size: .68rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

@media(max-width:920px) {
  .catstrip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width:520px) {
  .catstrip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* recipe cards */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media(max-width:980px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:620px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  background: var(--paper);
  border-radius: 4px 4px var(--radius) var(--radius);
  box-shadow: 0 3px 0 rgba(43, 24, 16, .05), var(--shadow-sm);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s cubic-bezier(.2, .8, .2, 1);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 3px 0 rgba(43, 24, 16, .05), var(--shadow-lg);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  width: 34px;
  height: 14px;
  background: var(--gold-soft);
  opacity: .9;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
  z-index: 3;
}

.card-media {
  height: 190px;
  position: relative;
  overflow: hidden;
}

.card-media img, .vthumb img, .cattile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card-media::after, .vthumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 24, 16, 0) 40%, rgba(43, 24, 16, .5) 100%);
  z-index: 1;
}

.catcard {
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.catcard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 10, 6, .25), rgba(20, 10, 6, .72));
  z-index: 0;
}

.catcard>* {
  position: relative;
  z-index: 1;
}

.cattile {
  position: relative;
  overflow: hidden;
}

.cattile .ic {
  position: relative;
  overflow: hidden;
}

.cattile .ic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
}

.card-media .stampbadge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
  border: 3px dashed rgba(255, 255, 255, .7);
  z-index: 2;
}

.fav-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 4;
  transition: .2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}

.fav-btn:hover {
  transform: scale(1.1);
}

.fav-btn.active {
  background: var(--chili);
  color: #fff;
}

.card-body {
  padding: 20px 22px 24px;
}

.card-cat {
  font-family: 'Space Mono', monospace;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--chili);
  font-weight: 700;
}

.card h3 {
  font-size: 1.2rem;
  margin: 8px 0 6px;
  color: var(--maroon-deep);
  line-height: 1.25;
}

.stars {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: .78rem;
  color: var(--star);
  margin-bottom: 10px;
}

.stars .count {
  font-family: 'Space Mono', monospace;
  color: var(--ink-soft);
  font-size: .7rem;
  margin-left: 4px;
}

.card p.desc {
  color: var(--ink-soft);
  font-size: .89rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.card-meta {
  display: flex;
  gap: 14px;
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* dish gradient palette generator classes */
.g1 {
  background: linear-gradient(135deg, #e8834a, #9c3a1e);
}

.g2 {
  background: linear-gradient(135deg, #e3a62f, #a86e10);
}

.g3 {
  background: linear-gradient(135deg, #6a8f5c, #33472c);
}

.g4 {
  background: linear-gradient(135deg, #c1442d, #5f1c14);
}

.g5 {
  background: linear-gradient(135deg, #d9b25a, #7a5518);
}

.g6 {
  background: linear-gradient(135deg, #8a3040, #3c1119);
}

.g7 {
  background: linear-gradient(135deg, #4a6741, #1f3319);
}

.g8 {
  background: linear-gradient(135deg, #f0c766, #c17f1a);
}

.g9 {
  background: linear-gradient(135deg, #b25a3e, #5c2a19);
}

/* ---------- FEATURED STORY BANNER ---------- */
.featured-story {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  height: 280px;
  box-shadow: var(--shadow);
}

.featured-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.featured-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(43, 24, 16, .88) 0%, rgba(43, 24, 16, .55) 55%, rgba(43, 24, 16, .15) 100%);
}

.featured-story-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 44px;
  max-width: 520px;
}

.featured-story-copy h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin: 8px 0 12px;
}

.featured-story-copy p {
  color: rgba(255, 255, 255, .82);
  margin-bottom: 20px;
  line-height: 1.5;
}

@media(max-width:700px) {
  .featured-story {
    height: auto;
    padding: 36px 0;
  }

  .featured-story-copy {
    padding: 0 24px;
    max-width: none;
  }
}

/* ---------- STORY VIEWER (full-screen, Instagram-style) ---------- */
.story-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.story-overlay.open {
  display: flex;
}

.story-viewer {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 780px;
  background: #111;
  overflow: hidden;
  border-radius: 0;
}

@media(min-width:700px) {
  .story-viewer {
    border-radius: 18px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

.story-progress {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  gap: 6px;
}

.story-progress .seg {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, .3);
  border-radius: 3px;
  overflow: hidden;
}

.story-progress .seg .fill {
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width .1s linear;
}

.story-progress .seg.done .fill {
  width: 100%;
  transition: none;
}

.story-close {
  position: absolute;
  top: 28px;
  right: 14px;
  z-index: 6;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .4);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.story-slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
}

.story-slide.active {
  display: flex;
}

.story-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .1) 50%);
}

.story-slide-copy {
  position: relative;
  z-index: 2;
  padding: 26px 22px 46px;
  color: #fff;
}

.story-slide-copy .eyebrow {
  color: var(--gold-soft);
}

.story-slide-copy h3 {
  color: #fff;
  font-size: 1.5rem;
  margin: 8px 0 8px;
}

.story-slide-copy p {
  color: rgba(255, 255, 255, .85);
  font-size: .92rem;
  line-height: 1.5;
}

.story-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  z-index: 4;
  background: transparent;
  color: rgba(255, 255, 255, .7);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
}

.story-nav.prev {
  left: 0;
  justify-content: flex-start;
  padding-left: 8px;
}

.story-nav.next {
  right: 0;
  justify-content: flex-end;
  padding-right: 8px;
}

/* ---------- RECIPE DETAIL PAGE ---------- */
.recipe-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 28px 0;
  max-width: 1180px;
  margin: 0 auto;
  font-size: .8rem;
  color: var(--ink-soft);
}

.recipe-breadcrumb button {
  color: var(--ink-soft);
  font-weight: 600;
  transition: .15s;
}

.recipe-breadcrumb button:hover {
  color: var(--chili);
}

.recipe-breadcrumb span {
  color: var(--line);
}

.recipe-breadcrumb .current {
  color: var(--maroon-deep);
  font-weight: 700;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  font-weight: 700;
  font-size: .85rem;
  color: var(--maroon-deep);
  margin: 14px 28px 0;
  transition: .2s;
}

.recipe-back:hover {
  border-color: var(--maroon);
  background: rgba(110, 30, 43, .05);
  transform: translateX(-2px);
}

.page-back-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  font-weight: 700;
  font-size: .82rem;
  color: var(--maroon-deep);
  transition: .2s;
  margin-top: 20px;
  background: var(--paper);
}

.page-back-link:hover {
  border-color: var(--maroon);
  background: rgba(110, 30, 43, .05);
  transform: translateX(-2px);
}

.recipe-hero {
  position: relative;
  height: 380px;
  margin-top: 20px;
  overflow: hidden;
}

.recipe-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(43, 24, 16, .85), rgba(43, 24, 16, .1) 55%);
}

.recipe-hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.recipe-hero-copy h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 10px 0;
}

.recipe-page-meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-family: 'Space Mono', monospace;
  font-size: .8rem;
  color: var(--ink-soft);
  padding: 26px 28px 0;
  max-width: 1180px;
  margin: 0 auto;
}

.recipe-page-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.recipe-page-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 28px 90px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.recipe-page-body h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media(max-width:760px) {
  .recipe-page-body {
    grid-template-columns: 1fr;
  }
}

.servings-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border-radius: 99px;
  padding: 8px 16px;
  margin-bottom: 20px;
  width: fit-content;
}

.servings-control button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
  font-weight: 800;
  color: var(--maroon-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.servings-control button:hover {
  background: var(--gold-soft);
}

.servings-control #servValue {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

.related-wrap {
  background: var(--cream);
  padding: 50px 0 60px;
  margin-top: 20px;
}

@media print {
  header, .megabar, .mobilemenu, .featured-story, footer, .totop, .recipe-back, .recipe-breadcrumb, #printRecipeBtn, .related-wrap, .fav-btn, .servings-control button, .modal-overlay, .story-overlay {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .recipe-hero {
    height: 220px;
  }

  .recipe-page-body {
    grid-template-columns: 1fr 1.4fr;
    gap: 30px;
  }
}

.rail-wrap {
  position: relative;
}

.rail {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 4px 4px 14px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.rail::-webkit-scrollbar {
  height: 7px;
}

.rail::-webkit-scrollbar-track {
  background: transparent;
}

.rail::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 8px;
}

.rail::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.rail>.card, .rail>.vcard {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

@media(max-width:600px) {
  .rail>.card, .rail>.vcard {
    flex-basis: 78vw;
  }
}

.rail-arrow {
  position: absolute;
  top: 78px;
  transform: translateY(-50%);
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(43, 24, 16, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--maroon-deep);
  transition: .2s;
  border: 1px solid var(--line);
}

.rail-arrow:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}

.rail-arrow.prev {
  left: -20px;
}

.rail-arrow.next {
  right: -20px;
}

@media(max-width:900px) {
  .rail-arrow {
    display: none;
  }
}

.rotd {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper);
  cursor: pointer;
}

.rotd-media {
  position: relative;
  min-height: 320px;
}

.rotd-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.rotd-body {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rotd-body h3 {
  font-size: 1.9rem;
  margin: 10px 0 14px;
}

.rotd-body p {
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 20px;
}

@media(max-width:820px) {
  .rotd {
    grid-template-columns: 1fr;
  }

  .rotd-media {
    min-height: 220px;
  }

  .rotd-body {
    padding: 30px 26px;
  }
}

/* testimonials */
.testi-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.testi-slide {
  display: none;
}

.testi-slide.active {
  display: block;
  animation: fadein .6s ease;
}

.testi-slide .quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--maroon-deep);
  line-height: 1.5;
  margin-bottom: 22px;
}

.testi-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.testi-name {
  font-weight: 800;
}

.testi-loc {
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.testi-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.testi-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.testi-dots button.active {
  background: var(--chili);
}

/* newsletter */
.newsletter {
  background: var(--maroon-deep);
  border-radius: 26px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.newsletter::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: .5;
}

.newsletter h2 {
  color: #fff;
}

.newsletter p {
  color: rgba(255, 255, 255, .7);
  margin-top: 10px;
}

.nform {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.nform input {
  flex: 1;
  padding: 15px 18px;
  border-radius: 99px;
  border: none;
  font-family: inherit;
  font-size: .95rem;
}

.nform input:focus {
  outline: 3px solid var(--gold);
}

@media(max-width:820px) {
  .newsletter {
    grid-template-columns: 1fr;
    padding: 36px 26px;
    text-align: center;
  }

  .nform {
    flex-direction: column;
  }
}

footer {
  background: var(--maroon-deep);
  color: rgba(255, 255, 255, .65);
  padding: 70px 0 30px;
  margin-top: 40px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.foot-grid h4 {
  color: #fff;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.foot-grid .logo {
  color: #fff;
}

.foot-grid p {
  font-size: .9rem;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 280px;
}

.foot-grid ul {
  list-style: none;
}

.foot-grid li {
  margin-bottom: 10px;
}

.foot-grid a {
  font-size: .9rem;
  transition: .2s;
}

.foot-grid a:hover {
  color: var(--gold-soft);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 12px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}

.socials a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--maroon-deep);
}

@media(max-width:820px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:520px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- RECIPES PAGE ---------- */
.page-hero {
  padding: 64px 0 44px;
  background: linear-gradient(180deg, var(--cream), var(--paper));
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

.page-hero p {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--ink-soft);
}

.toolbar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.searchbox {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 12px 20px;
}

.searchbox input {
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: .95rem;
  width: 100%;
  color: var(--ink);
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 9px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  font-weight: 700;
  font-size: .82rem;
  color: var(--ink-soft);
  transition: .2s;
}

.chip:hover {
  border-color: var(--gold);
}

.chip.active {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}

.count-line {
  font-family: 'Space Mono', monospace;
  font-size: .78rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-soft);
}

.empty-state .ic {
  font-size: 2.6rem;
  margin-bottom: 14px;
}

/* categories page */
.catgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.catcard {
  border-radius: 18px;
  padding: 34px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: .3s;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.catcard:hover {
  transform: translateY(-6px) scale(1.01);
}

.catcard .ic {
  font-size: 2rem;
}

.catcard h3 {
  color: #fff;
  font-size: 1.3rem;
}

.catcard .count {
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  opacity: .85;
}

@media(max-width:920px) {
  .catgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:520px) {
  .catgrid {
    grid-template-columns: 1fr;
  }
}

/* videos page */
.vgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.vcard {
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.vthumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.vthumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vthumb .play .circ {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--chili);
  transition: .25s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}

.vcard:hover .play .circ {
  transform: scale(1.12);
  background: var(--gold);
}

.vthumb .dur {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  padding: 3px 8px;
  border-radius: 5px;
}

.vcard .vbody {
  padding: 16px 18px 20px;
}

.vcard h4 {
  font-size: 1.02rem;
  color: var(--maroon-deep);
}

.vcard .vmeta {
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

@media(max-width:920px) {
  .vgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:600px) {
  .vgrid {
    grid-template-columns: 1fr;
  }
}

/* about page */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-hero .plate {
  width: 340px;
  margin: 0 auto;
}

.timeline {
  margin-top: 70px;
  border-left: 2px dashed var(--line);
  padding-left: 36px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tl-item {
  position: relative;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -45px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--chili);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--chili);
}

.tl-item .yr {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--chili);
  font-size: .85rem;
}

.tl-item h4 {
  margin: 6px 0 6px;
  font-size: 1.2rem;
}

.tl-item p {
  color: var(--ink-soft);
  font-size: .94rem;
  max-width: 560px;
  line-height: 1.6;
}

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

.teamcard {
  text-align: center;
}

.teamcard .av {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  margin-bottom: 14px;
}

.teamcard h4 {
  font-size: 1.05rem;
}

.teamcard .role {
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .05em;
}

@media(max-width:820px) {
  .about-hero {
    grid-template-columns: 1fr;
  }

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

/* contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info .item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.contact-info .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info h4 {
  font-size: 1rem;
}

.contact-info p {
  color: var(--ink-soft);
  font-size: .9rem;
  margin-top: 4px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form label {
  font-family: 'Space Mono', monospace;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  margin-bottom: 6px;
  display: block;
}

.form input, .form textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: inherit;
  font-size: .92rem;
  background: #fff;
}

.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--chili);
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

@media(max-width:820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form .row {
    grid-template-columns: 1fr;
  }
}

/* ---------- MODAL: recipe detail ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 24, 16, .65);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}

.modal-overlay.open {
  display: flex;
  animation: fadein .3s ease;
}

.modal {
  background: var(--paper);
  max-width: 820px;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .4);
  margin-bottom: 40px;
}

.modal-head {
  height: 220px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  color: #fff;
}

.modal-head .close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}

.modal-head .close:hover {
  background: rgba(255, 255, 255, .35);
}

.modal-head h2 {
  color: #fff;
  font-size: 1.9rem;
}

.modal-body {
  padding: 30px 34px 38px;
}

.modal-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: 'Space Mono', monospace;
  font-size: .76rem;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 22px;
  margin-bottom: 26px;
}

.modal-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-cols {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 34px;
}

.modal-cols h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ing-list li {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  padding-bottom: 9px;
  border-bottom: 1px dotted var(--line);
  color: var(--ink-soft);
}

.ing-list li b {
  color: var(--ink);
  font-weight: 700;
}

.step-list {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-list li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.step-list li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--maroon-deep);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media(max-width:640px) {
  .modal-cols {
    grid-template-columns: 1fr;
  }
}

/* video modal */
.vmodal .modal {
  max-width: 900px;
}

.vplayer {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.vplayer video {
  width: 100%;
  height: 100%;
}

/* toast */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--maroon-deep);
  color: #fff;
  padding: 14px 26px;
  border-radius: 99px;
  font-weight: 700;
  font-size: .88rem;
  z-index: 2000;
  transition: transform .4s cubic-bezier(.2, 1, .3, 1);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* back to top */
.totop {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--chili);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(217, 85, 45, .4);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: .3s;
}

.totop.show {
  opacity: 1;
  pointer-events: auto;
}