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

:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --border: #e8e6e1;
  --text: #1a1917;
  --muted: #6b6860;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --tag-bg: #f0f0ec;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { font-size: 18px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
}

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

/* ── Header ── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.site-title span { color: var(--accent); }

nav a {
  font-size: 0.88rem;
  color: var(--muted);
  margin-left: 1.5rem;
}

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

/* ── Hero (home only) ── */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: normal;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.hero-meta {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-meta .dot { color: var(--border); }

/* ── Main layout ── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ── Phase dividers ── */
.phase-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phase-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Post cards ── */
.post-list { list-style: none; }

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.post-card:hover {
  border-color: #c5c0b8;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.post-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.post-card h2 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: normal;
  line-height: 1.35;
}

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

.post-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.post-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tag {
  background: var(--tag-bg);
  color: var(--muted);
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-weight: 500;
}

/* ── Single post ── */
.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.post-phase {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.post-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.post-header .meta {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  gap: 1rem;
}

.post-content { font-size: 0.97rem; }

.post-content h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: normal;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
}

.post-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.post-content p { margin-bottom: 1.25rem; }

.post-content ul, .post-content ol {
  margin: 0 0 1.25rem 1.5rem;
}

.post-content li { margin-bottom: 0.4rem; }

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  background: var(--accent-light);
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
}

.post-content blockquote strong {
  color: var(--text);
  font-style: normal;
}

.callout {
  background: #f8f7f4;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-size: 0.9rem;
}

.callout-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ── Post nav ── */
.post-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
}

.post-nav a { color: var(--muted); }
.post-nav a:hover { color: var(--accent); }

/* ── About sidebar pill ── */
.about-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 3rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.about-pill strong { color: var(--text); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  html { font-size: 16px; }
  .hero h1 { font-size: 1.8rem; }
  .post-card-header { flex-direction: column; }
  .post-nav { flex-direction: column; }
}
