/* ========================
   DESKZEN — Blog CSS
   ======================== */

/* BLOG INDEX */
.blog-main { background: var(--bg); }

.blog-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.blog-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 32px 64px;
}
.blog-hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.blog-hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.65;
}

.blog-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 32px;
}

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

.post-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.post-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-date {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}
.post-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}
.post-card-title a {
  color: var(--fg);
  text-decoration: none;
}
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.post-card-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.post-card-read:hover { text-decoration: underline; }

/* CTA BAND */
.blog-cta-band {
  background: var(--fg);
  color: #FAF8F5;
  padding: 64px 32px;
}
.blog-cta-band-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.blog-cta-band-text {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: #FAF8F5;
}
.blog-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.blog-cta-btn:hover { background: #b04f22; }

/* EMPTY STATE */
.blog-empty {
  text-align: center;
  padding: 80px 32px;
}
.blog-empty p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 24px;
}
.blog-back-home {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.blog-back-home:hover { text-decoration: underline; }

/* BLOG POST */
.blog-post-main {
  background: var(--bg);
  min-height: 70vh;
}
.blog-post-inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}

.post-header {
  margin-bottom: 40px;
}
.post-header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.post-header-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.post-header-excerpt {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.post-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.post-author { font-weight: 600; color: var(--fg); }
.post-meta-sep { opacity: 0.4; }

.post-hero-image {
  margin-bottom: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.post-hero-image img {
  width: 100%;
  display: block;
}

.post-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--fg);
}
.post-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  margin: 48px 0 20px;
  color: var(--fg);
}
.post-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 14px;
}
.post-body p {
  margin-bottom: 20px;
  color: #3A3935;
}
.post-body ul, .post-body ol {
  margin: 0 0 20px 24px;
}
.post-body li { margin-bottom: 8px; }
.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-body strong { font-weight: 600; }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--muted);
}
.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* POST CTA */
.post-cta {
  margin: 56px 0 40px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-top: 3px solid var(--accent);
}
.post-cta-inner { max-width: 520px; }
.post-cta-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.post-cta-headline {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
}
.post-cta-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.post-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.post-cta-btn:hover { background: #b04f22; }

.post-back {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.post-back-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.post-back-link:hover { color: var(--fg); }

/* 404 */
.post-404 {
  text-align: center;
  padding: 80px 0;
}
.post-404-code {
  font-family: 'Playfair Display', serif;
  font-size: 96px;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}
.post-404-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
}
.post-404-body {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .blog-hero-inner { padding: 48px 20px 40px; }
  .blog-content { padding: 40px 20px; }
  .blog-cta-band { padding: 40px 20px; }
  .blog-cta-band-inner { flex-direction: column; text-align: center; }
  .blog-post-inner { padding: 40px 20px 60px; }
  .post-cta { padding: 28px 24px; }
}