/* Blog index. Shares the article palette so the two feel like one site. */

:root {
  color-scheme: light;
  --ink: #172226;
  --muted: #526166;
  --faint: #718086;
  --paper: #fbfaf6;
  --panel: #f2f3ee;
  --panel-strong: #e7ebe4;
  --line: #d2d8d2;
  --green: #176b52;
  --blue: #315f78;
  --blue-soft: #dde9ef;
  --radius: 14px;
  --shadow: 0 12px 34px rgba(28, 45, 46, .07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #e9ece7;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--green); }

.page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.home-hero {
  padding: clamp(46px, 8vw, 92px) clamp(26px, 7vw, 72px) 40px;
  border-bottom: 1px solid var(--line);
}

.home-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.home-hero p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.14rem);
}

.posts { padding: 12px clamp(26px, 7vw, 72px) 56px; }

.post {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.post:last-child { border-bottom: none; }
.post:hover h2 { color: var(--blue); }

.post-date {
  display: block;
  margin-bottom: 7px;
  color: var(--faint);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post h2 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 3vw, 1.66rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  transition: color .15s;
}

.post p {
  margin: 0 0 14px;
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.98rem;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.empty {
  padding: 60px 0;
  color: var(--muted);
  text-align: center;
}

/*
 * Site chrome injected into every article: a slim top bar and a site footer.
 * Deliberately minimal — each article carries its own design, and the chrome
 * must not compete with it.
 */

.site-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px clamp(16px, 4vw, 34px);
  background: rgba(251, 250, 246, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line, #d2d8d2);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.site-bar a { text-decoration: none; }

.site-bar-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink, #172226);
}
.site-bar-brand:hover { color: var(--blue, #315f78); }

.site-bar-nav { display: flex; align-items: center; gap: 18px; }
.site-bar-nav a { color: var(--muted, #526166); }
.site-bar-nav a:hover { color: var(--blue, #315f78); }

.site-foot {
  padding: 30px clamp(16px, 4vw, 34px) 44px;
  color: var(--faint, #718086);
  text-align: center;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.84rem;
}
.site-foot a { color: inherit; }

@media print {
  .site-bar, .site-foot, .cw { display: none; }
}
