:root {
  --bg: #ffffff; --fg: #1f2328; --muted: #59636e; --line: #d1d9e0;
  --link: #0969da; --accent: #c4530a; --code-bg: #f6f8fa; --quote: #f6f8fa;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117; --fg: #e6edf3; --muted: #9198a1; --line: #30363d;
    --link: #4493f8; --accent: #f0883e; --code-bg: #161b22; --quote: #161b22;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 18px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
main, header.site, footer.site { max-width: 720px; margin: 0 auto; padding: 0 16px; }
header.site { display: flex; justify-content: space-between; align-items: baseline; padding-top: 28px; padding-bottom: 8px; }
header.site a.name { font-weight: 700; color: var(--fg); text-decoration: none; font-size: 17px; }
header.site nav a { margin-left: 18px; font-size: 15px; color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--link); }
a { color: var(--link); text-underline-offset: 2px; }
h1 { font-size: 34px; line-height: 1.2; margin: 40px 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 24px; line-height: 1.3; margin: 44px 0 10px; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.lede { font-size: 20px; }
img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); display: block; margin: 24px auto 6px; }
figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-bottom: 24px; }
code { font: 0.86em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--code-bg); padding: 2px 5px; border-radius: 5px; word-break: break-word; }
pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; overflow-x: auto; line-height: 1.45; margin: 20px 0; }
pre code { background: none; padding: 0; border-radius: 0; word-break: normal; font-size: 0.84em; }
table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
blockquote, .note { margin: 24px 0; padding: 14px 18px; background: var(--quote); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }
blockquote p:first-child, .note p:first-child { margin-top: 0; }
blockquote p:last-child, .note p:last-child { margin-bottom: 0; }
.takeaway { font-weight: 600; }
ul, ol { padding-left: 1.3em; }
li { margin: 6px 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.eyebrow { font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 44px 0 6px; }
.eyebrow + h2 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 18px 0 28px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: var(--bg); }
.card-full { grid-column: 1 / -1; }
.card .tag-line { font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 4px; }
.card h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { font-size: 15.5px; line-height: 1.55; margin: 0; color: var(--fg); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 12px 0 0; }
.pills li { margin: 0; font: 500 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); background: var(--code-bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.posts { list-style: none; padding: 0; }
.posts li { margin: 0 0 22px; }
.posts .date { color: var(--muted); font-size: 14px; display: block; }
.posts .post-tag { font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-left: 6px; }
.posts a { font-size: 20px; font-weight: 600; text-decoration: none; }
.posts a:hover { text-decoration: underline; }
.posts p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
footer.site { color: var(--muted); font-size: 14px; padding-top: 24px; padding-bottom: 48px; border-top: 1px solid var(--line); margin-top: 56px; }
@media (max-width: 560px) { body { font-size: 17px; } h1 { font-size: 28px; } h2 { font-size: 21px; } .grid { grid-template-columns: 1fr; } }
