/* Culinary portal — public styles. Self-hosted fonts (OFL), no external requests. */
@font-face{font-family:"Unbounded";font-style:normal;font-display:swap;font-weight:200 900;src:url(fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Unbounded";font-style:normal;font-display:swap;font-weight:200 900;src:url(fonts/unbounded-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:"Golos Text";font-style:normal;font-display:swap;font-weight:400 900;src:url(fonts/golos-text-cyrillic-wght-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-display:swap;font-weight:400 900;src:url(fonts/golos-text-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}

:root{
  --paper:#F5F6F2; --surface:#FFFFFF; --ink:#1A1C23; --muted:#565B66; --line:#D9DCD3;
  --cobalt:#2340A8; --cobalt-ink:#FFFFFF; --cobalt-soft:#E6EBFA; --beet:#9B1F45; --beet-soft:#F8E6EC; --dill:#3E6B2F; --dill-soft:#E7F0E1;
  --focus:#F2B705;
  --display:"Unbounded","Golos Text",system-ui,sans-serif;
  --body:"Golos Text",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --r-card:14px; --r-field:10px; --wrap:1200px; --gut:clamp(16px,4vw,32px);
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --paper:#121418; --surface:#1B1E24; --ink:#ECEDEF; --muted:#A4A9B4; --line:#2E323A;
  --cobalt:#8EA6FF; --cobalt-ink:#0E1430; --cobalt-soft:#1E2747; --beet:#F07A9E; --beet-soft:#3A1B26; --dill:#9CCB82; --dill-soft:#1F2C1A; color-scheme:dark}}
:root[data-theme="dark"]{
  --paper:#121418; --surface:#1B1E24; --ink:#ECEDEF; --muted:#A4A9B4; --line:#2E323A;
  --cobalt:#8EA6FF; --cobalt-ink:#0E1430; --cobalt-soft:#1E2747; --beet:#F07A9E; --beet-soft:#3A1B26; --dill:#9CCB82; --dill-soft:#1F2C1A; color-scheme:dark}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1.0625rem/1.6 var(--body);overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--cobalt);text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:4px}
h1,h2,h3{font-family:var(--display);line-height:1.15;letter-spacing:-.01em;margin:0 0 .5em;font-weight:600}
h1{font-size:clamp(1.75rem,4.2vw,2.75rem)}
h2{font-size:clamp(1.3rem,2.6vw,1.75rem)}
h3{font-size:1.1rem}
p{margin:0 0 1em}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gut)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.skip{position:absolute;left:8px;top:-60px;background:var(--surface);color:var(--ink);padding:10px 14px;border-radius:8px;z-index:50}
.skip:focus{top:8px}
.muted{color:var(--muted)}

/* header */
.site-head{background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.site-head .wrap{display:flex;align-items:center;gap:16px;min-height:64px}
.brand{font-family:var(--display);font-weight:700;font-size:1.2rem;color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:10px;white-space:nowrap}
.brand{min-width:0}
.brand-name{overflow:hidden;text-overflow:ellipsis}
@media (max-width:420px){.site-head .wrap{gap:10px}.brand{font-size:1.05rem}.head-actions{gap:4px}.head-actions .icon-btn{width:38px;height:38px}}
.brand-mark{width:30px;height:30px;border-radius:50%;background:var(--surface);border:3px solid var(--cobalt);display:grid;place-items:center;flex:none}
.brand-mark::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--beet)}
.nav{display:flex;gap:4px;margin-left:8px}
.nav a{color:var(--ink);text-decoration:none;padding:8px 12px;border-radius:8px;font-weight:500}
.nav a:hover,.nav a[aria-current="page"]{background:var(--cobalt-soft);color:var(--cobalt)}
.head-search{margin-left:auto;flex:1;max-width:340px;position:relative}
.head-search input{width:100%;height:42px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--ink);padding:0 44px 0 16px;font:inherit;font-size:1rem}
.head-search button{position:absolute;right:4px;top:4px;width:34px;height:34px;border:0;border-radius:50%;background:var(--cobalt);color:var(--cobalt-ink);cursor:pointer;display:grid;place-items:center}
.head-actions{display:flex;align-items:center;gap:6px}
.icon-btn{width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink);display:grid;place-items:center;cursor:pointer;text-decoration:none}
.icon-btn svg,.head-search svg{width:20px;height:20px}
.menu-btn{display:none}
.mobile-nav{display:none;border-top:1px solid var(--line);padding:8px var(--gut) 16px;background:var(--surface)}
.mobile-nav a{display:block;padding:12px 4px;color:var(--ink);text-decoration:none;font-weight:500;border-bottom:1px solid var(--line)}
.mobile-nav form{margin:12px 0 4px;position:relative}
.mobile-nav.open{display:block}
@media (max-width:900px){.nav,.head-search{display:none}.menu-btn{display:grid}.head-actions{margin-left:auto}}

/* breadcrumbs */
.crumbs{font-size:.92rem;color:var(--muted);margin:20px 0 12px}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:0}
.crumbs li+li::before{content:"/";margin-right:4px;color:var(--line)}
.crumbs a{color:var(--muted)}

/* hero (home) */
.hero{padding:clamp(28px,6vw,72px) 0 clamp(24px,4vw,40px)}
.hero h1{font-size:clamp(2rem,6vw,4rem);max-width:14ch;font-weight:700;letter-spacing:-.02em}
.hero p{color:var(--muted);font-size:1.15rem;max-width:48ch}
.big-search{display:flex;gap:8px;max-width:640px;margin-top:20px}
.big-search input{flex:1;min-width:0;height:56px;border-radius:var(--r-field);border:2px solid var(--ink);background:var(--surface);color:var(--ink);font:inherit;font-size:1.1rem;padding:0 18px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 20px;border-radius:var(--r-field);border:2px solid var(--cobalt);background:var(--cobalt);color:var(--cobalt-ink);font:600 1rem var(--body);text-decoration:none;cursor:pointer}
.btn:hover{filter:brightness(1.08)}
.btn-ghost{background:transparent;color:var(--cobalt)}
.big-search .btn{height:56px;padding:0 26px}
.quick-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}

/* chips */
.chip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);text-decoration:none;font-size:.95rem}
.chip:hover{border-color:var(--cobalt);color:var(--cobalt)}
.chip[aria-current="true"],.chip.on{background:var(--ink);color:var(--paper);border-color:var(--ink)}

/* sections */
.section{padding:clamp(20px,4vw,40px) 0}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:16px}
.section-head h2{margin:0}
.section-head a{white-space:nowrap;font-weight:500}

/* enamel plates: the category shelf */
.plates{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:20px 12px}
.plate{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;text-decoration:none;color:var(--ink)}
.plate-disc{width:104px;height:104px;border-radius:50%;background:var(--surface);border:4px solid var(--cobalt);box-shadow:inset 0 0 0 6px var(--surface),inset 0 0 0 7px var(--line);overflow:hidden;display:grid;place-items:center;transition:transform .2s ease}
.plate-disc img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.plate-disc span{font-family:var(--display);font-weight:700;font-size:1.9rem;color:var(--cobalt)}
.plate:hover .plate-disc{transform:rotate(-8deg)}
.plate-name{font-weight:600;line-height:1.25}
.plate-count{font-size:.85rem;color:var(--muted)}

/* recipe cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:28px 20px}
.card{display:flex;flex-direction:column;color:var(--ink);text-decoration:none;position:relative}
.card-img{aspect-ratio:4/3;border-radius:var(--r-card);overflow:hidden;background:var(--cobalt-soft);position:relative}
.card-img img{width:100%;height:100%;object-fit:cover}
.card-img img.yt-thumb{transform:scale(1.34)} /* YouTube hqdefault is letterboxed 4:3: crop the black bars */
.card-noimg{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:18px;text-align:center;color:var(--cobalt);background:var(--cobalt-soft)}
.card-noimg svg{width:48px;height:48px;opacity:.85}
.card-noimg span{font-family:var(--display);font-weight:700;font-size:1.05rem;line-height:1.2;max-width:22ch;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.card-noimg.tone-1{color:var(--beet);background:var(--beet-soft)}
.card-noimg.tone-2{color:var(--dill);background:var(--dill-soft)}
.grid-lead .card:first-child .card-noimg svg{width:72px;height:72px}
.grid-lead .card:first-child .card-noimg span{font-size:1.6rem}
.card-video{position:absolute;left:10px;bottom:10px;background:rgba(0,0,0,.72);color:#fff;font-size:.8rem;padding:4px 9px;border-radius:999px;display:flex;align-items:center;gap:5px}
.card-cat{font-size:.85rem;color:var(--beet);font-weight:600;margin:12px 0 2px}
.card h3{font-size:1.05rem;margin:0 0 6px;line-height:1.3}
.card:hover h3{color:var(--cobalt)}
.card-meta{font-size:.9rem;color:var(--muted);display:flex;gap:12px;flex-wrap:wrap}
.card-meta span{display:inline-flex;align-items:center;gap:4px}
.card-meta svg{width:15px;height:15px}
.grid-lead{grid-template-columns:repeat(12,1fr)}
.grid-lead .card{grid-column:span 4}
.grid-lead .card:first-child{grid-column:span 8;grid-row:span 2}
.grid-lead .card:first-child .card-img{aspect-ratio:16/11}
.grid-lead .card:first-child h3{font-size:1.5rem}
@media (max-width:900px){.grid-lead .card,.grid-lead .card:first-child{grid-column:span 6;grid-row:auto}.grid-lead .card:first-child{grid-column:1/-1}}
@media (max-width:560px){.grid-lead .card{grid-column:1/-1}}

/* list pages */
.page-head{padding:8px 0 16px}
.page-head p{color:var(--muted);max-width:70ch}
.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);margin-bottom:24px}
.filters label{display:flex;flex-direction:column;gap:4px;font-size:.85rem;color:var(--muted);font-weight:500}
.filters input,.filters select{height:44px;border:1px solid var(--line);border-radius:var(--r-field);background:var(--paper);color:var(--ink);font:inherit;font-size:1rem;padding:0 12px;min-width:150px}
.filters .grow{flex:1;min-width:200px}
.filters .grow input{width:100%}
.result-count{color:var(--muted);margin:0 0 16px}
.empty{padding:40px 24px;text-align:center;background:var(--surface);border:1px dashed var(--line);border-radius:var(--r-card)}
.empty h2{font-size:1.25rem}
.pager{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin:36px 0 12px}
.pager a,.pager span{min-width:44px;height:44px;padding:0 12px;display:grid;place-items:center;border-radius:var(--r-field);border:1px solid var(--line);background:var(--surface);text-decoration:none;color:var(--ink)}
.pager [aria-current="page"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.subcats{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}

/* recipe page */
.recipe-head{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(20px,4vw,48px);align-items:start;padding:8px 0 24px}
.recipe-head h1{margin-bottom:12px}
.recipe-intro{font-size:1.15rem;color:var(--ink);max-width:60ch}
.recipe-hero{border-radius:var(--r-card);overflow:hidden;background:var(--cobalt-soft)}
.recipe-hero img{width:100%;height:auto}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden;margin:20px 0}
.fact{background:var(--surface);padding:12px 14px;box-shadow:1px 0 0 var(--line),0 1px 0 var(--line)}
.fact b{display:block;font-weight:700;font-size:1.05rem;line-height:1.3}
.fact span{font-size:.85rem;color:var(--muted)}
.recipe-actions{display:flex;flex-wrap:wrap;gap:8px}
.byline{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.95rem;margin:12px 0 0}
.byline img{width:36px;height:36px;border-radius:50%;object-fit:cover}
@media (max-width:860px){.recipe-head{grid-template-columns:1fr}.recipe-hero{order:-1}}

.recipe-body{display:grid;grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:clamp(20px,4vw,48px);align-items:start;padding-bottom:24px}
@media (max-width:860px){.recipe-body{grid-template-columns:1fr}}
.ingredients{background:var(--cobalt);color:var(--cobalt-ink);border-radius:var(--r-card);padding:22px 22px 18px;position:sticky;top:84px}
@media (max-width:860px){.ingredients{position:static}}
.ingredients h2{color:inherit;margin-bottom:12px}
.ingredients h3{font-family:var(--body);font-size:.95rem;font-weight:700;margin:16px 0 4px;opacity:.85}
.ingredients ul{list-style:none;margin:0;padding:0}
.ingredients li{border-bottom:1px solid color-mix(in srgb,currentColor 22%,transparent)}
.ingredients label{display:flex;gap:12px;align-items:flex-start;padding:10px 0;cursor:pointer}
.ingredients input[type=checkbox]{appearance:none;flex:none;width:22px;height:22px;margin-top:2px;border:2px solid currentColor;border-radius:50%;display:grid;place-items:center;cursor:pointer}
.ingredients input[type=checkbox]:checked{background:currentColor}
.ingredients input[type=checkbox]:checked+span{text-decoration:line-through;opacity:.6}
.ing-amt{font-weight:700}
.ing-note{opacity:.8;font-size:.92em}
.servings{display:flex;align-items:center;gap:10px;margin:0 0 8px;font-size:.95rem}
.servings button{width:36px;height:36px;border-radius:50%;border:2px solid currentColor;background:transparent;color:inherit;font:700 1.2rem/1 var(--body);cursor:pointer}
.servings output{font-family:var(--display);font-weight:700;font-size:1.2rem;min-width:2ch;text-align:center}
.scale-note{font-size:.82rem;opacity:.85;margin:6px 0 0}

.steps{list-style:none;margin:0;padding:0;counter-reset:step}
.step{display:grid;grid-template-columns:48px 1fr;gap:4px 16px;padding:18px 0;border-bottom:1px solid var(--line)}
.step::before{counter-increment:step;content:counter(step);font-family:var(--display);font-weight:700;font-size:1.25rem;width:44px;height:44px;border-radius:50%;border:3px solid var(--beet);color:var(--beet);display:grid;place-items:center}
.step h3{grid-column:2;margin:8px 0 2px}
.step-text{grid-column:2;margin-top:6px}
.step-img{grid-column:2;margin-top:10px;border-radius:var(--r-card);overflow:hidden;max-width:560px}
.prose{max-width:70ch}
.prose h2{margin-top:1.4em}
.note-block{background:var(--surface);border:1px solid var(--line);border-left:5px solid var(--dill);border-radius:var(--r-card);padding:16px 20px;margin:20px 0;max-width:70ch}
.note-block h2{font-size:1.15rem;color:var(--dill)}
.note-block p:last-child,.note-block ul:last-child{margin-bottom:0}

.video{margin:28px 0;max-width:820px}
.video-frame{position:relative;aspect-ratio:16/9;border-radius:var(--r-card);overflow:hidden;background:#000}
.video-frame iframe,.video-frame button{position:absolute;inset:0;width:100%;height:100%;border:0}
.video-frame button{cursor:pointer;padding:0;background:#000 center/cover no-repeat;display:grid;place-items:center}
.video-frame button::after{content:"";width:72px;height:72px;border-radius:50%;background:rgba(0,0,0,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/36px no-repeat}
.video-credit{font-size:.9rem;color:var(--muted);margin-top:8px}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.meta-dates{font-size:.9rem;color:var(--muted)}

/* ads (only rendered when enabled in settings) */
.ad-slot{margin:24px auto;text-align:center;min-height:100px;max-width:100%;overflow:hidden}
.ad-slot::before{content:"Advertisement";display:block;font-size:.75rem;color:var(--muted);margin-bottom:4px}

/* static / author */
.author-card{display:flex;gap:16px;align-items:center;margin:8px 0 24px}
.author-card img{width:72px;height:72px;border-radius:50%;object-fit:cover}

/* footer */
.site-foot{margin-top:48px;background:var(--surface);border-top:1px solid var(--line);padding:36px 0 28px;font-size:.95rem}
.foot-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:24px}
.foot-grid h2{font-size:1rem;margin-bottom:10px}
.foot-grid ul{list-style:none;margin:0;padding:0}
.foot-grid li{margin:6px 0}
.foot-grid a{color:var(--ink)}
.foot-bottom{margin-top:28px;color:var(--muted);font-size:.88rem}
@media (max-width:760px){.foot-grid{grid-template-columns:1fr 1fr}.foot-grid>div:first-child{grid-column:1/-1}}

/* error pages */
.error-page{padding:56px 0 24px;max-width:640px}
.error-code{font-family:var(--display);font-weight:800;font-size:clamp(4rem,14vw,8rem);line-height:1;color:var(--cobalt);margin:0 0 8px}

@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
@media print{
  .site-head,.site-foot,.recipe-actions,.ad-slot,.video,.related,.crumbs,.tags,.servings button,.skip{display:none!important}
  body{background:#fff;color:#000;font-size:12pt}
  .ingredients{background:#fff;color:#000;border:1px solid #000;position:static}
  .recipe-body{grid-template-columns:1fr}
  .recipe-head{grid-template-columns:1fr}
  .recipe-hero{max-width:320px}
  a{color:#000;text-decoration:none}
}
