/* MomRise recipe-page stylesheet.
   Lean (~2KB). Mobile-first. Matches the app's gradient + Andika font.
   Used by every page under /r/, including the catalog index. */

:root {
  --bg-top: #D7F2EB;
  --bg-bottom: #FFE9E1;
  --text: #2B2B2B;
  --text-soft: #6E6B6B;
  --brand: #E97A8C;
  --brand-dark: #C75F71;
  --card: #FFFFFF;
  --border: #ECE3E6;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Andika New Basic", "Andika", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.page-header {
  padding: 16px 20px;
  display: flex;
  justify-content: flex-start;
}
.brand-mark {
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  letter-spacing: 0.5px;
}

.recipe, .catalog {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 20px 48px;
}

.recipe .hero {
  margin: 0 -20px 16px;
}
.recipe .hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  max-height: 480px;
  object-fit: cover;
}

.recipe h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 8px 0 16px;
  color: var(--text);
}

.recipe h2 {
  font-size: 20px;
  margin: 24px 0 12px;
}

.attribution {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-soft);
}
.attribution a {
  color: var(--text-soft);
  text-decoration: underline;
}

.stats {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.stats > div {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  min-width: 90px;
  text-align: center;
}
.stats .label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-soft);
  margin-bottom: 2px;
}
.stats .value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.cta-primary {
  margin: 24px 0;
  text-align: center;
}
.open-in-app {
  display: block;
  background: var(--brand);
  color: #FFF !important;
  text-decoration: none !important;
  padding: 16px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 6px 16px rgba(233, 122, 140, 0.28);
  transition: background 0.15s ease;
}
.open-in-app:hover { background: var(--brand-dark); }
.cta-sub {
  font-size: 13px;
  color: var(--text-soft);
  margin: 8px 0 0;
}

.ingredients, .instructions {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.ingredients ul {
  margin: 0;
  padding-left: 22px;
}
.ingredients li {
  margin-bottom: 6px;
}
.instructions ol {
  margin: 0;
  padding-left: 22px;
}
.instructions li {
  margin-bottom: 12px;
}

.cta-secondary {
  margin: 32px 0 16px;
  padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
}
.cta-secondary p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--text);
}
.app-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-btn {
  background: #2B2B2B;
  color: #FFF !important;
  text-decoration: none !important;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.page-footer {
  text-align: center;
  padding: 24px 16px 32px;
  font-size: 13px;
  color: var(--text-soft);
}
.page-footer a {
  color: var(--text-soft);
  margin: 0 6px;
}

/* Catalog grid */
.catalog h1 { font-size: 26px; margin-top: 0; }
.catalog-sub { color: var(--text-soft); margin-top: 0; }
.grid {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.grid li a {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  text-decoration: none !important;
  color: var(--text);
}
.grid li img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 6px;
}
.grid li span {
  font-size: 13px;
  font-weight: 600;
  display: block;
}

@media (min-width: 600px) {
  .recipe h1 { font-size: 34px; }
  .recipe .hero { margin: 0 0 20px; }
  .recipe .hero img { border-radius: var(--radius); }
}

/* Answer-first FAQ (AEO — the block AI answer-engines quote) */
.faq {
  margin: 28px 0 8px;
  border-top: 1px solid #ececec;
  padding-top: 20px;
}
.faq h2 {
  font-size: 20px;
  margin: 0 0 12px;
}
.faq-item {
  margin-bottom: 14px;
}
.faq-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}
.faq-item p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  color: #444;
}
