/* Turkish Home Cook — site.css
   Renkler Anadolu kilimlerinin kök boyalarından: kök boya kırmızısı, çivit, safran,
   ceviz kabuğu, zeytin, çini turkuazı, kına turuncusu, nar çiçeği. */

:root {
  color-scheme: light;
  --bg: #FBF7F1;
  --paper: #FFFFFF;
  --sand: #F3ECE1;
  --ink: #2A211B;
  --ink-2: #5C4F46;
  --ink-3: #82746A;
  --line: #E9DFD2;
  --line-2: #D8C9B6;

  --red: #A3312A;        --red-tint: #F6E5E1;
  --indigo: #2B4371;     --indigo-tint: #E7EBF3;
  --saffron: #B47D16;    --saffron-tint: #F8EDD4;
  --walnut: #7A5234;     --walnut-tint: #F1E7DC;
  --olive: #5B6A2E;      --olive-tint: #ECEFDF;
  --turquoise: #1E726E;  --turquoise-tint: #DFF0EE;
  --orange: #BF5428;     --orange-tint: #F9E7DD;
  --rose: #A23B5B;       --rose-tint: #F6E4EA;

  --c: var(--red);
  --tint: var(--red-tint);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(42, 33, 27, .05), 0 10px 28px -14px rgba(42, 33, 27, .28);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ── temel ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.012em;
  font-variation-settings: "SOFT" 60;
  text-wrap: balance;
}
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.narrow { max-width: 760px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--bg); text-decoration: none;
}
.skip:focus { top: 12px; color: var(--bg); }
.icon { width: 20px; height: 20px; flex: none; }
.motif { width: 44px; height: 44px; flex: none; color: var(--c); }
.mini { width: 16px; height: 16px; flex: none; color: var(--c); }
.lead { max-width: 38em; color: var(--ink-2); font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.55; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.muted { color: var(--ink-3); }

/* ── kilim şeritleri ───────────────────────────────────────────────────── */
.kilim-band {
  height: 10px;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='10' viewBox='0 0 24 10'%3E%3Cpath d='M6 1.8l3.2 3.2L6 8.2 2.8 5z' fill='%23FBF7F1'/%3E%3Cpath d='M18 3.2l1.8 1.8L18 6.8 16.2 5z' fill='%23E2A93B'/%3E%3C/svg%3E") repeat-x left center / 24px 10px;
}
.kilim-band--footer {
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30' viewBox='0 0 60 30'%3E%3Cpath d='M0 3.5h60M0 26.5h60' stroke='%23E2A93B' stroke-width='1.4'/%3E%3Cpath d='M15 5l10 10-10 10L5 15z' fill='%23FBF7F1'/%3E%3Cpath d='M15 8.5l6.5 6.5-6.5 6.5L8.5 15z' fill='%23A3312A'/%3E%3Cpath d='M15 12l3 3-3 3-3-3z' fill='%23E2A93B'/%3E%3Cpath d='M45 8l7 7-7 7-7-7z' fill='%232B4371'/%3E%3Cpath d='M45 12.6l2.4 2.4-2.4 2.4-2.4-2.4z' fill='%23FBF7F1'/%3E%3C/svg%3E");
  background-size: 60px 30px;
}

/* ── üst bölüm ─────────────────────────────────────────────────────────── */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 20px; padding-block: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; color: var(--red); }
.brand-name {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  letter-spacing: -.015em; white-space: nowrap; font-variation-settings: "SOFT" 80;
}
.brand-name em { color: var(--red); font-style: italic; font-weight: 500; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; color: var(--ink-2); font-weight: 600; text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--sand); color: var(--ink); }
.main-nav .nav-icon { padding: 0 11px; }
.main-nav .lang-switch {
  min-height: 34px; margin-left: 6px; padding: 0 12px;
  border: 1.5px solid var(--line-2); font-size: .85rem; letter-spacing: .06em;
}
.main-nav .lang-switch:hover { border-color: var(--red); background: transparent; color: var(--red); }

/* ── ana sayfa ─────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 7vw, 84px) clamp(24px, 4vw, 48px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center; gap: clamp(24px, 5vw, 64px);
}
.hero h1 { max-width: 13em; margin-bottom: 18px; font-size: clamp(2.15rem, 4.8vw, 3.7rem); }
.hero .lead { margin-bottom: 28px; }
.hero-art { justify-self: center; width: min(100%, 420px); }
.medallion { width: 100%; height: auto; }
.md-sand { fill: var(--saffron-tint); }
.md-line { fill: none; stroke: var(--indigo); stroke-width: 2; }
.md-line--bold { stroke-width: 3.5; }
.md-saffron { fill: var(--saffron); }
.md-red { fill: var(--red); }
.md-ivory { fill: var(--bg); }
.md-indigo { color: var(--indigo); }

.search {
  display: flex; align-items: center; gap: 8px; max-width: 520px;
  padding: 6px 6px 6px 16px;
  border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--paper);
  box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(163, 49, 42, .12); }
.search .icon { color: var(--ink-3); }
.search input {
  flex: 1; min-width: 0; padding: 10px 4px;
  border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.02rem;
}
.search input::placeholder { color: var(--ink-3); }
.search button {
  padding: 11px 22px; border: 0; border-radius: 999px; background: var(--red); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer;
}
.search button:hover { background: #8C2722; }
.search--inline { margin: 24px 0 18px; padding: 4px 16px; box-shadow: none; }

.section { padding-block: clamp(28px, 5vw, 56px); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px;
}
.section-head h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); }
.section-head h2::after {
  content: ""; display: block; width: 46px; height: 8px; margin-top: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='8' viewBox='0 0 46 8'%3E%3Cpath d='M4 0l4 4-4 4-4-4z' fill='%23A3312A'/%3E%3Cpath d='M23 0l4 4-4 4-4-4z' fill='%23B47D16'/%3E%3Cpath d='M42 0l4 4-4 4-4-4z' fill='%232B4371'/%3E%3Cpath d='M10.5 3.4h6v1.2h-6zM29.5 3.4h6v1.2h-6z' fill='%23D8C9B6'/%3E%3C/svg%3E") no-repeat;
}
.more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--red); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.more .icon { width: 18px; height: 18px; transition: transform .15s; }
.more:hover .icon { transform: translateX(3px); }

/* kategori kartları */
.cat-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin: 0; padding: 0; list-style: none;
}
.cat-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 2px; height: 100%; min-height: 156px; padding: 20px;
  border-radius: var(--radius); background: var(--tint); color: var(--ink); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-card .motif { width: 46px; height: 46px; margin-bottom: auto; }
.cat-name {
  margin-top: 18px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.2;
  font-variation-settings: "SOFT" 60;
}
.cat-count { color: var(--ink-2); font-size: .92rem; }
.cat-ghost {
  position: absolute; right: -28px; bottom: -28px; z-index: -1;
  width: 124px; height: 124px; color: var(--c); opacity: .09; transition: transform .45s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.cat-card:hover .cat-ghost { transform: rotate(12deg) scale(1.06); }

/* tarif kartları */
.card-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
  margin: 0; padding: 0; list-style: none;
}
.card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line);
  color: var(--ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), var(--shadow); color: var(--ink); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.card-media img, .card-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img, .card:hover .card-media .ph { transform: scale(1.03); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 2px; padding: 16px 18px 18px; }
.card-cat { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.card-title { margin-top: 8px; font-size: 1.38rem; }
.card-sub { margin: 2px 0 0; color: var(--ink-2); }
.card-meta {
  display: flex; flex-wrap: wrap; gap: 4px 14px; margin: auto 0 0; padding-top: 12px;
  color: var(--ink-3); font-size: .88rem;
}
.card-tag { color: var(--olive); font-weight: 600; }
.card-tag--draft { color: var(--orange); }

/* fotoğrafsız tarif deseni */
.ph-bg { fill: var(--tint); }
.ph-tile { fill: var(--bg); }
.ph-ring { fill: none; stroke: var(--c); stroke-width: 1.5; opacity: .55; }
.ph-motif { color: var(--c); }
.pat--red { color: var(--red); }
.pat--indigo { color: var(--indigo); }
.pat--saffron { color: var(--saffron); }
.pat--walnut { color: var(--walnut); }
.pat--olive { color: var(--olive); }
.pat--turquoise { color: var(--turquoise); }
.pat--orange { color: var(--orange); }
.pat--rose { color: var(--rose); }

/* ── liste ve kategori sayfaları ───────────────────────────────────────── */
.page-head { padding-block: clamp(28px, 5vw, 52px) 8px; }
.page-head h1 { margin-bottom: 12px; font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px;
  border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink-2); font-size: .94rem; font-weight: 600; text-decoration: none;
}
.chips a:hover { box-shadow: inset 0 0 0 1.5px var(--c); color: var(--ink); }
.chips a[aria-current="page"] { background: var(--ink); box-shadow: none; color: var(--bg); }
.chips a[aria-current="page"] .mini { color: currentColor; }
.list-body { padding-block: 26px 8px; }
.empty { padding: 36px 0; color: var(--ink-2); font-size: 1.1rem; text-align: center; }

.cat-hero {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 30px); margin-bottom: 22px;
  padding: clamp(20px, 3.4vw, 34px); border-radius: var(--radius); background: var(--tint);
}
.cat-hero-mark {
  display: grid; place-items: center; flex: none; width: clamp(76px, 10vw, 108px); aspect-ratio: 1;
  background: var(--bg); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.cat-hero-mark .motif { width: 50%; height: 50%; }
.cat-hero .eyebrow { margin-bottom: 8px; color: var(--ink-2); }
.cat-hero h1 { margin-bottom: 8px; }
.motif-note { max-width: 44em; margin: 0; color: var(--ink-2); }
.motif-note strong { color: var(--ink); }

/* ── tarif sayfası ─────────────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; color: var(--ink-3); font-size: .92rem; }
.crumbs a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.recipe-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 5vw, 64px); padding-block: 18px 30px;
}
.recipe-cat {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  color: var(--ink-2); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.recipe h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
.recipe-sub {
  margin: 8px 0 0; color: var(--ink-2); font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-style: italic; font-variation-settings: "SOFT" 80;
}
.say { margin: 10px 0 0; color: var(--ink-3); font-size: .92rem; }
.say span { font-weight: 600; }
.intro { margin-top: 20px; color: var(--ink-2); font-size: 1.1rem; }
.intro p:last-child { margin-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.tag { padding: 4px 12px; border-radius: 999px; background: var(--olive-tint); color: var(--olive); font-size: .85rem; font-weight: 700; }
.tag--draft { background: var(--orange-tint); color: var(--orange); }
.recipe-media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.recipe-media img, .recipe-media .ph { width: 100%; height: 100%; object-fit: cover; }

.facts { display: flex; flex-wrap: wrap; margin: 0; padding: 16px 0; border-block: 1px solid var(--line); }
.facts > div { padding: 2px 24px; border-left: 1px solid var(--line); }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts dt { color: var(--ink-3); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.facts dd { margin: 2px 0 0; font-size: 1.06rem; font-weight: 600; }

.tools { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 16px 4px; }
.tool {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--line-2); border-radius: 999px; background: transparent;
  color: var(--ink-2); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
}
.tool .icon { width: 18px; height: 18px; }
.tool:hover { border-color: var(--ink-2); color: var(--ink); }
.tool[aria-pressed="true"] { border-color: var(--saffron); background: var(--saffron-tint); color: var(--ink); }

.recipe-body {
  display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  align-items: start; gap: clamp(24px, 5vw, 64px); padding-block: 24px 8px;
}
.ingredients {
  position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow: auto;
  padding: 24px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line);
}
.ingredients h2, .method > h2 { font-size: 1.65rem; }
.hint { margin: 6px 0 12px; color: var(--ink-3); font-size: .88rem; }
.ing-list { margin: 0 0 6px; padding: 0; list-style: none; }
.ing-list li + li { border-top: 1px dashed var(--line); }
.ing { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; line-height: 1.45; cursor: pointer; }
.ing input {
  -webkit-appearance: none; appearance: none; flex: none; width: 13px; height: 13px; margin: 5px 3px 0 4px;
  border: 1.6px solid var(--ink-3); border-radius: 2px; background: var(--paper);
  transform: rotate(45deg); cursor: pointer; transition: background .15s, border-color .15s;
}
.ing input:checked { border-color: var(--c); background: var(--c); }
.ing input:checked + span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.ing-group, .step-group {
  margin: 18px 0 2px; color: var(--ink-2); font-family: var(--font-body);
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.ing-group::before, .step-group::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px;
  background: var(--c); transform: rotate(45deg) translateY(-2px);
}

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 18px 0;
  border-top: 1px solid var(--line); counter-increment: step; cursor: pointer; transition: opacity .2s;
}
.step:first-child { padding-top: 8px; border-top: 0; }
.step::before {
  content: counter(step); padding-top: 2px; color: var(--c);
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1;
  font-variation-settings: "SOFT" 100;
}
.step-body { font-size: 1.08rem; line-height: 1.65; }
.step-body p:last-child { margin-bottom: 0; }
.step.done { opacity: .42; }
.step.done::before { content: "✓"; }

.tips { margin-top: 28px; padding: 22px 24px; border-radius: var(--radius); background: var(--tint); }
.tips h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 1.3rem; }
.tips h2 .mini { width: 20px; height: 20px; }
.tips ul { margin: 0; padding: 0; list-style: none; }
.tips li { position: relative; margin: 8px 0; padding-left: 22px; }
.tips li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px;
  background: var(--c); transform: rotate(45deg);
}
.tips p:last-child { margin-bottom: 0; }
.measures { margin: 24px 0 0; color: var(--ink-3); font-size: .85rem; }

/* ── düz sayfalar ──────────────────────────────────────────────────────── */
.prose { max-width: 68ch; }
.prose h2 { margin: 1.6em 0 .5em; font-size: 1.6rem; }
.prose h3 { margin: 1.4em 0 .4em; font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose table { width: 100%; margin: 1em 0 1.4em; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--ink-3); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.prose td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--red); color: var(--ink-2); font-style: italic; }
.prose img { margin: 1em 0; border-radius: var(--radius-sm); }
.page-body { padding-bottom: 8px; font-size: 1.1rem; }

.legend-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  margin: 26px 0 0; padding: 0; list-style: none;
}
.legend-grid li { display: flex; align-items: flex-start; gap: 18px; padding: 20px; border-radius: var(--radius); background: var(--tint); }
.legend-mark {
  display: grid; place-items: center; flex: none; width: 64px; aspect-ratio: 1;
  background: var(--bg); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.legend-mark .motif { width: 32px; height: 32px; }
.legend-grid h3 { margin-bottom: 4px; font-size: 1.2rem; }
.legend-grid p { margin: 0 0 6px; color: var(--ink-2); }
.legend-grid a { color: var(--ink); font-weight: 700; }
.narrow-text { max-width: 44em; }

.not-found { padding-block: clamp(48px, 10vw, 110px) 24px; text-align: center; }
.nf-mark { width: 84px; margin: 0 auto 22px; }
.nf-mark .motif { width: 84px; height: 84px; color: var(--red); }
.not-found h1 { margin-bottom: 12px; font-size: clamp(2.2rem, 5vw, 3.2rem); }
.not-found .lead { margin-inline: auto; }
.nf-alt { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); }
.button {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px;
  border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none;
}
.button:hover { background: #8C2722; color: #fff; }

/* ── alt bölüm ─────────────────────────────────────────────────────────── */
.site-footer { margin-top: clamp(40px, 7vw, 80px); background: var(--sand); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding-block: 36px 22px; }
.footer-brand p { margin: 10px 0 0; color: var(--ink-2); }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.footer-nav a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.footer-nav a:hover { color: var(--red); }
.footer-base { padding-bottom: 28px; color: var(--ink-3); font-size: .88rem; }
.footer-base p { margin: 0; padding-top: 16px; border-top: 1px solid var(--line-2); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translateX(-50%);
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-weight: 600; box-shadow: var(--shadow);
}

/* ── dar ekranlar ──────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-card { min-height: 132px; padding: 16px; }
  .recipe-head, .recipe-body { grid-template-columns: minmax(0, 1fr); }
  .ingredients { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art {
    position: absolute; top: -64px; right: -118px; z-index: 0;
    width: 300px; opacity: .14; pointer-events: none;
  }
  .hero-text { position: relative; z-index: 1; }
  .legend-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .header-row { padding-block: 10px 6px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.2rem; }
  .main-nav { width: 100%; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--line); }
  .main-nav a { padding: 0 10px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 0; }
  .facts > div { padding: 0 12px; }
  .facts > div:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .ingredients { padding: 20px; }
  .step { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .step::before { font-size: 1.6rem; }
  .cat-hero { align-items: flex-start; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { flex-direction: row; }
  .card-media { flex: none; width: 36%; aspect-ratio: auto; }
  .card-body { padding: 12px 14px 14px; }
  .card-cat { font-size: .74rem; }
  .card-title { margin-top: 4px; font-size: 1.2rem; }
  .card-sub { font-size: .95rem; }
  .card-meta { padding-top: 8px; font-size: .82rem; }
  .search button { padding: 11px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── yazdırma ──────────────────────────────────────────────────────────── */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .tools, .hint, .related, .crumbs, .recipe-media, .skip, .toast, .measures { display: none !important; }
  .recipe-head { display: block; padding: 0 0 8pt; }
  .recipe h1 { font-size: 26pt; }
  .intro { font-size: 11pt; }
  .facts { padding: 8pt 0; }
  .recipe-body { grid-template-columns: 34% 1fr; gap: 10mm; }
  .ingredients { position: static; max-height: none; overflow: visible; padding: 0; box-shadow: none; }
  .ing input { border-color: #000; }
  .step { padding: 8pt 0; break-inside: avoid; }
  .step.done { opacity: 1; }
  .step.done::before { content: counter(step); }
  .tips { border: 1px solid #ccc; background: none; break-inside: avoid; }
  a { text-decoration: none; }
}
