/* Fonts are self-hosted; each face has a Latin and a Latin Extended file. */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/source-serif-4-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/source-serif-4-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/source-serif-4-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f6f6f3;
  --text: #222;
  --muted: #57606a;
  --faint: #8c959f;
  --rule: #e4e4de;
  --tint: #eeeee9;
  --accent: #2f6f5e;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: Inter, system-ui, sans-serif;
  --title: 600 1.8rem/1.2 var(--sans);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.65 var(--serif); }
a { color: inherit; }

/* Layout: a sticky left rail beside a narrow column. */
.shell { max-width: 60rem; margin: 0 auto; padding: 4rem 1rem 6rem; display: grid; grid-template-columns: 13rem minmax(0, 38rem); gap: 4rem; }
main { min-width: 0; }

aside { position: sticky; top: 4rem; align-self: start; font: 13px/1.6 var(--mono); }
aside .name { display: block; font-size: 15px; font-weight: 500; text-decoration: none; margin-bottom: .25rem; }
aside .tagline { margin: 0 0 2rem; color: #6e7681; font: italic 15px/1.5 var(--serif); }
aside nav a { display: block; padding: .15rem 0; color: var(--muted); text-decoration: none; }
aside nav a:hover { color: var(--text); }

aside h3 { margin: 2rem 0 .5rem; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
aside .tags a { display: inline-block; margin: 0 .35rem .35rem 0; padding: .05rem .5rem; border-radius: 3px; background: #ebebe6; color: var(--muted); font-size: 12px; text-decoration: none; }
aside .tags a:hover { color: var(--text); }

footer { margin-top: 4rem; font: 12px var(--mono); color: var(--faint); }

/* Posts and Pages */
article h1 { margin: 0 0 .75rem; font: var(--title); letter-spacing: -0.025em; }
.meta { margin-bottom: 1.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); font: 12px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.meta a { color: inherit; text-decoration: none; }
.meta a:hover { color: var(--accent); }
/* The body starts the same distance below the rule as the meta line sits above it. */
.meta + div > :first-child { margin-top: 0; }
article a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
article h2, article h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; margin: 2.25rem 0 .75rem; }
article img { max-width: 100%; }
blockquote { margin: 1.5rem 0; padding: .75rem 1.25rem; background: var(--tint); border-radius: 8px; color: #424a53; font-style: italic; font-size: 1.05em; }
blockquote p { margin: 0; }
code { font-family: var(--mono); font-size: .85em; }
pre { overflow-x: auto; padding: 1rem 1.25rem; background: #1f2328; color: #e6edf3; border-radius: 8px; font: 14px/1.6 var(--mono); }
pre code { font-size: inherit; }
/* Prism tokens, tuned for the dark code blocks. */
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #8b949e; font-style: italic; }
.token.punctuation { color: #c9d1d9; }
.token.keyword, .token.boolean, .token.important { color: #ff7b72; }
.token.string, .token.char, .token.attr-value, .token.inserted { color: #a5d6ff; }
.token.number, .token.constant, .token.symbol { color: #79c0ff; }
.token.function, .token.class-name { color: #d2a8ff; }
.token.tag, .token.selector, .token.deleted { color: #7ee787; }
.token.attr-name, .token.property, .token.variable, .token.parameter { color: #ffa657; }
.token.operator, .token.builtin { color: #e6edf3; }
table { width: 100%; border-collapse: collapse; font-size: .9em; }
th, td { padding: .4rem .6rem .4rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.footnotes { margin-top: 3rem; font-size: 14px; color: #6e7681; }

/* Index and Tag pages */
.kicker { margin-bottom: .5rem; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.lead { margin-bottom: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--rule); }
.lead-title { display: block; font: var(--title); letter-spacing: -0.025em; text-decoration: none; }
.lead .summary { margin: 1rem 0 0; color: #424a53; font-size: 19px; }
.lead .excerpt p { margin: 1rem 0 0; color: #6e7681; font-size: 17px; }
.lead .more { display: inline-block; margin-top: 1rem; font: 13px var(--mono); color: var(--accent); text-decoration: none; }
h3.earlier { margin: 0 0 .75rem; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.tag-title { margin: 0 0 1.5rem; font: var(--title); letter-spacing: -0.025em; }
ul.compact { list-style: none; margin: 0; padding: 0; }
ul.compact li { display: flex; gap: 1.25rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px dotted #d8d8d0; }
ul.compact time { flex: none; font: 12px var(--mono); color: var(--faint); }
ul.compact a { font-weight: 600; text-decoration: none; }
ul.compact a:hover, .lead-title:hover { color: var(--accent); }

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; }
  aside { position: static; }
  aside .tagline { margin-bottom: 1rem; }
  aside nav a { display: inline-block; margin-right: 1rem; }
  aside h3, aside .tags { display: none; }
}
