:root {
  --bg: #f6f2eb;
  --card: #fffdf8;
  --text: #2f241d;
  --muted: #6c5a4f;
  --line: #e8ddd2;
  --accent: #b9542a;
  --accent-soft: #f2d4c6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Serif SC', serif;
  background: radial-gradient(circle at 0% 0%, #f9efe0 0%, var(--bg) 35%),
    radial-gradient(circle at 100% 100%, #efe3d6 0%, var(--bg) 40%);
  color: var(--text);
  min-height: 100vh;
  position: relative;
}

.bg-shape {
  position: fixed;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  z-index: -1;
}

.bg-shape-left {
  background: #f4b387;
  top: -5rem;
  left: -5rem;
}

.bg-shape-right {
  background: #d8c0ab;
  right: -4rem;
  bottom: -5rem;
}

.site-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.4rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header.compact {
  border-bottom: 1px solid var(--line);
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
}

nav a:hover,
nav a[aria-current='page'] {
  color: var(--accent);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.2rem 3rem;
}

.container.narrow {
  max-width: 760px;
}

.hero {
  padding: 2rem 0 1.5rem;
  animation: rise 0.8s ease;
}

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin: 0;
  line-height: 1.15;
}

.hero-desc {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

.post-card {
  background: color-mix(in srgb, var(--card) 92%, #f6e6d7 8%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(61, 41, 27, 0.09);
}

.post-meta {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.86rem;
}

.post-card h2,
.article h1 {
  margin: 0 0 0.7rem;
  line-height: 1.35;
}

.post-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--accent);
}

.post-card p,
.article p {
  margin: 0;
  color: #4f4037;
  line-height: 1.8;
}

.article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
}

.article p + p {
  margin-top: 0.9rem;
}

.article a {
  color: var(--accent);
}

.article code {
  background: #f3e8dc;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.92em;
}

.article-figure {
  margin: 1.2rem 0;
  padding: 0.55rem;
  background: #fff8f0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.article-figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.article-figure figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.comments-wrap {
  margin-top: 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
}

.comments-wrap h2 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
}

.comment-note {
  color: var(--muted);
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes rise {
  from {
    transform: translateY(8px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 1rem;
  }

  nav a {
    margin-left: 0.7rem;
    font-size: 0.95rem;
  }

  .post-card,
  .article {
    padding: 1rem;
  }
}
