/* ==========================================================================
   4K4M — газета в духе советской печати 1960-х: чёрно-белая полоса,
   заголовок во всю ширину, крупное фото, плотные колонки.
   Страница не прокручивается вниз: полосы и колонки идут вправо,
   колесо мыши листает ленту по горизонтали (см. js/main.js).
   ========================================================================== */

:root {
  --paper: #e9e3d3;
  --paper-dark: #d6cfbd;
  --ink: #161513;
  --ink-soft: #3b3832;
  --muted: #625c51;
  --rule: #161513;
  --rule-soft: #a59d8b;

  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "PT Serif", Georgia, serif;
  --font-mono: "PT Mono", "Courier New", monospace;
  --font-hand: "Caveat", cursive;
  --pen: #26357a;
  --stamp: #5d3f8f;

  --gutter: 32px;
  --col: min(300px, calc(100vw - 2 * var(--gutter)));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background-color: var(--paper);
  /* зерно газетной бумаги */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .27 0 0 0 0 .2 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 16px/1.5 var(--font-body);
  text-rendering: optimizeLegibility;
}

/* потемневшие края листа */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(60, 50, 30, 0.15) 100%);
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ----- Верхняя панель ----------------------------------------------------- */

/* Колонтитул над газетой: чёрная полоса с подписью издания */
.topline {
  flex: none;
  margin: 0;
  padding: 7px 16px;
  background: var(--ink);
  color: var(--paper);
  font: 500 13px/1.35 var(--font-head);
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.topline span + span::before {
  content: "·";
  margin: 0 14px;
}

.sections {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  margin: 0 var(--gutter);
  padding: 8px 0;
  border-bottom: 3px solid var(--rule);
  font: 500 14px/1.2 var(--font-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sections a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ----- Полоса прокрутки в виде типографской линейки ----------------------- */

.scroller {
  position: relative;
  flex: none;
  height: 24px;
  margin: 0 var(--gutter) 12px;
  border-top: 3px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  /* мелкие деления каждые 10px, крупные — каждые 50px */
  background:
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 50px) left bottom / 100% 11px no-repeat,
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 10px) left bottom / 100% 5px no-repeat;
  cursor: pointer;
  touch-action: none;
}

.scroller:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.scroller__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 48px;
  background: var(--ink);
  /* тонкая светлая рамка внутри, как у вывороток в печати */
  box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3px var(--paper);
  cursor: grab;
}

/* насечки-хваталка посередине бегунка */
.scroller__thumb::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 8px;
  transform: translate(-50%, -50%);
  background: repeating-linear-gradient(to right, var(--paper) 0 1px, transparent 1px 5px);
}

.scroller.is-dragging .scroller__thumb {
  cursor: grabbing;
}

/* ----- Горизонтальная лента ----------------------------------------------- */

.track {
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 18px var(--gutter) 16px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  /* свайпы листает скрипт постранично; браузеру оставляем только масштаб двумя пальцами */
  touch-action: pinch-zoom;
  /* системную полосу прячем — вместо неё линейка .scroller */
  scrollbar-width: none;
}

.track::-webkit-scrollbar {
  display: none;
}

.sheet {
  flex: none;
  height: 100%;
}

.sheet + .sheet {
  margin-left: 36px;
  padding-left: 36px;
  border-left: 4px double var(--rule);
}

/* Первая полоса и шапка статьи: всё должно уместиться по высоте экрана */
.sheet--front,
.sheet--article {
  display: flex;
  flex-direction: column;
  width: min(1176px, calc(100vw - 2 * var(--gutter)));
}

.sheet--article {
  width: min(980px, calc(100vw - 2 * var(--gutter)));
}

/* Колонки текста: высота — экран, лишнее уходит в новые колонки справа */
.sheet--flow {
  width: var(--col);
  column-width: var(--col);
  column-gap: 40px;
  column-rule: 1px solid var(--rule-soft);
  column-fill: auto;
  font-size: 15.5px;
  orphans: 2;
  widows: 2;
}

.sheet--flow > * + * {
  margin-top: 26px;
}

.sheet--flow h2,
.sheet--flow h3,
.sheet--flow .spaced-sub,
.sheet--flow .schedule__title,
.sheet--flow .label {
  break-after: avoid;
}

/* рубрика-метка не должна оставаться внизу колонки без своего заголовка */
.sheet--flow .label {
  display: block;
}

.sheet--flow figure,
.sheet--flow .keep,
.sheet--flow .brief,
.sheet--flow .boxed,
.sheet--flow .schedule,
.sheet--flow .code,
.sheet--flow .letter,
.sheet--flow .pullquote,
.sheet--flow .footer {
  break-inside: avoid;
}

/* ----- Первая полоса ------------------------------------------------------ */

.banner {
  flex: none;
  margin: 0;
  font: 700 clamp(36px, min(9vw, 13vh), 116px)/0.95 var(--font-head);
  letter-spacing: 0.005em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}

.banner a:hover {
  text-decoration: none;
}

.subbanner {
  flex: none;
  margin: 10px 0 0;
  padding: 6px 0 5px;
  border-top: 3px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font: 600 clamp(16px, min(2.5vw, 4vh), 32px)/1.1 var(--font-head);
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}

.front__body {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-height: 0;
  margin-top: 16px;
}

.front__photo {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding-right: 24px;
  border-right: 1px solid var(--rule-soft);
}

.front__photo .photo {
  flex: 1;
  min-height: 80px;
  aspect-ratio: auto;
}

.front__mast {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-left: 24px;
}

.kicker-italic {
  margin: 0 0 4px;
  font: italic 700 clamp(20px, 2.3vw, 30px)/1.15 var(--font-body);
  text-align: center;
}

.kicker-caps {
  margin: 0 0 12px;
  font: 600 clamp(18px, 2vw, 26px)/1.1 var(--font-head);
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}

.contents {
  flex: 1;
  min-height: 0;
  margin-top: 14px;
  overflow: hidden;
}

.contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
  column-count: 2;
  column-gap: 20px;
}

.contents li {
  padding: 5px 0;
  border-bottom: 1px solid var(--rule-soft);
  font: 700 15px/1.3 var(--font-body);
  break-inside: avoid;
}

/* ----- Шапка газеты ------------------------------------------------------- */

.masthead {
  flex: none;
  padding: 10px 0 8px;
  border-top: 3px solid var(--rule);
  border-bottom: 3px solid var(--rule);
  text-align: center;
}

.masthead__title {
  margin: 0;
  font: italic 700 clamp(64px, min(9vw, 13vh), 124px)/0.9 var(--font-body);
  letter-spacing: -0.01em;
}

.masthead__title a:hover {
  text-decoration: none;
}

.masthead__sub {
  margin: 8px 0;
  font: 500 13px/1.2 var(--font-head);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.masthead__band {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding-top: 6px;
  border-top: 1px solid var(--rule);
  font: 500 13px/1.2 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.masthead--compact .masthead__title {
  font-size: clamp(48px, min(6vw, 9vh), 80px);
}

/* ----- Типографика -------------------------------------------------------- */

.rubric {
  margin: 0 0 12px;
  padding: 5px 0 4px;
  border-top: 3px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font: 600 14px/1.1 var(--font-head);
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

/* «О Б Р А Щ Е Н И Е»: жирные прописные вразрядку */
.spaced {
  margin: 0 0 2px;
  padding-left: 0.4em;
  font: 700 26px/1.1 var(--font-body);
  letter-spacing: 0.4em;
  text-align: center;
  text-transform: uppercase;
}

.spaced-sub {
  margin: 0 0 12px;
  font: italic 15px/1.35 var(--font-body);
  text-align: center;
}

.label {
  display: inline-block;
  margin-bottom: 6px;
  font: 600 13px/1 var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.headline {
  margin: 0 0 10px;
  font: 700 22px/1.15 var(--font-body);
}

.headline--caps {
  font: 700 30px/1.05 var(--font-head);
  text-transform: uppercase;
}

.headline--article {
  font-size: clamp(28px, min(4vw, 6vh), 46px);
  line-height: 1.08;
}

.headline--italic {
  font-style: italic;
}

.headline--s {
  font-size: 19px;
}

.deck {
  margin: 0 0 12px;
  font: italic 18px/1.4 var(--font-body);
  color: var(--ink-soft);
}

.text {
  -webkit-hyphens: auto;
  hyphens: auto;
}

.text p {
  margin: 0;
  text-indent: 1.3em;
}

.text p:first-child {
  text-indent: 0;
}

.dropcap::first-letter {
  float: left;
  margin: 0.04em 0.1em 0 0;
  font: 700 3.7em/0.82 var(--font-head);
}

.signature {
  margin: 8px 0 0;
  font: 600 13px/1.3 var(--font-head);
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.signature i {
  font: italic 400 14px/1.3 var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}

.more {
  display: block;
  margin-top: 6px;
  font: italic 14px/1.3 var(--font-body);
  text-align: right;
}

/* Подсветка раздела после перехода по ссылке: черта, как карандашом
   редактора, пробегает под текстом и уходит. Фон у строчного span
   по умолчанию «нарезается» по строкам как одна длинная лента,
   поэтому черта идёт строка за строкой. Абзацы стартуют по очереди (--i). */
.flash-line {
  --thick: 2px;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 0% var(--thick);
}

h2 .flash-line,
h3 .flash-line {
  --thick: 3px;
}

.is-flashing .flash-line {
  animation: flash-underline 1.4s ease-in-out both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes flash-underline {
  0% {
    background-position: left bottom;
    background-size: 0% var(--thick);
  }

  45% {
    background-position: left bottom;
    background-size: 100% var(--thick);
  }

  55% {
    background-position: right bottom;
    background-size: 100% var(--thick);
  }

  100% {
    background-position: right bottom;
    background-size: 0% var(--thick);
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-flashing .flash-line {
    animation: none;
  }
}

code {
  padding: 0 3px;
  background: rgba(22, 21, 19, 0.08);
  font: 0.88em/1 var(--font-mono);
}

/* Листинг: строки короткие, чтобы помещаться в газетную колонку */
.code {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-left-width: 4px;
  background: rgba(22, 21, 19, 0.05);
  font: 13px/1.5 var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-hyphens: none;
  hyphens: none;
}

.code .del {
  color: var(--muted);
}

.code .add {
  font-weight: 700;
}

.list {
  margin: 8px 0;
  padding-left: 1.1em;
  list-style: square;
}

.list li + li {
  margin-top: 4px;
}

.boxed {
  padding: 12px 14px;
  border: 2px solid var(--rule);
}

.boxed--double {
  border: 4px double var(--rule);
}

/* Кнопка-переход: газетная рамка в двойную линейку, прописные чернилами */
.cta-row {
  margin: 16px 0;
  break-inside: avoid;
}

.cta-row--center {
  text-align: center;
}

.cta {
  display: inline-block;
  padding: 8px 14px 7px;
  border: 4px double var(--rule);
  color: var(--ink);
  font: 600 13px/1.1 var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta:hover {
  background: rgba(22, 21, 19, 0.06);
}

.cta--wide {
  display: block;
  text-align: center;
}

/* Анонс статьи: ссылка заголовка растянута на всю карточку */
.teaser {
  position: relative;
  cursor: pointer;
}

.teaser__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.teaser:hover .headline,
.teaser:hover .more {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ----- Иллюстрации-заглушки (газетный растр) ------------------------------ */

.figure {
  margin: 0 0 12px;
}

.figure figcaption {
  flex: none;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-soft);
}

.figure figcaption b {
  font: 600 12px/1 var(--font-head);
  letter-spacing: 0.08em;
  color: var(--ink);
}

.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-dark);
}

.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--ink) 0 1.4px, transparent 1.9px);
  background-size: 5px 5px;
  -webkit-mask-image: var(--shape);
  mask-image: var(--shape);
}

.photo[data-label]::after {
  content: attr(data-label);
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 6px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font: 600 10px/1 var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photo--landscape {
  --shape:
    linear-gradient(to top, #000 0 27%, transparent 27.5%),
    radial-gradient(circle at 72% 36%, #000 0 11%, transparent 11.5%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 75%);
}

.photo--portrait {
  --shape:
    radial-gradient(17% 23% at 48% 38%, #000 97%, transparent 100%),
    radial-gradient(44% 30% at 48% 100%, #000 97%, transparent 100%),
    linear-gradient(110deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.08) 65%);
}

/* Столбчатый график с пиком: столбики ∩ (базовая линия ∪ всплеск) */
.photo--chart {
  --shape:
    repeating-linear-gradient(to right, #000 0 3%, transparent 3% 4.5%),
    radial-gradient(13% 82% at 58% 100%, #000 97%, transparent 100%),
    linear-gradient(to top, #000 0 14%, transparent 14%);
}

.photo--chart::before {
  -webkit-mask-composite: source-in, source-over, source-over;
  mask-composite: intersect, add, add;
}

/* Настоящий снимок, отпечатанный газетным растром: узор из точек
   смешивается со снимком, а резкий контраст оставляет только чёрное
   и белое — чем темнее место на фото, тем крупнее точка */
.photo--img {
  background: #fff;
  filter: contrast(20);
  /* белое растра становится цветом бумаги, как краска на газетном листе */
  mix-blend-mode: multiply;
}

.photo--img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.55);
}

/* Цветная вклейка: снимок без растра, в рамке, поля под цвет его тёмного фона */
.plate {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #0e0e0c;
}

.plate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.front__photo .plate {
  flex: 1;
  min-height: 80px;
}

/* Снимок в колонке текста: шириной в колонку, по нажатию — на весь экран */
.shot a {
  display: block;
  position: relative;
  border: 1px solid var(--rule);
  background: #0e0e0c;
  cursor: zoom-in;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* значок «развернуть» в углу — чтобы на телефоне было понятно, что снимок открывается */
.shot a::after,
.front__photo .plate a::after {
  content: "⤢";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font: 700 15px/22px var(--font-body);
  text-align: center;
}

.front__photo .plate a {
  cursor: zoom-in;
}

/* Просмотр снимка на весь экран */
.zoom {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 44px 16px 16px;
  background: rgba(10, 10, 8, 0.94);
  cursor: zoom-out;
}

.zoom[hidden] {
  display: none;
}

.zoom img {
  display: block;
  max-width: 100%;
  min-height: 0;
  max-height: 100%;
  flex: 0 1 auto;
  object-fit: contain;
}

.zoom__caption {
  flex: none;
  max-width: 900px;
  margin: 0;
  color: #e9e3d3;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.zoom__caption b {
  font: 600 12px/1 var(--font-head);
  letter-spacing: 0.08em;
}

.zoom__close {
  position: absolute;
  top: 10px;
  right: 16px;
  padding: 4px 8px;
  border: 1px solid #e9e3d3;
  background: none;
  color: #e9e3d3;
  font: 600 13px/1 var(--font-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.zoom__close:focus-visible {
  outline: 2px solid #e9e3d3;
  outline-offset: 2px;
}

.photo--img::before {
  z-index: 1;
  background: radial-gradient(circle, #000, #808080) 0 0 / var(--dot, 5px) var(--dot, 5px);
  -webkit-mask-image: none;
  mask-image: none;
  mix-blend-mode: screen;
}

/* ----- Материалы в колонках ----------------------------------------------- */

.brief {
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 15px;
  line-height: 1.45;
}

.brief:first-of-type {
  padding-top: 0;
}

.brief h3 {
  margin: 0 0 3px;
  font: 700 16px/1.2 var(--font-body);
}

.brief p {
  margin: 0;
}

.stat {
  margin-top: 16px;
  text-align: center;
}

.stat__num {
  display: block;
  font: 700 48px/1 var(--font-head);
}

.stat p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.4;
}

/* Расписание в духе телепрограммы: хроника инцидента, планы на неделю */
.schedule__title {
  margin: 0 0 6px;
  font: 600 13px/1.2 var(--font-head);
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.schedule {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.35;
}

.schedule li {
  display: grid;
  grid-template-columns: 3.4em 1fr;
  padding: 4px 0;
  border-bottom: 1px dotted var(--rule-soft);
}

.schedule time,
.schedule b {
  font: 600 14px/1.35 var(--font-head);
}

.weather {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.weather b {
  font: 600 14px/1 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Выходные данные: подписи слева, значения справа, как в газетном подвале */
.footer {
  padding-top: 10px;
  border-top: 4px double var(--rule);
  color: var(--ink-soft);
}

.footer__brand {
  margin: 0;
  font: italic 700 44px/1 var(--font-body);
  text-align: center;
  color: var(--ink);
}

.footer__sub {
  margin: 6px 0 10px;
  font: 500 12px/1.2 var(--font-head);
  letter-spacing: 0.3em;
  text-align: center;
  text-transform: uppercase;
}

.imprint {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.imprint + .imprint {
  margin-top: 8px;
}

.imprint div {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dotted var(--rule-soft);
}

.imprint dt {
  font: 500 11px/1.75 var(--font-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.imprint dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}

.footer__note {
  margin: 10px 0 0;
  font-size: 13px;
  font-style: italic;
  line-height: 1.45;
}

.footer__copy {
  margin: 10px 0 0;
  padding: 6px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 3px solid var(--rule);
  font: 500 12px/1 var(--font-head);
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

/* ----- Статья ------------------------------------------------------------- */

.crumbs {
  flex: none;
  margin: 10px 0 0;
  font: 500 13px/1 var(--font-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.article__header {
  flex: none;
  margin: 10px auto 14px;
  text-align: center;
}

.article__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font: 500 13px/1.3 var(--font-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sheet--article .front__photo {
  flex: 1;
  padding: 0;
  border: 0;
}

.prose {
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.prose p {
  margin: 0 0 0.8em;
}

.prose h3 {
  margin: 1.4em 0 0.5em;
  font: 700 19px/1.2 var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pullquote {
  margin: 1.2em 0;
  padding: 14px 0;
  border-top: 3px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font: italic 700 22px/1.3 var(--font-body);
  text-align: center;
}

.pullquote p {
  margin: 0;
}

.pullquote cite {
  display: block;
  margin-top: 10px;
  font: 500 12px/1.3 var(--font-head);
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.note {
  padding-top: 10px;
  border-top: 1px solid var(--rule-soft);
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

.links-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.links-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
  font: 700 16px/1.25 var(--font-body);
  break-inside: avoid;
}

.links-list .label {
  display: block;
  margin-bottom: 4px;
}

.letter {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 15px;
  font-style: italic;
  line-height: 1.45;
}

.letter p {
  margin: 0;
}

.letter cite {
  display: block;
  margin-top: 4px;
  font: 500 12px/1.3 var(--font-head);
  font-style: normal;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.stack {
  margin: 0;
  font: 13px/1.7 var(--font-mono);
}

/* «Суть» и «Шум»: плюс и тире вместо маркеров, как в манифесте */
.marked {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

/* без сетки: так подчёркивание при переходе идёт по строкам пункта */
.marked li {
  position: relative;
  padding: 3px 0 3px 1.3em;
  border-bottom: 1px dotted var(--rule-soft);
}

.marked li::before {
  content: "+";
  position: absolute;
  top: 3px;
  left: 0;
  font: 700 15px/1.5 var(--font-head);
}

.marked--minus li::before {
  content: "-";
}

/* ----- Анкета автора: бланк, заполненный от руки -------------------------- */

.sheet--form .front__body {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
}

.sheet--form .front__mast {
  position: relative;
}

.form {
  margin: 0;
}

.form-field {
  break-inside: avoid;
}

.form-field + .form-field {
  margin-top: 14px;
}

.form-field dt {
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-soft);
}

.form-field dt b {
  margin-right: 6px;
  font: 600 15px/1 var(--font-head);
  color: var(--ink);
}

.form-field dd {
  margin: 0;
}

/* ответ ручкой по линованным строкам */
.hand {
  margin: 0;
  padding: 0 2px;
  background-image: repeating-linear-gradient(transparent 0 29px, var(--rule) 29px 30px);
  font: 500 24px/30px var(--font-hand);
  color: var(--pen);
}

.marks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 6px 0 2px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.marks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.marks li::before {
  content: "";
  display: grid;
  flex: none;
  place-content: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink);
  font: 700 24px/1 var(--font-hand);
  color: var(--pen);
}

/* крестик ручкой в отмеченном квадрате */
.marks .is-marked::before {
  content: "x";
}

.work {
  font-size: 14px;
  line-height: 1.35;
}

.work__head,
.work__row {
  display: grid;
  grid-template-columns: 5.4em minmax(0, 1fr);
  gap: 6px;
}

.work__head {
  margin: 0;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--rule);
  font: 600 12px/1.2 var(--font-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  break-after: avoid;
}

.work__row {
  padding: 6px 0;
  border-bottom: 1px solid var(--rule-soft);
  break-inside: avoid;
}

.work__row p {
  margin: 0;
}

.work__years {
  font: 600 14px/1.35 var(--font-head);
}

.work .hand {
  display: block;
  margin-top: 2px;
  background: none;
  font-size: 21px;
  line-height: 1.1;
}

.sign {
  margin: 0;
  break-inside: avoid;
}

.sign dt {
  font-size: 14px;
  color: var(--ink-soft);
}

.sign dd {
  margin: 0 0 12px;
  border-bottom: 1px solid var(--rule);
  font: 500 26px/1.15 var(--font-hand);
  color: var(--pen);
}

/* Подпись «Кро»: хвост «о» уходит в росчерк вокруг всей подписи */
.sign__name {
  display: block;
  width: 200px;
  height: auto;
  margin: -4px 0 -14px -8px;
  overflow: visible;
  transform: rotate(-5deg);
  /* чернила впитываются в бумагу, а не лежат поверх */
  mix-blend-mode: multiply;
}

/* печать отдела кадров: фиолетовая, чуть криво */
.stamp {
  position: absolute;
  right: 4px;
  bottom: 0;
  width: 132px;
  height: 132px;
  color: var(--stamp);
  opacity: 0.82;
  transform: rotate(-14deg);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ----- Телефоны и невысокие экраны ---------------------------------------- */

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  .topline {
    padding: 6px 12px;
    font-size: 11px;
  }

  /* на узком экране — только середина колонтитула */
  .topline span:not(:nth-child(2)) {
    display: none;
  }

  .topline span + span::before {
    content: none;
  }

  /* рубрики — в одну строку с собственной прокруткой */
  .sections {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .track {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .sheet + .sheet {
    margin-left: 18px;
    padding-left: 18px;
  }

  .sheet--flow {
    column-gap: 36px;
  }

  .front__body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    margin-top: 12px;
  }

  .front__mast {
    order: -1;
    margin-bottom: 12px;
    padding-left: 0;
  }

  .front__photo {
    padding-right: 0;
    border-right: 0;
  }

  /* Первая полоса на телефоне — два экрана рядом: на первом имя и фото,
     свайп вправо — шапка газеты, подзаголовки и оглавление */
  .sheet--front {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto minmax(0, 1fr);
    column-gap: 36px;
    width: calc(2 * (100vw - 2 * var(--gutter)) + 36px);
  }

  .sheet--front .front__body {
    display: contents;
  }

  .sheet--front .banner,
  .sheet--front .subbanner,
  .sheet--front .front__photo {
    grid-column: 1;
  }

  .sheet--front .front__photo {
    grid-row: 3;
    margin-top: 12px;
  }

  .sheet--front .front__mast {
    grid-column: 2;
    grid-row: 1 / -1;
    margin: 0;
    padding-left: 18px;
    border-left: 1px solid var(--rule-soft);
    overflow: hidden;
  }

  .sheet--front .contents ol {
    column-count: 1;
  }

  .stamp {
    width: 96px;
    height: 96px;
  }

  /* анкета: фото маленькой карточкой в углу, как на бланке, ответы обтекают */
  .sheet--form .front__body {
    display: block;
  }

  .sheet--form .front__photo {
    float: right;
    width: 96px;
    margin: 0 0 8px 12px;
  }

  .sheet--form .front__photo .photo {
    --dot: 3px;
    flex: none;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .sheet--form .front__photo .photo::after,
  .sheet--form .front__photo figcaption {
    display: none;
  }

  .sheet--form .front__mast {
    display: block;
    margin-bottom: 0;
  }

  .masthead__title {
    font-size: 60px;
  }

  .masthead__band {
    justify-content: center;
  }

  .deck {
    font-size: 16px;
  }
}

@media (max-height: 640px) {
  .kicker-italic,
  .kicker-caps {
    display: none;
  }

  .subbanner {
    font-size: 16px;
  }

  .masthead__title {
    font-size: 52px;
  }

  .article__header .deck {
    display: none;
  }
}
