/* Rome Brief — вид «rivista» (18.11.2026, sites/romebrief/REDESIGN-2026-11-18.md).
   Журнал о Риме: имя издания римскими капителями (Source Serif 4 с разрядкой, как надпись на камне), крупные фото
   с вертикальным кадром 4:5, главная по разделам-лентам, текст статьи с засечками. Метки и подписи — Karla.
   Свет: травертин и тёмная умбра, терракота — ссылки и рубрики, охра — только черта под надписью.
   Тёмный вид свой — «вечерняя улица»: тёплый коричнево-чёрный, не синий. Шрифты свои (OFL, assets/fonts). */
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:200 900;font-display:swap;src:url(fonts/SourceSerif4-200_900-normal.woff2) format('woff2');}
@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:200 900;font-display:swap;src:url(fonts/SourceSerif4-200_900-italic.woff2) format('woff2');}
@font-face{font-family:'Karla';font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/Karla-200_800-normal.woff2) format('woff2');}

:root, :root[data-theme="light"] {
  --paper: #EFE9E0; --surface: #F8F5F0; --band: #E5DCCF; --ink: #2B1D16; --ink-2: #4B3A2F; --muted: #76655A; --line: #D8CCBC;
  --link: #8E3A1E; --terra: #9E3D22; --ochre: #B98326; --tint: #E7DDCF; --code: #E7DDCF; --accent-ink: #F8F5F0;
  --head-bg: #EFE9E0; --foot-bg: #2B1D16; --foot-ink: #E9DFD2; --foot-muted: #B7A898;
  --display: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --text: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --ui: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Karla", system-ui, sans-serif;
  --w: 1260px; --measure: 68ch; --r: 2px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1E1611; --surface: #281D17; --band: #2A1F18; --ink: #F1E6D8; --ink-2: #D9CBB8; --muted: #AC9A87; --line: #43332A;
    --link: #EBA07C; --terra: #E3906B; --ochre: #DDAF55; --tint: #2E221B; --code: #2E221B; --accent-ink: #1E1611;
    --head-bg: #18110D; --foot-bg: #140E0B; --foot-ink: #E4D7C6; --foot-muted: #A08E7C;
  }
}
:root[data-theme="dark"] {
  --paper: #1E1611; --surface: #281D17; --band: #2A1F18; --ink: #F1E6D8; --ink-2: #D9CBB8; --muted: #AC9A87; --line: #43332A;
  --link: #EBA07C; --terra: #E3906B; --ochre: #DDAF55; --tint: #2E221B; --code: #2E221B; --accent-ink: #1E1611;
  --head-bg: #18110D; --foot-bg: #140E0B; --foot-ink: #E4D7C6; --foot-muted: #A08E7C;
}

body.lk-rivista { background: var(--paper); color: var(--ink); font: 400 18px/1.7 var(--text); font-optical-sizing: auto; }
.lk-rivista :focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.lk-rivista .wrap { max-width: var(--w); padding-left: 24px; padding-right: 24px; }
.lk-rivista h1, .lk-rivista h2, .lk-rivista h3 { font-family: var(--display); font-stretch: 100%; }
.lk-rivista :where(a) { color: var(--link); }

/* ── Шапка: надпись на травертине ── */
.rv-head { background: var(--head-bg); border-bottom: 1px solid var(--line); }
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; font: 500 14px/1.2 var(--ui); color: var(--muted); }
.rv-date { margin: 0; }
.rv-tools { display: flex; align-items: center; gap: 4px; }
.rv-find, .lk-theme { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 40px; justify-content: center; padding: 0 8px;
  color: var(--ink-2); background: none; border: 0; font: 600 14px var(--ui); text-decoration: none; cursor: pointer; }
.rv-find:hover, .lk-theme:hover { color: var(--terra); }
.rv-plate { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 22px; padding-bottom: 22px; position: relative; }
.rv-name { margin: 0; font: 600 clamp(34px, 6.2vw, 74px)/1 var(--display); letter-spacing: .16em; text-transform: uppercase; font-variation-settings: "opsz" 60; padding-left: .16em; }
.rv-name a { color: var(--ink); text-decoration: none; }
.rv-name::after { content: ""; display: block; width: 72px; height: 3px; background: var(--ochre); margin: 16px auto 0; }
.rv-motto { margin: 12px 0 0; font: italic 400 18px/1.4 var(--display); color: var(--ink-2); }
.lk-navbtn { display: none; }
.rv-nav { border-top: 1px solid var(--line); }
.rv-nav .wrap { display: flex; justify-content: center; align-items: center; }
.rv-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.rv-nav li { position: relative; }
.rv-nav a { display: block; padding: 13px 12px; font: 600 15.5px/1.2 var(--ui); color: var(--ink); text-decoration: none; }
.rv-nav a:hover, .rv-nav .current-menu-item > a, .rv-nav .current-cat > a, .rv-nav .current-menu-parent > a { color: var(--terra); }
.rv-nav .current-menu-item > a, .rv-nav .current-cat > a { box-shadow: inset 0 -2px 0 var(--terra); }
.rv-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.rv-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; z-index: 60; min-width: 230px; flex-direction: column; padding: 8px 0; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--terra); box-shadow: 0 14px 30px rgba(43,29,22,.16); }
.rv-nav li:hover > .sub-menu, .rv-nav li:focus-within > .sub-menu { display: flex; }
.rv-nav .sub-menu a { padding: 10px 18px; font-weight: 500; white-space: nowrap; }
.rv-nav-search { display: none; }

/* ── Общие куски ── */
.rv-kick { margin: 0 0 6px; font: 700 14px/1.2 var(--ui); }
.rv-kick a, a.lk-sec { color: var(--terra); text-decoration: none; }
.rv-kick a:hover { text-decoration: underline; }
.rv-hed { margin: 0; font-weight: 600; font-size: 22px; line-height: 1.18; letter-spacing: -.005em; }
.rv-hed a, .rv-cover-hed a { color: var(--ink); text-decoration: none; }
.rv-hed a:hover, .rv-cover-hed a:hover { color: var(--terra); }
.rv-meta { margin: 8px 0 0; font: 500 14px/1.3 var(--ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.rv-sep { display: inline-block; width: 18px; height: 1px; background: var(--line); vertical-align: middle; margin: 0 6px; }
.rv-dek { margin: 10px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.rv-all { font: 700 15px var(--ui); color: var(--ink); text-decoration: underline; text-decoration-color: var(--ochre); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.rv-all:hover { color: var(--terra); }
.lk-img, .rv-cover-img { display: block; overflow: hidden; background: var(--tint); }
.lk-img img, .rv-cover-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Главная: обложка ── */
.rv-cover { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 44px; }
.rv-cover-img { aspect-ratio: 4 / 3; }
.rv-cover-txt { padding-bottom: 6px; }
.rv-cover-hed { margin: 6px 0 0; font-weight: 600; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.02em; font-variation-settings: "opsz" 60; text-wrap: balance; }
.rv-cover-txt .rv-dek { font-size: 20px; max-width: 40ch; margin-top: 18px; }
.rv-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 56px; }
.rv-tall .lk-img { aspect-ratio: 4 / 5; margin-bottom: 14px; }
.rv-trio .rv-tall .lk-img { aspect-ratio: 3 / 2; }

/* ── Главная: разделы-ленты ── */
.rv-feed { padding: 52px 0; border-top: 1px solid var(--line); }
.rv-feed-alt { background: var(--band); }
.rv-feed-in { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 40px; }
.rv-feed-head h2 { margin: 0; font: 600 clamp(32px, 3.4vw, 46px)/1.05 var(--display); font-style: italic; letter-spacing: -.01em; }
.rv-feed-head p { margin: 12px 0 18px; color: var(--ink-2); font-size: 17px; line-height: 1.5; max-width: 26ch; }
.rv-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.rv-strip .rv-hed { font-size: 19px; }

/* ── Статья ── */
.lk-rivista .article.rv-article { max-width: none; padding: 0 0 8px; margin: 0; }
.rv-article-head { max-width: 900px; padding-top: 34px; padding-bottom: 26px; text-align: center; }
.lk-rivista .crumbs { justify-content: center; font: 600 14px var(--ui); color: var(--muted); gap: 8px; }
.lk-rivista .crumbs a { color: var(--terra); }
.rv-article .article-title { font-size: clamp(34px, 5vw, 62px); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; margin: 18px 0 16px; font-variation-settings: "opsz" 60; }
.rv-article .article-dek { font: italic 400 21px/1.5 var(--display); color: var(--ink-2); max-width: 46ch; margin: 0 auto 20px; }
.rv-byline { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin: 0; font: 500 14.5px/1.4 var(--ui); color: var(--muted); }
.rv-byline a { color: var(--ink); }
.rv-photo { max-width: var(--w); margin: 0 auto 40px; padding: 0 24px; }
.rv-photo img { width: 100%; max-height: 720px; object-fit: cover; border-radius: 0; }
.rv-photo figcaption { font: 13.5px/1.4 var(--ui); color: var(--muted); margin-top: 8px; }
.rv-prose { max-width: 700px; margin: 0 auto; font-size: 19.5px; line-height: 1.78; }
.rv-prose > * { max-width: none; }
.rv-prose h2 { font-size: 30px; font-weight: 600; line-height: 1.18; margin: 1.8em 0 .55em; letter-spacing: -.01em; }
.rv-prose h3 { font-size: 23px; font-weight: 600; }
.rv-prose li::marker { color: var(--terra); }
.rv-prose ol > li::before { background: var(--terra); color: var(--accent-ink); border-radius: 50%; font: 700 14px/30px var(--ui); }
.rv-prose blockquote { border-left: 3px solid var(--ochre); }
.rv-prose .lede { background: none; padding: 0 0 0 22px; border-left: 3px solid var(--terra); border-radius: 0; font-size: 21px; line-height: 1.6; color: var(--ink); }
.rv-prose .lede::before { content: "Short answer"; font: 700 14px/1.4 var(--ui); color: var(--terra); margin-bottom: 4px; }
.rv-prose .nr-box { background: var(--surface); border-top: 3px solid var(--ochre); padding: 4px 26px 10px; margin: 2em 0; }
.rv-prose .nr-box h2 { font-size: 24px; font-style: italic; margin-top: 1em; }
.rv-prose p.sources { margin: 2.4em 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); font: 400 15px/1.6 var(--ui); color: var(--muted); }
.rv-prose p.sources em { font-style: normal; }
.rv-prose p.sources a { color: var(--ink-2); }
.rv-prose .table-wrap { border-radius: 0; }
.rv-prose th { font: 700 13px var(--ui); letter-spacing: 0; text-transform: none; color: var(--ink-2); background: var(--band); }
.rv-article-foot { max-width: 700px; margin: 36px auto 0; border-top: 1px solid var(--line); padding-top: 20px; }
.rv-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
.rv-tags a { display: inline-block; padding: 4px 12px; border: 1px solid var(--line); font: 600 14px var(--ui); color: var(--ink-2); text-decoration: none; }
.rv-tags a:hover { border-color: var(--terra); color: var(--terra); }
.lk-rivista .editorial-note { font: 14.5px/1.55 var(--ui); color: var(--muted); }
.rv-more { margin-top: 48px; }
.rv-more-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.rv-more-head h2 { margin: 0; font: italic 600 clamp(28px, 3vw, 40px)/1.1 var(--display); }
.rv-nl { max-width: 748px; margin: 40px auto; }
.rv-latest { max-width: 900px; padding-top: 44px; padding-bottom: 56px; }
.rv-latest h2 { font: 700 15px var(--ui); color: var(--muted); margin: 0 0 6px; }
.rv-latest ol { list-style: none; margin: 0; padding: 0; }
.rv-latest li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rv-latest .lk-sec { font: 700 14px var(--ui); }
.rv-late-hed { font: 600 20px/1.3 var(--display); color: var(--ink); text-decoration: none; }
.rv-late-hed:hover { color: var(--terra); }

/* ── Рубрика, метка, поиск, страница ── */
.rv-arch-head { background: var(--band); border-bottom: 1px solid var(--line); padding: 40px 0 36px; text-align: center; }
.rv-arch-head .archive-title { margin: 14px 0 0; font: italic 600 clamp(38px, 5.4vw, 70px)/1.02 var(--display); letter-spacing: -.015em; }
.rv-arch-head .archive-dek { margin: 14px auto 0; max-width: 60ch; color: var(--ink-2); font-size: 18px; }
.rv-arch { padding-top: 44px; }
.rv-arch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.rv-card .lk-img { aspect-ratio: 3 / 2; margin-bottom: 14px; }
.rv-card-big { grid-column: span 1; }
.rv-arch-grid .rv-card-big:first-child { grid-column: span 2; }
.rv-arch-grid .rv-card-big:first-child .lk-img { aspect-ratio: 16 / 9; }
.rv-arch-grid .rv-card-big:first-child .rv-hed { font-size: 34px; line-height: 1.08; }
.rv-card-big .rv-hed { font-size: 26px; }
.rv-card .rv-dek { font-size: 16px; }
.lk-rivista .pager .page-numbers { border-radius: 0; font-family: var(--ui); border-color: var(--line); }
.lk-rivista .pager .current { background: var(--terra); border-color: var(--terra); color: var(--accent-ink); }
.lk-rivista .article.rv-page { padding: 40px 0 56px; }
.lk-rivista .narrow { padding-top: 56px; }
.lk-rivista .narrow .archive-title { font: italic 600 48px/1.05 var(--display); }

/* поиск */
.lk-rivista .search { border-radius: 0; border-color: var(--line); background: var(--surface); }
.lk-rivista .search input { font: 16px var(--ui); padding: 10px 12px; width: 100%; }
.lk-rivista .search button { background: var(--terra); color: var(--accent-ink); font: 700 14px var(--ui); padding: 0 16px; }

/* ── Подвал: тёмная умбра ── */
.rv-foot { background: var(--foot-bg); color: var(--foot-ink); margin-top: 56px; font: 400 15.5px/1.6 var(--ui); }
.rv-foot a { color: var(--foot-ink); text-decoration: none; }
.rv-foot a:hover { color: var(--ochre); }
.rv-foot-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.rv-name-sm { font-size: 30px; letter-spacing: .14em; text-align: left; padding-left: 0; }
.rv-name-sm a { color: var(--foot-ink); }
.rv-name-sm::after { margin: 14px 0 0; width: 48px; }
.rv-foot-brand p { color: var(--foot-muted); max-width: 40ch; }
.rv-foot .search { max-width: 360px; background: transparent; border-color: color-mix(in srgb, var(--foot-ink) 25%, transparent); }
.rv-foot .search input { color: var(--foot-ink); }
.rv-foot-col h2 { font: 700 14px var(--ui); color: var(--foot-muted); margin: 6px 0 12px; }
.rv-foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.rv-base { border-top: 1px solid color-mix(in srgb, var(--foot-ink) 16%, transparent); padding-top: 18px; padding-bottom: 28px; }
.rv-base p { margin: 0; font-size: 14px; color: var(--foot-muted); }
.rv-base a { text-decoration: underline; }

/* ── Окно cookie: карточка слева внизу, полоса терракоты сверху ── */
.lk-rivista #ns-consent { left: 20px !important; right: auto !important; bottom: 20px !important; max-width: 380px !important; margin: 0 !important;
  background: var(--surface) !important; border: 0 !important; border-top: 4px solid var(--terra) !important; border-radius: 0 !important;
  box-shadow: 0 18px 40px rgba(43,29,22,.22) !important; padding: 18px 20px !important; font: 15px/1.5 var(--ui) !important; }
.lk-rivista #ns-consent div { justify-content: flex-start !important; }
.lk-rivista #ns-consent button { border-radius: 0 !important; font-weight: 700 !important; }
.lk-rivista #ns-consent button[data-c="granted"] { background: var(--terra) !important; color: var(--accent-ink) !important; }

/* ── Планшет и телефон ── */
@media (max-width: 1023px) {
  .rv-cover { grid-template-columns: 1fr; gap: 22px; }
  .rv-feed-in { grid-template-columns: 1fr; gap: 18px; }
  .rv-feed-head p { max-width: 50ch; margin-bottom: 8px; }
  .rv-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-arch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-foot-in { grid-template-columns: 1fr 1fr; }
  .rv-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 719px) {
  .lk-rivista .wrap { padding-left: 16px; padding-right: 16px; }
  .rv-date { font-size: 13px; }
  .rv-find span { display: none; }
  .rv-plate { padding-top: 14px; padding-bottom: 16px; grid-template-columns: 1fr auto; justify-items: start; text-align: left; align-items: center; }
  .rv-name { font-size: 27px; letter-spacing: .12em; padding-left: 0; }
  .rv-name::after { margin: 10px 0 0; width: 44px; }
  .rv-motto { display: none; }
  .lk-navbtn { display: inline-block; grid-column: 2; grid-row: 1; padding: 10px 14px; min-height: 44px; background: none; border: 1px solid var(--ink); color: var(--ink); font: 700 14px var(--ui); cursor: pointer; }
  .rv-nav { display: none; }
  .rv-nav.open { display: block; }
  .rv-nav .wrap { display: block; }
  .rv-nav ul { display: block; }
  .rv-nav li + li { border-top: 1px solid var(--line); }
  .rv-nav a { padding: 14px 0; font-size: 17px; }
  .rv-nav .sub-menu { display: block; position: static; border: 0; box-shadow: none; background: none; padding: 0 0 8px 16px; min-width: 0; }
  .rv-nav .sub-menu li { border-top: 0; }
  .rv-nav .sub-menu a { padding: 9px 0; font-size: 16px; }
  .rv-nav .menu-item-has-children > a::after { display: none; }
  .rv-nav-search { display: block; padding: 10px 0 16px; }
  .lk-rivista .rv-cover { padding-top: 0; padding-left: 0; padding-right: 0; padding-bottom: 36px; }
  .rv-cover-txt { padding: 0 16px; }
  .rv-cover-hed { font-size: 34px; }
  .rv-cover-txt .rv-dek { font-size: 18px; }
  .rv-trio { grid-template-columns: 1fr; gap: 26px; padding-bottom: 36px; }
  .rv-feed { padding: 36px 0; }
  .rv-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 0 16px 6px; }
  .rv-strip .rv-tall { flex: 0 0 70%; scroll-snap-align: start; }
  .rv-article-head { text-align: left; padding-top: 22px; }
  .lk-rivista .crumbs { justify-content: flex-start; }
  .rv-byline { justify-content: flex-start; gap: 2px 16px; }
  .rv-article .article-dek { margin-left: 0; font-size: 19px; }
  .rv-photo { padding: 0; margin-bottom: 26px; }
  .rv-prose { font-size: 18.5px; }
  .rv-prose h2 { font-size: 26px; }
  .rv-latest li { grid-template-columns: 1fr; gap: 2px; }
  .rv-arch-head { text-align: left; padding: 26px 0 24px; }
  .rv-arch-grid { grid-template-columns: 1fr; gap: 34px; }
  .rv-arch-grid .rv-card-big:first-child { grid-column: auto; }
  .rv-arch-grid .rv-card-big:first-child .rv-hed { font-size: 28px; }
  .rv-foot-in { grid-template-columns: 1fr; gap: 28px; }
  .lk-rivista #ns-consent { left: 10px !important; right: 10px !important; bottom: 10px !important; max-width: none !important; }
}
@media (prefers-reduced-motion: reduce) { .lk-rivista * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { .rv-head, .rv-foot, .rv-more, .rv-latest, #ns-consent { display: none !important; } }
