/* DocketProof blog — shared stylesheet for /blog/ and /pl/blog/.
   Adapted from the design tokens and typographic choices already
   established in index.html / pl/index.html (same fonts, same dark
   palette, same "§" mark and evidentiary register) — factored into one
   file specifically because the weekly job generates one new page per
   week and copy-pasting the full inline stylesheet into every one of
   them would duplicate ~800 lines per entry, growing without bound. This
   is still hand-written, framework-free CSS — see the C1 report (Q4). */

:root {
  --bg: #0C0D10;
  --surface: #13151A;
  --surface-2: #191C23;
  --border: #262A33;
  --border-strong: #353B47;
  --text: #E9EAEE;
  --text-dim: #9BA1AE;
  --text-faint: #5E6570;
  --ink: #6C8EEF;
  --ink-bright: #8AA6F5;
  --ink-dim: #22304F;
  --valid: #3FB950;
  --invalid: #F85149;
  --radius: 8px;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
code, .mono { font-family: var(--mono); }

/* ---------- NAV (same shape as the landing page) ---------- */
nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(12,13,16,0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}
nav .wrap { max-width: 1080px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand .mark { color: var(--ink); font-family: var(--serif); font-size: 20px; line-height: 1; }
.navlinks { display: flex; gap: 28px; font-size: 14px; color: var(--text-dim); list-style: none; }
.navlinks a { text-decoration: none; }
.navlinks a:hover { color: var(--text); }
.lang-switch a {
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--text-dim);
}
.lang-switch a:hover { border-color: var(--ink); color: var(--ink-bright); }
@media (max-width: 640px) { .navlinks { display: none; } }

/* ---------- REPORT ENTRY ---------- */
main { padding: 64px 0 80px; }
.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before { content: ""; width: 20px; height: 1px; background: var(--border-strong); }
h1.report-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  max-width: 22ch;
}
.report-body {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 62ch;
}
.report-body p { margin-bottom: 18px; }
.report-body p:last-child { margin-bottom: 0; }
.report-body code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.92em;
  color: var(--ink-bright);
}
.report-body a { color: var(--ink-bright); text-decoration: underline; text-underline-offset: 3px; }
.report-meta {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-faint);
}
.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
}
.back-link:hover { color: var(--ink-bright); }

/* ---------- INDEX LIST ---------- */
.blog-list { list-style: none; margin-top: 44px; }
.blog-list li {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.blog-list li:first-child { border-top: none; }
.blog-list a {
  display: block;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--text);
}
.blog-list a:hover { color: var(--ink-bright); }
.blog-list time {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-faint);
}
.empty-note { margin-top: 44px; color: var(--text-dim); font-size: 15px; }

/* ---------- FOOTER (same as the landing page) ---------- */
footer { padding: 44px 0 64px; border-top: 1px solid var(--border); }
footer .wrap { max-width: 1080px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-links { display: flex; gap: 22px; list-style: none; font-size: 13px; color: var(--text-dim); }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-meta { font-family: var(--mono); font-size: 12px; color: var(--text-faint); display: flex; align-items: center; gap: 8px; }
.foot-meta .mark { font-family: var(--serif); color: var(--ink); font-size: 15px; }
