﻿:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #0a66c2;
  --border: #dbe3ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header,
.site-footer {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-footer {
  border-top: 1px solid var(--border);
  border-bottom: 0;
  margin-top: 40px;
}

.site-header .container,
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  text-decoration: none;
  font-weight: 700;
  color: #0f172a;
}

nav a {
  text-decoration: none;
  color: var(--text);
  margin-left: 14px;
}

main {
  padding-top: 28px;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 8px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

.post-grid {
  display: grid;
  gap: 16px;
}

.post-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: start;
}

.thumb-link {
  display: block;
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.post-content h2 {
  margin-top: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

a {
  color: var(--primary);
}

.post article {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.post h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.2;
  color: #0f172a;
}

.post h2 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.3;
  color: #0f172a;
}

.post p {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.post article img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 8px 0 22px;
}

.post p a {
  text-underline-offset: 2px;
}

.post-back {
  max-width: 760px;
  margin: 14px auto 0;
}

@media (max-width: 640px) {
  .post-card {
    grid-template-columns: 1fr;
  }

  .post article {
    padding: 20px 16px;
  }
}
