@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;700&display=swap"); @font-face { font-family: "Berkeley Mono"; src: url("https://www.barrettruth.com/fonts/berkeley-mono/BerkeleyMono-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; } @font-face { font-family: "Berkeley Mono"; src: url("https://www.barrettruth.com/fonts/berkeley-mono/BerkeleyMono-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; } @font-face { font-family: "Berkeley Mono"; src: url("https://www.barrettruth.com/fonts/berkeley-mono/BerkeleyMono-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; } *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } html, body { font-family: "Manrope", sans-serif; line-height: 1.65; color: #1a1a1a; background: #f5f5f5; } @media (prefers-color-scheme: dark) { html, body { background: #121212; color: #e0e0e0; } } main { max-width: 50rem; margin: 0 auto; padding: 3rem clamp(1.25rem, 5vw, 3rem) 6rem; } .tagline { font-size: 1.1rem; opacity: 0.5; margin-top: -0.75rem; margin-bottom: 1.75rem; font-style: italic; } header { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 20px; margin-bottom: 1.5rem; } header h1 { margin-bottom: 0; } header code { font-size: clamp(1.75rem, 5vw, 2.5rem); } h1 { font-weight: 300; font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.2; margin-bottom: 1.5rem; } h2 { font-weight: 400; font-size: 1.35rem; margin-top: 2.5rem; margin-bottom: 0.75rem; } h3 { font-weight: 500; font-size: 1.1rem; margin-top: 2rem; margin-bottom: 0.5rem; } p { margin-bottom: 1rem; } a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.15em; } a:hover { text-decoration-thickness: 2px; } ul, ol { padding-left: 1.25em; margin-bottom: 1rem; } li { margin-bottom: 0.35rem; } pre, code, .astro-code { font-family: "Berkeley Mono", monospace !important; font-variant-ligatures: none; } code { font-size: 0.88em; padding: 0.15em 0.35em; border-radius: 3px; background: #e8e8e8; } @media (prefers-color-scheme: dark) { code { background: #222222; } } pre { padding: 1rem 1.25rem; border-radius: 4px; overflow-x: auto; white-space: pre; word-wrap: normal; margin-bottom: 1.25rem; line-height: 1.5; background: #ebebeb; } @media (prefers-color-scheme: dark) { pre { background: #222222; } } pre code { padding: 0; background: none; font-size: 0.85em; } @media (prefers-color-scheme: dark) { .astro-code, .astro-code span { color: var(--shiki-dark) !important; background-color: var(--shiki-dark-bg) !important; } } table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; font-size: 0.95em; } th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid #d0d0d0; } @media (prefers-color-scheme: dark) { th, td { border-bottom-color: #2d2d2d; } } th { font-weight: 500; } hr { border: none; border-top: 1px solid #d0d0d0; margin: 2.5rem 0; } @media (prefers-color-scheme: dark) { hr { border-top-color: #2d2d2d; } } nav { max-width: 50rem; margin: 0 auto; padding: 1.5rem clamp(1.25rem, 5vw, 3rem) 0; font-size: 0.9rem; } nav a { color: inherit; text-decoration: none; opacity: 0.6; transition: opacity 0.15s; } nav a:hover { opacity: 1; } nav .title { font-weight: 500; opacity: 1; } nav .sep { opacity: 0.3; margin: 0 0.5em; } .toc-nav { position: fixed; top: 6.5rem; left: max(1rem, calc(50vw - 25rem - 2rem - 11rem)); width: 11rem; font-size: 0.9rem; line-height: 1.5; } .toc-nav code { font-size: 0.85em; padding: 0.1em 0.25em; border-radius: 2px; background: #e8e8e8; } @media (prefers-color-scheme: dark) { .toc-nav code { background: #222222; } } @media (max-width: 64em) { .toc-nav { display: none; } } .toc-nav ul { list-style: none; padding: 0; margin: 0; } .toc-nav li { margin-bottom: 0.45rem; } .toc-nav a { color: inherit; text-decoration: none; opacity: 0.6; transition: opacity 0.15s; } .toc-nav a:hover, .toc-nav a.active { opacity: 1; }