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

html, body {
  width: 100%;
  height: auto;
  overflow: auto;
  background: #0e0b07;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: #e8e0d0;
}

/* Blog */
.blog-body {
  background: #0e0b07;
  color: #e8e0d0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  min-height: 100vh;
}

.blog-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 3rem;
}

.blog-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #c8a96e;
}

.blog-back {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.blog-back:hover { color: #c8a96e; }

.blog-hero {
  text-align: center;
  margin-bottom: 3.5rem;
}
.blog-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: #e8e0d0;
  margin: 0 0 0.7rem;
  letter-spacing: 0.02em;
}
.blog-hero p {
  color: rgba(255,255,255,0.45);
  font-size: 1rem;
  margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-empty {
  color: rgba(255,255,255,0.35);
  text-align: center;
  grid-column: 1/-1;
  padding: 3rem 0;
}

.blog-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.blog-card:hover {
  border-color: rgba(200,169,110,0.3);
  transform: translateY(-3px);
}

.blog-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.4s;
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }

.blog-card-body {
  padding: 1.3rem 1.4rem 1.5rem;
}

.blog-card-date {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.blog-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: #e8e0d0;
  margin: 0 0 0.6rem;
  line-height: 1.3;
}

.blog-card-perex {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin: 0 0 1.1rem;
}

.blog-read-more {
  color: #c8a96e;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.blog-read-more:hover { opacity: 0.7; }

/* Post detail */
.blog-post-page .blog-post {
  max-width: 700px;
  margin: 0 auto;
}

.blog-post-img {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
}
.blog-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.blog-post-content time {
  display: block;
  margin-bottom: 0.8rem;
}

.blog-post-content h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  color: #e8e0d0;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.blog-post-perex {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 0 0 2rem;
  border-left: 2px solid #c8a96e;
  padding-left: 1rem;
}

.blog-post-body p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.75);
  margin: 0 0 1.2rem;
}

.blog-post-signature {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}

.linda-ai-badge {
  background: rgba(200,169,110,0.15);
  color: #c8a96e;
  font-size: 0.65rem;
  font-family: 'Space Mono', monospace;
  font-style: normal;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(200,169,110,0.25);
}

/* Markdown rendered body */
.blog-post-body h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.55rem; font-weight: 400; color: #e8e0d0; margin: 2rem 0 0.8rem; line-height: 1.3; }
.blog-post-body h3 { font-size: 1.05rem; font-weight: 600; color: rgba(255,255,255,0.85); margin: 1.5rem 0 0.5rem; letter-spacing: 0.02em; }
.blog-post-body strong { color: #e8e0d0; }
.blog-post-body em { color: rgba(255,255,255,0.7); }
.blog-post-body ul, .blog-post-body ol { padding-left: 1.4rem; margin: 0 0 1.2rem; }
.blog-post-body li { font-size: 0.97rem; line-height: 1.85; color: rgba(255,255,255,0.75); margin-bottom: 0.25rem; }
.blog-post-body a { color: #c8a96e; }
.blog-post-body blockquote { border-left: 2px solid #c8a96e; padding-left: 1rem; margin: 1.2rem 0; color: rgba(255,255,255,0.55); font-style: italic; }

/* Comments */
.blog-comments { max-width: 700px; margin: 3.5rem auto 0; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
.blog-comments-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.4rem; font-weight: 300; color: #e8e0d0; margin: 0 0 1.8rem; display: flex; align-items: center; gap: 0.6rem; }
.blog-comments-count { background: rgba(200,169,110,0.15); color: #c8a96e; font-size: 0.75rem; font-family: 'Space Grotesk', system-ui, sans-serif; padding: 0.15rem 0.5rem; border-radius: 999px; border: 1px solid rgba(200,169,110,0.25); }
.blog-no-comments { font-size: 0.88rem; color: rgba(255,255,255,0.35); margin: 0 0 2rem; }
.blog-comment-notice { padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.88rem; margin-bottom: 1.5rem; }
.blog-comment-notice.ok { background: rgba(100,200,100,0.1); border: 1px solid rgba(100,200,100,0.25); color: #8fdc8f; }
.blog-comment-notice.err { background: rgba(200,80,80,0.1); border: 1px solid rgba(200,80,80,0.25); color: #e88; }
.blog-comments-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.blog-comment { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 1rem 1.2rem; }
.blog-comment-meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; }
.blog-comment-name { font-size: 0.88rem; font-weight: 600; color: #c8a96e; }
.blog-comment-date { font-size: 0.75rem; color: rgba(255,255,255,0.3); letter-spacing: 0.05em; }
.blog-comment-text { font-size: 0.92rem; color: rgba(255,255,255,0.7); line-height: 1.7; margin: 0; }
.blog-comment-form { display: flex; flex-direction: column; gap: 0.9rem; }
.blog-comment-form-row input, .blog-comment-form-row textarea {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; color: #e8e0d0; padding: 0.7rem 0.9rem; font-size: 0.93rem;
  font-family: inherit; resize: vertical; transition: border-color 0.2s;
}
.blog-comment-form-row input:focus, .blog-comment-form-row textarea:focus { outline: none; border-color: rgba(200,169,110,0.5); }
.blog-comment-submit { align-self: flex-start; background: rgba(200,169,110,0.12); color: #c8a96e; border: 1px solid rgba(200,169,110,0.3); padding: 0.6rem 1.6rem; border-radius: 7px; font-size: 0.88rem; font-family: inherit; cursor: pointer; letter-spacing: 0.05em; transition: background 0.2s; }
.blog-comment-submit:hover { background: rgba(200,169,110,0.22); }

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-post-img { aspect-ratio: 4/3; }
}
