:root {
  --bg: #f8f7fc;
  --surface: #ffffff;
  --border: #e5e1f5;
  --text: #1e1b2e;
  --text-secondary: #635f77;
  --text-faint: #8b87a0;
  --accent: #7c5cfa;
  --accent-2: #9d6cfa;
  --accent-gradient: linear-gradient(135deg, #7c5cfa 0%, #9d6cfa 100%);
  --accent-soft: #f1edfe;
  --warn-bg: #fef3c7;
  --warn-border: #f5d78e;
  --warn-text: #7a5b06;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14121f;
    --surface: #1c1930;
    --border: #2e2a48;
    --text: #f1eefb;
    --text-secondary: #b7b2d1;
    --text-faint: #857fa8;
    --accent: #9d8bff;
    --accent-2: #b79bff;
    --accent-gradient: linear-gradient(135deg, #7c5cfa 0%, #9d6cfa 100%);
    --accent-soft: #241f3d;
    --warn-bg: #3a3117;
    --warn-border: #5c4b1c;
    --warn-text: #f0d27a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Heebo, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.site-header .brand {
  font-weight: 800;
  font-size: 1.15rem;
  background-image: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-header .brand:hover { text-decoration: none; }
.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-header nav a { color: var(--text-secondary); }
.site-header nav a.lang-switch {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--text);
}
.site-header nav a.cta {
  background-image: var(--accent-gradient);
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
}
.site-header nav a.cta:hover { text-decoration: none; opacity: 0.92; }

main { padding: 44px 0 64px; }

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  margin: 0 0 12px;
  font-weight: 800;
  text-wrap: balance;
}

.dek {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.meta {
  color: var(--text-faint);
  font-size: 0.88rem;
  margin: 0 0 32px;
}

article h2 {
  font-size: 1.4rem;
  margin: 40px 0 14px;
  font-weight: 700;
}

article p, article li {
  font-size: 1.03rem;
  color: var(--text);
}

article ul, article ol {
  padding-inline-start: 1.3em;
}

article li { margin-bottom: 8px; }

.safety-note {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.95rem;
  margin: 28px 0;
}

.cta-box {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin: 40px 0;
  text-align: center;
}
.cta-box h3 { margin: 0 0 8px; font-size: 1.2rem; }
.cta-box p { margin: 0 0 18px; color: var(--text-secondary); }
.cta-button {
  display: inline-block;
  background-image: var(--accent-gradient);
  color: #fff !important;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 12px;
  text-decoration: none !important;
}
.cta-button:hover { opacity: 0.92; }

.disclaimer-block {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 24px;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.site-footer p { margin: 0; font-size: 0.88rem; color: var(--text-faint); }
.site-footer .links a { margin: 0 8px; color: var(--text-secondary); }

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.post-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
}
.post-list h2 { margin: 0 0 8px; font-size: 1.25rem; }
.post-list p { margin: 0; color: var(--text-secondary); }
.post-list a.title-link { color: var(--text); }
.post-list a.title-link:hover { color: var(--accent); }

[dir="rtl"] article ul, [dir="rtl"] article ol { padding-inline-start: 1.3em; }
