:root {
    --accent: #4b6b2f;
    --accent-dark: #30431e;
    --bg: #fbfaf5;
    --text: #2a2a22;
    --muted: #6b6b5c;
    --card-bg: #ffffff;
    --border: #e4e2d6;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.site-header { background: var(--accent); color: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 20px; gap: 12px; }
.site-logo { color: #fff; font-weight: 700; font-size: 1.25rem; }
.site-nav__list { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { color: #e9f3dd; }
.site-nav__item.is-current a { color: #fff; font-weight: 700; text-decoration: underline; }

.site-main { padding: 32px 0 48px; }

.hero { text-align: center; padding: 40px 0 24px; }
.hero h1 { font-size: 2.2rem; margin-bottom: 8px; color: var(--accent-dark); }
.hero__lede { max-width: 640px; margin: 0 auto 20px; color: var(--muted); }
.button { display: inline-block; background: var(--accent); color: #fff; padding: 10px 22px; border-radius: 4px; font-weight: 600; }
.button:hover { background: var(--accent-dark); text-decoration: none; }

.herb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 20px 0; }
.herb-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 6px; padding: 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.herb-card img { width: 100%; height: 110px; object-fit: cover; border-radius: 4px; }
.herb-card__title { font-weight: 600; color: var(--text); }
.herb-card:hover .herb-card__title { color: var(--accent-dark); }

.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin: 20px 0; }
.recipe-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 6px; padding: 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.recipe-card img { width: 100%; height: 110px; object-fit: cover; border-radius: 4px; }
.recipe-card__title { font-weight: 600; color: var(--text); }
.recipe-card:hover .recipe-card__title { color: var(--accent-dark); }

.recipe-category-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0; }
.recipe-category-list__item a { display: inline-block; background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; font-size: 0.9rem; }
.recipe-category-list__item.is-current a { background: var(--accent); color: #fff; border-color: var(--accent); }
.recipe__category a { font-weight: 600; }
.recipe__content table { border-collapse: collapse; margin: 0 0 1em; max-width: 100%; }
.recipe__content td { vertical-align: top; padding: 2px 6px; }
.recipe__content img { max-width: 100%; height: auto; }
/* the old recipe template's root table carries a legacy align="left" (still
   honored as float:left by every browser) with nothing to clear it -- the
   container collapses to 0 height and the footer rides up under the header.
   Confirmed 31.10.2026 on /recipes/arugulaorangesalad/. */
.recipe__content::after { content: ""; display: table; clear: both; }

.link-list { list-style: none; padding: 0; columns: 2; }
.link-list li { margin-bottom: 8px; }

.link-more { display: inline-block; margin-top: 12px; font-weight: 600; }

.herb-profile__image img, .recipe__image img { max-width: 320px; border-radius: 6px; float: right; margin: 0 0 16px 24px; }
.page__image img { max-width: 100%; border-radius: 6px; margin: 0 0 20px; display: block; }
.herb-profile h1, .page h1 { color: var(--accent-dark); }
.entry-content p { margin: 0 0 1em; }
.entry-content strong { color: var(--accent-dark); }

.site-footer { background: var(--accent-dark); color: #d9e4c8; margin-top: 40px; }
.site-footer__inner { padding: 20px; text-align: center; font-size: 0.9rem; }

@media (max-width: 640px) {
    .herb-profile__image img, .recipe__image img { float: none; margin: 0 0 16px; width: 100%; max-width: 100%; }
    .link-list { columns: 1; }
}
