:root {
  --color-bg: #ffffff;
  --color-text: #1f2933;
  --color-muted: #5b6b7a;
  --color-accent: #2c3e50;
  --color-accent-hover: #1c2b3a;
  --color-border: #e3e8ee;
  --color-soft: #f6f8fa;
  --max-width: 760px;
  --max-width-wide: 1080px;
  --radius: 6px;
  --font-serif: "Merriweather", Georgia, serif;
  --font-sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--color-accent);
  color: #fff;
  padding: 1.25rem 0;
  margin-bottom: 2.5rem;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--max-width-wide);
}
.site-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.9;
}
.site-nav a:hover { opacity: 1; text-decoration: underline; }

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-accent);
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
h1 { font-size: 2.2rem; margin-top: 0.5rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }

/* Body text */
p, ul, ol, blockquote { margin-bottom: 1.1rem; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

a { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--color-accent-hover); }

blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.25rem 0 0.25rem 1rem;
  color: var(--color-muted);
  background: var(--color-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

hr { border: none; border-top: 1px solid var(--color-border); margin: 2.5rem 0; }

/* Post */
.breadcrumbs { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.breadcrumbs a { color: var(--color-muted); }

.post-header { margin-bottom: 2rem; }
.post-header .lede { font-size: 1.15rem; color: var(--color-muted); margin-top: 0.75rem; }
.post-header .meta { font-size: 0.9rem; color: var(--color-muted); margin-top: 0.5rem; }
.post-header .meta time, .post-header .meta span { white-space: nowrap; }

.post-body { font-size: 1.05rem; }

.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.disclosure { font-size: 0.85rem; color: var(--color-muted); }

/* Cards (homepage / category lists) */
.article-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}
@media (min-width: 720px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}
.article-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: #fff;
  transition: border-color 0.15s ease;
}
.article-card:hover { border-color: var(--color-accent); }
.article-card h3 { margin-top: 0; font-size: 1.1rem; }
.article-card h3 a { text-decoration: none; }
.article-card .excerpt { color: var(--color-muted); font-size: 0.95rem; margin: 0.5rem 0 0; }

/* Hero */
.hero {
  background: var(--color-soft);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}
.hero h1 { margin-top: 0; }
.hero p { font-size: 1.1rem; color: var(--color-muted); max-width: 580px; margin: 0.75rem auto 0; }

/* Pillar CTA */
.pillar-cta {
  display: block;
  background: var(--color-accent);
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  margin: 2rem 0;
}
.pillar-cta:hover { background: var(--color-accent-hover); color: #fff; }
.pillar-cta strong { display: block; font-size: 1.1rem; margin-bottom: 0.25rem; font-family: var(--font-serif); }
.pillar-cta span { opacity: 0.85; font-size: 0.95rem; }

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.9rem;
}
.site-footer .container { max-width: var(--max-width-wide); }
.site-footer a { color: var(--color-muted); }
.site-footer p { margin-bottom: 0.5rem; }
