html { color-scheme: light; }
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5eeee;
  --muted: #b8acad;
  --cream: #262528;
  --paper: #171719;
  --line: #403a3d;
  --green: #ef535d;
  --green-dark: #bd2731;
  --orange: #e7b450;
}
body, .site-header, .ad-placeholder, .category-card, .recipe-card, .new-card, .author-card,
.popular-section, .newsletter-section, .recipe-panel, .recipe-fact, .comment,
.catalog-recipe-card, .catalog-cta, .directory-card, .pagination button, .account-card,
.account-row, .account-form input, .account-form textarea, .account-form select,
.admin-actions button, .mobile-bottom-nav {
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.theme-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #f0c9c9;
  border-radius: 50%;
  background: #fff;
  color: #bd1e2a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover { background: #fff0ef; transform: rotate(-12deg); }
.theme-toggle:focus-visible { outline: 3px solid #d94a53; outline-offset: 3px; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Keep the primary navigation prominent and clearly separated. */
.main-nav { gap: 34px; }
.main-nav a { color: #c91f2b; font-size: 16px; font-weight: 900 !important; }
.main-nav a:hover, .main-nav .nav-active { color: #c91f2b; font-weight: 900 !important; }
.recipe-grid { gap: 24px; }

html[data-theme="dark"] body { background: #171719; color: #f2eeee; }
html[data-theme="dark"] .site-header { background: rgba(28, 28, 31, .96); border-color: #363538; }
html[data-theme="dark"] .site-footer { background: #211f22; color: #f2eeee; }
html[data-theme="dark"] .footer-bottom { border-color: #403a3d; color: #b9afb1; }
html[data-theme="dark"] .site-footer a,
html[data-theme="dark"] .site-footer strong { color: #f5eeee; }
html[data-theme="dark"] .site-footer a:hover { color: #ff858b; }
html[data-theme="dark"] .brand-word,
html[data-theme="dark"] .main-nav,
html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .account-row,
html[data-theme="dark"] .recipe-author { color: #f1e9e9; }
html[data-theme="dark"] .brand-word small,
html[data-theme="dark"] .account-lead,
html[data-theme="dark"] .account-row small { color: #b8acad; }
html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav .nav-active { color: #ff6871; }
html[data-theme="dark"] .main-nav a { color: #ff6871; }
html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav .nav-active { color: #ff6871; font-weight: 900 !important; }
html[data-theme="dark"] .main-nav a:hover { font-weight: 900 !important; }
html[data-theme="dark"] .share-recipe { color: #ff858b; border-color: #71353a; }
html[data-theme="dark"] .share-recipe:hover { background: #382124; }
html[data-theme="dark"] .theme-toggle { background: #29282b; color: #ffd45c; border-color: #51464a; }
html[data-theme="dark"] .theme-toggle:hover { background: #3a3430; }
html[data-theme="dark"] .menu-toggle i { background: #ff747b; }
html[data-theme="dark"] .main-nav { background: #242326; }

html[data-theme="dark"] .ad-placeholder { color: #bcb2b3; background: #212124; border-color: #4b383a; }
html[data-theme="dark"] .ad-placeholder-top { background: #1c1c1f; border-color: #393639; }
html[data-theme="dark"] .ad-placeholder strong { color: #ff777e; }
html[data-theme="dark"] .ad-placeholder small,
html[data-theme="dark"] .ad-placeholder .ad-label,
html[data-theme="dark"] .ad-placeholder .ad-size { color: #a99b9d; }

html[data-theme="dark"] .category-card,
html[data-theme="dark"] .recipe-card,
html[data-theme="dark"] .new-card,
html[data-theme="dark"] .author-card,
html[data-theme="dark"] .catalog-recipe-card,
html[data-theme="dark"] .directory-card,
html[data-theme="dark"] .recipe-panel,
html[data-theme="dark"] .account-card { background: #222225; border-color: #39383c; color: #f2eeee; }
html[data-theme="dark"] .category-card strong,
html[data-theme="dark"] .recipe-info h3,
html[data-theme="dark"] .popular-item strong,
html[data-theme="dark"] .new-card h3,
html[data-theme="dark"] .author-card strong,
html[data-theme="dark"] .catalog-recipe-copy h3,
html[data-theme="dark"] .recipe-intro h1,
html[data-theme="dark"] .recipe-panel h2,
html[data-theme="dark"] .recipe-comments h2,
html[data-theme="dark"] .similar-recipes h2,
html[data-theme="dark"] .account-card h1,
html[data-theme="dark"] .account-main h1,
html[data-theme="dark"] .account-section h2 { color: #f5eeee; }
html[data-theme="dark"] .category-card small,
html[data-theme="dark"] .recipe-info p,
html[data-theme="dark"] .recipe-bottom,
html[data-theme="dark"] .popular-item small,
html[data-theme="dark"] .popular-item b,
html[data-theme="dark"] .new-card p,
html[data-theme="dark"] .author-card small,
html[data-theme="dark"] .catalog-recipe-copy p,
html[data-theme="dark"] .catalog-card-meta,
html[data-theme="dark"] .recipe-intro p,
html[data-theme="dark"] .recipe-rating-line span,
html[data-theme="dark"] .comments-summary,
html[data-theme="dark"] .comment p,
html[data-theme="dark"] .catalog-empty,
html[data-theme="dark"] .recipe-breadcrumb { color: #b9afb1; }
html[data-theme="dark"] .category-card { background: #202023; }
html[data-theme="dark"] .popular-section,
html[data-theme="dark"] .newsletter-section,
html[data-theme="dark"] .catalog-cta { background: #211f22; border-color: #3a3437; }
html[data-theme="dark"] .popular-item,
html[data-theme="dark"] .recipe-bottom,
html[data-theme="dark"] .catalog-card-meta,
html[data-theme="dark"] .recipe-comments,
html[data-theme="dark"] .similar-recipes { border-color: #3b3639; }
html[data-theme="dark"] .tabs { background: #302d31; }
html[data-theme="dark"] .tab { color: #c6babc; }
html[data-theme="dark"] .tab.active { background: #454046; color: #ff838a; }
html[data-theme="dark"] .recipe-fact,
html[data-theme="dark"] .comment { background: #2c292d; border-color: #40383c; }
html[data-theme="dark"] .recipe-fact small,
html[data-theme="dark"] .ingredient-list li,
html[data-theme="dark"] .steps-list li,
html[data-theme="dark"] .recipe-author { color: #ddd2d4; }
html[data-theme="dark"] .recipe-fact strong { color: #ff858b; }
html[data-theme="dark"] .ingredient-list li { border-color: #3d383b; }
html[data-theme="dark"] .recipe-breadcrumb a:hover,
html[data-theme="dark"] .not-found a,
html[data-theme="dark"] .catalog-cta>a { color: #ff777f; }
html[data-theme="dark"] .catalog-recipe-copy .recipe-category-label,
html[data-theme="dark"] .recipe-intro .kicker { color: #ff8a90; }
html[data-theme="dark"] .pagination button { background: #262528; border-color: #454044; color: #e7dcde; }
html[data-theme="dark"] .pagination button:hover,
html[data-theme="dark"] .pagination button.active { background: #c91f2b; border-color: #c91f2b; color: #fff; }
html[data-theme="dark"] .catalog-recipe-card .save-button { background: #272528; color: #ff8087; }
html[data-theme="dark"] .catalog-search input,
html[data-theme="dark"] .catalog-filters select,
html[data-theme="dark"] .comment-form input,
html[data-theme="dark"] .comment-form textarea,
html[data-theme="dark"] .newsletter-form input,
html[data-theme="dark"] .account-form input,
html[data-theme="dark"] .account-form textarea,
html[data-theme="dark"] .account-form select { color: #f1e9e9; background: #29272a; border-color: #4a4145; }
html[data-theme="dark"] .search-form { background: #29272a; border: 1px solid #51464a; }
html[data-theme="dark"] .search-form input { color: #f1e9e9; background: transparent; }
html[data-theme="dark"] .search-form input::placeholder { color: #b7aaad; }
html[data-theme="dark"] .search-form svg { stroke: #d3c5c8; }
html[data-theme="dark"] .search-form button { background: #c91f2b; color: #fff; }
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #a69a9d; }
html[data-theme="dark"] .account-form label { color: #ded3d5; }
html[data-theme="dark"] .account-row { border-color: #403a3d; }
html[data-theme="dark"] .account-message { background: #3a2225; color: #ffb1b5; }
html[data-theme="dark"] .account-message.success { background: #20352a; color: #b3e5bc; }
html[data-theme="dark"] .account-form .secondary,
html[data-theme="dark"] .admin-actions button { background: #29272a; color: #ff969c; border-color: #634044; }
html[data-theme="dark"] .admin-actions button:hover { background: #3a292c; }
html[data-theme="dark"] .mobile-bottom-nav { background: #242326; border-color: #443c40; }
html[data-theme="dark"] .mobile-bottom-nav a { color: #e3d9db; }
html[data-theme="dark"] .user-nav { color: #f1e9e9; }
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .newsletter-inner h2,
html[data-theme="dark"] .catalog-heading h2,
html[data-theme="dark"] .directory-card h3,
html[data-theme="dark"] .not-found h1,
html[data-theme="dark"] .profile-main h2,
html[data-theme="dark"] .admin-main h2 { color: #f5eeee; }
html[data-theme="dark"] .section-heading p,
html[data-theme="dark"] .newsletter-inner p,
html[data-theme="dark"] .catalog-heading p,
html[data-theme="dark"] .directory-card p { color: #b9afb1; }
html[data-theme="dark"] .category-grid,
html[data-theme="dark"] .recipe-grid,
html[data-theme="dark"] .new-grid,
html[data-theme="dark"] .author-grid { color: #f2eeee; }

@media (max-width: 680px) {
  .main-nav { gap: 0; }
  .main-nav a { font-size: 17px; }
  .recipe-grid { gap: 16px; }
  .share-recipe.auth-entry { font-size: 11px; white-space: nowrap; border: 1px solid #f0c9c9; padding: 7px 8px; margin-right: 6px; }
}

/* Slightly larger, heavier type across the site, with comfortable minimums. */
body { font-size: 16px; font-weight: 600; }
body :is(p, small, label, button, input, select, textarea, li, .kicker, .recipe-meta, .recipe-bottom, .catalog-card-meta) {
  font-weight: 600;
}
body :is(p, small, label, button, input, select, textarea, li, .kicker, .recipe-meta, .recipe-bottom, .catalog-card-meta) {
  font-size: max(13px, 1em) !important;
}
.main-nav a { font-size: 18px; }
.category-card strong, .directory-card strong { font-size: 17px; font-weight: 800; }
.subcategory-chip { font-size: 13px; font-weight: 700; }
.recipe-info h3, .new-card h3, .catalog-recipe-copy h3 { font-weight: 800; }
.category-card, .directory-card, .recipe-card, .catalog-recipe-card, .new-card, .author-card,
.popular-item, .subcategory-chip, .main-nav a {
  transition: transform .24s ease, box-shadow .24s ease, color .2s ease, background-color .2s ease, border-color .2s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .main-nav a:hover { transform: translateY(-3px); }
  .category-card:hover, .directory-card:hover, .recipe-card:hover, .catalog-recipe-card:hover,
  .new-card:hover, .author-card:hover, .popular-item:hover { transform: translateY(-5px); box-shadow: 0 14px 28px #54131d26; }
  .subcategory-chip:hover { transform: translateY(-2px); }
}
.main-nav a:focus-visible, .category-card:focus-visible, .directory-card:focus-visible,
.recipe-card a:focus-visible, .subcategory-chip:focus-visible { outline: 3px solid #e45c64; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
