/* Shared styles for food.harshitakarande.com */
:root {
  --text: #e8e6e3;
  --muted: rgba(232, 230, 227, 0.55);
  --soft: rgba(232, 230, 227, 0.78);
  --rose: #b76e79;
  --rose-light: #e8c4c4;
  --line: rgba(183, 110, 121, 0.28);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(145deg, #0f0f12 0%, #1a1a22 40%, #0d0d12 100%) fixed;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  top: -20vmax; left: -20vmax;
  width: 60vmax; height: 60vmax;
  background: radial-gradient(circle, rgba(183, 110, 121, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}
a { color: var(--rose); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--rose-light); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header { display: flex; justify-content: space-between; align-items: baseline; padding: 2rem 0 0; }
.grad {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-light) 50%, var(--rose) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.site-header .home { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 600; }
.site-header nav a {
  margin-left: 1.5rem; font-size: 0.78rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--muted);
}
.site-header nav a:hover, .site-header nav a.active { color: var(--rose-light); }

/* Hero */
.hero { text-align: center; padding: 4.5rem 0 2.5rem; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--muted); }
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 8vw, 4.4rem);
  font-weight: 600; line-height: 1.1; color: #fff;
  margin: 0.6rem 0 0.4rem;
}
.hero h1 em { font-style: italic; font-weight: 400; }
.lede { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.25rem; color: var(--soft); }
.divider {
  width: 60px; height: 1px; margin: 2rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(183, 110, 121, 0.65), transparent);
}

/* Category chips */
.filters {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap;
  padding: 1rem 0; margin-bottom: 1.5rem;
  background: linear-gradient(180deg, rgba(15,15,18,0.95) 60%, rgba(15,15,18,0));
  backdrop-filter: blur(4px);
}
.chip {
  font: inherit; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 1.05rem; cursor: pointer; transition: all .2s ease;
}
.chip .n { opacity: 0.6; margin-left: 0.3rem; letter-spacing: 0; }
.chip:hover, .chip.active { color: #fff; border-color: var(--rose); background: rgba(183, 110, 121, 0.14); }

/* Category sections */
.category { padding: 1.5rem 0 2.5rem; scroll-margin-top: 4.5rem; }
.category[hidden] { display: none; }
.cat-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; }
.cat-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem; font-weight: 600; color: #fff; white-space: nowrap;
}
.cat-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.cat-head .count { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.cat-intro { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.15rem; color: var(--soft); margin: -0.6rem 0 1.4rem; }

/* Recipe cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.recipe {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,0.025);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.recipe:hover { transform: translateY(-3px); border-color: var(--line); background: rgba(183, 110, 121, 0.05); }
.recipe-img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  background: rgba(255,255,255,0.05);
  transition: transform .6s ease;
}
.img-frame { overflow: hidden; }
.recipe:hover .recipe-img { transform: scale(1.04); }
.recipe-body { padding: 1.1rem 1.25rem 1.35rem; }
.recipe h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 600; line-height: 1.2; color: #fff;
  margin-bottom: 0.45rem;
}
.recipe p { font-size: 0.93rem; color: var(--soft); }

.soon {
  border: 1px dashed var(--line); border-radius: 14px;
  padding: 2.5rem 1.5rem; text-align: center;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.2rem; color: var(--muted);
}
.soon span { display: block; font-size: 1.8rem; margin-bottom: 0.3rem; }

footer {
  text-align: center; padding: 2rem 0 3rem;
  font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .fade { opacity: 0; transform: translateY(12px); animation: fadeUp .8s ease forwards; }
  .fade.d1 { animation-delay: .1s; } .fade.d2 { animation-delay: .2s; } .fade.d3 { animation-delay: .3s; }
  @keyframes fadeUp { to { opacity: 1; transform: none; } }
}
@media (max-width: 560px) {
  .site-header nav a { margin-left: 1rem; letter-spacing: 0.18em; }
  .cat-head h2 { font-size: 1.8rem; }
}

/* ---------- Linked recipe cards ---------- */
a.recipe { display: block; color: inherit; }
a.recipe:hover { color: inherit; }
.recipe .more {
  display: inline-block; margin-top: 0.8rem;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rose);
}
a.recipe:hover .more { color: var(--rose-light); }

/* Illustrated placeholder when there's no photo yet */
.art {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 30%, rgba(232, 196, 196, 0.35), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(214, 140, 60, 0.45), transparent 60%),
    linear-gradient(135deg, #3a2420 0%, #5b3324 50%, #2a1c1a 100%);
  font-size: 3.6rem;
  transition: transform .6s ease;
}
.recipe:hover .art { transform: scale(1.04); }
.art.hero-art { aspect-ratio: 16 / 7; border-radius: 16px; font-size: 5rem; margin: 0 0 2.5rem; }

/* ---------- Recipe page ---------- */
.recipe-head { text-align: center; padding: 4rem 0 2rem; }
.recipe-head .tag { color: var(--rose); }
.recipe-head h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 7vw, 3.8rem); font-weight: 600; line-height: 1.12; color: #fff;
  margin: 0.7rem 0 0.6rem;
}
.facts {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem;
  margin: 1.8rem 0 0; list-style: none;
}
.facts li {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 0.7rem 1.2rem; min-width: 120px; text-align: center;
}
.facts b {
  display: block; font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 600; color: #fff; line-height: 1.2;
}
.facts small { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

.recipe-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; padding-bottom: 2rem; }
@media (max-width: 720px) { .recipe-layout { grid-template-columns: 1fr; gap: 1rem; } }

.ingredients {
  align-self: start; position: sticky; top: 1.5rem;
  border: 1px solid rgba(255,255,255,0.06); border-radius: 14px;
  background: rgba(255,255,255,0.025); padding: 1.5rem;
}
@media (max-width: 720px) { .ingredients { position: static; } }
.recipe-page h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; font-weight: 600; color: #fff; margin-bottom: 1rem;
}
.ingredients ul { list-style: none; }
.ingredients li { padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); color: var(--soft); font-size: 0.95rem; }
.ingredients li:last-child { border-bottom: none; }
.ingredients li b { font-weight: 500; color: #fff; }

.steps { list-style: none; counter-reset: step; margin-bottom: 2.2rem; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 1.4rem 3.4rem; color: rgba(232, 230, 227, 0.86); font-size: 1.02rem; line-height: 1.7;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.1rem;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rose); color: var(--rose-light);
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600;
}
.steps li b { font-weight: 500; color: #fff; }
.phase { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--rose); margin-bottom: 0.4rem; }

.tip {
  margin: 0.5rem 0 2rem; padding: 1.1rem 1.4rem;
  border-left: 2px solid var(--rose); background: rgba(183, 110, 121, 0.06); border-radius: 0 12px 12px 0;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.25rem; color: var(--rose-light);
}
.back-link { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; }

/* Recipe page hero photo */
.hero-photo {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 40%;
  border-radius: 16px; margin: 0 0 2.5rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

/* Small italic note under a title, e.g. "No added sugar" */
.subtitle {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  color: var(--rose-light); letter-spacing: 0.03em;
}
.recipe-head .subtitle { font-size: 1.35rem; margin: -0.2rem 0 0.9rem; }
.recipe-body .subtitle { font-size: 1.05rem; margin: -0.35rem 0 0.5rem; }
