@charset "UTF-8";

@font-face {
  font-family: "Geist";
  src: local("Geist"), local("Geist Sans");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --text: #e5e5e5;
  --white: #fff;
  --muted: #a3a3a3;
  --quiet: #525252;
  --line: #262626;
  --link: #818cf8;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #404040 var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }

.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 10; padding: .5rem .75rem; background: white; color: black; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.container { width: min(calc(100% - 2rem), 56rem); margin-inline: auto; }
.site-header { padding-block: 3rem 2rem; }
.site-header a { color: var(--white); font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.site-header a:hover { color: var(--muted); }

.home { padding-block: 2rem 6rem; }
.bio { max-width: 38rem; margin: 0 0 3.5rem; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.bio strong { color: var(--text); font-weight: 500; }
.post-list { margin: 0; padding: 0; list-style: none; }
.post-list li + li { margin-top: .75rem; }
.post-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: .5rem; color: #d4d4d4; text-decoration: none; transition: color 150ms ease; }
.post-list a:hover { color: var(--white); }
.post-list a:hover .post-title { text-decoration: underline; text-underline-offset: .2em; }
.post-list time { flex: none; color: var(--quiet); font-size: .875rem; }

.article { padding-block: 2rem 6rem; }
.article-header { margin-bottom: 2rem; }
.article-header time { display: block; margin-bottom: .5rem; color: #737373; font-size: .875rem; }
.article-header h1 { margin: 0; color: var(--white); font-size: clamp(1.875rem, 5vw, 2.25rem); line-height: 1.2; }
.prose { max-width: none; color: #d4d4d4; font-size: 1rem; line-height: 1.75; }
.prose p { margin: 1.25em 0; }
.prose a { color: var(--link); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--white); font-weight: 600; }
.prose h1, .prose h2, .prose h3 { color: var(--white); font-weight: 700; line-height: 1.25; }
.prose h1 { margin: 3rem 0 .9rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: 2.25rem; }
.prose h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; }
.prose h3 { margin: 2rem 0 .75rem; font-size: 1.25rem; }
.prose ul, .prose ol { margin: 1.25em 0; padding-left: 1.625em; }
.prose li { margin: .5em 0; padding-left: .375em; }
.prose blockquote { margin: 1.6em 0; padding-left: 1em; border-left: .25rem solid #404040; color: #f5f5f5; font-style: italic; }
.prose :not(pre) > code { padding: .125rem .375rem; border-radius: .25rem; background: #262626; color: var(--white); font-family: var(--mono); font-size: .875em; font-weight: 600; }
.prose pre { margin: 1.75rem 0; padding: .9rem 1.15rem; overflow-x: auto; border: 1px solid var(--line); border-radius: .375rem; background: #171717 !important; color: #d4d4d4; font-family: var(--mono); font-size: .875rem; line-height: 1.7; scrollbar-width: thin; scrollbar-color: #404040 transparent; }
.prose pre code { font: inherit; }
.prose img { margin: 2rem auto; }

.site-footer { position: fixed; right: 1rem; bottom: 1rem; display: flex; gap: .75rem; }
.site-footer a { color: #737373; transition: color 150ms ease; }
.site-footer a:hover { color: var(--white); }
.site-footer svg { display: block; width: 20px; height: 20px; fill: currentColor; }

@media (max-width: 520px) {
  .site-header { padding-top: 2rem; }
  .home, .article { padding-top: 1rem; }
  .post-list a { align-items: flex-start; flex-direction: column; gap: .15rem; }
  .prose h1 { font-size: 1.75rem; }
}
