:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --text: #3f2d20;
  --muted: #8a6f5c;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --accent-soft: #fdeeda;
  --border: #ead9c6;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 760px; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.25rem; }
.brand-mark { color: var(--accent); display: inline-flex; }
.main-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.main-nav a { text-decoration: none; color: var(--text); font-weight: 600; }
.main-nav a:hover { color: var(--accent); }

/* hero */
.hero { background: linear-gradient(135deg, var(--accent-soft), #fff); border-bottom: 1px solid var(--border); text-align: center; padding: 3.5rem 1rem; }
.hero h1 { font-size: 2.75rem; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.hero-tag { font-size: 1.35rem; color: var(--accent-dark); font-weight: 600; margin: 0 0 0.5rem; }
.hero-sub { color: var(--muted); margin: 0 0 1.5rem; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 0.75rem 1.75rem; border-radius: 999px; border: 0; cursor: pointer; }
.btn:hover { background: var(--accent-dark); }

/* sections */
.section { padding: 2.5rem 0; }
.section h2 { font-size: 1.75rem; margin: 0 0 1.25rem; }
.page { padding: 2rem 1.25rem 3rem; }
.page h1 { font-size: 2.25rem; margin: 0.75rem 0 0.5rem; letter-spacing: -0.02em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.empty-note { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 1.5rem; color: var(--muted); }

/* breadcrumb */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; font-size: 0.9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--border); }
.breadcrumb a { color: var(--accent); text-decoration: none; }

/* cuisine grid */
.cuisine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.cuisine-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-decoration: none; color: var(--text); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.cuisine-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(194, 65, 12, 0.12); }
.cuisine-card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; color: var(--accent-dark); }
.cuisine-card p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.95rem; }
.cuisine-count { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); font-size: 0.85rem; font-weight: 700; padding: 0.2rem 0.75rem; border-radius: 999px; }

/* recipe cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--accent-soft); overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-title { margin: 0; font-size: 1.15rem; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }
.card-link { font-weight: 700; text-decoration: none; }

/* image placeholder */
.img-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem 1rem; background: repeating-linear-gradient(45deg, var(--accent-soft), var(--accent-soft) 12px, #fff5e8 12px, #fff5e8 24px); border: 2px dashed var(--border); border-radius: var(--radius); color: var(--accent-dark); font-weight: 700; min-height: 180px; }
.card-media .img-placeholder { border: 0; border-radius: 0; min-height: 100%; height: 100%; }
/* share + popular rows */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1.6rem 0 .4rem; padding: 1rem 1.2rem; background: var(--accent-soft); border-radius: var(--radius); font-weight: 600; }
.share-btn { display: inline-block; padding: .5rem 1rem; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; }
.share-btn.pin { background: #bd081c; }
.share-btn.fb { background: #1877f2; }
.share-btn:hover { opacity: .88; }
.popular-row { margin: .4rem 0 1.2rem; }
.popular-row a { font-weight: 600; }
.contact-email { font-size: 1.15rem; }

/* recipe article */
.recipe .hero-figure { margin: 1.5rem 0; }
.hero-img { border-radius: var(--radius); width: 100%; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0; }
.fact dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0; }
.fact dd { margin: 0.15rem 0 0; font-weight: 700; font-size: 1.05rem; }
.recipe h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; color: var(--accent-dark); }
.ingredients, .tips { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 2.5rem; margin: 0; }
.ingredients li, .tips li { margin-bottom: 0.4rem; }
.instructions { padding-left: 1.75rem; }
.instructions li { margin-bottom: 0.9rem; }
.faqs details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-bottom: 0.6rem; }
.faqs summary { font-weight: 700; cursor: pointer; }
.faqs p { margin: 0.5rem 0 0; color: var(--muted); }

/* contact form */
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: 0.35rem; font-weight: 600; }
.contact-form input, .contact-form textarea { font: inherit; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.form-note { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* footer */
.site-footer { background: #2b1d12; color: #f3e3d3; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; padding: 2.5rem 1.25rem 1rem; }
.footer-brand { font-weight: 800; font-size: 1.2rem; margin: 0 0 0.25rem; }
.footer-tag { margin: 0; color: #c9a98a; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-links a { color: #f3e3d3; text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #4a3220; padding: 1rem 1.25rem 1.5rem; color: #c9a98a; font-size: 0.9rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 2.5rem 1rem; }
  .hero h1 { font-size: 2rem; }
  .page h1 { font-size: 1.75rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}

/* ---- mobile ad safety: ad slots must never force horizontal scrolling ---- */
[id^="revbid-"] { max-width: 100%; }
[id^="revbid-"] img, [id^="revbid-"] iframe { max-width: 100% !important; height: auto; }
@media (max-width: 767px) {
  [id^="revbid-"] { min-width: 0 !important; }
}
