:root { color-scheme: light; font-family: system-ui, -apple-system, sans-serif; color: #172033; background: #f4f6fa; }
* { box-sizing: border-box; }
body { margin: 0; }
.container { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0; }
header { margin-bottom: 32px; }
.eyebrow, .category { color: #4764d8; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 8px 0; font-size: clamp(2rem, 5vw, 3.6rem); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; padding: 24px; border: 1px solid #e2e6ef; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px #1b2b4a0d; }
.card h2 { margin: 0 0 10px; }
.card p { line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tags span { padding: 4px 8px; border-radius: 999px; background: #edf0ff; color: #344bb1; font-size: .8rem; }
.updated { color: #64708a; font-size: .85rem; }
.card a { color: #3452d1; font-weight: 700; text-decoration: none; }
.card a:hover { text-decoration: underline; }

/* site chrome */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #e2e6ef; background: #fff; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.site-logo { color: #172033; font-weight: 700; text-decoration: none; letter-spacing: .01em; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: #4a5570; font-weight: 600; text-decoration: none; font-size: .95rem; }
.site-nav a:hover { color: #3452d1; }
.site-footer { margin-top: 48px; border-top: 1px solid #e2e6ef; color: #7a869e; font-size: .85rem; }
.site-footer .container { padding: 24px 0; }

/* homepage profile */
.profile { margin-bottom: 40px; }
.profile p { line-height: 1.8; max-width: 62ch; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 40px 0 16px; }
.section-heading h2 { margin: 0; }
.section-heading a { color: #3452d1; font-weight: 700; text-decoration: none; font-size: .9rem; }
.section-heading a:hover { text-decoration: underline; }
#projects-section { scroll-margin-top: 88px; }

/* article page */
.breadcrumb { font-size: .85rem; color: #64708a; margin-bottom: 24px; }
.breadcrumb a { color: #64708a; }
article > header h1 { margin: 6px 0 10px; }
article > header p { color: #64708a; margin: 2px 0; }
.prose { line-height: 1.9; max-width: 68ch; }
.prose h2, .prose h3, .prose h4 { line-height: 1.4; margin: 1.6em 0 .6em; }
.prose p { margin: 1.1em 0; }
.prose ul, .prose ol { padding-left: 1.4em; line-height: 1.8; }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 3px solid #4764d8; color: #43506b; background: #f4f6fa; border-radius: 0 8px 8px 0; }
.prose pre { background: #172033; color: #eef1fa; padding: 16px; border-radius: 10px; overflow-x: auto; }
.prose code { background: #edf0ff; color: #344bb1; padding: .1em .35em; border-radius: 4px; font-size: .92em; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose figure { margin: 1.6em 0; }
.prose img { max-width: 100%; border-radius: 12px; display: block; }
.prose figcaption { color: #7a869e; font-size: .85rem; margin-top: 8px; }
.prose hr { border: none; border-top: 1px solid #e2e6ef; margin: 2em 0; }
.prose .table-wrap { overflow-x: auto; margin: 1.6em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid #e6e8ee; text-align: left; white-space: nowrap; }
.prose th { background: #f7f8fb; font-weight: 700; }
article .tags { margin: 20px 0 0; }
.back-links { margin-top: 36px; color: #64708a; }
.back-links a { color: #3452d1; font-weight: 700; text-decoration: none; }
.back-links a:hover { text-decoration: underline; }
