* {
  box-sizing: border-box;
}

:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --surface-alt: #f1ece6;
  --text: #1f2933;
  --muted: #68717a;
  --accent: #b35c1e;
  --accent-dark: #8d4513;
  --border: #e2d8cc;
  --shadow: 0 14px 34px rgba(31, 41, 51, 0.08);
  --radius: 18px;
  --max: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(135deg, #2e353d 0%, #4b5560 100%);
  color: #fff;
  padding: 24px 0 78px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.logo {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}

.nav a:hover {
  color: #fff;
}

.hero {
  padding-top: 56px;
}

.hero-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  padding: 38px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-box h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.08;
}

.hero-box p {
  margin: 0;
  max-width: 860px;
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
}

.main-content {
  margin-top: -34px;
  padding-bottom: 64px;
}

.section {
  margin-top: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-card {
  padding: 30px;
}

.intro-card h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.65rem;
  line-height: 1.25;
}

.highlight-box {
  margin-top: 20px;
  padding: 20px 22px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  padding: 22px;
}

.post-card h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
  line-height: 1.32;
}

.post-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

.button:hover {
  background: var(--accent-dark);
  color: #fff;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.article-card {
  padding: 30px;
}

.article-card h1 {
  margin-top: 0;
  line-height: 1.12;
  font-size: clamp(2rem, 4vw, 3rem);
}

.article-card h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: 1.5rem;
  line-height: 1.24;
}

.article-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.sidebar {
  padding: 22px;
  position: sticky;
  top: 20px;
}

.sidebar h3 {
  margin-top: 0;
}

.sidebar ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

.cta-box {
  margin-top: 28px;
  padding: 22px;
  border-radius: 16px;
  background: #f3e9de;
  border: 1px solid #dfc9b3;
}

.site-footer {
  background: #2b3138;
  color: rgba(255,255,255,0.88);
  padding: 34px 0;
  margin-top: 56px;
}

.site-footer a {
  color: #f0b98d;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.muted {
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .hero-box,
  .article-card,
  .intro-card {
    padding: 24px;
  }
}