/*
Theme Name: TasteCraft
Theme URI: https://example.com/tastecraft
Author: TasteCraft
Author URI: https://example.com
Description: A lightweight, mobile-first, SEO-optimized WordPress theme for food recipe blogs. Built for Pinterest traffic, Core Web Vitals, and display-ad networks (Mediavine, Journey by Mediavine, AdSense). Gutenberg native, no page-builder dependency, no jQuery.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tastecraft
Tags: blog, food, recipes, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Design Tokens
   ========================================================================== */
:root {
  --tc-bg: #FFF9F5;
  --tc-surface: #FFFFFF;
  --tc-accent: #E67E22;
  --tc-accent-dark: #D35400;
  --tc-text: #333333;
  --tc-text-light: #6B6B6B;
  --tc-border: #EAEAEA;
  --tc-shadow: 0 6px 24px rgba(51, 51, 51, 0.08);
  --tc-shadow-hover: 0 12px 32px rgba(211, 84, 0, 0.16);
  --tc-radius: 14px;
  --tc-radius-sm: 8px;
  --tc-font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --tc-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tc-container: 1200px;
  --tc-gap: 28px;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tc-bg);
  color: var(--tc-text);
  font-family: var(--tc-font-body);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tc-accent-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--tc-accent); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--tc-font-head);
  color: var(--tc-text);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
p { margin: 0 0 1.25em; }
ul, ol { padding-left: 1.4em; }
blockquote {
  border-left: 4px solid var(--tc-accent);
  margin: 1.5em 0;
  padding: .5em 1.4em;
  background: var(--tc-surface);
  border-radius: 0 var(--tc-radius-sm) var(--tc-radius-sm) 0;
  font-style: italic;
}
:focus-visible { outline: 3px solid var(--tc-accent); outline-offset: 2px; }

/* ==========================================================================
   3. Layout Helpers
   ========================================================================== */
.tc-container { width: 100%; max-width: var(--tc-container); margin: 0 auto; padding: 0 20px; }
.tc-section { padding: 56px 0; }
.tc-grid { display: grid; gap: var(--tc-gap); }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--tc-accent-dark);
  color: #fff; padding: 10px 18px; z-index: 1000; border-radius: 0 0 var(--tc-radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.tc-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; align-items: start; }
.tc-layout.tc-no-sidebar { grid-template-columns: minmax(0,1fr); }
.tc-layout.tc-sidebar-left { grid-template-columns: 320px minmax(0,1fr); }
.tc-layout.tc-sidebar-left .tc-sidebar { order: -1; }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.tc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tc-accent); color: #fff; font-weight: 600;
  font-family: var(--tc-font-body); font-size: 1rem;
  padding: 13px 26px; border: none; border-radius: var(--tc-radius-sm);
  cursor: pointer; transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tc-btn:hover { background: var(--tc-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--tc-shadow-hover); }
.tc-btn--outline { background: transparent; color: var(--tc-accent-dark); border: 2px solid var(--tc-accent); }
.tc-btn--outline:hover { background: var(--tc-accent); color: #fff; }
.tc-btn--pinterest { background: #E60023; }
.tc-btn--pinterest:hover { background: #ad001a; }

/* Button style customizer hook */
body.tc-btn-rounded .tc-btn { border-radius: 50px; }
body.tc-btn-square .tc-btn { border-radius: 0; }

/* ==========================================================================
   5. Header
   ========================================================================== */
.tc-header {
  background: var(--tc-surface);
  border-bottom: 1px solid var(--tc-border);
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow .3s ease;
}
.tc-header.is-stuck { box-shadow: var(--tc-shadow); }
/* Centered-logo header: logo row on top, menu + search row below */
.tc-header__top {
  display: flex; align-items: center; justify-content: center;
  padding-top: 18px; padding-bottom: 12px;
}
.tc-header__bar {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; min-height: 52px; border-top: 1px solid var(--tc-border);
}
.tc-branding { display: flex; align-items: center; justify-content: center; text-align: center; }
.tc-branding .custom-logo-link { display: block; }
.tc-branding img { max-height: 64px; width: auto; }
.tc-site-title { font-size: 2rem; margin: 0; }
.tc-site-title a { color: var(--tc-text); }
.tc-site-desc { font-size: .82rem; color: var(--tc-text-light); margin: 4px 0 0; text-align: center; }

.tc-nav { display: flex; justify-content: center; }
.tc-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.tc-nav li { position: relative; }
.tc-nav a {
  color: var(--tc-text); font-weight: 600; font-size: .98rem;
  padding: 8px 0; display: inline-block; position: relative;
}
.tc-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--tc-accent); transition: width .25s ease;
}
.tc-nav a:hover::after, .tc-nav .current-menu-item > a::after { width: 100%; }
.tc-nav .sub-menu {
  position: absolute; top: 100%; left: 0; background: var(--tc-surface);
  box-shadow: var(--tc-shadow); border-radius: var(--tc-radius-sm);
  min-width: 200px; padding: 8px 0; display: none; flex-direction: column; gap: 0; z-index: 50;
}
.tc-nav li:hover > .sub-menu { display: flex; }
.tc-nav .sub-menu a { padding: 8px 18px; display: block; }

.tc-header__actions { display: flex; align-items: center; gap: 14px; }
.tc-icon-btn {
  background: none; border: none; cursor: pointer; color: var(--tc-text);
  display: inline-flex; padding: 8px; border-radius: 50%; transition: background .2s ease;
}
.tc-icon-btn:hover { background: var(--tc-bg); color: var(--tc-accent-dark); }
.tc-icon-btn svg { width: 22px; height: 22px; }

/* Search overlay */
.tc-search-overlay {
  position: fixed; inset: 0; background: rgba(51,51,51,.55);
  display: none; align-items: flex-start; justify-content: center;
  z-index: 200; padding-top: 14vh;
}
.tc-search-overlay.is-open { display: flex; }
.tc-search-overlay__box { width: min(640px, 90%); background: var(--tc-surface); padding: 28px; border-radius: var(--tc-radius); }
.tc-search-overlay input[type="search"] {
  width: 100%; font-size: 1.2rem; padding: 14px 16px;
  border: 2px solid var(--tc-border); border-radius: var(--tc-radius-sm);
  font-family: var(--tc-font-body);
}

/* Mobile menu toggle */
.tc-menu-toggle { display: none; }
.tc-mobile-nav { display: none; }

/* ==========================================================================
   6. Hero
   ========================================================================== */
.tc-hero {
  position: relative; border-radius: var(--tc-radius); overflow: hidden;
  margin: 32px 0; min-height: 460px; display: flex; align-items: flex-end;
  background: var(--tc-accent-dark);
}
.tc-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(51,51,51,.82) 0%, rgba(51,51,51,.25) 55%, transparent 100%);
}
.tc-hero__content { position: relative; padding: 40px; max-width: 640px; color: #fff; }
.tc-hero__content h1, .tc-hero__content p { color: #fff; }
.tc-hero__cat {
  display: inline-block; background: var(--tc-accent); color: #fff;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 5px 12px; border-radius: 50px; margin-bottom: 14px;
}
.tc-hero__desc { font-size: 1.05rem; opacity: .95; }

/* ==========================================================================
   7. Recipe Cards / Grids
   ========================================================================== */
.tc-section__head { text-align: center; margin-bottom: 36px; }
.tc-section__head h2 { margin-bottom: 6px; }
.tc-section__head p { color: var(--tc-text-light); margin: 0; }

.tc-cards { grid-template-columns: repeat(3, 1fr); }
.tc-card {
  background: var(--tc-surface); border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tc-card:hover { transform: translateY(-4px); box-shadow: var(--tc-shadow-hover); }
.tc-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.tc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tc-card:hover .tc-card__media img { transform: scale(1.06); }
.tc-card__cat {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92);
  color: var(--tc-accent-dark); font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: 5px 11px; border-radius: 50px;
}
.tc-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.tc-card__title { font-size: 1.25rem; margin: 0 0 8px; }
.tc-card__title a { color: var(--tc-text); }
.tc-card__title a:hover { color: var(--tc-accent-dark); }
.tc-card__meta { font-size: .82rem; color: var(--tc-text-light); display: flex; gap: 14px; margin-top: auto; }
.tc-card__excerpt { font-size: .95rem; color: var(--tc-text-light); margin: 0 0 14px; }

/* Masonry (latest recipes) */
.tc-masonry { columns: 3; column-gap: var(--tc-gap); }
.tc-masonry .tc-card { display: inline-block; width: 100%; margin: 0 0 var(--tc-gap); break-inside: avoid; }

/* Categories grid */
.tc-cats { grid-template-columns: repeat(3, 1fr); }
.tc-cat-tile {
  position: relative; border-radius: var(--tc-radius); overflow: hidden;
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  background: var(--tc-accent-dark);
}
.tc-cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform .4s ease, opacity .3s ease; }
.tc-cat-tile:hover img { transform: scale(1.08); opacity: .65; }
.tc-cat-tile span {
  position: relative; color: #fff; font-family: var(--tc-font-head); font-weight: 700;
  font-size: 1.5rem; text-align: center; text-shadow: 0 2px 8px rgba(0,0,0,.4); padding: 0 10px;
}

/* ==========================================================================
   8. About & Newsletter
   ========================================================================== */
.tc-about {
  display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center;
  background: var(--tc-surface); border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius); padding: 40px;
}
.tc-about__img { border-radius: 50%; width: 200px; height: 200px; object-fit: cover; }
.tc-about h2 { margin-top: 0; }

.tc-newsletter {
  background: linear-gradient(135deg, var(--tc-accent) 0%, var(--tc-accent-dark) 100%);
  color: #fff; border-radius: var(--tc-radius); padding: 56px 40px; text-align: center;
}
.tc-newsletter h2 { color: #fff; }
.tc-newsletter p { color: rgba(255,255,255,.92); max-width: 520px; margin: 0 auto 24px; }
.tc-newsletter form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.tc-newsletter input[type="email"] {
  flex: 1; min-width: 240px; padding: 14px 18px; border: none; border-radius: var(--tc-radius-sm);
  font-family: var(--tc-font-body); font-size: 1rem;
}
.tc-newsletter .tc-btn { background: #fff; color: var(--tc-accent-dark); }
.tc-newsletter .tc-btn:hover { background: var(--tc-text); color: #fff; }

/* ==========================================================================
   9. Single Recipe Post
   ========================================================================== */
.tc-article { background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius); overflow: hidden; }
.tc-article__hero img { width: 100%; max-height: 540px; object-fit: cover; }
.tc-article__inner { padding: 40px; }
.tc-article__title { margin: 0 0 16px; }
.tc-article__meta {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  color: var(--tc-text-light); font-size: .9rem; padding-bottom: 22px;
  border-bottom: 1px solid var(--tc-border); margin-bottom: 28px;
}
.tc-article__meta .tc-author { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--tc-text); }
.tc-article__meta .tc-author img { width: 34px; height: 34px; border-radius: 50%; }

.tc-content { font-size: 1.08rem; }
.tc-content h2 { margin-top: 1.6em; }
.tc-content h3 { margin-top: 1.4em; }
.tc-content img { border-radius: var(--tc-radius-sm); margin: 1.2em 0; }
.tc-content ul li, .tc-content ol li { margin-bottom: .5em; }
.tc-content :where(figure) { margin: 1.5em 0; }

/* Recipe card block */
.tc-recipe-card {
  border: 2px solid var(--tc-accent); border-radius: var(--tc-radius);
  padding: 28px; margin: 36px 0; background: var(--tc-bg);
}
.tc-recipe-card__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.tc-recipe-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 26px; }
.tc-recipe-stat { text-align: center; background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius-sm); padding: 14px 8px; }
.tc-recipe-stat strong { display: block; font-family: var(--tc-font-head); font-size: 1.15rem; color: var(--tc-accent-dark); }
.tc-recipe-stat span { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tc-text-light); }
.tc-recipe-card h3 { border-bottom: 2px solid var(--tc-border); padding-bottom: 8px; }
.tc-nutrition { display: flex; flex-wrap: wrap; gap: 10px; }
.tc-nutrition li { list-style: none; background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: 50px; padding: 6px 14px; font-size: .85rem; }

/* Pinterest save block */
.tc-pin {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center;
  background: var(--tc-surface); border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius); padding: 24px; margin: 36px 0;
}
.tc-pin img { border-radius: var(--tc-radius-sm); aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }

/* Related */
.tc-related { margin-top: 48px; }
.tc-related h2 { text-align: center; }

/* ==========================================================================
   10. Comments
   ========================================================================== */
.tc-comments { margin-top: 48px; background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius); padding: 36px; }
.tc-comments ol { list-style: none; padding: 0; margin: 0; }
.tc-comments .children { list-style: none; padding-left: 36px; }
.tc-comment { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--tc-border); }
.tc-comment .avatar { border-radius: 50%; width: 52px; height: 52px; }
.tc-comment__meta { font-size: .85rem; color: var(--tc-text-light); margin-bottom: 6px; }
.tc-comment__author { font-weight: 700; color: var(--tc-text); }
.tc-comment .reply a { font-size: .82rem; font-weight: 600; }
.tc-comment-form input[type="text"], .tc-comment-form input[type="email"], .tc-comment-form input[type="url"], .tc-comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-sm); font-family: var(--tc-font-body); font-size: 1rem; margin-bottom: 14px;
}

/* ==========================================================================
   11. Sidebar & Widgets
   ========================================================================== */
.tc-sidebar .widget {
  background: var(--tc-surface); border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius); padding: 24px; margin-bottom: 28px;
}
.tc-sidebar .widget-title { font-size: 1.15rem; margin-top: 0; padding-bottom: 10px; border-bottom: 2px solid var(--tc-accent); }
.tc-sidebar ul { list-style: none; padding: 0; margin: 0; }
.tc-sidebar li { padding: 8px 0; border-bottom: 1px solid var(--tc-border); }
.tc-sidebar li:last-child { border-bottom: none; }
.tc-widget-posts a { display: flex; gap: 12px; align-items: center; color: var(--tc-text); }
.tc-widget-posts img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--tc-radius-sm); flex-shrink: 0; }
.tc-widget-posts span { font-size: .9rem; font-weight: 600; line-height: 1.3; }
.tc-author-widget { text-align: center; }
.tc-author-widget img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }

/* ==========================================================================
   12. Archive / Category / Search
   ========================================================================== */
.tc-archive-banner {
  background: linear-gradient(135deg, var(--tc-accent) 0%, var(--tc-accent-dark) 100%);
  color: #fff; border-radius: var(--tc-radius); padding: 48px 40px; text-align: center; margin: 32px 0;
}
.tc-archive-banner h1 { color: #fff; margin: 0 0 10px; }
.tc-archive-banner p { color: rgba(255,255,255,.92); max-width: 640px; margin: 0 auto; }
.tc-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.tc-filter-bar a {
  font-size: .85rem; font-weight: 600; padding: 7px 16px; border-radius: 50px;
  border: 1px solid var(--tc-border); color: var(--tc-text); background: var(--tc-surface);
}
.tc-filter-bar a:hover, .tc-filter-bar a.is-active { background: var(--tc-accent); color: #fff; border-color: var(--tc-accent); }

/* Pagination */
.tc-pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0; flex-wrap: wrap; }
.tc-pagination .page-numbers {
  padding: 10px 16px; border: 1px solid var(--tc-border); border-radius: var(--tc-radius-sm);
  background: var(--tc-surface); color: var(--tc-text); font-weight: 600;
}
.tc-pagination .page-numbers.current, .tc-pagination .page-numbers:hover { background: var(--tc-accent); color: #fff; border-color: var(--tc-accent); }

/* Breadcrumbs */
.tc-breadcrumbs { font-size: .85rem; color: var(--tc-text-light); margin: 18px 0; }
.tc-breadcrumbs a { color: var(--tc-text-light); }
.tc-breadcrumbs a:hover { color: var(--tc-accent-dark); }
.tc-breadcrumbs span[aria-current] { color: var(--tc-text); font-weight: 600; }

/* ==========================================================================
   13. Ad Slots
   ========================================================================== */
.tc-ad {
  margin: 28px auto; text-align: center; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(234,234,234,.4) 10px, rgba(234,234,234,.4) 20px);
  border: 1px dashed var(--tc-border); border-radius: var(--tc-radius-sm);
}
.tc-ad:empty::before { content: "Advertisement"; color: var(--tc-text-light); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.tc-ad--sidebar { min-height: 250px; }

/* ==========================================================================
   14. Footer
   ========================================================================== */
.tc-footer { background: var(--tc-text); color: #cfcfcf; margin-top: 64px; }
.tc-footer a { color: #cfcfcf; }
.tc-footer a:hover { color: var(--tc-accent); }
.tc-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding: 56px 0; }
.tc-footer h3 { color: #fff; font-size: 1.15rem; margin-bottom: 18px; }
.tc-footer ul { list-style: none; padding: 0; margin: 0; }
.tc-footer li { padding: 6px 0; }
.tc-footer .tc-footer__desc { font-size: .95rem; line-height: 1.7; }
.tc-footer__newsletter input[type="email"] { width: 100%; padding: 12px 14px; border: none; border-radius: var(--tc-radius-sm); margin-bottom: 12px; font-family: var(--tc-font-body); }
.tc-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; }
.tc-footer__bottom .tc-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .85rem; }
.tc-footer__bottom nav a { margin-left: 18px; }

/* ==========================================================================
   15. Utilities & Misc
   ========================================================================== */
.sticky, .bypostauthor { display: block; }
.alignwide { width: min(1000px, 100%); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--tc-text-light); text-align: center; }

/* ==========================================================================
   16. Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .tc-layout, .tc-layout.tc-sidebar-left { grid-template-columns: 1fr; }
  .tc-cards, .tc-cats { grid-template-columns: repeat(2, 1fr); }
  .tc-masonry { columns: 2; }
  .tc-footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .tc-recipe-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  body { font-size: 17px; }
  .tc-nav, .tc-search-overlay__box { } /* keep */
  .tc-nav { display: none; }
  .tc-menu-toggle { display: inline-flex; }
  .tc-mobile-nav {
    display: none; position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 84%);
    background: var(--tc-surface); box-shadow: var(--tc-shadow); z-index: 300;
    padding: 80px 24px 24px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease;
  }
  .tc-mobile-nav.is-open { display: block; transform: translateX(0); }
  .tc-mobile-nav ul { list-style: none; padding: 0; margin: 0; }
  .tc-mobile-nav li { border-bottom: 1px solid var(--tc-border); }
  .tc-mobile-nav a { display: block; padding: 14px 4px; color: var(--tc-text); font-weight: 600; }
  .tc-mobile-nav .sub-menu { padding-left: 16px; }
  .tc-mobile-close { position: absolute; top: 20px; right: 20px; }
  .tc-mobile-backdrop { position: fixed; inset: 0; background: rgba(51,51,51,.5); z-index: 250; display: none; }
  .tc-mobile-backdrop.is-open { display: block; }
  .tc-about { grid-template-columns: 1fr; text-align: center; padding: 28px; }
  .tc-about__img { margin: 0 auto; }
  .tc-pin { grid-template-columns: 1fr; }
  .tc-pin img { max-width: 240px; margin: 0 auto; }
  .tc-article__inner { padding: 24px; }
  .tc-recipe-card { padding: 20px; }
  .tc-footer__cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tc-cards, .tc-cats { grid-template-columns: 1fr; }
  .tc-masonry { columns: 1; }
  .tc-recipe-stats { grid-template-columns: repeat(2, 1fr); }
  .tc-hero { min-height: 360px; }
  .tc-hero__content { padding: 24px; }
}

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