/* verzhykovskyi.com — clean white editorial style. Helvetica only. */

:root {
  --text: #111111;
  --text-dim: #444444;
  --text-faint: #6b6b6b;
  --link: #1a56b0;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --hairline: #e8e8e8;
  --radius: 8px;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --border: var(--hairline);
  --bg-elev: var(--bg-soft);
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  line-height: 1.2;
  margin: 0 0 0.55em;
  letter-spacing: -0.01em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-top: 2.4em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #0d3d85; }
:focus-visible { outline: 2px solid #1a56b0; outline-offset: 2px; border-radius: 3px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.content { max-width: 760px; }

/* ---------- header / nav ---------- */
.site-header { background: var(--bg); padding: 6px 0; }
.site-header .bar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px clamp(16px, 4vw, 32px);
  max-width: 1080px; margin: 0 auto;
}
.brand {
  font-weight: 700; font-size: 1rem;
  color: var(--text); text-decoration: none; white-space: nowrap; letter-spacing: 0.01em;
}
.brand .dot { color: var(--text); }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 0;
  color: var(--text); font-size: 1.3rem; padding: 4px 10px; cursor: pointer;
}
nav.site-nav { margin-left: auto; }
nav.site-nav ul {
  display: flex; flex-wrap: wrap; gap: 2px 6px;
  list-style: none; margin: 0; padding: 0;
}
nav.site-nav a {
  display: block; padding: 6px 8px;
  font-size: 0.9rem; color: var(--text-dim); text-decoration: none;
}
nav.site-nav a:hover { color: var(--text); }
nav.site-nav a[aria-current="page"] { color: var(--text); font-weight: 700; }
.header-tools { display: flex; align-items: center; gap: 8px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  nav.site-nav { display: none; width: 100%; }
  nav.site-nav.open { display: block; }
  .site-header .bar { flex-wrap: wrap; }
  nav.site-nav ul { flex-direction: column; }
}

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--text-faint); margin: 20px 0 0; padding: 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--text-faint); }
.breadcrumb a { color: var(--text-faint); }

/* ---------- hero ---------- */
.hero { padding: clamp(32px, 6vw, 64px) 0 8px; }
.hero .kicker { display: none; }
.hero .sub { font-size: 1.2rem; color: var(--text-dim); max-width: 720px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 6px; padding: 0; list-style: none; }
.hero-split { display: flex; gap: clamp(24px, 5vw, 56px); align-items: center; justify-content: space-between; }
.hero-split .portrait { flex: 0 0 auto; width: clamp(140px, 20vw, 210px); height: auto; border-radius: var(--radius); }
@media (max-width: 640px) { .hero-split { flex-direction: column-reverse; align-items: flex-start; } }

/* ---------- labels (former badges) ---------- */
.badge {
  display: inline; font-size: 0.85rem; color: var(--text-faint);
  padding: 0; border: 0; background: none; letter-spacing: 0; text-transform: none;
}
.badge.paid { color: #a03535; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 14px; margin: 22px 0; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card, .stat-card, .dossier-card {
  background: var(--bg-soft);
  border: 0;
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: none;
}
.stat-card .num { font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--text); line-height: 1.1; }
.stat-card .unit { font-size: 0.9rem; color: var(--text-dim); margin-left: 4px; font-weight: 400; }
.stat-card .label { color: var(--text-dim); font-size: 0.92rem; margin-top: 6px; }
.stat-card .src { font-size: 0.78rem; color: var(--text-faint); margin-top: 10px; display: block; }
.dossier-card h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.dossier-card .meta { font-size: 0.85rem; color: var(--text-faint); display: flex; flex-wrap: wrap; gap: 14px; margin: 2px 0 10px; }
.dossier-card .src-link { font-size: 0.85rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 20px 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { font-size: 0.85rem; font-weight: 700; color: var(--text-dim); letter-spacing: 0; text-transform: none; background: none; }
tr:last-child td { border-bottom: 0; }
td .tier { display: inline-block; width: 1.6em; text-align: center; font-weight: 700; }
.tier-A, .tier-B, .tier-C, .tier-D, .tier-E { color: var(--text-dim); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 26px 0; padding: 0; }
.timeline::before { display: none; }
.timeline li { position: static; margin-bottom: 30px; }
.timeline li::before { display: none; }
.timeline .tl-date { font-size: 0.85rem; color: var(--text-faint); }
.timeline .tl-title { font-weight: 700; font-size: 1.05rem; margin: 2px 0; }
.timeline .tl-desc { color: var(--text-dim); font-size: 0.97rem; }

/* ---------- definition lists ---------- */
dl.kv { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 8px 20px; margin: 18px 0; }
dl.kv dt { font-size: 0.9rem; color: var(--text-faint); padding-top: 2px; letter-spacing: 0; text-transform: none; }
dl.kv dd { margin: 0; }
@media (max-width: 640px) { dl.kv { grid-template-columns: 1fr; gap: 2px 0; } dl.kv dd { margin-bottom: 10px; } }

/* ---------- copy button / media kit ---------- */
.copy-block { position: relative; background: var(--bg-soft); border: 0; border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; }
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  font-size: 0.8rem; font-family: var(--sans);
  background: var(--bg); color: var(--text-dim);
  border: 1px solid var(--hairline); border-radius: 6px;
  padding: 4px 12px; cursor: pointer;
}
.copy-btn:hover { color: var(--text); }
.copy-btn.done { color: #1d7a4f; }

/* ---------- callouts ---------- */
.note { background: var(--bg-soft); border: 0; border-radius: var(--radius); padding: 14px 18px; margin: 20px 0; font-size: 0.95rem; color: var(--text-dim); }
.note.caution { background: #faf1f1; }

/* ---------- source footnote ---------- */
.src-note { font-size: 0.85rem; color: var(--text-faint); }
.src-note a { color: var(--text-faint); }

/* ---------- footer ---------- */
.site-footer { margin-top: 80px; background: var(--bg-soft); font-size: 0.9rem; color: var(--text-dim); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding: 36px 0 8px; }
.site-footer h3 { font-size: 0.9rem; font-weight: 700; color: var(--text); letter-spacing: 0; text-transform: none; font-family: var(--sans); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .fine { padding: 20px 0 28px; font-size: 0.8rem; color: var(--text-faint); }
.site-footer .fine a { text-decoration: underline; color: var(--text-faint); }

/* ---------- graph page ---------- */
#graph-canvas { width: 100%; height: 70vh; min-height: 480px; background: var(--bg-soft); border: 0; border-radius: var(--radius); }
.graph-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0; }

/* ---------- utilities ---------- */
.mono { font-family: var(--mono); font-size: 0.92em; }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.small { font-size: 0.9rem; }
.mt-0 { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--text); color: #fff; padding: 8px 16px; }
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .copy-btn { display: none; }
}

.lang-switch { font-size: 0.85rem; color: var(--text-dim); text-decoration: none; padding: 6px 8px; }
.lang-switch:hover { color: var(--text); text-decoration: underline; }
