:root {
  --brick: #b8442e;
  --brick-dark: #953622;
  --cream: #fff8f0;
  --ink: #2b2320;
  --muted: #7a6f68;
  --border: #eee1d6;
  --maxw: 1120px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
a { color: var(--brick); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; height: auto; border-radius: 8px; }
h1, h2, h3 { line-height: 1.25; font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: 2.1rem; margin: 0.3em 0 0.4em; }
h2 { font-size: 1.5rem; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.25rem; }
.container.narrow { max-width: 760px; }

/* header */
.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 50; }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: 0.85rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { font-family: Georgia, serif; font-weight: bold; font-size: 1.25rem; color: var(--brick-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.main-nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.main-nav > a, .main-nav > .has-dropdown > a { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.main-nav > a:hover, .main-nav > .has-dropdown > a:hover { color: var(--brick); text-decoration: none; }
.has-dropdown { position: relative; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: grid; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; background: #fff;
  border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem;
  grid-template-columns: repeat(2, minmax(max-content, 1fr)); gap: 0.15rem; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  min-width: 340px; white-space: nowrap;
}
.dropdown a { color: var(--ink); padding: 0.35rem 0.5rem; border-radius: 6px; font-size: 0.9rem; }
.dropdown a:hover { background: var(--cream); text-decoration: none; }
.dropdown .all-link { grid-column: 1 / -1; border-top: 1px solid var(--border); margin-top: 0.35rem; padding-top: 0.5rem; font-weight: 600; }

/* author photo (about page) -- source photo is only 84x78, so this is kept
   close to native size rather than blown up, to avoid visible blur */
.author-photo {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  float: left; margin: 0 1.25rem 0.75rem 0; border: 2px solid var(--border);
}
@media (max-width: 480px) {
  .author-photo { float: none; display: block; margin: 0 auto 1rem; }
}

/* hero */
.hero { background: linear-gradient(135deg, var(--brick) 0%, var(--brick-dark) 100%); color: #fff; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.25rem; text-align: center; }
.hero h1 { color: #fff; font-size: 2.6rem; }
.hero p { font-size: 1.1rem; max-width: 560px; margin: 0.75rem auto 1.5rem; opacity: 0.95; }
.btn { display: inline-block; background: #fff; color: var(--brick-dark); padding: 0.75rem 1.5rem; border-radius: 999px; font-weight: 700; }
.btn:hover { text-decoration: none; opacity: 0.9; }

/* sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.25rem; }
.section.alt { background: var(--cream); max-width: 100%; }
.section.alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section.intro { max-width: 760px; text-align: center; }
.section.intro .author-photo { float: none; display: block; margin: 0 auto 1rem; }

/* category grid */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.category-tile { display: flex; flex-direction: column; gap: 0.15rem; background: var(--cream); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.25rem; }
.category-tile:hover { border-color: var(--brick); text-decoration: none; }
.category-tile span { font-weight: 700; color: var(--ink); }
.category-tile small { color: var(--muted); }

/* card grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; color: var(--ink); background: #fff; }
.card:hover { text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.card img { border-radius: 0; aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* placeholder for recipes/posts with no photo of their own -- a plain
   tinted tile with a simple icon, never a fabricated "photo" of the dish,
   so nobody (viewer or Google) is shown something misleading. */
.card-placeholder {
  aspect-ratio: 4/3; width: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cream) 0%, #f2e4d6 100%);
}
.card-placeholder svg { width: 34%; max-width: 56px; height: auto; color: rgba(184, 68, 46, 0.35); }
.hero-placeholder {
  aspect-ratio: 16/10; width: 100%; margin: 1rem 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cream) 0%, #f2e4d6 100%); border-radius: 8px;
}
.hero-placeholder svg { width: 18%; max-width: 72px; height: auto; color: rgba(184, 68, 46, 0.35); }
.card-body { padding: 0.85rem 1rem; }
.card-body h3 { font-size: 1.02rem; margin: 0; font-family: inherit; font-weight: 600; }

/* recipe page */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin: 1.25rem 0 0.5rem; }
.rating { color: #b8860b; font-weight: 600; }
.recipe-hero { margin: 1rem 0; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.recipe-body h4 { font-family: Georgia, serif; color: var(--brick-dark); margin-top: 1.75rem; }
.recipe-body h4.red { color: var(--brick-dark); }
.recipe-body ul { padding-left: 1.25rem; }
.recipe-body li { margin-bottom: 0.35rem; }
.recipe-body .divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; margin: 1.25rem 0; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 8px; }
.share-row { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); display: flex; gap: 1rem; align-items: center; font-size: 0.9rem; color: var(--muted); }

/* recipe index / search */
#recipe-search { width: 100%; padding: 0.75rem 1rem; font-size: 1rem; border: 1px solid var(--border); border-radius: 8px; margin: 1rem 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.filter-btn { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.85rem; cursor: pointer; }
.filter-btn.active, .filter-btn:hover { background: var(--brick); color: #fff; border-color: var(--brick); }

/* posts / tips list */
.post-list { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 1.5rem; }
.post-row { display: block; padding: 1rem 0; border-bottom: 1px solid var(--border); color: var(--ink); }
.post-row h3 { margin: 0 0 0.2rem; font-size: 1.1rem; }
.post-meta { color: var(--muted); font-size: 0.85rem; margin: 0; }
.lead { color: var(--muted); }

/* footer */
.site-footer { background: var(--ink); color: #d9cfc8; margin-top: 3rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.25rem 1rem; display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer-inner a { color: #fff; opacity: 0.85; }
.footer-social, .footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.copyright { text-align: center; font-size: 0.8rem; padding: 1rem; opacity: 0.6; margin: 0; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0.25rem; padding-top: 0.75rem; }
  .main-nav.open { display: flex; }
  .dropdown { position: static; display: none; grid-template-columns: 1fr; box-shadow: none; border: none; padding-left: 1rem; min-width: 0; }
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: grid; }
  .header-inner { flex-wrap: wrap; }
  .hero h1 { font-size: 2rem; }
}
