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

:root {
  --bg: #f8f7f4;
  --text: #1c1c1a;
  --muted: #7a7a72;
  --border: #e4e3de;
  --accent: #c8521a;
  --surface: #ffffff;
  --radius: 8px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.blog-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.blog-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.blog-nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.blog-nav a:hover { color: var(--text); }

/* ── HERO ── */
.blog-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.blog-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 52px;
}
.blog-hero-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* ── GRID ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

/* Featured first card spans full width */
.post-card--featured {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: 55% 1fr;
  gap: 40px;
  align-items: center;
}
.post-card--featured .post-card-image {
  aspect-ratio: 16/9;
  height: auto;
}
.post-card--featured .post-card-title {
  font-size: clamp(26px, 3vw, 40px);
}
.post-card--featured .post-card-excerpt,
.post-card--featured .post-card-subtitle {
  display: block;
  font-size: 16px;
  line-height: 1.65;
  max-width: 440px;
}

/* ── CARD ── */
.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.post-card-image {
  aspect-ratio: 4/3;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}
.post-card:hover .post-card-image img { transform: scale(1.05); }

.post-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eeeee8 0%, #ddddd6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--border);
}

.post-card-content { flex: 1; display: flex; flex-direction: column; }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.post-card-date {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.post-card-sep { color: var(--border); font-size: 12px; }
.post-card-rt  { font-size: 12px; color: var(--muted); }

.post-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
  transition: color 0.2s;
}
.post-card:hover .post-card-title { color: var(--accent); }

.post-card-subtitle,
.post-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-read {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-top: auto;
  padding-top: 8px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s, transform 0.25s;
}
.post-card:hover .post-card-read {
  opacity: 1;
  transform: translateX(0);
}

/* ── SKELETON ── */
.loading-skeleton {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.skeleton-card { display: flex; flex-direction: column; gap: 12px; }
.sk-img {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #ebebeb 25%, #f5f5f5 50%, #ebebeb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.sk-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ebebeb 25%, #f5f5f5 50%, #ebebeb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.w40 { width: 40%; }
.w60 { width: 60%; }
.w80 { width: 80%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.no-posts { text-align: center; padding: 80px 0; color: var(--muted); grid-column: 1/-1; }
.no-posts h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; color: var(--text); }
.loading-posts { color: var(--muted); font-size: 14px; padding: 40px 0; grid-column: 1/-1; }

/* ── SINGLE POST ── */
.post-main {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 32px 100px;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin: 36px 0 0;
  padding: 8px 0;
  transition: color 0.2s;
}
.post-back:hover { color: var(--text); }

.post-hero { padding: 40px 0 36px; }
.post-date {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-date::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.post-subtitle {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 36px;
  font-family: var(--font-display);
  font-style: italic;
}
.post-cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 52px;
}
.post-divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 0 0 36px;
}

/* Post body */
.post-body { font-size: 17px; line-height: 1.85; color: var(--text); }
.post-body h1, .post-body h2, .post-body h3 {
  font-family: var(--font-display);
  margin: 40px 0 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.post-body h2 { font-size: 28px; font-weight: 600; }
.post-body h3 { font-size: 22px; font-weight: 600; }
.post-body p { margin-bottom: 22px; }
.post-body ul, .post-body ol { margin: 0 0 22px 28px; }
.post-body li { margin-bottom: 8px; }
.post-body strong { font-weight: 500; }
.post-body em { font-style: italic; color: var(--muted); }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  color: var(--muted);
  margin: 28px 0;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.6;
}
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.post-body a { color: var(--accent); text-underline-offset: 3px; }

.post-hashtags {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hashtag {
  font-size: 12px;
  color: var(--muted);
  background: var(--border);
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}
.hashtag:hover { background: var(--accent); color: white; }

.post-ig-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

/* ── FOOTER ── */
.blog-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 32px;
  color: var(--muted);
  font-size: 13px;
}
.blog-footer strong { color: var(--text); font-weight: 500; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-card--featured {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .post-card--featured .post-card-image {
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .blog-header-inner, .blog-main, .post-main { padding-left: 20px; padding-right: 20px; }
  .posts-grid { grid-template-columns: 1fr; gap: 36px; }
  .loading-skeleton { grid-template-columns: 1fr; }
  .post-card--featured { grid-column: 1; }
}
