:root {
  --accent: #2346D8;
  --ink: #161616;
  --muted: #55554F;
  --faint: #6B6B64;
  --line: #E6E5E1;
  --pill: #D4D3CE;
  --soft: #F2F1ED;
  --bg: #FCFCFB;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); padding: 0 24px; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; }
.serif { font-family: var(--serif); }

/* Header & footer */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.logo { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px; font-size: 15px; font-weight: 500; }
.site-header nav a { padding: 12px 14px; text-decoration: none; }
.site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-footer nav a { padding: 12px 10px; color: var(--muted); }

/* Shared bits */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow.accent { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--pill); font-weight: 600; font-size: 15px; text-decoration: none; }
.btn.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.dark:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--pill); font-size: 15px; text-decoration: none; }
.placeholder { border-radius: 16px; background: #EFEEEA; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--faint); }

/* Home */
.hero { padding: 104px 0 88px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { max-width: 860px; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.6vw, 64px); line-height: 1.08; letter-spacing: -0.02em; }
.hero .lede { max-width: 620px; font-size: 20px; line-height: 1.6; color: var(--muted); }
.hero .row { padding-top: 8px; }
.section { padding-bottom: 88px; display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head a { font-size: 15px; font-weight: 500; padding: 12px 0; }
.page-title { padding: 72px 0 40px; display: flex; flex-direction: column; gap: 16px; }
.page-title h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.02em; }

.post-list { border-bottom: 1px solid var(--line); }
.post-item { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 28px 0; border-top: 1px solid var(--line); text-decoration: none; }
.post-item time { flex: 0 0 140px; font-size: 15px; color: var(--faint); padding-top: 6px; font-variant-numeric: tabular-nums; }
.post-item div { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.post-item h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; }
.post-item .summary { font-size: 17px; line-height: 1.6; color: var(--muted); }
.post-item .meta { font-size: 14px; color: var(--faint); }


/* Article */
.article { max-width: 680px; margin: 0 auto; padding: 56px 0 72px; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); }
.article-head { display: flex; flex-direction: column; gap: 20px; padding: 32px 0 40px; }
.article-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; }
.article-head .lede { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--muted); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 15px; color: var(--faint); }
.byline strong { color: var(--ink); font-weight: 500; }
.avatar { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--line); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }
.cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin-bottom: 48px; }

.prose { font-family: var(--serif); font-size: 20px; line-height: 1.75; color: #222220; display: flex; flex-direction: column; gap: 24px; }
.prose > * { margin: 0; }
.prose h2, .prose h3 { margin-top: 24px; font-family: var(--sans); font-weight: 700; font-size: 26px; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.prose h3 { font-size: 21px; }
.prose ul, .prose ol { padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.prose blockquote { margin: 16px 0; padding: 8px 0 8px 28px; border-left: 3px solid var(--accent); font-size: 28px; line-height: 1.4; font-style: italic; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose img { max-width: 100%; border-radius: 12px; }
.prose code { font-size: 0.85em; background: var(--soft); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--soft); padding: 20px; border-radius: 12px; overflow-x: auto; font-size: 15px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; }

.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tag { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--soft); font-size: 14px; text-decoration: none; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); }
.share a { padding: 12px; }
.share button { min-height: 44px; padding: 0 12px; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.author { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; padding: 40px 0; }
.author > div:last-child { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; }
.author .name { font-weight: 600; font-size: 17px; }
.author p:last-child { font-size: 16px; line-height: 1.6; color: var(--muted); }
.pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; }
.pager a.next { text-align: right; grid-column: -2; }
.pager small { font-size: 13px; color: var(--faint); }
.pager span { font-family: var(--serif); font-size: 19px; font-weight: 600; }

/* About */
.about-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding: 88px 0 72px; }
.about-hero .portrait { flex: 0 1 340px; aspect-ratio: 4 / 5; border-radius: 20px; object-fit: cover; }
.about-hero > div:last-child { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.about-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.02em; }
.about-hero .bio { display: flex; flex-direction: column; gap: 18px; font-family: var(--serif); font-size: 20px; line-height: 1.7; color: #2A2A27; }
.about-row { display: flex; flex-wrap: wrap; gap: 16px 56px; padding: 48px 0; border-top: 1px solid var(--line); }
.about-row > h2 { flex: 0 0 220px; }
.about-row > div, .about-row > ol { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.about-row .lead { font-size: 18px; line-height: 1.7; }
.about-row .note { font-size: 14px; color: var(--faint); }
.topics { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px !important; }
.topics h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.topics p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.exp { margin: 0; padding: 0; list-style: none; gap: 0 !important; }
.exp li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid #ECEBE7; font-size: 17px; }
.exp li:last-child { border-bottom: 0; }
.exp li span:last-child { font-size: 15px; color: var(--faint); }

/* Mobile */
@media (max-width: 640px) {
  body { padding: 0 20px; }
  .site-header { flex-wrap: nowrap; padding: 16px 0; gap: 8px; }
  .logo { font-size: 20px; }
  .site-header nav { gap: 0; }
  .site-header nav a { padding: 12px 10px; }
  .site-header nav a.desktop { display: none; }
  .eyebrow { font-size: 13px; }
  .hero { padding: 56px 0 48px; gap: 20px; }
  .hero .lede { font-size: 17px; }
  .hero .row { flex-direction: column; gap: 10px; }
  .section { padding-bottom: 56px; }
  .post-item { flex-direction: column; gap: 6px; padding: 22px 0; }
  .post-item time { flex: none; padding: 0; font-size: 14px; }
  .post-item div { flex: none; gap: 6px; }
  .post-item h3 { font-size: 22px; }
  .post-item .summary { font-size: 16px; }
  .article { padding: 32px 0 56px; }
  .article-head .lede { font-size: 19px; }
  .prose { font-size: 18px; }
  .prose h2 { font-size: 22px; }
  .prose blockquote { font-size: 22px; padding-left: 20px; }
  .about-hero { padding: 48px 0; gap: 32px; }
  .about-hero .portrait { flex-basis: 100%; }
  .about-row { padding: 36px 0; }
  .about-row > h2 { flex-basis: 100%; }
}
