/*
Theme Name: Начистоту
Theme URI: https://maksimbodnar.ru/
Author: Max Digital Agency
Description: Минимальная тема блога под стилистику лендинга maksimbodnar.ru
Version: 1.0.1
Text Domain: svoy-ai
*/

:root {
  --bg: #09090b;
  --surface: rgba(24, 24, 27, 0.72);
  --text: #f8fafc;
  --muted: rgba(248, 250, 252, 0.64);
  --accent: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.15);
  --border: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --max: 720px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(139, 92, 246, 0.14), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(14, 165, 233, 0.1), transparent 30rem),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

a {
  color: #c4b5fd;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(9, 9, 11, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.brand:hover {
  color: #fff;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.header-nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.header-nav a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
}

.button:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

.site-main {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  flex: 1;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.1rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.page-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-card {
  display: block;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 180ms ease, background 180ms ease;
}

.post-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(24, 24, 27, 0.9);
}

.post-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.post-card .meta {
  margin: 0 0 0.55rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.post-card .excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.single-header {
  margin-bottom: 1.75rem;
}

.single-header .meta {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.entry-content {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(248, 250, 252, 0.9);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.entry-content h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.15rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin: 0 0 1rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
}

.entry-content li {
  margin-bottom: 0.35rem;
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content strong {
  color: #fff;
  font-weight: 650;
}

.entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 0.85rem 0 0.85rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.entry-content code {
  font-size: 0.92em;
  padding: 0.12em 0.35em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.entry-content pre {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.entry-content pre code {
  padding: 0;
  background: none;
}

.cta-box {
  margin-top: 2.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.cta-box p {
  margin: 0 0 0.85rem;
  color: var(--text);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner a {
  color: var(--muted);
}

.footer-inner a:hover {
  color: var(--text);
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.empty {
  color: var(--muted);
}

@media (max-width: 640px) {
  .header-nav .nav-home {
    display: none;
  }

  .site-main {
    padding-top: 1.75rem;
  }
}
