:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-border: #e8edf5;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent: #0ea5a4;
  --accent-soft: #e8fbfa;
  --shadow-soft: 0 12px 34px rgba(15, 23, 42, 0.07);
  --radius-lg: 22px;
  --radius-md: 14px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 0% 0%, #dbeafe 0, transparent 45%),
    radial-gradient(circle at 100% 100%, #e2fbe9 0, transparent 34%),
    var(--bg);
  color: var(--text-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.blog-page {
  padding: 56px 0 76px;
}

.blog-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 36px;
  padding: 0;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
}

.blog-back-link {
  background: rgba(255, 255, 255, 0.72);
  color: #475569;
  border-color: #dbe4f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.blog-back-link:hover {
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  border-color: #cbd5e1;
  text-decoration: none;
}

.blog-title {
  margin: 0;
  font-weight: 650;
  font-size: 50px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.blog-post {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  padding: 30px 32px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-soft);
}

.blog-post h2 {
  margin: 0 0 16px;
  font-weight: 630;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.blog-text {
  margin: 0;
  max-width: 72ch;
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.blog-text img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 24px 0;
}

.blog-text figure {
  margin: 24px 0;
}

.blog-text figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: #64748b;
}

.blog-meta {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.blog-author,
.blog-date {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 520;
  letter-spacing: 0.01em;
}

.blog-author {
  background: var(--accent-soft);
  border: 1px solid #bdeeee;
  color: #0a7f7e;
}

.blog-date {
  background: #f3f6fb;
  border: 1px solid #dce3ee;
  color: #5b6677;
}

.blog-sidebar {
  position: sticky;
  top: 16px;
}

.blog-widget {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
}

.blog-widget h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #1e293b;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-form input {
  width: 100%;
  border: 1px solid #d9e1ec;
  border-radius: var(--radius-md);
  font-size: 14px;
  padding: 11px 12px;
  background: #f9fbff;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-form input::placeholder {
  color: #94a3b8;
}

.search-form input:focus {
  outline: none;
  border-color: rgba(14, 165, 164, 0.65);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.14);
}

.search-form button {
  border: none;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 14px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.search-form button:hover {
  background: #0c8f8e;
}

.search-form button:active {
  transform: translateY(1px);
}

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-list li {
  margin-bottom: 6px;
}

.archive-list a {
  color: #334155;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 11px;
  border-radius: 12px;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.archive-list a:hover,
.archive-list a.active {
  background: var(--accent-soft);
  color: #0a7f7e;
}

.blog-empty {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  font-size: 16px;
  color: #64748b;
}

@media (max-width: 992px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .blog-page {
    padding-top: 40px;
  }

  .blog-header {
    padding: 0;
  }

  .blog-title {
    font-size: 40px;
  }
}
