:root {
  --ink: #1c241c;
  --ink-soft: #3d4a3d;
  --paper: #f3efe6;
  --sage: #3f5d4a;
  --sage-deep: #2a4033;
  --clay: #b86b45;
  --line: rgba(28, 36, 28, 0.12);
  --shadow: 0 18px 50px rgba(28, 36, 28, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
  line-height: 1.55;
}

.bg-wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 500px at 10% -10%, rgba(111, 143, 120, 0.22), transparent 60%),
    radial-gradient(800px 400px at 100% 0%, rgba(184, 107, 69, 0.12), transparent 55%),
    linear-gradient(180deg, #f7f3ea 0%, var(--paper) 40%, #ebe5d7 100%);
}

a { color: var(--sage-deep); }
code {
  font-size: 0.92em;
  background: rgba(63, 93, 74, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  backdrop-filter: blur(12px);
  background: rgba(243, 239, 230, 0.86);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--sage-deep);
  color: #f7f3ea;
  font-family: var(--font-display);
  font-weight: 700;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; }
.brand-text em {
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav { display: flex; align-items: center; gap: 0.9rem; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.nav-cta {
  background: var(--sage);
  color: #f7f3ea !important;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}

.breadcrumbs {
  width: min(1100px, calc(100% - 2rem));
  margin: 1rem auto 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.breadcrumbs a { text-decoration: none; font-weight: 600; }
.breadcrumbs .sep { opacity: 0.5; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: min(88vh, 780px);
  gap: 0;
  width: min(1200px, 100%);
  margin: 0.75rem auto 0;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: rise 1.1s ease both;
}
.hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(transparent, rgba(28, 36, 28, 0.35));
}

.hero-copy {
  padding: clamp(1.5rem, 4vw, 3.2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  animation: fade-up 0.9s ease 0.15s both;
  background: rgba(255, 252, 246, 0.55);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sage);
}
h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.12;
  font-weight: 700;
}
.lede {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 40ch;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.meta-row span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--clay);
  color: #fffaf4;
  box-shadow: 0 10px 24px rgba(184, 107, 69, 0.28);
}
.btn-primary:hover { background: #a55c39; }
.btn-wide { width: 100%; max-width: 420px; }

.article {
  width: min(760px, calc(100% - 2rem));
  margin: 2rem auto 4rem;
  display: grid;
  gap: 1.15rem;
}

.block {
  background: rgba(255, 252, 246, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: var(--shadow);
  animation: fade-up 0.7s ease both;
}
.block h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.block h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sage-deep);
}
.block p { margin: 0 0 0.85rem; color: var(--ink-soft); }
.block p:last-child { margin-bottom: 0; }

.capability {
  background: linear-gradient(135deg, rgba(63, 93, 74, 0.1), rgba(255, 252, 246, 0.9));
}

.answer {
  border-color: rgba(63, 93, 74, 0.28);
  background: linear-gradient(160deg, rgba(63, 93, 74, 0.12), rgba(255, 252, 246, 0.92));
}

.sub-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.sub-list li {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  display: grid;
  gap: 0.25rem;
}
.sub-list span { color: var(--ink-soft); font-size: 0.92rem; }

.faq-list { display: grid; gap: 0.55rem; margin-top: 0.35rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  padding: 0.65rem 0.9rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--sage-deep);
}
.faq-item p {
  margin: 0.55rem 0 0.15rem;
  color: var(--ink-soft);
}

.block-head { margin-bottom: 1rem; }
.block-head p { margin: 0.25rem 0 0; font-size: 0.92rem; }

.ingredient-group { margin-bottom: 1.25rem; }
.ingredient-group:last-child { margin-bottom: 0; }

.ingredient-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.ingredient-list li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
}
.ingredient-list span:first-child { font-weight: 700; color: var(--sage-deep); }
.ingredient-list em { color: var(--ink-soft); font-style: normal; font-size: 0.92em; }

.customize-grid {
  display: grid;
  gap: 0.75rem;
  margin: 0.85rem 0;
}
.customize-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.4);
}
.pill-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.45rem; }
.pill-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.9rem;
}
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1rem 1rem 3.4rem;
  border-radius: 14px;
  background: rgba(63, 93, 74, 0.06);
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--sage-deep);
  color: #f7f3ea;
  font-weight: 700;
  font-size: 0.85rem;
}
.step-list strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
}
.step-list p { margin: 0; }

.lock-banner {
  margin-top: 1.1rem;
  padding: 1.1rem;
  border-radius: 14px;
  background: var(--sage-deep);
  color: #f3efe6;
  display: grid;
  gap: 0.85rem;
}
.lock-banner p { color: #e8e2d4; margin: 0; }
.lock-banner .btn-primary { justify-self: start; }

.pairing-list, .plain-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}
.pairing-list li, .plain-list li { margin-bottom: 0.35rem; }

.ending-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--ink) !important;
  margin-bottom: 1.1rem !important;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.related-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  padding: 0.5rem;
}
.related-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}
.related-card strong { display: block; font-size: 0.95rem; }
.related-card span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

.customize-engine {
  background: linear-gradient(145deg, #2a4033 0%, #3f5d4a 55%, #4a6b55 100%);
  color: #f3efe6;
  border: none;
}
.customize-engine .eyebrow {
  color: #c8dccf;
  margin-bottom: 0.35rem;
}
.customize-engine h2 { color: #f7f3ea; }
.customize-engine p { color: #e2ebe4 !important; }
.customize-engine .btn-primary {
  margin-top: 0.5rem;
  background: #b86b45;
}

.faq-intro { margin-bottom: 0.75rem !important; }

.src-tag { display: none; }

.nutri-panel {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: center;
}
.nutri-kcal {
  width: 110px;
  height: 110px;
  border-radius: 999px;
  display: grid;
  place-content: center;
  text-align: center;
  background: radial-gradient(circle at 30% 30%, #6f8f78, #2a4033);
  color: #f7f3ea;
}
.nutri-kcal strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.nutri-kcal span { font-size: 0.8rem; opacity: 0.85; }
.nutri-bars { display: grid; gap: 0.55rem; }
.nutri-row { display: grid; grid-template-columns: 4.5rem 1fr 2.5rem; gap: 0.5rem; align-items: center; font-size: 0.9rem; }
.nutri-row .bar { height: 0.55rem; background: rgba(28,36,28,0.08); border-radius: 999px; overflow: hidden; }
.nutri-row .bar i { display: block; height: 100%; border-radius: 999px; }
.nutri-row b { text-align: right; }

.ayu-accordion { display: grid; gap: 0.55rem; margin-top: 0.5rem; }
.ayu-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.5);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.ayu-item[open] { box-shadow: 0 10px 28px rgba(42,64,51,0.12); border-color: rgba(63,93,74,0.35); }
.ayu-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-weight: 700;
}
.ayu-item summary::-webkit-details-marker { display: none; }
.ayu-name { font-family: var(--font-display); }
.ayu-chip {
  font-size: 0.75rem;
  text-transform: capitalize;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(63,93,74,0.12);
  color: var(--sage-deep);
  font-weight: 600;
}
.ayu-body { padding: 0 1rem 1rem; display: grid; gap: 0.75rem; }
.ayu-meta { display: flex; flex-wrap: wrap; gap: 0.85rem; font-size: 0.9rem; color: var(--ink-soft); }
.dosha-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.dosha {
  border-radius: 12px;
  padding: 0.65rem 0.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(63,93,74,0.1), rgba(255,255,255,0.4));
  display: grid;
  gap: 0.15rem;
}
.dosha em { font-style: normal; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sage); }
.dosha strong { font-size: 0.86rem; text-transform: capitalize; }

@media (max-width: 900px) {
  .nutri-panel { grid-template-columns: 1fr; }
  .dosha-row { grid-template-columns: 1fr; }
}

/* Landing */
.landing-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
  min-height: min(78vh, 640px);
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 0.5rem;
}
.landing-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 0 2rem;
}
.landing-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0;
  color: var(--sage-deep);
}
.landing-hero-visual {
  border-radius: var(--radius);
  min-height: 280px;
  background:
    linear-gradient(145deg, rgba(42,64,51,0.15), rgba(184,107,69,0.18)),
    url("https://firebasestorage.googleapis.com/v0/b/sattva-srsti.appspot.com/o/recipe_v1_image%2Frec_aloo_paratha.jpg?alt=media&token=3dabdd3f-d114-46db-8208-ca682e5400a1")
      center / cover;
  box-shadow: var(--shadow);
}
.landing-purpose { max-width: 42rem; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.post-card {
  display: grid;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.post-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.post-card-body {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem 1.1rem;
}
.post-card-body strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.25;
}
.post-card-body span { color: var(--ink-soft); font-size: 0.95rem; }
.post-meta {
  font-size: 0.78rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage) !important;
  font-weight: 700;
}

@media (max-width: 900px) {
  .landing-hero { grid-template-columns: 1fr; min-height: auto; }
  .landing-hero-visual { min-height: 220px; order: -1; }
}

.fine { font-size: 0.9rem; color: var(--ink-soft); }
.nutrition-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
  font-size: 0.92rem;
}

.site-footer {
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rise {
  from { opacity: 0.4; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; border-radius: 0; }
  .hero-media { min-height: 260px; max-height: 340px; }
  .nav a:not(.nav-cta) { display: none; }
  .related-grid { grid-template-columns: 1fr; }
}

.cue { font-size: 0.9rem; color: var(--sage-deep) !important; margin-top: 0.35rem !important; }
.warn { font-size: 0.9rem; color: #8a4b2f !important; margin-top: 0.2rem !important; }
