/* Общие настройки публичных страниц. Оформление отдельных разделов — в их design-*.css. */
@font-face { font-family: Literata; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/data/fonts/literata-vf-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Literata; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/data/fonts/literata-vf-latin.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: Literata; font-style: italic; font-weight: 200 900; font-display: swap; src: url(/data/fonts/literata-vfi-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Literata; font-style: italic; font-weight: 200 900; font-display: swap; src: url(/data/fonts/literata-vfi-latin.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: Onest; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/data/fonts/onest-vf-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/data/fonts/onest-vf-latin.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; }
/* Пока веб-шрифты не пришли (первый заход, round15 L2), текст набран запасным шрифтом той же ширины и высоты строки:
   Times New Roman и Arial (на Linux — их двойники Liberation) растянуты под Literata и Onest, и при подмене строки не
   переносятся иначе — страница почти не сдвигается. Ширина — по тексту страниц нового облика (work/release/fonts/measure.mjs),
   высота — из самих шрифтов (Literata 1,177/0,308, Onest 0,970/0,305 кегля). ponytail: на Android (нет Times и Arial)
   запасной — свой шрифт системы без подгонки; подогнать под Roboto и Noto Serif, если сдвиги там заметят */
@font-face { font-family: 'Literata fb'; font-weight: 100 550; src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Liberation Serif'), local('LiberationSerif'); size-adjust: 118.68%; ascent-override: 99.18%; descent-override: 25.95%; line-gap-override: 0%; }
@font-face { font-family: 'Literata fb'; font-weight: 551 1000; src: local('Times New Roman Bold'), local('TimesNewRomanPS-BoldMT'), local('Liberation Serif Bold'), local('LiberationSerif-Bold'); size-adjust: 114.25%; ascent-override: 103.02%; descent-override: 26.96%; line-gap-override: 0%; }
@font-face { font-family: 'Onest fb'; font-weight: 100 550; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'); size-adjust: 102.86%; ascent-override: 94.30%; descent-override: 29.65%; line-gap-override: 0%; }
@font-face { font-family: 'Onest fb'; font-weight: 551 1000; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold'); size-adjust: 98.95%; ascent-override: 98.03%; descent-override: 30.82%; line-gap-override: 0%; }

:root {
	--cream: #FBF7EE;    /* фон страницы */
	--paper: #FFFDF9;    /* поля, паспарту фото */
	--apricot: #FCE8C4;  /* единственная подложка — подбор по продуктам */
	--apricot-l: #FDF1DC;/* наведение */
	--chestnut: #8B3A16; /* ссылки, кнопки: 7,2 на креме, 6,4 на абрикосе */
	--on-accent: #fff;    /* надписи на тёмных кнопках */
	--cherry: #6A1E12;   /* заголовки */
	--bright: #B84A1E;   /* наведение на креме */
	--ink: #33271F;      /* текст */
	--muted: #6B5E54;    /* подписи: 5,9 на креме, 5,2 на абрикосе */
	--error: #A3341C;     /* сообщения об ошибке */
	--honey: #E2B566;    /* только тонкие украшения: отточия, двойная линейка */
	--line: #E6D7BE;     /* волоски */
	--shadow: rgba(106, 30, 18, .14);
	--display: Literata, 'Literata fb', Georgia, 'Times New Roman', serif;   /* шрифты «Журнала» (решение владельца 19.11): Literata — заголовки и отрывки */
	--text: Onest, 'Onest fb', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;   /* Onest — меню, кнопки, подписи, поля */
	--wrap: 1200px; --gut: clamp(16px, 4vw, 40px);
	--side: 300px; --gap: 32px; --sec: clamp(56px, 7vw, 88px);
	--measure: 42rem;
	--radius: 3px;
	--control: 44px;
	--title-size: clamp(1.875rem, 1.2rem + 2.4vw, 2.75rem);
	--section-size: clamp(1.625rem, 1.25rem + 1.3vw, 2.25rem);
}
@media (min-width: 1280px) { :root { --side: 330px; --gap: 40px; } }

/* полоска cookie */
.d-cookie { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; max-width: 760px; margin-inline: auto; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 30px -12px var(--shadow); font-size: .9375rem; }
.d-cookie[hidden] { display: none; }
.d-cookie button { min-height: var(--control); padding: 0 20px; border: 0; border-radius: var(--radius); background: var(--chestnut); color: var(--on-accent); font-weight: 600; cursor: pointer; }

.gc-offscreen { position: absolute; left: -99999px; }
.gc-document { box-sizing: content-box; max-width: var(--measure); margin: 2.5rem auto; padding-inline: var(--gut); color: var(--ink); overflow-wrap: anywhere; }
.gc-document h1 { font: 480 var(--title-size)/1.14 var(--display); color: var(--cherry); }
.gc-document h2 { font: 520 1.375rem/1.3 var(--display); color: var(--cherry); }
.gc-document > * + * { margin-block-start: 1em; }
.gc-document ul { padding-inline-start: 1.5em; list-style: disc; }
.gc-document__return { margin-top: 2em; }
.gc-document__search { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; }
.gc-document__search input { min-width: 0; flex: 1 1 14rem; max-width: 25rem; }

/* Читательские отзывы из архива, общие для рецептов, статей и подборок. */
.gc-comments { max-width: var(--measure); overflow-wrap: anywhere; }
.gc-comment { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.gc-comment__by { color: var(--muted); font-size: .9375rem; }
.gc-comment__by b { color: var(--ink); }
.gc-comment__text { margin-top: .25rem; font: 400 1.0625rem/1.6 var(--display); }
.gc-comment .moderator { margin-top: .5rem; padding: .5rem 1rem; border-left: 3px solid var(--honey); background: var(--apricot-l); font: 400 1rem/1.55 var(--display); }

/* Единая карточка материала: фото сверху, полное название, затем необязательные пояснение и сведения. */
.gc-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-min, 15rem)), 1fr)); gap: 28px 24px; margin: 20px 0 0; padding: 0; list-style: none; }
.gc-card { position: relative; container-type: inline-size; min-width: 0; overflow-wrap: anywhere; }
.gc-card .gc-card__heading { margin: 0; color: var(--cherry); font: 560 clamp(1rem, .8rem + 2.6cqi, 1.3rem)/1.26 var(--display); text-align: start; text-wrap: pretty; hyphens: auto; }
.gc-card__link, .gc-card__photo, .gc-card__title { display: block; }
.gc-card__title--section { display: flex; align-items: baseline; }
.gc-card__title--section > :last-child { min-width: 0; }
.gc-card .gc-card__link { color: inherit; text-decoration: none; }
.gc-card__link::after { content: ""; position: absolute; inset: 0; }
.gc-card__photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: 0; }
.gc-card__photo + .gc-card__title { margin-top: clamp(8px, 4cqi, 14px); }
.gc-card__link:hover .gc-card__title, .gc-card__link:focus-visible .gc-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.gc-card__link:focus-visible::after { outline: 3px solid var(--chestnut); outline-offset: 3px; }
.gc-card .gc-card__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 6px 0 0; font: 400 1rem/1.45 var(--display); }
.gc-card .gc-card__meta { margin: 6px 0 0; color: var(--muted); font: 400 .875rem/1.4 var(--text); }
.gc-card :is(.gc-card__title, .gc-card__text, .gc-card__meta) { margin-inline-start: var(--mat, 0px); }
.gc-card__meta a { position: relative; color: var(--chestnut); }

.n11-btn, .n11-more { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 2px solid var(--chestnut); border-radius: var(--radius); font: 600 1rem/1.2 var(--text); text-decoration: none; cursor: pointer; }
.n11-btn { background: var(--chestnut); color: var(--on-accent); }
.n11-btn:hover { background: var(--cherry); border-color: var(--cherry); color: var(--on-accent); }
.n11-more { margin-top: 36px; background: transparent; color: var(--chestnut); }
.n11-more:hover { background: var(--apricot-l); color: var(--cherry); }
.n11-more:disabled { cursor: progress; opacity: .7; }

/* под лентой: «Показать ещё 48» и номера страниц */
.f11-pager { margin-top: 8px; }
.f11-pager .n11-more { margin-top: 32px; }
.f11-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 22px; font: 500 1rem/1 var(--text); }
.f11-pages__label { margin-right: 6px; color: var(--muted); font-size: .9375rem; }
.f11-pages__n { display: inline-flex; align-items: center; justify-content: center; min-width: var(--control); min-height: var(--control); padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--chestnut); text-decoration: none; }
a.f11-pages__n:hover { border-color: var(--chestnut); background: var(--apricot-l); }
.f11-pages__n[aria-current="page"] { background: var(--chestnut); border-color: var(--chestnut); color: var(--on-accent); }
.f11-pages__gap { padding: 0 2px; color: var(--muted); }
.f11-more[aria-disabled="true"] { cursor: progress; opacity: .7; }
.f11-fail { margin-top: 12px; color: var(--error); font: 500 .9375rem/1.4 var(--text); }
@media (max-width: 760px) {
	.gc-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; margin-top: 14px; }
	.gc-card .gc-card__heading { font-size: 1rem; }
	.n11-more { width: 100%; }
}
