@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&family=Source+Code+Pro&display=swap');

:root { --fg: #000; --bg: #fff; --mute: #666; --rule: #d9d9d9; --code: #f5f5f5; color-scheme: light; }

* { box-sizing: border-box; }
body { margin: 0; color: var(--fg); background: var(--bg); font: 17px/1.6 "Source Sans 3", system-ui, sans-serif; }
a { color: var(--fg); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

.site { display: flex; align-items: baseline; gap: 1.5rem; padding: .9rem 1.5rem; border-bottom: 1px solid var(--rule); }
.name { font-weight: 700; text-decoration: none; }
.site nav { display: flex; gap: 1.25rem; margin-left: auto; }
.site nav a { color: var(--mute); text-decoration: none; }
.site nav a:hover { color: var(--fg); }

main { max-width: 46rem; margin: 3rem auto 0; padding: 0 1.5rem; }
h1 { font-size: 2.25rem; line-height: 1.15; margin: 0 0 .5rem; }
h2 { font-size: 1.5rem; line-height: 1.25; margin: 2.5rem 0 1rem; }
p, ul, ol { margin: 0 0 1.1em; }
.tagline { color: var(--mute); margin-bottom: 1.75rem; }
.links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.1em; }
.links a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.links a:hover { text-decoration: underline; }
.links svg { width: 1.05em; height: 1.05em; flex: none; }

.list { width: 100%; border-collapse: collapse; border-top: 1px solid var(--fg); }
.list td { padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.list .date { width: 7rem; color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.projects td:first-child { width: 11rem; }

.post { max-width: none; display: grid; grid-template-columns: 1fr minmax(0, 43rem) 1fr; }
.post article { grid-column: 2; }
.lede { font-size: 1.15rem; margin-bottom: 1.5rem; }
.meta { display: flex; gap: 3rem; margin: 0 0 2rem; font-size: .95rem; }
.meta dt { color: var(--mute); font-size: .85rem; }
.meta dd { margin: 0; }
.toc { grid-column: 3; max-width: 12rem; margin-left: 3rem; position: sticky; top: 2rem; align-self: start; font-size: .875rem; }
.toc p { margin: 0 0 .5rem; color: var(--mute); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: .2rem 0 .2rem .8rem; color: var(--mute); text-decoration: none; }
.toc a:hover { color: var(--fg); }
pre { background: var(--code); border: 1px solid var(--rule); border-radius: 4px; padding: 1rem; overflow-x: auto; font: 14px/1.55 "Source Code Pro", monospace; margin: 0 0 1.1em; }
code { font-family: "Source Code Pro", monospace; font-size: .9em; }
pre code { font-size: 1em; }
sup a { text-decoration: none; }
.notes { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .9rem; }
.notes h2 { font-size: 1rem; margin: 0 0 .5rem; }
.notes ol { padding-left: 1.25rem; }

.site-foot { width: min(43rem, calc(100% - 3rem)); margin: 4rem auto 3rem; padding-top: 1.25rem; display: flex; gap: 1.25rem; font-size: .9rem; border-top: 1px solid var(--rule); }

@media (max-width: 1180px) {
  .toc { display: none; }
}
@media (max-width: 600px) {
  .site { padding: .9rem 1rem; }
  main { padding: 0 1rem; margin-top: 2rem; }
  h1 { font-size: 1.9rem; }
  .list, .list tbody, .list tr, .list td { display: block; width: auto; }
  .list tr { padding: .6rem 0; border-bottom: 1px solid var(--rule); }
  .list td, .projects td:first-child { padding: 0; border: 0; width: auto; }
  .site-foot { width: calc(100% - 2rem); }
}

video { display: block; width: 100%; height: auto; margin: 0 0 1.75rem; border: 1px solid var(--rule); background: var(--code); }
