/* Тактовая частота — site styles. All tokens live in :root. */
:root {
  /* colour: page tone + one warm ink (#ebe0cf) */
  --page: #211c18;
  --ink: #ebe0cf;
  --ink-text-2: #b3a691;       /* secondary text */
  --ink-55: rgba(235, 224, 207, 0.55);
  --ink-20: rgba(235, 224, 207, 0.2);
  --ink-14: rgba(235, 224, 207, 0.14);
  --surface: #2c2621;
  --band: #1e1a16;             /* page tone, 8% darker */
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 6px 18px rgba(0, 0, 0, 0.08);
  /* type */
  --font-head: Superclarendon, "Bookman Old Style", "URW Bookman", Bookman, "Georgia Pro", Georgia, "Times New Roman", Cambria, "PT Serif", serif;
  --font-body: Georgia, "Times New Roman", Times, Cambria, "PT Serif", serif;
  --font-mono: "Courier New", Consolas, Menlo, monospace;
  --size: 17px;
  --size-logo: clamp(48px, 9vw, 120px);
  --size-small: 13px;
  --size-title: 22px;          /* feed item title */
  --size-title-lead: 32px;     /* first item title */
  --size-h1: 36px;             /* article page title */
  --lh-text: 1.6;
  --lh-lede: 1.55;
  --lh-head: 1.35;
  --lh-logo: 0.95;
  /* layout */
  --container: 1080px;
  --measure: 68ch;
  --start: 5vw;
  --bar: 48px;
  --col-gap: 64px;
  --row-gap: 104px;
  /* radii */
  --radius-box: 14px 14px 0 0;
  --radius-badge: 2px;
  --radius-pill: 999px;
  /* lines */
  --rule: linear-gradient(to right, var(--ink), transparent);
}

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

html {
  background: var(--page);
  color: var(--ink);
  scroll-padding-top: calc(var(--bar) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle, var(--ink-14) 0 0.75px, transparent 1px) 0 0 / 22px 22px,
    var(--page);
  font: 400 var(--size) / var(--lh-text) var(--font-body);
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--page); }

.vjlso {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Name (logo) ─────────────────────────── */
.vjlnm { font-family: var(--font-head); font-weight: 700; font-style: normal; letter-spacing: -0.01em; }
.vjlnm::after {
  content: "";
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-inline-start: 0.06em;
  background: currentColor;
}

/* ── Compact sticky row ──────────────────── */
.vjlbr {
  position: sticky;
  top: 0;
  z-index: 20;
  flex: none;
  height: var(--bar);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
  background: var(--surface);
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}
/* без скриптов строка не липкая: в ней и меню */
@media (scripting: none) {
  .vjlbr { position: relative; }
}
.vjlsc .vjlbr { background: var(--ink); color: var(--surface); }
.vjlbh { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.vjlbh:hover .vjlnm { text-decoration: underline; text-decoration-thickness: 1px; }
.vjlbr .vjlnm { font-size: var(--size); line-height: 1; }
.vjlaw { flex: none; width: 20px; height: 12px; }

/* ── Hero band ───────────────────────────── */
.vjlhr {
  position: relative;
  flex: none;
  min-height: calc(clamp(320px, 40vh, 400px) - var(--bar));
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 32px 24px 48px;
  margin-bottom: 8px;
  background: var(--surface);
  color: var(--ink);
}
.vjlhr::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 8px;
  background: conic-gradient(from -45deg at 50% 100%, var(--surface) 90deg, transparent 0) 0 0 / 16px 8px repeat-x;
}
.vjllg {
  margin: 0;
  max-width: min(9em, 100%);
  font-size: var(--size-logo);
  line-height: var(--lh-logo);
  text-align: end;
  overflow-wrap: break-word;
}

/* ── Page container ──────────────────────── */
.vjlpg {
  flex: 1 0 auto;
  width: min(var(--container), calc(100% - 2 * var(--start)));
  margin: 96px 0 0;
  margin-inline-start: var(--start);
  padding-bottom: 128px;
}

/* ── Feed ────────────────────────────────── */
.vjlfd {
  list-style: none;
  margin: 0;
  padding: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: var(--row-gap);
  position: relative;
  z-index: 0;
  overflow: clip;
}
.vjlfd:empty, body:has(.vjlfd:empty) .vjltt { display: none; }
.vjlit {
  --pt: 0px;
  --ts: var(--size-title);
  position: relative;
  padding-top: var(--pt);
  padding-inline-start: 36px;
}
.vjlit::before { /* timeline */
  content: "";
  position: absolute;
  left: 11px; top: 0;
  bottom: calc(-1 * var(--row-gap));
  width: 2px;
  background: var(--mark, #ebe0cf);
}
.vjlti {
  margin: 0;
  font: italic 400 var(--ts) / var(--lh-head) var(--font-head);
  hyphens: auto;
  text-wrap: pretty;
}
.vjlti::before { /* dot */
  content: "";
  position: absolute;
  left: 7px;
  top: calc(var(--pt) + (var(--lh-head) * var(--ts) - 10px) / 2);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--mark, #ebe0cf);
}
.vjlti a { text-decoration: none; }
.vjlti a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.vjlsu {
  margin: 12px 0 0;
  margin-inline-start: 24px;
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--ink);
  hyphens: auto;
  text-wrap: pretty;
}

.vjldt {
  display: block;
  width: fit-content;
  margin-top: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-badge);
  background: var(--head, #ebe0cf);
  color: var(--page);
  font: 400 var(--size) / 1.2 var(--font-mono);
  letter-spacing: 0.02em;
}

/* lead zone: item 1 takes 2/3 at the end, items 2–4 stack at the start */
.vjlfd > .vjlit:first-child {
  --ts: var(--size-title-lead);
  grid-column: 2 / 4;
  grid-row: 1 / span 3;
  padding-inline-end: 36px;
}
.vjlfd > .vjlit:first-child:only-child { grid-row: 1; }
.vjlfd > .vjlit:nth-child(2) { grid-column: 1; grid-row: 1; }
.vjlfd > .vjlit:nth-child(3) { grid-column: 1; grid-row: 2; }
.vjlfd > .vjlit:nth-child(4) { grid-column: 1; grid-row: 3; }
.vjlfd > .vjlit:first-child::after { /* tinted band behind the whole lead zone */
  content: "";
  position: absolute;
  z-index: -1;
  top: -48px; bottom: -48px;
  left: calc(-50% - var(--col-gap) / 2);
  right: 0;
  background: var(--band);
}

/* break band: every 13th regular item (items 17, 30, 43 …) */
.vjlfd > .vjlit:nth-child(13n + 17) {
  --pt: 48px;
  grid-column: 1 / -1;
  z-index: 1;
  padding: 48px 36px;
  background: var(--surface);
}
.vjlfd > .vjlit:nth-child(13n + 17) > * { max-width: 66%; }

.vjlem {
  margin: 48px 0 0;
  padding-inline-start: 36px;
  font: italic 400 var(--size-title) / var(--lh-head) var(--font-head);
}

/* ── Article ─────────────────────────────── */
.vjlah {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  padding: 64px 36px;
  background: var(--head, #ebe0cf);
  color: var(--page);
}
.vjlah h1 {
  margin: 0;
  max-width: 46ch;
  font: italic 400 var(--size-h1) / var(--lh-head) var(--font-head);
  text-wrap: balance;
}
.vjlah .vjldt { background: var(--page); color: var(--ink); }
.vjlld { margin: 0; max-width: 54ch; font-weight: 400; line-height: var(--lh-lede); text-wrap: pretty; }

.vjlpx {
  max-width: var(--measure);
  margin: 64px 0 0;
  margin-inline: auto;
  counter-reset: sub;
  text-align: left;
  hyphens: auto;
}
.vjlpx > :first-child { margin-top: 0; }
.vjlpx p { margin: 0 0 1em; text-indent: 0; }
.vjlpx h2, .vjlpx h3 {
  display: flex;
  gap: 12px;
  margin: 2.4em 0 1em;
  font: italic 400 var(--size-title) / var(--lh-head) var(--font-head);
  text-align: left;
  hyphens: manual;
  counter-increment: sub;
}
.vjlpx h3 { margin-top: 2em; color: var(--ink-text-2); }
.vjlpx h2::before, .vjlpx h3::before {
  content: counter(sub, decimal-leading-zero);
  flex: none;
  font-family: var(--font-mono);
  font-style: normal;
  color: var(--ink);
}
.vjlpx ul, .vjlpx ol {
  margin: 1.5em 0;
  padding: 20px 24px 20px 56px;
  background: var(--surface);
  border-radius: var(--radius-box);
  box-shadow: var(--shadow);
  text-align: left;
  hyphens: manual;
}
.vjlpx li + li { margin-top: 0.5em; }
.vjlpx ul { list-style: none; }
.vjlpx ul > li { position: relative; }
.vjlpx ul > li::before { content: "—"; position: absolute; left: -28px; }
.vjlpx ol { list-style: decimal-leading-zero; }
.vjlpx ol > li::marker { font-family: var(--font-mono); }
.vjlpx blockquote {
  margin: 1.5em 0;
  padding-inline-start: 20px;
  border-inline-start: 2px solid var(--ink);
  text-align: left;
}
.vjlpx blockquote p:last-child { margin-bottom: 0; }
.vjlpx table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  text-align: left;
  hyphens: manual;
}
.vjlpx pre {
  margin: 1.5em 0;
  padding: 16px 20px;
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius-box);
  font-family: var(--font-mono);
  text-align: left;
  hyphens: manual;
}
.vjlpx code { font-family: var(--font-mono); hyphens: manual; overflow-wrap: anywhere; }
.vjlpx pre code { overflow-wrap: normal; }
.vjlpx tr { background: var(--rule) left bottom / 100% 1px no-repeat; }
.vjlpx th, .vjlpx td { padding: 10px 12px 10px 0; vertical-align: top; }
.vjlpx th { font: italic 400 var(--size) / var(--lh-head) var(--font-head); }

.vjlpc {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 14px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-box);
}
.vjlfd > .vjlit:first-child .vjlpc { aspect-ratio: 16 / 9; }

.vjlcv {
  margin: 0;
  background: var(--band);
}
.vjlcv-i {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}
.vjlcv-c {
  padding: 8px 36px;
  color: var(--ink-text-2);
  font: 400 var(--size-small) / 1.4 var(--font-mono);
}
.vjlcv-c a { text-decoration-thickness: 1px; }

.vjlpx img, .vjlpx video, .vjlpx iframe { max-width: 100%; height: auto; }
.vjlpx figure { margin: 1.5em 0; }
.vjlpx figcaption {
  margin-top: 8px;
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--ink);
  color: var(--ink-text-2);
  font-size: var(--size-small);
  line-height: 1.4;
}

.vjlgl {
  max-width: var(--measure);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.vjlgl img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-box);
}

.vjllk {
  margin: 24px 0;
}
.vjllk a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--lnk, #ebe0cf);
  border-radius: var(--radius-pill);
  line-height: var(--lh-head);
  text-decoration: none;
}
.vjllk a:hover { background: var(--lnk, #ebe0cf); color: var(--page); }

/* ── Not found ───────────────────────────── */
.vjlnf {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px;
  text-align: center;
}
.vjlnf h1 { margin: 0; max-width: 34ch; font: italic 400 var(--size-h1) / var(--lh-head) var(--font-head); text-wrap: balance; }
.vjlnf a { margin-top: 24px; text-decoration: underline; }

/* ── Footer ──────────────────────────────── */
.vjlft {
  flex: none;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
  background: var(--rule) left top / 100% 1px no-repeat, var(--page);
  font-size: var(--size-small);
  line-height: 1;
  white-space: nowrap;
}
.vjlft .vjlnm { font-size: var(--size-small); }

/* ── Back to top ─────────────────────────── */
.vjltt {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--ink-20);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  font: 400 var(--size-small) / 1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
}
.vjltt:hover { background: var(--ink); color: var(--page); }
.vjltt svg { width: 12px; height: 14px; flex: none; }

/* ── Reading progress (inserted by script) ─ */
.vjlpr {
  position: fixed;
  z-index: 25;
  top: var(--bar);
  left: 0;
  width: 100%;
  height: 3px;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  color: var(--ink);
}
.vjlpr::-webkit-progress-bar { background: transparent; }
.vjlpr::-webkit-progress-value { background: var(--mark, #ebe0cf); }
.vjlpr::-moz-progress-bar { background: var(--mark, #ebe0cf); }

/* ── Phone ───────────────────────────────── */
@media (max-width: 599px) {
  .vjlpg { width: 100%; margin: 40px 0 0; padding-bottom: 96px; }
  .vjlfd { display: block; padding: 0; overflow: visible; }
  .vjlit {
    --pt: 28px;
    padding: var(--pt) 16px 28px 36px;
    background: var(--rule) left bottom / 100% 1px no-repeat;
  }
  .vjlit::before { bottom: 0; }
  .vjlfd > .vjlit:first-child {
    --pt: 48px;
    padding: 48px 16px 48px 36px;
    background: var(--rule) left bottom / 100% 1px no-repeat, var(--band);
  }
  .vjlfd > .vjlit:first-child::after { display: none; }
  .vjlfd > .vjlit:nth-child(13n + 17) {
    padding: 48px 16px 48px 36px;
    background: var(--rule) left bottom / 100% 1px no-repeat, var(--surface);
  }
  .vjlfd > .vjlit:nth-child(13n + 17) > * { max-width: none; }
  .vjlem { margin-top: 24px; padding-inline-end: 16px; }

  .vjlah { min-height: 240px; padding: 64px 16px; }
  .vjlpx { margin-inline: 16px; }
  .vjlpx { margin-top: 48px; }
  .vjlgl { margin-inline: 16px; gap: 8px; }
  .vjlcv-c { padding-inline: 16px; }
  .vjlpx ul, .vjlpx ol { padding: 16px 16px 16px 44px; }
  .vjlpx ul > li::before { left: -24px; }
}

/* ── Topics and page flip ────────────────── */
.vjlbr { gap: 24px; }
.vjltl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: var(--size-small);
}
.vjltl a { text-decoration: none; }
.vjltl a:hover, .vjltl a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; }
.vjltl a[data-section] { text-decoration: underline; text-decoration-thickness: 1px; }
.vjltl > li { position: relative; }
.vjltl > li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5;
  min-width: 10rem;
  margin: 0;
  padding: 4px 12px;
  list-style: none;
  background: var(--page);
  border: 1px solid var(--ink-20);
  visibility: hidden;
  opacity: 0;
}
.vjltl > li:hover > ul, .vjltl > li:focus-within > ul { visibility: visible; opacity: 1; }
@media (max-width: 640px) {
  .vjlbr { height: auto; min-height: var(--bar); padding-block: 8px; }
  .vjlpr { top: auto; bottom: 0; }
  .vjltl > li > ul { position: static; visibility: visible; opacity: 1; border: 0; padding: 0 0 0 12px; }
}
.vjlfk {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  font: italic 400 var(--size-title) / var(--lh-head) var(--font-head);
}
.vjlfk a { text-decoration: none; }
.vjlfk a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.vjlfk-o { margin-inline-start: auto; }
.vjlfk-x { opacity: 0.35; }
.vjlfk-l { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.vjlfk-c { font-weight: 700; }
.vjlfk-m { font-style: normal; }
.vjlfk-w { flex: 1; justify-content: space-between; }

/* later pages: no lead zone, every item in the plain grid */
.vjlfd.vjlfr > .vjlit:first-child,
.vjlfd.vjlfr > .vjlit:nth-child(2),
.vjlfd.vjlfr > .vjlit:nth-child(3),
.vjlfd.vjlfr > .vjlit:nth-child(4) {
  --ts: var(--size-title);
  grid-column: auto;
  grid-row: auto;
  padding-inline-end: 0;
}
.vjlfd.vjlfr > .vjlit:first-child::after { display: none; }
@media (max-width: 599px) {
  .vjlbr { padding: 0 16px; gap: 12px; }
  .vjlfk { margin: 32px 16px 0; }
  .vjlfd.vjlfr > .vjlit:first-child {
    --pt: 28px;
    padding: var(--pt) 16px 28px 36px;
    background: var(--rule) left bottom / 100% 1px no-repeat;
  }
}

a:not([href]){pointer-events:none}

/* ── News blocks ─────────────────────────── */
.vjlnb {
  margin-top: 96px;
  padding-inline-start: 36px;
  border-inline-start: 2px solid var(--ink);
}
.vjlnb section + section { margin-top: 48px; }
.vjlnt {
  margin: 0 0 16px;
  font: 400 var(--size) / 1.2 var(--font-mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.vjlnl {
  list-style: none;
  margin: 0;
  padding: 0;
  font: italic 400 var(--size-title) / var(--lh-head) var(--font-head);
}
.vjlnl li + li { margin-top: 12px; }
.vjlnl a { text-decoration: none; }
.vjlnl a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* ── Page row and author ─────────────────── */
.vjlbr:has(.vjlpm) { flex-wrap: wrap; height: auto; min-height: var(--bar); padding-block: 8px; }
.vjlpm {
  flex: 1 0 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 16px;
  font-size: var(--size-small);
}
.vjlpm a { text-decoration: none; }
.vjlpm a:hover, .vjlpm a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; }
.vjlah .vjlau { display: block; width: fit-content; margin-top: 10px; color: inherit; font-size: var(--size-small); }
.vjlah .vjlau:hover { text-decoration: none; }
@media (max-width: 599px) {
  .vjlpm { justify-content: flex-start; }
}

:root{--kbeunb0:75}
