/* Moscopole — editorial longform. Light-first, semantic tokens only. */
:root {
  --bg: #faf6ee;
  --surface: #fffdf7;
  --surface-2: #f3ecdd;
  --ink: #221b11;
  --muted: #5b5240;
  --line: #ddd2bd;
  --accent: #8f3a0e;
  --accent-ink: #7c3108;
  --accent-soft: #f5e3cf;
  --focus: #1a5fb4;
  --on-accent: #fffdf7;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
}
html[data-theme="dark"] {
  --bg: #141009;
  --surface: #1f1810;
  --surface-2: #292015;
  --ink: #f3e8d3;
  --muted: #cabd9f;
  --line: #4a3f2d;
  --accent: #e89a52;
  --accent-ink: #f2b878;
  --accent-soft: #3a2a17;
  --focus: #8ab4ff;
  --on-accent: #17110a;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.75;
}
a { color: var(--accent-ink); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--surface); color: var(--ink);
  padding: 0.6rem 1rem; border: 2px solid var(--accent);
  font-family: var(--sans); font-size: 0.95rem; text-decoration: none;
}
.skip:focus { top: 1rem; }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--sans);
}
.topbar .wrap {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-top: 0.6rem; padding-bottom: 0.6rem;
}
.brand { font-size: 0.85rem; letter-spacing: 0.02em; color: var(--muted); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--accent-ink); }
.langnav { display: flex; gap: 0.25rem; align-items: center; font-size: 0.9rem; }
.langnav a { padding: 0.35rem 0.7rem; border-radius: 999px; text-decoration: none; border: 1px solid transparent; }
.langnav a[aria-current="true"] { border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.themebtn {
  font: inherit; font-size: 0.9rem; cursor: pointer;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.85rem;
}
.themebtn:hover { border-color: var(--accent); color: var(--accent-ink); }
.hero { padding: 3rem 0 1rem; }
.kicker {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink);
  margin: 0 0 1rem;
}
h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.12; letter-spacing: -0.01em;
  margin: 0 0 1rem; font-weight: 700;
}
.deck { font-size: 1.25rem; line-height: 1.6; color: var(--muted); margin: 0 0 1.25rem; }
.byline { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin: 0 0 2rem; }
.byline span + span::before { content: " · "; }
h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.25;
  margin: 3rem 0 1rem; padding-top: 1.5rem; border-top: 3px solid var(--accent);
}
h3 { font-size: 1.25rem; line-height: 1.4; margin: 2rem 0 0.5rem; }
p { margin: 0 0 1.1rem; }
.answer {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 6px solid var(--accent); border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.4rem; margin: 2rem 0;
}
.answer h2 { border: 0; padding: 0; margin: 0 0 0.6rem; font-size: 1.15rem; font-family: var(--sans); }
.answer p:last-child { margin-bottom: 0; }
figure { margin: 2rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
figure img { display: block; width: 100%; height: auto; }
figcaption {
  font-family: var(--sans); font-size: 0.88rem; line-height: 1.6;
  color: var(--muted); padding: 0.9rem 1.1rem;
}
figcaption .lic { display: block; margin-top: 0.35rem; }
figcaption a { color: inherit; }
.circuits { margin: 1.5rem 0; }
.circuit-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.circuit-btns button {
  font-family: var(--sans); font-size: 0.92rem; cursor: pointer;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem;
  min-height: 44px;
}
.circuit-btns button[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.circuit-svg {
  width: 100%; height: auto; display: block;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.circuit-svg text { font-family: var(--sans); fill: var(--ink); }
.circuit-svg .edge { stroke: var(--muted); stroke-width: 2; fill: none; }
.circuit-svg .edge.diaspora { stroke-dasharray: 7 5; }
.circuit-svg .hub { fill: var(--accent); }
.circuit-svg .hub-label { fill: var(--on-accent); font-weight: 700; }
.circuit-svg .node { fill: var(--surface-2); stroke: var(--accent); stroke-width: 2; }
.circuit-svg .node-label { font-size: 12.5px; }
.circuit-svg .group-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; fill: var(--accent-ink); }
.circuit-svg g[data-circuit] { transition: opacity 0.25s ease; }
.circuit-svg[data-focus="negot"] g[data-circuit]:not([data-circuit~="negot"]),
.circuit-svg[data-focus="scoala"] g[data-circuit]:not([data-circuit~="scoala"]),
.circuit-svg[data-focus="limbi"] g[data-circuit]:not([data-circuit~="limbi"]) { opacity: 0.16; }
.circuit-key { font-family: var(--sans); font-size: 0.92rem; color: var(--muted); }
.circuit-key ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.circuit-key li { margin-bottom: 0.4rem; }
.timeline { list-style: none; margin: 1.5rem 0; padding: 0 0 0 1.6rem; border-left: 3px solid var(--accent); }
.timeline li { position: relative; margin: 0 0 1.4rem; }
.timeline li::before {
  content: ""; position: absolute; left: -2.12rem; top: 0.55em;
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.timeline time { font-family: var(--sans); font-weight: 700; color: var(--accent-ink); display: block; font-size: 0.95rem; }
.know { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 640px) { .know { grid-template-columns: 1fr 1fr; } }
.know section { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.25rem; }
.know h3 { margin-top: 0; font-size: 1.05rem; font-family: var(--sans); }
.know ul { margin: 0; padding-left: 1.15rem; font-size: 1rem; line-height: 1.65; }
.know li { margin-bottom: 0.5rem; }
.sources { font-size: 1rem; }
.sources li { margin-bottom: 0.7rem; }
.method {
  background: var(--surface-2); border-radius: 12px;
  padding: 1.25rem 1.4rem; margin: 2rem 0; font-size: 1rem;
}
.method h2 { border: 0; padding: 0; margin: 0 0 0.6rem; font-size: 1.15rem; font-family: var(--sans); }
footer.site {
  border-top: 1px solid var(--line); margin-top: 3rem;
  padding: 1.5rem 0 2.5rem; font-family: var(--sans); font-size: 0.88rem; color: var(--muted);
}
footer.site nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.totop { display: inline-block; margin-top: 1rem; }
