/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --color-text: #1a1a1a;
  --color-muted: #666;
  --color-accent: #2a6496;
  --color-bg: #fff;
  --color-border: #e5e5e5;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, sans-serif;
  --max-width: 700px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.7;
}

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

img { max-width: 100%; height: auto; }

/* =========================================================
   Layout
   ========================================================= */
.site-header,
.site-main,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.5rem;
}

.site-header-inner {
  display: flex;
  align-items: baseline;
  gap: 2rem;
}

.site-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--color-accent); }

.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* =========================================================
   Post list (home page)
   ========================================================= */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-card-title {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-family: var(--font-sans);
  line-height: 1.3;
}
.post-card-title a { text-decoration: none; color: var(--color-text); }
.post-card-title a:hover { color: var(--color-accent); }

.post-card-meta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-muted);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.post-card-excerpt {
  margin: 0.4rem 0 0;
  color: var(--color-muted);
  font-size: 1rem;
}

/* =========================================================
   Post / Page
   ========================================================= */
.post-header,
.page-header {
  margin-bottom: 2rem;
}

.post-title,
.page-title {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  font-family: var(--font-sans);
  line-height: 1.25;
}

.post-meta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-muted);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.post-tags a,
.post-card-tags a {
  color: var(--color-muted);
  text-decoration: none;
}
.post-tags a:hover,
.post-card-tags a:hover { color: var(--color-accent); }

.post-feature-image {
  margin: 0 0 2rem;
}

.post-content h2,
.post-content h3,
.post-content h4,
.page-content h2,
.page-content h3 {
  font-family: var(--font-sans);
}

.post-content figure,
.page-content figure {
  margin: 2rem 0;
}

.post-content blockquote,
.page-content blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-border);
  color: var(--color-muted);
  font-style: italic;
}

/* =========================================================
   Tags index
   ========================================================= */
.tag-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.tag-list li a {
  font-family: var(--font-sans);
  text-decoration: none;
}

/* =========================================================
   Ghost embed cards
   ========================================================= */
.kg-embed-card {
  margin: 1.5rem 0;
}
