/* ==========================================================================
   totalitarizam.oglas.app — single stylesheet
   Direction: sober archival documentary — warm paper, ink type, oxblood accent.
   Fonts are loaded by the shell (Newsreader display serif + Inter UI);
   system fallbacks are declared here. No dependencies, no external requests.

   1 tokens  2 reset/base  3 layout  4 header  5 hero  6 section + prose
   7 compare  8 matrix  9 timeline  10 death chart  11 verdict  12 references
   13 buttons/tags/meta  14 footer  15 404  16 utilities + responsive + print
   ========================================================================== */

/* 1 — tokens --------------------------------------------------------------- */
:root {
  --paper: #f3efe6;
  --paper-2: #e9e3d6;
  --ink: #17150f;
  --ink-soft: #4b463b;
  --rule: rgba(23, 21, 15, 0.16);
  --accent: #8b2b24;
  --accent-deep: #6f211b;
  --side-a: #8a5a3b;
  --side-b: #435a6b;
  --dark: #14120d;
  --foot-ink: #e7e1d3;
  --foot-ink-soft: #b3ab9b;
  --foot-ink-faint: #938b7c;

  --font-display: "Newsreader", Georgia, "Times New Roman", Times, serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --content: 760px;
  --measure: 68ch;
  --head-h: 64px;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t: 180ms;
}

/* 2 — reset / base --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 18px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.06rem;
  line-height: 1.68;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color var(--t) var(--ease);
}

a:hover {
  color: var(--accent-deep);
}

::selection {
  background: rgba(139, 43, 36, 0.18);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.section--dark :focus-visible,
.site-foot :focus-visible {
  outline-color: var(--paper);
}

/* Progressive enhancement contract: filtered rows must really disappear. */
[hidden] {
  display: none !important;
}

/* Anchor offset is owned by html { scroll-padding-top } only — adding
   scroll-margin here as well would double the offset. */

main {
  display: block;
}

/* 3 — layout --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

/* 4 — header --------------------------------------------------------------- */
.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 11px 16px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform var(--t) var(--ease);
}

.skip:focus {
  transform: none;
  color: var(--paper);
  outline-color: var(--paper);
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--t) var(--ease);
}

.site-head.is-scrolled {
  box-shadow: 0 14px 30px -28px rgba(23, 21, 15, 0.6), 0 1px 0 rgba(23, 21, 15, 0.06);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.2vw, 26px);
  min-height: var(--head-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark-mark {
  display: inline-flex;
  flex: none;
  color: var(--accent);
}

.wordmark-mark svg {
  display: block;
}

.wordmark-text {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.wordmark-text em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(9px, 1.5vw, 19px);
  min-width: 0;
}

.nav-link {
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 6px 8px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.lang-switch:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.head-cta {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 9px 13px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t) var(--ease);
}

.head-cta:hover {
  background: var(--accent);
  color: var(--paper);
}

.progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 100ms linear;
}

/* 5 — hero ----------------------------------------------------------------- */
.hero {
  padding-block: clamp(36px, 6.5vw, 86px) clamp(38px, 6.5vw, 86px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.hero .eyebrow {
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 0.32em;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-dek {
  max-width: 56ch;
  margin: 0 0 1em;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 1.9vw, 1.3rem);
  line-height: 1.56;
}

.hero-note {
  max-width: 52ch;
  margin: 0 0 1.7em;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 clamp(22px, 3vw, 34px);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-facts li {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.hero-facts li + li {
  padding-left: 18px;
  border-left: 1px solid var(--rule);
}

.hero-facts [data-reading-time],
.hero-facts [data-ref-count] {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-art-img {
  display: block;
  width: 100%;
  max-width: 430px;
  height: auto;
}

/* 6 — section + prose ------------------------------------------------------ */
.section {
  padding-block: clamp(44px, 6.5vw, 84px);
  border-top: 1px solid var(--rule);
}

main > .section:first-child,
.hero + .section {
  border-top: 0;
}

.section-head {
  max-width: var(--content);
  margin: 0 0 clamp(22px, 3.4vw, 38px);
}

.eyebrow {
  display: flex;
  align-items: center;
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-num {
  margin-right: 10px;
  padding-right: 10px;
  border-right: 1px solid var(--rule);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section-dek {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(1.06rem, 1.6vw, 1.18rem);
  font-style: italic;
  line-height: 1.55;
}

.prose {
  max-width: var(--content);
}

.prose p {
  max-width: var(--measure);
  margin: 0 0 1.1em;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.72;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose > .prose-lead {
  max-width: var(--measure);
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.6;
}

.prose strong {
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

.prose a {
  color: var(--accent);
}

.prose a:hover {
  color: var(--accent-deep);
}

.prose ul:not(.ref-list),
.prose ol:not(.ref-list) {
  max-width: var(--measure);
  margin: 0 0 1.1em;
  padding-left: 1.35em;
  list-style: disc;
}

.prose ol:not(.ref-list) {
  list-style: decimal;
}

.prose ul:not(.ref-list) li,
.prose ol:not(.ref-list) li {
  margin: 0 0 0.4em;
}

.cite {
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.86em;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 43, 36, 0.38);
  white-space: nowrap;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
}

.cite:hover {
  color: var(--accent-deep);
  border-bottom-color: currentColor;
}

.cite-note {
  max-width: var(--content);
  margin: clamp(22px, 3vw, 34px) 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  line-height: 1.7;
}

/* 7 — compare -------------------------------------------------------------- */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(24px, 3.4vw, 38px) 0 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--rule);
}

.compare-col {
  padding: clamp(16px, 2.4vw, 24px);
  background: var(--paper);
  border-top: 3px solid var(--rule);
}

.compare-col--a {
  border-top-color: var(--side-a);
}

.compare-col--b {
  border-top-color: var(--side-b);
}

.compare-label {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.compare-col--a .compare-label {
  color: var(--side-a);
}

.compare-col--b .compare-label {
  color: var(--side-b);
}

.compare-list {
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  line-height: 1.55;
}

.compare-list li {
  position: relative;
  padding: 9px 0 9px 18px;
  border-top: 1px solid var(--rule);
}

.compare-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.compare-list li::before {
  content: "";
  position: absolute;
  top: 1.28em;
  left: 0;
  width: 7px;
  height: 1px;
  background: currentColor;
}

.compare-list li:first-child::before {
  top: 0.72em;
}

/* 8 — matrix --------------------------------------------------------------- */
.matrix {
  margin: clamp(24px, 3.4vw, 38px) 0 0;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}

.matrix-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 14px;
}

.matrix-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.matrix-filter {
  -webkit-appearance: none;
  appearance: none;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease),
    border-color var(--t) var(--ease), transform var(--t) var(--ease);
}

.matrix-filter:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.matrix-filter:active {
  transform: translateY(1px);
}

.matrix-filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.matrix-table {
  width: 100%;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.5;
}

.matrix-table thead th {
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.matrix-table thead th:first-child {
  width: 24%;
  padding-left: 0;
}

.matrix-table tbody th,
.matrix-table tbody td {
  padding: 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.matrix-table tbody th:first-child,
.matrix-table tbody td:first-child {
  padding-left: 0;
}

.matrix-row:last-child th,
.matrix-row:last-child td {
  border-bottom: 0;
}

.matrix-row:nth-child(even) {
  background: rgba(233, 227, 214, 0.5);
}

.matrix-dim {
  width: 24%;
  color: var(--ink);
  font-weight: 600;
}

.matrix-dim .tag {
  display: flex;
  width: max-content;
  margin: 6px 0 0;
}

.matrix-table .tag {
  padding: 3px 7px;
  font-size: 0.55rem;
}

.matrix-cell {
  width: 38%;
  color: var(--ink-soft);
}

/* 9 — timeline ------------------------------------------------------------- */
.timeline {
  margin: clamp(24px, 3.4vw, 38px) 0 0;
}

.timeline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.timeline-col {
  min-width: 0;
  padding-left: clamp(14px, 2vw, 22px);
  border-left: 1px solid var(--rule);
}

.timeline-col--a {
  border-left-color: rgba(138, 90, 59, 0.5);
}

.timeline-col--b {
  border-left-color: rgba(67, 90, 107, 0.5);
}

.timeline-title {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline-col--a .timeline-title {
  color: var(--side-a);
}

.timeline-col--b .timeline-title {
  color: var(--side-b);
}

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

.tl-event {
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--rule);
}

.tl-event:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.tl-year {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.timeline-col--a .tl-year {
  color: var(--side-a);
}

.timeline-col--b .tl-year {
  color: var(--side-b);
}

.tl-text {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* Side filter (set by app.js) collapses the grid instead of leaving a hole. */
.timeline[data-side="a"] .timeline-grid,
.timeline[data-side="b"] .timeline-grid {
  grid-template-columns: minmax(0, 1fr);
}

.timeline[data-side="a"] .timeline-col--b,
.timeline[data-side="b"] .timeline-col--a {
  display: none;
}

/* 10 — death chart --------------------------------------------------------- */
.death-chart {
  margin: clamp(24px, 3.4vw, 38px) 0 0;
  padding: clamp(16px, 2.6vw, 26px);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--paper);
}

.death-scale {
  position: relative;
  min-height: 1.3em;
  margin: 0 0 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.death-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.death-tick:nth-child(1) {
  left: 0;
  transform: none;
}

.death-tick:nth-child(2) {
  left: 25%;
}

.death-tick:nth-child(3) {
  left: 50%;
}

.death-tick:nth-child(4) {
  left: 75%;
}

.death-tick:nth-child(5) {
  left: 100%;
  transform: translateX(-100%);
}

.death-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label range"
    "track track";
  column-gap: clamp(10px, 2vw, 22px);
  row-gap: 8px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.death-row:last-of-type {
  border-bottom: 0;
}

.death-label {
  grid-area: label;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
}

.death-track {
  grid-area: track;
  position: relative;
  height: 14px;
  overflow: hidden;
  border-radius: 2px;
  background-color: rgba(23, 21, 15, 0.055);
  background-image: linear-gradient(90deg, rgba(23, 21, 15, 0.12) 1px, transparent 1px);
  background-size: 25% 100%;
}

.death-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  min-width: 2px;
  border-radius: 2px;
  background: var(--side-a);
  transition: width 900ms var(--ease);
  will-change: width;
}

.death-bar--a {
  background: var(--side-a);
}

.death-bar--b {
  background: var(--side-b);
}

/* No-JS fallback: the six checked rows stay visible and correctly sized.
   (app.js replaces these with animated inline widths.) */
.death-bar[data-min="5.7"][data-max="6"] {
  left: 47.5%;
  width: 2.5%;
}

.death-bar[data-min="11"][data-max="12"] {
  left: 91.667%;
  width: 8.333%;
}

.death-bar[data-min="0.68"][data-max="0.75"] {
  left: 5.667%;
  width: 0.583%;
}

.death-bar[data-min="1"][data-max="2"] {
  left: 8.333%;
  width: 8.333%;
}

.death-bar[data-min="3.5"][data-max="5"] {
  left: 29.167%;
  width: 12.5%;
}

.death-bar[data-min="6"][data-max="9"] {
  left: 50%;
  width: 25%;
}

.death-range {
  grid-area: range;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

.death-range strong {
  font-weight: 600;
}

.death-note {
  max-width: 74ch;
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* 11 — verdict (dark band) ------------------------------------------------- */
.section--dark {
  --ink: #f0ebdf;
  --ink-soft: #c3bbaa;
  --rule: rgba(240, 235, 223, 0.18);
  --accent: #e2a99c;
  --accent-deep: #f3d8cf;
  background: var(--dark);
  color: var(--ink);
}

.section--dark .prose p {
  color: var(--ink);
}

.section--dark .cite {
  color: var(--accent);
  border-bottom-color: rgba(226, 169, 156, 0.45);
}

.section--dark .cite:hover {
  color: var(--accent-deep);
  border-bottom-color: currentColor;
}

.section--dark .cite-note {
  color: var(--ink-soft);
  border-top-color: var(--rule);
}

.verdict-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(24px, 3.4vw, 40px) 0 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--rule);
}

.verdict-card {
  padding: clamp(18px, 2.4vw, 26px);
  border-top: 3px solid rgba(240, 235, 223, 0.35);
  background: #1b1811;
}

.verdict-card--shared,
.verdict-card--different {
  border-top-color: rgba(240, 235, 223, 0.35);
}

.verdict-card--conclusion {
  border-top-color: var(--accent);
  background: #221d14;
}

.verdict-label {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.verdict-card--conclusion .verdict-label {
  color: var(--accent);
}

.verdict-card > p:not(.verdict-label) {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.62;
}

/* 12 — references ---------------------------------------------------------- */
.refs {
  max-width: var(--content);
}

.ref-list {
  max-width: var(--content);
  margin: 1.4em 0 0;
  counter-reset: ref;
}

.ref-item {
  position: relative;
  margin: 0;
  padding: 10px 0 10px 2.9em;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ref-item::before {
  counter-increment: ref;
  content: counter(ref, decimal-leading-zero);
  position: absolute;
  top: 12px;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.ref-item:last-child {
  border-bottom: 0;
}

.ref-item em {
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
}

.ref-item:target {
  background: rgba(139, 43, 36, 0.07);
  box-shadow: inset 2px 0 0 var(--accent);
}

/* 13 — buttons / tags / meta ---------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease),
    border-color var(--t) var(--ease), transform var(--t) var(--ease);
}

.button:hover {
  background: var(--ink);
  color: var(--paper);
}

.button:active {
  transform: translateY(1px);
}

.button--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.button--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.button--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.button--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.button--small {
  padding: 9px 14px;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.site-foot .button--ghost {
  border-color: rgba(243, 239, 230, 0.32);
  color: var(--foot-ink);
}

.site-foot .button--ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--dark);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.tag--shared {
  color: var(--side-b);
}

.tag--partial {
  color: var(--side-a);
}

.tag--different {
  color: var(--accent);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 14 — footer -------------------------------------------------------------- */
.site-foot {
  background: var(--dark);
  color: var(--foot-ink-soft);
  font-family: var(--font-ui);
}

.foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(36px, 5.5vw, 64px);
}

.foot-col {
  min-width: 0;
}

.foot-col--brand {
  grid-area: auto;
}

.foot-col--meta {
  text-align: left;
}

.foot-brand {
  margin: 0 0 10px;
  color: var(--foot-ink);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.foot-note {
  max-width: 36ch;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.65;
}

.foot-nav {
  column-count: 2;
  column-gap: clamp(18px, 3vw, 36px);
  font-size: 0.78rem;
  line-height: 1.5;
}

.foot-nav a {
  display: block;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  color: var(--foot-ink-soft);
  text-decoration: none;
  break-inside: avoid;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.foot-nav a:hover {
  color: var(--foot-ink);
  border-bottom-color: rgba(243, 239, 230, 0.4);
}

.foot-stat {
  margin: 0 0 10px;
  font-size: 0.76rem;
  line-height: 1.6;
}

.foot-stat [data-reading-time],
.foot-stat [data-ref-count] {
  color: var(--foot-ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.foot-build {
  margin: 0 0 16px;
  color: var(--foot-ink-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.6;
}

.foot-build code {
  color: var(--foot-ink);
}

.foot-legal {
  padding-block: 16px 26px;
  border-top: 1px solid rgba(243, 239, 230, 0.14);
}

.foot-legal p {
  max-width: 92ch;
  margin: 0;
  color: var(--foot-ink-faint);
  font-size: 0.72rem;
  line-height: 1.6;
}

.noscript-note {
  margin: 0;
  padding: 14px clamp(18px, 4vw, 40px);
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: center;
}

/* 15 — 404 ----------------------------------------------------------------- */
.is-404 {
  min-height: 100vh;
  background: var(--paper);
}

.notfound {
  max-width: var(--content);
  padding-block: clamp(56px, 13vh, 150px);
}

.notfound h1 {
  max-width: 22ch;
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 52ch;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.6;
}

.notfound-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

/* 16 — utilities / responsive / print ------------------------------------- */
/* Mobile/tablet header: the fixed shell has one nav element and no menu button,
   so the nav moves to its own scrollable row under the wordmark instead of
   disappearing. Anchors keep landing below the taller sticky header because
   --head-h is raised to the real height at this breakpoint. */
@media (max-width: 1000px) {
  :root {
    --head-h: 78px;
  }

  .head-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: 44px 32px;
    grid-template-areas:
      "brand lang cta"
      "nav nav nav";
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    min-height: 0;
  }

  .wordmark {
    grid-area: brand;
  }

  .lang-switch {
    grid-area: lang;
  }

  .head-cta {
    grid-area: cta;
  }

  .site-nav {
    grid-area: nav;
    display: flex;
    align-items: center;
    gap: 18px;
    width: auto;
    margin-inline: calc(-1 * clamp(18px, 4vw, 40px));
    padding-inline: clamp(18px, 4vw, 40px);
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid var(--rule);
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 30px), transparent 100%);
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: none;
    padding: 8px 0;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art {
    order: 2;
    margin-top: clamp(24px, 4vw, 40px);
  }

  .hero-art-img {
    max-width: 300px;
  }

  .foot-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .timeline-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(22px, 4vw, 38px);
  }

  .verdict-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .foot-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot-col--brand {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .compare {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
  }

  .matrix {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .matrix-table {
    min-width: 640px;
  }

  .hero-facts {
    gap: 6px 14px;
  }

  .hero-facts li + li {
    padding-left: 14px;
  }

  .prose p {
    font-size: 1.04rem;
  }
}

@media (max-width: 480px) {
  .head-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand lang"
      "nav nav";
  }

  .head-cta {
    display: none;
  }

  .wordmark-text {
    font-size: 0.94rem;
  }

  .site-nav {
    gap: 16px;
  }

  .hero-facts {
    font-size: 0.64rem;
  }

  .foot-nav {
    column-count: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-head,
  .progress,
  .skip,
  .hero-actions,
  .matrix-filters,
  .timeline-controls,
  .noscript-note,
  [data-copy-link] {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .section--dark,
  .site-foot,
  .verdict-card {
    background: #fff !important;
    color: #000 !important;
  }

  .section--dark .prose p,
  .section--dark .section-dek,
  .section--dark h2,
  .section--dark .cite,
  .verdict-card > p,
  .verdict-label,
  .foot-brand,
  .foot-note,
  .foot-nav a,
  .foot-stat,
  .foot-build,
  .foot-legal p {
    color: #000 !important;
  }

  .death-bar {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  a {
    color: #000;
  }
}
