@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --bg: #0c0b0a;
  --surface: #161412;
  --surface2: #1e1b18;
  --surface3: #262220;
  --text: #e8e0d4;
  --text-dim: #b0a594;
  --text-muted: #7a6f62;
  --gold: #c4943a;
  --gold-dim: #8a6828;
  --gold-glow: rgba(196,148,58,0.15);
  --red: #a34040;
  --red-dim: #6b2a2a;
  --green: #4a8a4a;
  --border: #2a2520;
  --border-light: #352f28;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 18px;
  line-height: 1.78;
  padding: 0;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- LANGUAGE TOGGLE ---- */
/* Hide all lang-tagged elements by default (before JS loads) */
[data-lang] { display: none; }
/* Body-level lang class shows matching, hides non-matching */
body.lang-pl [data-lang="pl"] { display: revert; }
body.lang-pl [data-lang="en"] { display: none; }
body.lang-en [data-lang="en"] { display: revert; }
body.lang-en [data-lang="pl"] { display: none; }
/* Block-level overrides for elements that need display:block */
body.lang-pl div[data-lang="pl"],
body.lang-pl a.article-card[data-lang="pl"],
body.lang-en div[data-lang="en"],
body.lang-en a.article-card[data-lang="en"] { display: block; }
/* Inline overrides for nav links */
body.lang-pl a[data-lang="pl"]:not(.article-card),
body.lang-en a[data-lang="en"]:not(.article-card) { display: inline; }
/* Paragraph overrides */
body.lang-pl p[data-lang="pl"],
body.lang-en p[data-lang="en"] { display: block; }

.lang-toggle {
  font-family: 'Source Sans 3', sans-serif;
  display: inline-flex;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.lang-toggle button {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle button:hover { color: var(--text-dim); }
.lang-toggle button.active {
  background: var(--surface3);
  color: var(--gold);
}

/* ---- SITE HEADER ---- */
.site-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-brand {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.site-brand a { color: var(--text-muted); }
.site-brand a:hover { color: var(--gold); text-decoration: none; }
.site-brand span { color: var(--gold); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.site-nav a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.site-nav a:hover { color: var(--gold); text-decoration: none; }

/* ---- CONTAINER ---- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

/* ---- ARTICLE PAGE: SITE BAR ---- */
.site-bar {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-bar span { color: var(--gold); }
.site-bar a { color: var(--text-muted); }
.site-bar a:hover { color: var(--gold); text-decoration: none; }

/* ---- ARTICLE HEADER ---- */
header { padding: 0 0 2.5rem; border-bottom: 1px solid var(--border); margin-bottom: 3rem; }

.tag {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

h1 {
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1rem;
}
h1 em { font-style: italic; color: var(--gold); }

.subtitle {
  font-size: 1.05rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.6;
}

/* ---- HEADINGS ---- */
h2 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 3.5rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

p { margin-bottom: 1rem; }

/* ---- ARGUMENT BLOCKS ---- */
.arg {
  background: var(--surface);
  border-left: 3px solid var(--gold-dim);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
  border-radius: 0 4px 4px 0;
}
.arg.pipeline { border-left-color: var(--red-dim); }
.arg.counter {
  border-left-color: var(--text-muted);
  background: var(--surface2);
}
.arg .num {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.arg.pipeline .num { color: var(--red); }
.arg.counter .num { color: var(--text-muted); }
.arg h3 { margin-top: 0; font-size: 1.12rem; }

/* ---- SCRIPTURE ---- */
.verse {
  background: var(--surface2);
  border-left: 3px solid var(--red-dim);
  padding: 0.9rem 1.4rem;
  margin: 1rem 0;
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
}
.verse .ref {
  display: block;
  font-style: normal;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: 0.5rem;
}

/* ---- EVIDENCE TAG ---- */
.ev {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface3);
  padding: 0.6rem 1.1rem;
  border-radius: 3px;
  margin: 0.75rem 0;
  line-height: 1.5;
}
.ev strong { color: var(--gold); }

/* ---- TIMELINE ---- */
.tl { display: flex; flex-direction: column; margin: 2rem 0; }
.tl-item { display: flex; gap: 1.2rem; }
.tl-mark { display: flex; flex-direction: column; align-items: center; min-width: 22px; }
.tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold-dim); border: 2px solid var(--gold);
  flex-shrink: 0; margin-top: 7px;
}
.tl-dot.now { background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }
.tl-line { width: 1px; flex-grow: 1; background: var(--border); }
.tl-body { padding-bottom: 1.5rem; }
.tl-body .period {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold);
}
.tl-body .desc { font-size: 0.92rem; color: var(--text-dim); margin-top: 0.2rem; }

/* ---- CHAIN DIAGRAM ---- */
.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 1rem 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
}
.chain .node {
  background: var(--surface3);
  color: var(--text-dim);
  padding: 0.35rem 0.7rem;
  border-radius: 3px;
  border: 1px solid var(--border);
}
.chain .node.compromised {
  border-color: var(--red-dim);
  color: var(--red);
}
.chain .arrow { color: var(--text-muted); font-size: 0.7rem; }

/* ---- SECTION INTRO ---- */
.intro {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  line-height: 1.7;
}

/* ---- ARTICLE FOOTER ---- */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}
footer strong { color: var(--text-dim); font-style: normal; }

/* ---- INDEX PAGE ---- */
.index-hero {
  text-align: center;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.index-hero h1 {
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}
.index-hero .tagline {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-style: italic;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.articles-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.article-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem 2rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  border-color: var(--gold-dim);
  background: var(--surface2);
  text-decoration: none;
}
.article-card .card-meta {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.article-card .card-date { color: var(--text-muted); }
.article-card .card-tag {
  color: var(--gold-dim);
  background: var(--surface3);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  font-size: 0.65rem;
}
.article-card h2 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin: 0 0 0.5rem;
  padding: 0;
  border: none;
}
.article-card .card-excerpt {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---- ABOUT PAGE ---- */
.about-content {
  padding: 3rem 0;
}
.about-content h1 {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 2rem;
}
.about-content p {
  color: var(--text-dim);
  margin-bottom: 1.2rem;
}

/* ---- SITE FOOTER ---- */
.site-footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-align: center;
}
.site-footer .verse-footer {
  font-family: 'Crimson Pro', Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
  letter-spacing: 0;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  h1 { font-size: 1.7rem; }
  .index-hero h1 { font-size: 1.6rem; }
  .arg { padding: 1.2rem 1.3rem; }
  body { font-size: 17px; }
  .site-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .article-card { padding: 1.3rem 1.4rem; }
  .article-card h2 { font-size: 1.2rem; }
}
