/* Hallmark · shape: Long Document (changelog, privacy) and Letter (error pages) · genre: modern-minimal · theme: Coral (by request, the home page's system: home.css tokens) · job: read, the record right under the head · redesign: full
 * hero: Band (head and one line on the home desk); errors: Settled (the code large beside the head) · nav: edge-aligned (as home, shared partial) · footer: letter close (as home, shared partial) · imagery: none, the words are the page · signature: the dated entries of the changelog, the date set as a figure beside each document
 * axes: light/grotesk-sans/warm · posture: restrained · brand: OHS (project tokens: graphite ink, green signal, Golos Text, Source Serif 4) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V3 · weakest: V, the pages share nav, desk, the index table and the footer with the home page on purpose (one site, one system); the dated entries and the error code are their own */
/* Hallmark · finish-review: in-thread · 3 findings · 3 resolved (privacy head past the 375 edge, the first facts row larger on the phone, the 404 page checked by screenshot since the linter cannot render a 404) · gap: none */
/* Hallmark · dropped logo-mark.svg · the nav is the home page's own, its logo.svg carries the mark */
/* Hallmark · waive 44c · the band ends near 400px · long document: the record starts under the head on the first screen, the band is only its title */
/* Hallmark · waive 77 · the empty changelog is one line «Пока нет записей.» · real entries fill the column; an empty journal should not be padded with words */
/* Hallmark · waive 78 · privacy section heads at the title size · a legal document read top to bottom: its sections are paragraphs' heads, not page sections */
/* Hallmark · reworded "Изменено пунктов: N · новых: N · отменено: N." to a row of labelled figures · 63 names the dot-joined meta string */

/* Журнал изменений, политика и страницы ошибок стоят на системе главной (home.css): шапка, стол, таблица и подвал общие. */

/* Полоса стола: заголовок и одна строка; главное — ниже, на бумаге. */
.band__in { display: grid; gap: var(--space-lg); justify-items: start; padding-block: var(--space-2xl) var(--space-3xl); }
.band h1 { text-wrap: balance; }
.band .lead { max-width: 52ch; }
.band__meta { color: var(--color-ink-2); }

/* Журнал: дата слева крупно, справа документ и что изменилось. */
.log { margin-top: var(--space-2xl); }
.log__empty { padding-block: var(--space-xl); font-size: var(--text-lead); color: var(--color-ink-2); }
.log__entry { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: var(--space-2xl); padding-block: var(--space-xl); border-top: 1px solid var(--color-rule-2); }
.log__entry:last-child { border-bottom: 1px solid var(--color-rule-2); }
.log__when { display: grid; gap: var(--space-2xs); align-content: start; font-size: var(--text-sm); color: var(--color-muted); }
.log__when strong { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.02em; color: var(--color-ink); }
/* Вступает в силу позже: дата отмечена зелёной чертой — к ней надо готовиться. */
.log__when--soon strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.24em; text-decoration-color: var(--color-accent); }
.log__body { display: grid; gap: var(--space-sm); justify-items: start; min-width: 0; }
.log__doc { max-width: 60ch; font-size: var(--text-title); letter-spacing: 0; overflow-wrap: break-word; }
.log__act { font-size: var(--text-sm); color: var(--color-ink-2); }
.log__note { font-weight: 500; }
.log__stats { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); margin: var(--space-xs) 0 0; }
.log__stats div { display: grid; gap: var(--space-3xs); }
.log__stats dt { font-size: var(--text-sm); color: var(--color-muted); }
.log__stats dd { margin: 0; font-size: var(--text-lg); font-weight: 600; }
.log__points { width: 100%; border-top: 1px solid var(--color-rule); }
.log__points summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 48px; font-weight: 500; cursor: pointer; list-style: none; }
.log__points summary::-webkit-details-marker { display: none; }
.log__points summary::after { content: "+"; flex: none; color: var(--color-muted); }
.log__points[open] summary::after { content: "\2212"; }
.log__points summary:hover { text-decoration: underline; text-decoration-color: var(--color-accent-2); }
.log__points summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.log__points summary:active { color: var(--color-ink-2); }
.log__points p { padding-bottom: var(--space-md); max-width: 70ch; overflow-wrap: break-word; }

/* Политика: один столбец для чтения, таблица фактов — таблица главной. */
.prose { display: grid; gap: var(--space-md); justify-items: start; margin-top: var(--space-2xl); }
.prose > * { max-width: 65ch; }
.prose h2 { margin-top: var(--space-xl); font-size: var(--text-title); letter-spacing: 0; }
.prose .muted { color: var(--color-ink-2); }
.prose code { padding: 0 var(--space-2xs); border-radius: var(--space-2xs); background: var(--color-paper-3); font-size: 0.9em; }
.prose .facts-table { max-width: none; margin-top: var(--space-xs); }
.facts-table tbody tr:first-child td { font-size: var(--text-md); }
.facts-table td { padding-right: var(--space-lg); vertical-align: top; }
.facts-table td:first-child { font-weight: 500; }

/* Страница ошибки: стол на первый экран, код крупно рядом с заголовком. */
.oops__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-2xl); align-items: center; min-height: min(calc(100dvh - var(--nav-h)), 40rem); padding-block: var(--space-xl) var(--space-3xl); }
.oops__code { font-size: clamp(6rem, 14vw, 13rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.85; color: var(--color-ink); }
.oops__text { display: grid; gap: var(--space-lg); justify-items: start; }
.oops__text h1 { text-wrap: balance; }
.oops + .close { margin-top: 0; }

@media (max-width: 60rem) {
  .log__entry, .oops__in { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-md); }
  .oops__in { min-height: 0; padding-block: var(--space-xl) var(--space-2xl); }
  .log__when { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs); }
  .log__when strong { font-size: var(--text-lg); }
}
@media (max-width: 40rem) {
  .band h1, .oops__text h1 { font-size: var(--text-display-s); }
  /* «конфиденциальности» — одно длинное слово: на 375 px крупный кегль выходил за край экрана. */
  .band h1 { font-size: clamp(1.75rem, 8.4vw, 2.25rem); }
  .band__in { padding-block: var(--space-xl) var(--space-2xl); }
  .log__stats { gap: var(--space-sm) var(--space-lg); }
  /* Таблица фактов на телефоне: строка — карточка из трёх подписанных абзацев. */
  .facts-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .facts-table tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); padding-block: var(--space-md); border-bottom: 1px solid var(--color-rule); }
  .facts-table td { padding: 0; border-bottom: 0; }
  /* Сильнее правила главной для первой строки указателя: строки таблицы фактов равны. */
  .prose .facts-table tbody tr td:first-child { font-size: var(--text-md); }
  .prose .facts-table tbody tr td:nth-child(2), .prose .facts-table tbody tr td:nth-child(3) { font-size: var(--text-sm); color: var(--color-ink-2); }
  .oops__text .btn { width: 100%; }
}
