@font-face { font-family: 'Space Grotesk'; src: url('/fonts/space-grotesk.woff2') format('woff2'); font-style: normal; font-weight: 300 700; font-display: swap; }
:root { color-scheme: dark; --text: #dedede; --muted: #929292; --line: #29272d; --accent: #b6a7cd; }
* { box-sizing: border-box; }
html { background: #000; scroll-padding-top: 2rem; }
body { margin: 0; color: var(--text); font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif; font-size: 16px; line-height: 1.75; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: #655f74; color: #fff; }
a { color: var(--accent); text-decoration: none; text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.site { width: min(100% - 48px, 1024px); min-height: 100svh; margin-inline: auto; display: flex; flex-direction: column; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 38px; }
.site-name { color: #fff; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: normal; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: #eee; font-weight: 500; }
main { flex: 1; min-width: 0; }
.brand { position: relative; width: min(400px, 78vw); margin: 22px auto 65px; text-align: center; }
.brand span { position: absolute; top: 16px; left: 0; right: 0; color: #8f8f8f; font-family: monospace; font-size: 12px; font-weight: 400; letter-spacing: 1px; }
.brand img { display: block; width: 100%; height: auto; }
.post-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; padding-block: 44px; border-bottom: 1px solid var(--line); }
time { color: var(--muted); font-size: 14px; }
.post-row time { padding-top: 4px; }
h1, h2, h3, h4 { color: #eee; line-height: 1.35; overflow-wrap: anywhere; }
.post-row h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.post-row h2 a { color: inherit; }
.post-row p { margin: 18px 0; color: var(--muted); overflow-wrap: anywhere; }
.read-more { color: #ec4899; font-family: inherit; font-size: 16px; font-weight: 500; line-height: 24px; }
.empty { border-block: 1px solid var(--line); padding-block: 46px; color: var(--muted); text-align: center; }
.article-header { padding: 35px 0 40px; text-align: center; border-bottom: 1px solid var(--line); }
.article-header h1 { max-width: 900px; margin: 18px auto 0; font-size: clamp(27px, 4vw, 42px); letter-spacing: -.045em; }
.article-body { max-width: 760px; margin: 48px auto; overflow-wrap: anywhere; }
.article-body > :first-child { margin-top: 0; }
.article-body h1 { font-size: 32px; margin-bottom: 1.25em; }
.article-body math { font-size: 1.05em; }
.article-body p, .article-body ul, .article-body ol { margin-block: 1.4em; }
.article-body h2 { font-size: 25px; margin-top: 2.3em; }
.article-body h3 { font-size: 20px; margin-top: 2em; }
.article-body h4 { font-size: 17px; }
.article-body li + li { margin-top: .5em; }
.article-body strong { color: #f0f0f0; }
.article-body a { text-decoration: underline; }
.article-body img { display: block; max-width: 100%; height: auto; margin: 2em auto; }
.article-body blockquote { margin: 1.8em 0; padding: .1em 1.4em; border-left: 2px solid #655f74; color: #aaa; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; }
code { font-size: .9em; }
.article-body code:not(pre code) { color: #6366f1; font-size: .875em; font-weight: 600; }
.article-body code:not(pre code)::before, .article-body code:not(pre code)::after { content: "`"; }
pre { max-width: 100%; overflow-x: auto; padding: 20px; background: #101013; border: 1px solid var(--line); line-height: 1.65; tab-size: 4; }
pre code { padding: 0; background: none; white-space: pre; overflow-wrap: normal; }
.table-scroll { overflow-x: auto; margin-block: 2em; }
table { border-collapse: collapse; min-width: 100%; font-size: .9em; }
th, td { padding: 10px 14px; text-align: left; }
th { color: #fff; }
thead { border-bottom: 1px solid #4b5563; }
tbody tr:not(:last-child) { border-bottom: 1px solid #374151; }
hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.article-back { max-width: 760px; margin: 0 auto; padding-block: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 64px; margin-bottom: 32px; font-size: 14px; line-height: 20px; color: #9ca3af; }
.site-footer a { color: inherit; }
.skip-link { position: absolute; top: 12px; left: 12px; padding: 8px 16px; background: #111; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
@media (max-width: 700px) {
    .site { width: calc(100% - 36px); }
    .site-header { padding-block: 25px; }
    .site-nav { gap: 16px; }
    .brand { margin-block: 24px 44px; }
    .post-row { grid-template-columns: 1fr; gap: 12px; padding-block: 30px; }
    .post-row h2 { font-size: 22px; }
    .article-header { text-align: left; padding-top: 20px; }
    .article-body { margin-block: 30px; }
    pre { padding: 14px; font-size: 14px; }
}
