/* Structure shared by both directions; each direction file sets the look. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:120px}
body{margin:0;background:var(--bg);color:var(--text);font:400 17px/1.55 var(--font-text);-webkit-font-smoothing:antialiased}
img,svg{display:block;max-width:100%}
a{color:inherit}
h1,h2,h3{margin:0;font-family:var(--font-display);line-height:1.1;text-wrap:balance}
p{margin:0}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:12px;top:-60px;z-index:50;background:var(--text);color:var(--bg);padding:10px 14px;border-radius:8px}
.skip:focus{top:12px}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.wrap{width:100%;max-width:1200px;margin:0 auto;padding:0 20px}
.ic{width:20px;height:20px;flex:none}
main{display:block;min-height:60vh;outline:none}
/* header */
.top{position:sticky;top:0;z-index:20}
.top__in{display:flex;align-items:center;gap:8px;height:60px}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;margin-right:auto}
.logo__t{font:var(--logo-font);line-height:.95}
.top__nav,.top__search{display:none}
.iconbtn{display:grid;place-items:center;width:44px;height:44px;border:0;background:none;color:inherit;border-radius:12px;cursor:pointer}
.iconbtn .ic{width:24px;height:24px}
.chips{overflow-x:auto;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chips__in{display:flex;gap:8px;padding:0 20px 12px;width:max-content}
.chip{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;text-decoration:none;white-space:nowrap}
/* drawer */
.drawer{position:fixed;inset:0;z-index:40;background:rgb(20 12 6 / .45)}
.drawer__panel{position:absolute;inset:0 0 0 auto;width:min(340px,88vw);background:var(--surface);padding:12px 16px calc(24px + env(safe-area-inset-bottom));overflow:auto;transform:translateX(100%);transition:transform .22s ease}
.drawer.open .drawer__panel{transform:none}
.drawer__h{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.drawer__t{font-weight:700}
.drawer__l{display:flex;align-items:center;gap:14px;min-height:56px;padding:6px 8px;text-decoration:none;font-weight:600;border-radius:12px}
.drawer__l .art{width:44px;height:44px;border-radius:12px}
.drawer__sub{margin:16px 8px 4px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
/* search form */
.sform{position:relative;display:flex;align-items:center}
.sform input{flex:1;min-width:0;height:52px;padding:0 44px 0 46px;font:inherit;font-size:17px;color:var(--text);background:var(--field);border:1.5px solid var(--line);border-radius:var(--r-field);-webkit-appearance:none;appearance:none}
.sform input::-webkit-search-cancel-button{display:none}
.sform input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--focus-soft)}
.sform__ic{position:absolute;left:15px;color:var(--muted);pointer-events:none}
.sform__clear{position:absolute;right:76px;width:40px;height:40px;border:0;background:none;color:var(--muted);display:grid;place-items:center;cursor:pointer;border-radius:50%}
.sform__clear[hidden]{display:none}
.sform__go{margin-left:8px;height:52px;padding:0 18px;border:0;font:inherit;font-weight:700;color:var(--accent-fg);background:var(--accent);border-radius:var(--r-field);cursor:pointer}
/* art tiles */
.art{display:block;aspect-ratio:4/3;overflow:hidden;position:relative}
.art svg{width:100%;height:100%}
.art .i-ln{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
/* sections */
.sec{margin-top:40px}
.sec__h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px}
.more{display:inline-flex;align-items:center;gap:2px;font-weight:600;text-decoration:none;color:var(--accent-text);min-height:44px}
.cats{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cat{display:flex;flex-direction:column;text-decoration:none;height:100%}
.grid{display:grid;gap:16px}
.card{display:flex;gap:14px;text-decoration:none;align-items:center}
.card .art{width:112px;flex:none}
.card__body{display:flex;flex-direction:column;gap:4px;min-width:0}
.card__cat{font-size:13px;color:var(--muted);letter-spacing:.04em}
.card__title{font-family:var(--font-display);font-size:20px;line-height:1.15;font-weight:var(--title-w)}
.card__meta{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--muted)}
.card__meta .ic{width:16px;height:16px}
/* crumbs */
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:16px 0 0;padding:0;font-size:14px;color:var(--muted)}
.crumbs li+li::before{content:"›";margin-right:4px}
.crumbs a{display:inline-block;padding:10px 0;color:var(--muted)}
/* recipe */
.rcp__head{display:grid;gap:20px;margin-top:8px}
.rcp__cat{font-size:14px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;color:var(--accent-text)}
.rcp h1{font-size:40px;margin:6px 0 10px;font-weight:var(--h1-w)}
.rcp__desc{color:var(--text-2);max-width:60ch}
.facts{display:grid;grid-template-columns:1fr 1fr;gap:1px;margin:20px 0 0;overflow:hidden}
.facts div{padding:12px 14px}
.facts dt{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
.facts dt .ic{width:16px;height:16px}
.facts dd{margin:2px 0 0;font-weight:700;font-size:18px}
.rcp__body{display:grid;gap:36px;margin-top:32px}
.ings__h{display:flex;align-items:baseline;justify-content:space-between}
.rcp h2{font-size:28px}
.ings__count{font-variant-numeric:tabular-nums;color:var(--muted);font-weight:600}
.hint{font-size:14px;color:var(--muted);margin:4px 0 8px}
.ings__list{list-style:none;margin:0;padding:0}
.ings__list label{display:flex;gap:14px;align-items:flex-start;padding:12px 0;cursor:pointer;min-height:48px}
.ings__list input{position:absolute;opacity:0;width:1px;height:1px}
.box{flex:none;width:24px;height:24px;margin-top:1px;border:2px solid var(--line-strong);border-radius:7px;display:grid;place-items:center;color:transparent;transition:.15s}
.box .ic{width:16px;height:16px;stroke-width:3}
.ings__list input:checked+.box{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}
.ings__list input:checked~.ing{color:var(--muted);text-decoration:line-through;text-decoration-thickness:1px}
.ings__list input:focus-visible+.box{outline:3px solid var(--focus);outline-offset:2px}
.steps__list{list-style:none;counter-reset:s;margin:16px 0 0;padding:0}
.steps__list li{counter-increment:s;display:grid;grid-template-columns:48px 1fr;gap:12px;padding:14px 0}
.steps__list li::before{content:counter(s)}
.tips{margin-top:24px;padding:20px}
.tips h3{display:flex;align-items:center;gap:8px;font-size:20px;margin-bottom:8px}
.tips ul{margin:0;padding-left:20px}
.tips li+li{margin-top:6px}
/* misc pages */
.ptitle{font-size:36px;margin:20px 0 16px}
.count{margin:20px 0 14px;color:var(--text-2)}
.empty{margin-top:24px}
.empty__t{font-family:var(--font-display);font-size:24px;font-weight:700;margin-bottom:6px}
.empty>p{color:var(--text-2);max-width:56ch}
.small{font-size:18px;margin:28px 0 12px;font-family:var(--font-text)}
.phead{display:grid;grid-template-columns:1fr 104px;gap:16px;align-items:center;margin:8px 0 24px}
.phead h1{font-size:40px;margin-bottom:8px}
.phead p{color:var(--text-2)}
.phead>div{min-width:0}
@media (max-width:379px){.phead{grid-template-columns:1fr}.phead .art{display:none}}
.phead__n{margin-top:8px;font-weight:700}
.othercats{margin:40px 0 0;display:flex;flex-wrap:wrap;gap:8px}
.othercats h2{width:100%;font-size:18px;margin-bottom:4px;font-family:var(--font-text)}
.nf__code{font-family:var(--font-display);font-size:96px;line-height:1;margin-top:32px;color:var(--accent-text)}
.nf>p{color:var(--text-2);margin-bottom:16px}
.btn{display:inline-flex;align-items:center;min-height:48px;padding:0 20px;margin-top:28px;font-weight:700;text-decoration:none;background:var(--accent);color:var(--accent-fg);border-radius:var(--r-field)}
.prose{max-width:720px}
.prose h2{font-size:24px;margin:28px 0 8px}
.prose p{margin-bottom:12px}
/* footer */
.foot{margin-top:64px;padding:40px 0 calc(24px + env(safe-area-inset-bottom))}
.foot__in{display:grid;gap:28px}
.foot__in p{margin-top:12px;max-width:34ch}
.foot nav{display:flex;flex-direction:column}
.foot nav h2{font:700 13px/1 var(--font-text);letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px}
.foot nav a{padding:10px 0;text-decoration:none}
.foot__c{margin-top:24px;font-size:14px}
.hero__art{display:none}
.hero__t+.hero__s{margin-top:16px}
@media (min-width:768px){
  .wrap{padding:0 32px}
  .chips__in{padding:0 32px 12px}
  .cats{grid-template-columns:repeat(4,1fr);gap:16px}
  .grid{grid-template-columns:repeat(2,1fr);gap:24px}
  .card{flex-direction:column;align-items:stretch}
  .card .art{width:100%}
  .foot__in{grid-template-columns:2fr 1fr 1fr}
  .rcp h1{font-size:56px}
  .phead{grid-template-columns:1fr 200px}
  .phead h1{font-size:56px}
}
@media (min-width:1024px){
  .top__in{height:72px;gap:24px}
  .logo{margin-right:0}
  .top__nav{display:flex;gap:4px;margin-right:auto}
  .top__nav a{padding:10px 12px;text-decoration:none;font-weight:600;border-radius:10px}
  .top__search{display:block;width:300px}
  .top__search .sform input{height:44px;font-size:15px;padding-right:12px}
  .top__search .sform__go,.top__search .sform__clear{display:none}
  .top__s,.top__m,.chips{display:none}
  .grid{grid-template-columns:repeat(3,1fr)}
  .rcp__head{grid-template-columns:1.2fr 1fr;align-items:center;gap:48px}
  .rcp__body{grid-template-columns:minmax(300px,1fr) 1.6fr;gap:64px;align-items:start}
  .ings{position:sticky;top:96px}
  .facts{grid-template-columns:repeat(4,1fr)}
  .hero__in{display:grid!important;grid-template-columns:1.15fr 1fr!important;gap:48px;align-items:center}
  .hero__art{display:grid;grid-template-columns:1fr 1fr;gap:16px}
  .hero__art .art:nth-child(odd){transform:translateY(24px)}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.diff{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.diff__bars{display:inline-flex;align-items:flex-end;gap:2px;height:12px}
.diff__bars i{width:4px;border-radius:2px;background:var(--line-strong)}
.diff__bars i:nth-child(1){height:5px}.diff__bars i:nth-child(2){height:8px}.diff__bars i:nth-child(3){height:12px}
.diff[data-level="1"] i:nth-child(-n+1),.diff[data-level="2"] i:nth-child(-n+2),.diff[data-level="3"] i{background:var(--accent)}
.card__meta .diff{color:var(--text-2)}
.ings__g{border:0!important;padding:16px 0 2px}
.ings__g h3{font:700 13px/1.2 var(--font-text);letter-spacing:.08em;text-transform:uppercase;color:var(--accent-text)}
/* Direction A — "Sofra Defteri": a warm, editorial kitchen notebook.
   Fraunces (display) + system sans (text). Cream paper, ink, terracotta. Line-drawn illustrations. */
@font-face{font-family:'Fraunces';font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/fraunces-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fraunces';font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/fraunces-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2C60-2C7F,U+A720-A7FF}
:root{
  --font-display:'Fraunces',Georgia,serif;
  --font-text:system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --logo-font:600 19px/1 var(--font-display);
  --bg:#FBF6EE; --surface:#FFFDF8; --field:#FFFDF8;
  --text:#2A1E17; --text-2:#4E4038; --muted:#76665B;
  --line:#E6D9C7; --line-strong:#B9A792;
  --accent:#B4471F; --accent-text:#A63F1A; --accent-fg:#FFF8F0;
  --focus:#B4471F; --focus-soft:rgb(180 71 31 / .18);
  --r-field:999px; --title-w:600; --h1-w:600;
  --ao-consent-bg:#4A382C; --ao-consent-fg:#FBF6EE; --ao-consent-accent:#E8835A; --ao-consent-accent-fg:#2A1E17;
  --ao-consent-border:#9A8272; --ao-consent-radius:18px; --ao-consent-button-radius:999px;
  --ao-consent-shadow:0 12px 32px rgb(0 0 0 / .45); --ao-consent-max-width:560px;
}
h1,h2,h3{font-variation-settings:'SOFT' 100,'WONK' 1;letter-spacing:-.01em}
.top{background:rgb(251 246 238 / .94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.logo__mark{width:36px;height:36px;border-radius:50%;background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath d='M9 17h18c0 6-4 10-9 10s-9-4-9-10zM14 13c-2-2 2-3 0-5M19 13c-2-2 2-3 0-5M24 13c-2-2 2-3 0-5' fill='none' stroke='%23FFF8F0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/100%}
.chip{border:1.5px solid var(--line-strong);border-radius:999px;font-weight:600;font-size:15px;color:var(--text-2);background:var(--surface)}
.chip[aria-current]{background:var(--text);border-color:var(--text);color:var(--bg)}
.top__nav a[aria-current]{background:var(--text);color:var(--bg)}
.top__nav a:hover{background:#F1E6D6}
.drawer__l:hover{background:#F4EADC}
/* illustrations: ink lines on tinted paper */
.art{border-radius:14px;background:var(--tint)}
.art .i-bg{fill:var(--tint)}
.art .i-a{fill:var(--fill-a);stroke:var(--text);stroke-width:3}
.art .i-b{fill:#FFFDF8;stroke:var(--text);stroke-width:3}
.art .i-c{fill:var(--fill-c);stroke:var(--text);stroke-width:2}
.art .i-ln{stroke:var(--text)}
.art--corbalar{--tint:#F6DFC6;--fill-a:#E8835A;--fill-c:#F2B33D}
.art--ana-yemekler{--tint:#E7E3C9;--fill-a:#9AAE5B;--fill-c:#C9512A}
.art--tatlilar{--tint:#F3DCD6;--fill-a:#E9B65C;--fill-c:#8DAA4E}
.art--kahvaltiliklar{--tint:#DCE6E4;--fill-a:#C9512A;--fill-c:#B4471F}
.art[style*="--tone:1"]{filter:hue-rotate(-14deg) saturate(.9)}
.art[style*="--tone:2"]{filter:hue-rotate(12deg)}
/* hero */
.hero{padding:28px 0 8px}
.eyebrow{font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-text)}
.hero__t{font-size:52px;font-weight:600;line-height:.98;margin:10px 0 12px;font-variation-settings:'SOFT' 100,'WONK' 1,'opsz' 144}
.hero__s{font-size:18px;color:var(--text-2);max-width:30ch;margin-bottom:20px}
.hero__try{margin-top:12px;font-size:15px;color:var(--muted)}
.hero__try a{display:inline-block;padding:8px 6px;color:var(--accent-text);font-weight:600}
.sec__h h2{font-size:30px;font-weight:600}
.cat{gap:10px}
.cat .art{border-radius:18px}
.cat__name{font-family:var(--font-display);font-size:20px;font-weight:600;line-height:1}
.cat__n{font-size:14px;color:var(--muted);margin-top:-6px}
.card{padding-bottom:16px;border-bottom:1px solid var(--line)}
.card__cat{text-transform:uppercase;font-weight:700;font-size:12px;letter-spacing:.1em;color:var(--accent-text)}
.card:hover .card__title{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.card--lead{flex-direction:column;align-items:stretch}
.card--lead .art{width:100%;aspect-ratio:16/10}
.card--lead .card__title{font-size:28px}
/* recipe */
.rcp__art .art{border-radius:24px}
.facts{border:1.5px solid var(--text);border-radius:16px;background:var(--text)}
.facts div{background:var(--surface)}
.ings__list li+li{border-top:1px dashed var(--line-strong)}
.ing b{font-weight:700}
.steps__list li{border-top:1px solid var(--line)}
.steps__list li::before{font:600 40px/1 var(--font-display);color:var(--accent);font-variation-settings:'SOFT' 100,'WONK' 1}
.steps__list p{font-size:18px;padding-top:4px}
.tips{background:#F4E7CF;border-radius:18px;border-left:4px solid var(--accent)}
.phead--cat{padding-bottom:20px;border-bottom:1.5px solid var(--text)}
.phead .art{border-radius:50%}
.foot{background:var(--text);color:#EADFD0}
.foot nav a{color:#EADFD0}
.foot__c{color:#B5A696}
.foot .logo__t{color:#FBF6EE}
@media (min-width:768px){
  .hero{padding:56px 0 16px}
  .hero__t{font-size:84px}
  .card{border:0;padding:0}
  .card--lead{grid-column:span 2;grid-row:span 2}
}
@media (min-width:1024px){
  .hero__in{display:grid;grid-template-columns:1fr;max-width:1200px}
  .hero__t{font-size:104px}
  .hero .sform{max-width:560px}
  .grid--feat{grid-template-columns:2fr 1fr 1fr}
  .grid--feat .card--lead{grid-row:span 2;grid-column:auto}
}
@media (max-width:1023px){.rcp__art .art{aspect-ratio:16/8}}
/* Tap targets ≥44px (card #4 D24) */
.logo{min-height:44px}
.chip{min-height:44px}
.crumbs a{padding:11px 0}
.rcp__cat{display:inline-flex;align-items:center;min-height:44px}
.hero__try a{padding:12px 8px}
/* Search with ?q=: hide the empty state until results render and reserve space (no layout shift, D25) */
html[data-q] #results{min-height:100vh}
html[data-q] #results [data-state="empty"]{display:none}
