/* Blog styles — matches the homepage design tokens */
:root {
  --cardinal: #8c1515;
  --cardinal-light: #f9f0f0;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --border: #e5e5e5;
  --bg: #fafaf8;
  --white: #ffffff;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--cardinal); text-decoration: none; }
a:hover { text-decoration: underline; }

.blog-wrapper { max-width: 720px; margin: 0 auto; padding: 0 24px 80px; }

/* top nav */
.blog-nav {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  font-size: 13px;
}
.blog-nav a { color: var(--text-secondary); font-weight: 500; }
.blog-nav a:hover { color: var(--cardinal); text-decoration: none; }

/* landing header */
.blog-header { margin-bottom: 36px; }
.blog-header h1 {
  font-family: 'EB Garamond', serif;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 8px;
}
.blog-header p { color: var(--text-secondary); font-size: 15px; }

/* post list (one .post-item per published article) */
.post-list { display: flex; flex-direction: column; gap: 22px; }
.post-item { padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.post-item h2 {
  font-family: 'EB Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.post-item .post-date { font-size: 12.5px; color: var(--text-muted); font-style: italic; }
.post-item p { font-size: 14px; color: var(--text-secondary); margin-top: 6px; }
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cardinal);
  background: var(--cardinal-light);
  border-radius: 4px;
  padding: 2px 8px;
}

/* coming-soon placeholder */
.coming-soon {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.coming-soon .tag {
  margin-bottom: 12px;
}

/* article */
.post-article .post-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.post-article h1 {
  font-family: 'EB Garamond', serif;
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
}
.post-article h2 {
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 36px 0 12px;
}
.post-article h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 28px 0 10px;
}
.post-article p { margin-bottom: 18px; }
.post-article ul, .post-article ol { margin: 0 0 18px 1.4em; }
.post-article li { margin-bottom: 6px; }
.post-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin: 24px auto;
  border: 1px solid var(--border);
}
.post-article blockquote {
  border-left: 3px solid var(--cardinal);
  padding: 6px 18px;
  margin: 24px 0;
  color: var(--text-secondary);
  font-style: italic;
  background: var(--cardinal-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: #f0f0ee;
  padding: 2px 6px;
  border-radius: 4px;
}
.post-article pre {
  background: #1a1a1a;
  color: #f5f5f5;
  padding: 16px 18px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 24px 0;
  font-size: 13.5px;
  line-height: 1.5;
}
.post-article pre code { background: none; padding: 0; color: inherit; }

.blog-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .blog-header h1 { font-size: 2rem; }
  .post-article h1 { font-size: 1.9rem; }
}
