/* ELMOVE-BUILD 2026-12-01T23:45 */
/* ==========================================================================
   MOTYW: ELATION — Elation Movement / Mateusz Formicki
   Ciemny obsydian + złoto. Baza: style-2.css + bibliotheque.css
   + inline z artefakty-samotnosci.html (ujednolicone).
   Strony: artefakty, bibliotheque, blog, index-2, index-3, lumen,
           matforemport, portfolio, projects, sapio, section1–6,
           thread, tips.
   ========================================================================== */

[data-theme="elation"] {
  color-scheme: dark;

  --bg: #0b0a08;
  --bg-2: #0c0b09;
  --surface: #14120e;
  --surface-soft: #17130b;
  --panel: #12100d;

  --text: #f4efe4;
  --text-body: #dfd7c8;
  --muted: #b9b0a0;
  --muted-2: #9c9282;

  --accent: #c6a96a;
  --accent-bright: #ead6a0;
  --accent-warm: #f2c879;
  --accent-soft: rgba(198, 169, 106, 0.08);

  --line: rgba(198, 169, 106, 0.22);
  --border: rgba(198, 169, 106, 0.16);

  --danger: #ff5555;
  --success: #44ff99;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.55);

  --selection-bg: rgba(198, 169, 106, 0.28);
  --selection-text: #fff8ea;
  --scrollbar-thumb: rgba(198, 169, 106, 0.3);

  /* Aliasy wstecznej kompatybilności (stare nazwy → semantyczne) */
  --bg-obsidian: var(--bg);
  --glass-top: rgba(20, 18, 14, 0.92);
  --glass-bottom: rgba(12, 11, 9, 0.96);
  --gold: var(--accent);
  --gold-bright: var(--accent-bright);
  --gold-warm: var(--accent-warm);
  --gold-dim: rgba(198, 169, 106, 0.35);
  --gold-line: var(--line);
  --gold-line-strong: rgba(198, 169, 106, 0.48);
  --text-primary: var(--text);
  --bg-deep: var(--bg);
  --bg-panel: var(--panel);
  --bg-sheet: rgba(20, 18, 14, 0.78);
  --text-main: var(--text);
  --text-soft: var(--text-body);
  --text-muted: var(--muted-2);
  --poem-accent: var(--accent);
  --poem-glow: rgba(198, 169, 106, 0.16);
}

/* Tło strony: nocna winieta + subtelna poświata u szczytu (z style-2.css) */
[data-theme="elation"] body {
  background-color: var(--bg);
  color: var(--text-body);
  font-family: var(--font-serif);
}

[data-theme="elation"] body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% 12%, rgba(42, 30, 22, 0.38) 0%, rgba(12, 11, 9, 0.78) 68%, rgba(9, 8, 7, 0.92) 100%),
    linear-gradient(180deg, rgba(12, 10, 9, 0.48) 0%, rgba(11, 10, 8, 0.76) 50%, rgba(9, 8, 7, 0.92) 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: translateZ(0);
}

[data-theme="elation"] body::before {
  content: "";
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 95vw);
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(218, 175, 98, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Nagłówki w motywie Elation: serif, złoty, wyśrodkowane */
[data-theme="elation"] h1,
[data-theme="elation"] h2,
[data-theme="elation"] h3 {
  font-family: var(--font-serif);
  color: var(--accent-bright);
}

[data-theme="elation"] a {
  color: var(--accent-bright);
}

[data-theme="elation"] a:hover {
  color: #fff0c7;
}
