@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --primary: #a9382b;
  --primary-deep: #84291f;
  --primary-soft: #f4ddd6;
  --accent: #dc9d34;
  --accent-soft: #f8ebcd;
  --cream: #f8f2e9;
  --surface: #fffdfa;
  --surface-2: #f2e9df;
  --text: #2b1c18;
  --muted: #76635c;
  --border: #e6d9ce;
  --success: #587a5d;
  --shadow-sm: 0 2px 10px rgba(63, 35, 25, .06);
  --shadow-md: 0 14px 38px rgba(63, 35, 25, .11);
  --shadow-lg: 0 28px 80px rgba(63, 35, 25, .16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --header-height: 82px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="dark"] {
  --primary: #e78370;
  --primary-deep: #f09b8b;
  --primary-soft: #4d2b28;
  --accent: #e8b65a;
  --accent-soft: #4b3a20;
  --cream: #1c1411;
  --surface: #271c18;
  --surface-2: #33231e;
  --text: #f9eee6;
  --muted: #bfa9a0;
  --border: #48332b;
  --success: #91bb95;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, .18);
  --shadow-md: 0 16px 42px rgba(0, 0, 0, .26);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; background: var(--cream); color: var(--text); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; -webkit-overflow-scrolling: touch; transition: background .25s, color .25s; }
body, a, button { -webkit-tap-highlight-color: transparent; }
button, a, input, select { touch-action: manipulation; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
::selection { background: var(--primary); color: white; }

.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 999; background: var(--text); color: var(--surface); padding: 12px 18px; border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.no-scroll { overflow: hidden; }

.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 28%, transparent); }
.btn-primary:hover { background: var(--primary-deep); box-shadow: 0 14px 32px color-mix(in srgb, var(--primary) 34%, transparent); }
.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); padding-inline: 5px; min-height: auto; border-radius: 0; }
.btn-ghost:hover { transform: none; }
.icon-button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); background: var(--surface); border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; transition: .2s var(--ease); }
.icon-button:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.site-header { height: var(--header-height); position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 44px; height: 44px; border-radius: 15px 15px 12px 12px; background: var(--primary); color: white; display: grid; place-items: center; transform: rotate(-3deg); box-shadow: 0 9px 20px color-mix(in srgb, var(--primary) 24%, transparent); }
.brand-mark svg { width: 27px; height: 27px; }
.brand-copy { display: grid; line-height: 1.08; }
.brand-name { font-family: var(--font-display); font-size: 1.22rem; letter-spacing: -.02em; }
.brand-tagline { color: var(--muted); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav a { padding: 9px 13px; font-size: .91rem; font-weight: 600; color: var(--muted); border-radius: 999px; transition: .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--primary-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.language-menu { position: relative; }
.language-current { min-width: 44px; width: auto; padding: 0 12px; gap: 5px; display: flex; }
.language-list { position: absolute; top: calc(100% + 10px); right: 0; z-index: 20; min-width: 180px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease); }
[dir="rtl"] .language-list { right: auto; left: 0; }
.language-menu.open .language-list { opacity: 1; visibility: visible; transform: translateY(0); }
.language-list a { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border-radius: 10px; color: var(--muted); font-size: .9rem; }
.language-list a:hover, .language-list a.active { background: var(--primary-soft); color: var(--primary); }
.mobile-toggle { display: none; }

.search-panel { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, #1f110d 50%, transparent); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: .25s; }
.search-panel.open { opacity: 1; visibility: visible; }
.search-dialog { width: min(700px, calc(100% - 32px)); margin: 11vh auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 18px; transform: translateY(-12px); transition: .3s var(--ease); }
.search-panel.open .search-dialog { transform: translateY(0); }
.search-row { display: flex; align-items: center; gap: 10px; }
.search-row input { flex: 1; height: 54px; min-width: 0; border: 0; background: var(--surface-2); color: var(--text); border-radius: 15px; padding: 0 18px; outline: 0; }
.search-row input:focus { box-shadow: inset 0 0 0 2px var(--primary); }
.live-search-results { margin-top: 12px; max-height: 54vh; overflow: auto; }
.live-result { display: grid; grid-template-columns: 68px 1fr auto; gap: 13px; align-items: center; padding: 10px; border-radius: 14px; transition: .2s; }
.live-result:hover { background: var(--surface-2); }
.live-result img { width: 68px; height: 54px; object-fit: cover; border-radius: 10px; }
.live-result strong { display: block; font-size: .92rem; }
.live-result span { color: var(--muted); font-size: .76rem; }
.search-empty { padding: 30px; text-align: center; color: var(--muted); }

.hero { overflow: hidden; position: relative; padding: 72px 0 82px; }
.hero::before { content: ''; position: absolute; width: 540px; height: 540px; border-radius: 50%; left: -270px; top: -280px; background: var(--accent-soft); filter: blur(2px); opacity: .72; }
[dir="rtl"] .hero::before { left: auto; right: -270px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 84px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 800; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.hero h1 { max-width: 650px; margin: 18px 0 20px; font-family: var(--font-display); font-size: clamp(3.3rem, 6.2vw, 6rem); line-height: .97; letter-spacing: -.045em; font-weight: 400; }
.hero h1 em { color: var(--primary); font-weight: 400; }
.hero-copy { color: var(--muted); font-size: 1.08rem; max-width: 560px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin-top: 30px; }
.avatar-stack { display: flex; }
.avatar-stack span { width: 31px; height: 31px; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--cream); border-radius: 50%; margin-right: -8px; font-size: .72rem; }
.hero-visual { position: relative; }
.hero-image-wrap { position: relative; border-radius: 46% 46% 28px 28px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-lg); transform: rotate(1.5deg); }
.hero-image-wrap img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; }
.hero-image-wrap::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.6); border-radius: inherit; pointer-events: none; }
.hero-stamp { position: absolute; left: -44px; bottom: 40px; width: 122px; height: 122px; border-radius: 50%; background: var(--accent); color: #34200d; display: grid; place-items: center; text-align: center; font-family: var(--font-display); font-size: 1rem; line-height: 1.05; transform: rotate(-11deg); box-shadow: var(--shadow-md); border: 5px solid var(--cream); }
[dir="rtl"] .hero-stamp { left: auto; right: -44px; }
.hero-dot { position: absolute; right: -30px; top: -34px; width: 95px; height: 95px; background-image: radial-gradient(var(--primary) 2px, transparent 2px); background-size: 13px 13px; opacity: .35; }
[dir="rtl"] .hero-dot { right: auto; left: -30px; }

.section { padding: 78px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading h2 { margin: 7px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.15rem, 4vw, 3.35rem); line-height: 1.03; letter-spacing: -.025em; }
.section-heading p { color: var(--muted); margin: 10px 0 0; max-width: 540px; }
.text-link { color: var(--primary); font-weight: 700; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.text-link:hover { gap: 11px; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card { position: relative; overflow: hidden; min-height: 168px; padding: 23px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: .3s var(--ease); }
.category-card::after { content: ''; position: absolute; width: 100px; height: 100px; right: -35px; bottom: -45px; border-radius: 50%; background: var(--accent-soft); transition: .3s var(--ease); }
[dir="rtl"] .category-card::after { right: auto; left: -35px; }
.category-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-md); }
.category-card:hover::after { transform: scale(1.35); }
.category-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--primary-soft); font-size: 1.55rem; margin-bottom: 20px; }
.category-card strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; }
.category-card span { color: var(--muted); font-size: .79rem; }

.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.recipe-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.recipe-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: transparent; }
.recipe-image { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--surface-2); }
.recipe-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.recipe-card:hover .recipe-image img { transform: scale(1.045); }
.recipe-badge { position: absolute; top: 14px; left: 14px; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); color: var(--primary); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
[dir="rtl"] .recipe-badge { left: auto; right: 14px; }
.favorite-button { position: absolute; top: 13px; right: 13px; width: 36px; height: 36px; background: color-mix(in srgb, var(--surface) 90%, transparent); border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--text); }
[dir="rtl"] .favorite-button { right: auto; left: 13px; }
.favorite-button.active { color: var(--primary); }
.favorite-button.active svg { fill: currentColor; }
.recipe-card-body { padding: 20px; }
.recipe-kicker { color: var(--primary); font-size: .73rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.recipe-card h3 { margin: 7px 0 13px; font-family: var(--font-display); font-weight: 400; font-size: 1.48rem; line-height: 1.15; letter-spacing: -.015em; }
.recipe-card h3 a::after { content: ''; position: absolute; }
.recipe-meta { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: .78rem; }
.recipe-meta span { display: inline-flex; align-items: center; gap: 5px; }
.rating { margin-left: auto; color: var(--accent); font-weight: 700; }
[dir="rtl"] .rating { margin-left: 0; margin-right: auto; }

.season-card { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 470px; overflow: hidden; border-radius: var(--radius-lg); background: var(--primary); color: white; box-shadow: var(--shadow-lg); }
.season-copy { padding: clamp(38px, 7vw, 82px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.season-card .eyebrow { color: #ffd593; }
.season-copy h2 { font-family: var(--font-display); font-size: clamp(2.7rem, 5vw, 4.5rem); font-weight: 400; line-height: .98; letter-spacing: -.035em; margin: 16px 0; }
.season-copy p { color: rgba(255,255,255,.77); max-width: 450px; }
.season-copy .btn { margin-top: 18px; background: white; color: var(--primary-deep); }
.season-image { min-height: 380px; overflow: hidden; }
.season-image img { width: 100%; height: 100%; object-fit: cover; }

.page-hero { padding: 58px 0 34px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .8rem; margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--primary); }
.page-title { margin: 0; font-family: var(--font-display); font-size: clamp(2.7rem, 5vw, 4.8rem); font-weight: 400; line-height: 1; letter-spacing: -.035em; }
.page-intro { max-width: 680px; color: var(--muted); font-size: 1.05rem; margin-top: 16px; }

.recipe-hero { padding: 32px 0 60px; }
.recipe-hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 55px; align-items: center; }
.recipe-hero-image { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.recipe-hero-image img { width: 100%; aspect-ratio: 4/3.7; object-fit: cover; }
.recipe-title { font-family: var(--font-display); font-size: clamp(3rem, 5.2vw, 5rem); font-weight: 400; line-height: .98; letter-spacing: -.04em; margin: 14px 0 20px; }
.recipe-lead { color: var(--muted); font-size: 1.06rem; max-width: 650px; }
.recipe-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { display: inline-flex; padding: 6px 11px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .72rem; font-weight: 700; }
.recipe-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 27px 0 24px; padding-block: 20px; border-block: 1px solid var(--border); }
.recipe-stat { padding-inline: 15px; border-right: 1px solid var(--border); }
.recipe-stat:first-child { padding-left: 0; }
.recipe-stat:last-child { border: 0; }
[dir="rtl"] .recipe-stat { border-right: 0; border-left: 1px solid var(--border); }
[dir="rtl"] .recipe-stat:first-child { padding-right: 0; padding-left: 15px; }
[dir="rtl"] .recipe-stat:last-child { border: 0; }
.recipe-stat span { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.recipe-stat strong { display: block; margin-top: 3px; font-size: .98rem; }
.recipe-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.recipe-content { padding: 35px 0 90px; }
.recipe-columns { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 55px; align-items: start; }
.ingredient-panel { position: sticky; top: calc(var(--header-height) + 24px); padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.content-title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 21px; }
.servings-control { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 0 19px; margin-bottom: 16px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .82rem; }
.stepper { display: flex; align-items: center; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.stepper button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; font-weight: 800; }
.stepper button:hover { background: var(--surface); color: var(--primary); }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; color: var(--text); }
.ingredient-group { color: var(--primary); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 20px 0 9px; }
.ingredient-list { list-style: none; padding: 0; margin: 0; }
.ingredient-item { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: .91rem; }
.ingredient-item:last-child { border-bottom: 0; }
.ingredient-check { appearance: none; width: 17px; height: 17px; border: 1.5px solid var(--border); border-radius: 5px; cursor: pointer; position: relative; top: 3px; }
.ingredient-check:checked { background: var(--success); border-color: var(--success); }
.ingredient-check:checked::after { content: '✓'; color: white; font-size: 11px; position: absolute; inset: -1px 0 0 3px; }
.ingredient-item:has(.ingredient-check:checked) .ingredient-name { color: var(--muted); text-decoration: line-through; }
.ingredient-amount { color: var(--muted); font-weight: 600; white-space: nowrap; }
.steps-list { display: grid; gap: 18px; }
.recipe-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 19px; padding: 25px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); transition: .25s; }
.recipe-step:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); transform: translateX(4px); }
[dir="rtl"] .recipe-step:hover { transform: translateX(-4px); }
.step-number { width: 53px; height: 53px; display: grid; place-items: center; border-radius: 17px; background: var(--primary-soft); color: var(--primary); font-family: var(--font-display); font-size: 1.5rem; }
.step-label { color: var(--muted); font-size: .69rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.step-text { margin: 5px 0 0; font-size: .97rem; }
.step-notes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.step-note { display: inline-flex; gap: 5px; align-items: center; padding: 5px 9px; border-radius: 999px; background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 55%, var(--text)); font-size: .72rem; font-weight: 700; }

.empty-state { padding: 70px 25px; text-align: center; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-md); }
.empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 400; margin: 0; }
.empty-state p { color: var(--muted); }
.not-found { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.not-found-code { font-family: var(--font-display); font-size: clamp(7rem, 20vw, 14rem); line-height: .7; color: var(--primary-soft); text-shadow: 1px 1px var(--primary); }
.not-found h1 { font-family: var(--font-display); font-size: 2.8rem; font-weight: 400; margin: 35px 0 8px; }
.not-found p { color: var(--muted); margin: 0 0 25px; }

.site-footer { padding: 68px 0 24px; background: var(--text); color: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .65fr 1fr; gap: 70px; padding-bottom: 48px; }
.footer-brand .brand-mark { background: var(--accent); color: #2b1c18; }
.footer-brand p { color: color-mix(in srgb, var(--cream) 65%, transparent); max-width: 380px; font-size: .9rem; margin-top: 18px; }
.footer-title { color: white; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 17px; }
.footer-links { display: grid; gap: 9px; color: color-mix(in srgb, var(--cream) 68%, transparent); font-size: .88rem; }
.footer-links a:hover { color: var(--accent); }
.newsletter-copy { color: color-mix(in srgb, var(--cream) 65%, transparent); font-size: .85rem; }
.newsletter-form { display: flex; margin-top: 16px; }
.newsletter-form input { width: 100%; min-width: 0; height: 48px; padding: 0 15px; border: 1px solid rgba(255,255,255,.17); border-right: 0; background: rgba(255,255,255,.06); color: white; border-radius: 999px 0 0 999px; outline: 0; }
[dir="rtl"] .newsletter-form input { border-right: 1px solid rgba(255,255,255,.17); border-left: 0; border-radius: 0 999px 999px 0; }
.newsletter-form button { border: 0; padding: 0 18px; border-radius: 0 999px 999px 0; background: var(--accent); color: #2b1c18; font-weight: 800; cursor: pointer; }
[dir="rtl"] .newsletter-form button { border-radius: 999px 0 0 999px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); color: color-mix(in srgb, var(--cream) 55%, transparent); font-size: .74rem; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 90; max-width: 340px; padding: 13px 17px; background: var(--text); color: var(--cream); border-radius: 12px; box-shadow: var(--shadow-lg); transform: translateY(30px); opacity: 0; pointer-events: none; transition: .3s var(--ease); }
[dir="rtl"] .toast { right: auto; left: 22px; }
.toast.visible { transform: translateY(0); opacity: 1; }
.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.animate-on-scroll.visible { opacity: 1; transform: none; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .22s ease-out both page-out; }
::view-transition-new(root) { animation: .38s var(--ease) both page-in; }
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(9px); } }

@media (max-width: 980px) {
  .main-nav { display: none; position: fixed; inset: var(--header-height) 0 auto; padding: 18px 20px 25px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; }
  .mobile-toggle { display: grid; }
  .hero { padding-top: 48px; }
  .hero-grid { gap: 45px; }
  .hero h1 { font-size: clamp(3.15rem, 7vw, 4.7rem); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-hero-grid { gap: 34px; }
  .recipe-stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .recipe-stat:nth-child(2) { border: 0; }
  .recipe-columns { gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-newsletter { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --header-height: 70px; }
  .container { width: min(100% - 28px, 1160px); }
  .brand-tagline, .header-search { display: none; }
  .brand-mark { width: 39px; height: 39px; border-radius: 13px; }
  .brand-name { font-size: 1.06rem; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 5px; }
  .icon-button { width: 40px; height: 40px; }
  .language-current { min-width: 40px; padding-inline: 8px; }
  .hero { padding: 36px 0 62px; }
  .hero-grid, .recipe-hero-grid, .season-card { grid-template-columns: 1fr; }
  .hero-grid { gap: 46px; }
  .hero h1 { font-size: clamp(3.05rem, 15vw, 4.4rem); }
  .hero-copy { font-size: .98rem; }
  .hero-actions .btn { flex: 1; }
  .hero-image-wrap { width: 90%; margin-inline: auto; }
  .hero-stamp { left: 0; width: 100px; height: 100px; font-size: .84rem; }
  [dir="rtl"] .hero-stamp { right: 0; left: auto; }
  .section { padding: 58px 0; }
  .section-heading { align-items: flex-start; margin-bottom: 25px; }
  .section-heading .text-link { display: none; }
  .section-heading h2 { font-size: 2.35rem; }
  .category-grid { gap: 10px; }
  .category-card { min-height: 145px; padding: 18px; }
  .category-card strong { font-size: 1.12rem; }
  .category-icon { margin-bottom: 14px; }
  .recipe-grid { grid-template-columns: 1fr; gap: 17px; }
  .recipe-card { display: grid; grid-template-columns: 41% 59%; min-height: 154px; }
  .recipe-image { aspect-ratio: auto; }
  .recipe-card-body { padding: 16px; display: flex; flex-direction: column; justify-content: center; }
  .recipe-card h3 { font-size: 1.18rem; margin: 5px 0 12px; }
  .recipe-meta { gap: 8px; }
  .rating { display: none!important; }
  .recipe-badge { top: 9px; left: 9px; font-size: .58rem; padding: 4px 7px; }
  .favorite-button { top: 8px; right: 8px; width: 31px; height: 31px; }
  .season-card { min-height: auto; }
  .season-copy { padding: 42px 28px; }
  .season-copy h2 { font-size: 2.8rem; }
  .season-image { min-height: 280px; order: -1; }
  .page-hero { padding-top: 38px; }
  .recipe-hero { padding-top: 15px; }
  .recipe-title { font-size: clamp(2.8rem, 13vw, 4rem); }
  .recipe-hero-image { order: -1; }
  .recipe-stats { margin-top: 22px; }
  .recipe-stat { padding-inline: 11px; }
  .recipe-stat:nth-child(odd) { padding-left: 0; }
  .recipe-columns { grid-template-columns: 1fr; }
  .ingredient-panel { position: static; }
  .recipe-content { padding-bottom: 65px; }
  .recipe-step { padding: 19px; grid-template-columns: 44px 1fr; gap: 13px; }
  .step-number { width: 43px; height: 43px; border-radius: 13px; font-size: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 37px; }
  .footer-newsletter { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media print {
  .site-header, .site-footer, .recipe-actions, .servings-control, .similar-section, .favorite-button { display: none!important; }
  body { background: white; color: black; }
  .recipe-hero, .recipe-content { padding: 20px 0; }
  .recipe-hero-grid { grid-template-columns: 1fr 1fr; }
  .recipe-columns { grid-template-columns: 1fr 1fr; }
  .ingredient-panel, .recipe-step { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; scroll-behavior: auto!important; }
  .animate-on-scroll { opacity: 1; transform: none; }
}

