:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --text: #171717;
  --muted: #666666;
  --line: #e6e2da;
  --accent: #b91c1c;
  --accent-dark: #7f1d1d;
  --accent-soft: #fff1f1;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: Inter, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.top-nav {
  display: flex;
  gap: 18px;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
}

.top-nav a:hover {
  color: var(--accent);
}

.blog-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #faf9f6 100%);
}

.section-label {
  font-family: Inter, Arial, sans-serif;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.blog-hero h1 {
  max-width: 850px;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.hero-text {
  max-width: 720px;
  margin-top: 24px;
  font-size: 1.18rem;
  color: var(--muted);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  padding: 56px 0;
}

.section-title {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.section-title p {
  color: var(--muted);
  margin-top: 4px;
}

.articles-list {
  display: grid;
  gap: 28px;
}

.article-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.article-thumb-placeholder {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(185, 28, 28, 0.12), rgba(0, 0, 0, 0.04)),
    var(--bg-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.article-card h3 {
  font-size: 1.65rem;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
}

.article-card h3:hover {
  color: var(--accent);
}

.article-summary {
  color: var(--muted);
  margin: 12px 0;
}

.card-meta,
.article-meta {
  font-family: Inter, Arial, sans-serif;
  color: var(--muted);
  font-size: 0.86rem;
}

.read-more {
  display: inline-block;
  margin-top: 14px;
  font-family: Inter, Arial, sans-serif;
  color: var(--accent);
  font-weight: 700;
}

.sidebar {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.side-card {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.side-card h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.side-card p,
.topics {
  color: var(--muted);
}

.topics {
  list-style-position: inside;
}

.article-page {
  max-width: 820px;
  padding: 56px 0 72px;
}

.back-link {
  display: inline-block;
  font-family: Inter, Arial, sans-serif;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 32px;
}

.article-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.article-header h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 500;
  margin-bottom: 18px;
}

.article-cover-wrapper {
  margin: 0 0 36px;
}

.article-cover {
  width: 100%;
  border: 1px solid var(--line);
}

.article-content {
  font-size: 1.12rem;
}

.article-content h1 {
  display: none;
}

.article-content h2 {
  font-size: 1.8rem;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 42px 0 14px;
}

.article-content h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 600;
  margin: 32px 0 10px;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 0 12px 20px;
  margin: 28px 0;
  color: #333;
  background: var(--accent-soft);
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px 26px;
}

.article-content li {
  margin-bottom: 6px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.93rem;
}

.article-content th,
.article-content td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
}

.article-content th {
  background: var(--bg-soft);
}

.article-content figure {
  margin: 32px 0;
}

.article-content figcaption {
  font-family: Inter, Arial, sans-serif;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 8px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.9rem;
}

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

  .sidebar {
    border-left: 0;
    padding-left: 0;
  }
}


@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .top-nav {
    flex-wrap: wrap;
  }

  .blog-hero {
    padding: 48px 0 36px;
  }

  .article-card {
    grid-template-columns: 1fr;
  }
}
