:root {
  --fg: #111827;
  --muted: #6b7280;
  --subtle: #f3f4f6;
  --border: #e5e7eb;
  --accent: #4f46e5;
  --bg: #ffffff;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  font-family: 'Charter', 'Iowan Old Style', 'Palatino Linotype', 'Palatino', 'URW Palladio L', 'Georgia', serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 720px; margin: 0 auto; padding: 3.5rem 1.5rem 4rem; }
header {
  padding-bottom: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
header h1 { margin: 0; font-size: 2rem; letter-spacing: -0.01em; font-weight: 700; }
header h1 a { color: inherit; text-decoration: none; }
header p { color: var(--muted); margin: 0.35rem 0 1rem; font-size: 1.05rem; font-style: italic; }
nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
nav a { color: var(--accent); text-decoration: none; font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif; font-weight: 500; }
nav a:hover { text-decoration: underline; }

article h1 { font-size: 2.4rem; line-height: 1.15; margin: 0 0 1.5rem; letter-spacing: -0.02em; }
article h2 { font-size: 1.35rem; margin: 2.5rem 0 0.75rem; letter-spacing: -0.01em; }
article h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
article p { margin: 0 0 1.1rem; }
article ul, article ol { padding-left: 1.5rem; margin: 0 0 1.1rem; }
article li { margin-bottom: 0.35rem; }
article code { background: var(--subtle); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.9em; }
article a { color: var(--accent); }

ul.articles { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
ul.articles li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding 0.15s;
}
ul.articles li:hover { padding-left: 0.5rem; }
ul.articles li:last-child { border-bottom: none; }
ul.articles a {
  color: var(--fg);
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 500;
  display: block;
}
ul.articles a:hover { color: var(--accent); }

.section-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 2.5rem 0 0.5rem;
}
.featured-section:first-child .section-title { margin-top: 0; }
ul.articles.featured li { padding: 1.75rem 0; }
ul.articles.featured a { font-size: 1.4rem; line-height: 1.35; font-weight: 600; }
.pagination { display: flex; gap: 0.35rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination .pg { padding: 0.35rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; color: var(--fg); text-decoration: none; font-size: 0.9rem; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.pagination .pg:hover { background: var(--subtle); color: var(--accent); border-color: var(--accent); }
.pagination .pg.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .pg.dots { border: none; padding: 0.35rem 0.25rem; color: var(--muted); }

aside.related {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--subtle);
  border-radius: var(--radius);
}
aside.related h3 { margin: 0 0 1rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 600; }
aside.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
aside.related a { color: var(--accent); text-decoration: none; }
aside.related a:hover { text-decoration: underline; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
