/* Палитра, базовая типографика и доступность. */
:root {
    --paper: #fcfaf5;
    --ink: #282b25;
    --muted: #686b61;
    --orange: #b94722;
    --line: #dddcd1;
    --sage: #e9eddf;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; font-weight: 500; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; }
em { color: var(--orange); font-weight: 400; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
[hidden] { display: none !important; }
.container { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.sr-only, .skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { z-index: 100; width: auto; height: auto; clip-path: none; background: white; padding: 16px; }
.kicker { font: 11px/1.5 Arial, sans-serif; letter-spacing: 1.8px; font-weight: 700; }
.top-note { background: var(--sage); border-bottom: 1px solid var(--line); }
.top-note .container { display: flex; justify-content: space-between; padding-block: 9px; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; }
.site-header { display: flex; align-items: center; gap: 42px; min-height: 108px; border-bottom: 1px solid var(--line); }
.site-brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.site-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 11px; flex-shrink: 0; }
.site-brand > span { font-size: 32px; line-height: 1; letter-spacing: -1px; font-weight: 800; overflow-wrap: anywhere; }
.site-brand small { display: block; margin-top: 9px; font: 9px/1.3 Arial, sans-serif; letter-spacing: 1.5px; }
.main-nav { margin-left: auto; display: flex; gap: 30px; font-size: 13px; white-space: nowrap; }
.header-search { display: flex; align-items: center; width: 220px; border-bottom: 1px solid #8b8b7d; }
.header-search input { width: 100%; min-width: 0; border: 0; background: transparent; font-size: 12px; padding: 10px 0; color: var(--ink); }
.header-search button { background: none; border: 0; padding: 8px 5px 8px 12px; font-size: 22px; color: var(--orange); }
/* Обложка и редакционная сетка главной. */
.editorial-hero { padding-top: 44px; }
.cover-heading { position: relative; z-index: 1; margin-bottom: 30px; }
.cover-heading .kicker { color: var(--muted); }
.cover-heading h1 { margin-top: 18px; font-size: clamp(60px, 7.7vw, 111px); letter-spacing: -5px; line-height: .98; }
.cover-heading h1 br { display: none; }
.cover-heading h1 em { display: block; margin-left: 15%; }
.hero-picture { height: 470px; position: relative; overflow: hidden; border-radius: 3px; }
.hero-picture > img { height: 100%; width: 100%; object-fit: cover; object-position: center 58%; }
.hero-picture figcaption { position: absolute; left: 26px; bottom: 26px; padding: 20px 24px; background: var(--paper); display: grid; gap: 8px; max-width: calc(100% - 52px); font: italic 23px/1.25 Georgia, serif; }
.hero-picture .cover-label { font: 10px/1.4 Arial, sans-serif; font-weight: 700; letter-spacing: 1.8px; color: var(--orange); }
.cover-bottom { display: flex; justify-content: space-between; gap: 32px; align-items: center; padding-block: 24px 34px; }
.cover-bottom p { max-width: 580px; font-size: 16px; color: var(--muted); }
.pill-link { display: inline-flex; justify-content: center; align-items: center; gap: 30px; background: var(--orange); color: white; border: 1px solid var(--orange); padding: 13px 22px; border-radius: 30px; font-size: 13px; white-space: nowrap; }
.pill-link:hover { background: var(--ink); color: white; border-color: var(--ink); }
.topic-strip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-block: 22px; border-block: 1px solid var(--line); }
.topic-strip .kicker { margin-right: 20px; }
.topic-strip a { border: 1px solid var(--line); border-radius: 30px; padding: 6px 15px; font-size: 12px; }
.topic-strip a span { color: var(--orange); margin-left: 10px; }
.latest-section, .tag-block, .popular-section { padding-block: 60px 12px; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-title h2 { font-size: 46px; letter-spacing: -1.5px; margin-top: 8px; }
.section-title > a, .section-title > span { font-size: 12px; padding-bottom: 5px; }
.section-title > span, .section-title .kicker { color: var(--muted); }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px 26px; }
.story-card { min-width: 0; }
.story-image { display: block; overflow: hidden; background: #f0e9de; border-radius: 3px; }
.story-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s; }
.story-card:hover .story-image img { transform: scale(1.025); }
.story-copy { padding-block: 15px 6px; }
.story-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; }
.story-card h3 { font: 500 26px/1.22 Georgia, serif; margin-top: 10px; overflow-wrap: anywhere; }
.story-copy > p { font-size: 13px; color: var(--muted); margin-top: 12px; }
.story-tags { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 12px; }
.story-tags a { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--orange); }
.home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-grid .story-card:first-child { grid-column: span 2; grid-row: span 2; }
.home-grid .story-card:first-child .story-image img { aspect-ratio: 4 / 3; }
.home-grid .story-card:first-child h3 { font-size: 35px; }
.home-grid .story-card:not(:first-child) h3 { font-size: 23px; }
.home-grid .story-card:not(:first-child) .story-copy > p { display: none; }
.manifesto { display: grid; grid-template-columns: 90px 1fr auto; gap: 28px; align-items: center; background: var(--sage); padding: 38px; margin-top: 60px; border-radius: 3px; }
.manifesto > span { font-size: 82px; color: var(--orange); line-height: 1; }
.manifesto p { font: 36px/1.2 Georgia, serif; }
.manifesto a { font-size: 12px; border-bottom: 1px solid var(--ink); }
.popular-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.rank-story { display: grid; grid-template-columns: 40px 1fr 20px; gap: 18px; align-items: start; border-top: 1px solid var(--line); padding: 23px 0; }
.rank { font: italic 30px/1 Georgia, serif; color: var(--orange); }
.rank-story h3 { font: 22px/1.3 Georgia, serif; overflow-wrap: anywhere; }
.rank-story > span:last-child { color: var(--orange); }
/* Внутренние страницы, текст и поиск. */
.inner-page { padding-top: 24px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; font-size: 11px; color: var(--muted); margin-bottom: 38px; overflow-wrap: anywhere; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; }
.main-column { min-width: 0; }
.main-column > h1, .list-heading h1, .full-article h1 { font-size: clamp(36px, 4.2vw, 60px); letter-spacing: -1.5px; margin-block: 12px 24px; overflow-wrap: anywhere; }
.list-heading { margin-bottom: 30px; }
.list-heading p { color: var(--muted); font-size: 13px; }
.tag-sidebar { border-left: 1px solid var(--line); padding-left: 26px; }
.tag-sidebar h2 { font-size: 27px; margin: 10px 0 24px; }
.tag-sidebar nav a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.tag-sidebar nav b { color: var(--orange); font-weight: 400; }
.tag-sidebar p { font-size: 12px; color: var(--muted); margin-top: 25px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 11px; color: var(--muted); margin-bottom: 28px; }
.article-hero { width: 100%; max-height: 620px; object-fit: cover; border-radius: 3px; }
.prose { max-width: 760px; font: 18px/1.85 Georgia, serif; overflow-wrap: anywhere; }
.prose > * { margin-block: 1.4em; }
.prose h2 { font-size: 34px; line-height: 1.25; }
.prose h3 { font: 26px/1.3 Georgia, serif; }
.prose a { text-decoration: underline; text-underline-offset: 3px; color: var(--orange); }
.prose blockquote { padding: 18px 24px; margin-inline: 0; border-left: 3px solid var(--orange); background: var(--sage); }
.prose pre { overflow: auto; padding: 18px; background: var(--sage); font-size: 14px; }
.prose table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; }
.prose td, .prose th { padding: 10px; border: 1px solid var(--line); }
.prose iframe, .prose video { max-width: 100%; }
.prose img { height: auto; }
.related { margin-top: 48px; }
.related h2 { font-size: 35px; }
.large-search { display: flex; gap: 12px; margin-bottom: 32px; }
.large-search input { flex: 1; min-width: 0; border: 1px solid var(--line); padding: 12px; background: white; border-radius: 3px; }
.large-search button { border: 0; color: white; background: var(--orange); padding: 12px 20px; border-radius: 3px; }
.empty-state { padding: 36px; border: 1px dashed var(--line); color: var(--muted); }
.tag-seo { font-size: 14px; color: var(--muted); margin-top: 35px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 38px; padding: 7px 12px; text-align: center; border: 1px solid var(--line); border-radius: 50%; font-size: 13px; }
.pagination [aria-current] { color: white; background: var(--orange); border-color: var(--orange); }
/* Подвал, согласие и системные состояния. */
.site-footer { margin-top: 80px; background: #282e25; color: #f6f4e9; padding-block: 50px 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.footer-brand > a { font-size: 46px; font-weight: 700; letter-spacing: -2px; display: flex; gap: 22px; }
.footer-brand > a span { color: #ed9a77; }
.footer-brand p { max-width: 450px; font-size: 13px; margin-block: 18px 30px; color: #d0d5c6; }
.footer-brand small { font-size: 11px; }
.footer-links { display: flex; align-items: start; flex-direction: column; gap: 12px; font-size: 13px; }
.footer-links .kicker { color: #d0d5c6; margin-bottom: 6px; }
.site-footer a:hover { color: #ffc6aa; }
.analytics-area { margin-top: 20px; }
.cookie-banner { position: fixed; z-index: 20; bottom: 20px; left: 50%; transform: translateX(-50%); width: min(760px, calc(100% - 32px)); display: flex; gap: 30px; align-items: center; padding: 20px 25px; background: white; border: 1px solid var(--line); box-shadow: 0 8px 50px #282b2522; border-radius: 5px; }
.cookie-banner strong { font: 21px/1.3 Georgia, serif; }
.cookie-banner p { font-size: 11px; margin-top: 6px; color: var(--muted); }
.cookie-banner a { text-decoration: underline; }
.cookie-actions { display: flex; flex-shrink: 0; gap: 8px; }
.cookie-actions button { padding: 10px 14px; border: 1px solid var(--orange); background: var(--orange); color: white; border-radius: 24px; font-size: 11px; }
.cookie-actions button:last-child { background: white; color: var(--orange); }
.error-page { display: grid; min-height: 100vh; place-items: center; }
.error-content { max-width: 760px; padding: 40px 24px; text-align: center; }
.error-content .site-brand { justify-content: center; font-size: 30px; font-weight: bold; }
.error-code { display: block; font: italic 150px/1.3 Georgia, serif; color: var(--orange); margin-top: 35px; }
.error-content h1 { font-size: 40px; }
.error-content p { margin: 20px 0 30px; }
.comments { margin-top: 45px; padding-top: 30px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.comments h2 { font-size: 30px; }
.comment { padding: 22px 0; border-bottom: 1px solid var(--line); }
.comment-form { display: grid; gap: 14px; margin-top: 25px; }
.comment-form label { display: grid; gap: 6px; }
.comment-form input, .comment-form textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); background: white; border-radius: 3px; }
.comment-form textarea { resize: vertical; }
.comment-form button { justify-self: start; padding: 12px 22px; background: var(--orange); color: white; border: 0; border-radius: 30px; }
.comment-form .comment-trap { display: none; }
.comment-error { color: #a12c17; }
.comment-success { color: #2f6129; }
.comment-pagination { margin-block: 20px; }
/* Планшеты и телефоны. */
@media (max-width: 1050px) {
    .container { width: calc(100% - 56px); }
    .site-header { gap: 24px; }
    .main-nav { gap: 18px; }
    .header-search { width: 180px; }
    .hero-picture { height: 390px; }
    .cover-heading h1 { letter-spacing: -3px; }
    .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-grid .story-card:first-child { grid-row: auto; }
    .home-grid .story-card:first-child .story-image img { aspect-ratio: 2 / 1; }
    .manifesto { grid-template-columns: 60px 1fr; }
    .manifesto a { grid-column: 2; justify-self: start; }
    .content-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 30px; }
}
@media (max-width: 700px) {
    .container { width: calc(100% - 36px); }
    .top-note .container { font-size: 9px; }
    .top-note .container > span:last-child { display: none; }
    .site-header { flex-wrap: wrap; gap: 20px; padding-block: 22px 16px; }
    .site-brand > span { font-size: 28px; }
    .site-brand small { font-size: 8px; }
    .site-brand img { width: 42px; height: 42px; }
    .main-nav { gap: 14px; font-size: 11px; }
    .header-search { width: 100%; }
    .editorial-hero { padding-top: 32px; }
    .cover-heading .kicker { font-size: 8px; letter-spacing: 1.1px; }
    .cover-heading h1 { font-size: clamp(36px, 9.3vw, 64px); line-height: 1.12; letter-spacing: -1.5px; }
    .cover-heading h1 em { margin-left: 0; }
    .hero-picture { height: 350px; }
    .hero-picture figcaption { left: 14px; bottom: 14px; padding: 15px; font-size: 19px; max-width: calc(100% - 28px); }
    .hero-picture .cover-label { font-size: 8px; }
    .cover-bottom { align-items: start; flex-direction: column; gap: 18px; }
    .cover-bottom p { font-size: 14px; }
    .topic-strip { gap: 8px; }
    .topic-strip .kicker { width: 100%; margin-bottom: 4px; }
    .topic-strip a { font-size: 11px; padding: 5px 12px; }
    .latest-section, .tag-block, .popular-section { padding-top: 40px; }
    .section-title { align-items: start; gap: 16px; }
    .section-title h2 { font-size: 35px; letter-spacing: -1px; }
    .section-title .kicker { font-size: 9px; letter-spacing: 1px; }
    .section-title > a, .section-title > span { font-size: 11px; max-width: 100px; padding-top: 7px; }
    .story-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .home-grid .story-card:first-child { grid-column: auto; }
    .home-grid .story-card:first-child .story-image img { aspect-ratio: 3 / 2; }
    .home-grid .story-card:first-child h3 { font-size: 29px; }
    .home-grid .story-card:not(:first-child) h3 { font-size: 26px; }
    .manifesto { margin-top: 38px; padding: 26px; gap: 14px; grid-template-columns: 1fr; }
    .manifesto > span { font-size: 52px; }
    .manifesto p { font-size: 30px; }
    .manifesto a { grid-column: 1; margin-top: 10px; }
    .popular-list { grid-template-columns: minmax(0, 1fr); }
    .rank-story h3 { font-size: 23px; }
    .content-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .tag-sidebar { border: 0; border-top: 1px solid var(--line); padding: 25px 0 0; }
    .full-article h1, .main-column > h1, .list-heading h1 { font-size: 37px; }
    .prose { font-size: 17px; }
    .prose h2 { font-size: 29px; }
    .large-search { gap: 8px; }
    .large-search button { padding-inline: 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .site-footer { margin-top: 50px; }
    .cookie-banner { bottom: 12px; padding: 18px; flex-direction: column; gap: 14px; align-items: start; }
    .cookie-actions { width: 100%; }
    .cookie-actions button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .story-image img { transition: none; }
}

/* Фирменная палитра «Чистого листа»: белая бумага, чернила и красная помета. */
:root {
    --paper: #fffefa;
    --ink: #202020;
    --muted: #686762;
    --orange: #d83523;
    --line: #dedbd5;
    --sage: #f0eee9;
}
.top-note { background: #202020; color: #fffefa; border-color: #202020; }
.site-header { border-bottom: 2px solid var(--ink); }
.site-brand > span { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; }
.site-brand small { color: var(--muted); }
.editorial-hero { padding-top: 58px; }
.cover-heading h1 { font-weight: 700; font-size: clamp(72px, 10vw, 142px); letter-spacing: -7px; }
.cover-heading h1 em { color: var(--orange); }
.hero-picture { height: 440px; border-radius: 0; }
.hero-picture figcaption { border-left: 4px solid var(--orange); border-radius: 0; }
.pill-link { border-radius: 2px; }
.topic-strip a { border-radius: 2px; }
.story-image, .empty-state, .large-search input, .prose blockquote { border-radius: 0; }
.story-card h3, .rank-story h3 { font-family: Georgia, 'Times New Roman', serif; }
.manifesto { background: #f0eee9; border-left: 5px solid var(--orange); border-radius: 0; }
.pagination a, .pagination span { border-radius: 2px; }
.cookie-banner { border-radius: 2px; }
.cookie-actions button { border-radius: 2px; }
