:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --surface: #fbfaf6;
  --ink: #202622;
  --muted: #747970;
  --rule: #d9d8cf;
  --accent: #ad482f;
  --measure: 68rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  border-top: 4px solid var(--accent);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-decoration-thickness: .07em;
  text-underline-offset: .2em;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.site-shell { width: min(calc(100% - 4rem), var(--measure)); margin: 0 auto; }
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand nav" "description nav";
  align-items: end;
  column-gap: 3rem;
  padding: 3.25rem 0 1.45rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  grid-area: brand;
  display: inline-block;
  width: fit-content;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .98;
  text-decoration: none;
}
.site-description {
  grid-area: description;
  max-width: 35rem;
  margin: .9rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.5;
}
.site-nav {
  grid-area: nav;
  display: flex;
  gap: 1.55rem;
  align-self: center;
  padding-top: .35rem;
  font: 600 .9rem/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.site-nav a { padding: .45rem 0; text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); }

main { min-height: 48vh; }
.chronology { max-width: 51rem; padding: 3.5rem 0 6rem; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}
.eyebrow {
  margin: 0 0 .55rem;
  color: var(--accent);
  font: 700 1.05rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2, h3 { text-wrap: balance; }
h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.08;
}
.empty-state {
  margin: 0;
  padding: 1.25rem 0 1.25rem 1.15rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 1.12rem;
}

.static-page { max-width: 46rem; padding: 3.5rem 0 7rem; }
.static-page h1 { margin-bottom: 1.3rem; }
.static-page > p:last-child { max-width: 39rem; font-size: clamp(1.15rem, 2vw, 1.4rem); }

/* Standalone article pages. */
.article { max-width: 46rem; padding: 3.5rem 0 7rem; }
.article-header { margin-bottom: 2rem; padding-bottom: 0; border-bottom: 0; }
.article-title { max-width: 19ch; margin: 0; font-size: clamp(2.4rem, 4.7vw, 3.8rem); font-weight: 500; letter-spacing: -.065em; line-height: 1.02; }
.article-meta { display: flex; gap: .7rem; align-items: center; margin-top: 1.2rem; color: var(--muted); font: .82rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.article-body { font-size: clamp(1.08rem, 1.3vw, 1.2rem); line-height: 1.82; }
.article-body h2 { margin: 1.55em 0 .5em; font-size: 1.75em; font-weight: 500; letter-spacing: -.035em; line-height: 1.2; }
.article-body h3 { margin: 1.675em 0 .525em; font-size: 1.3em; font-weight: 600; line-height: 1.3; }
.article-body p { margin: 0 0 .525em; }
.article-body a { text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.article-body blockquote { margin: 2em 0; padding: .15em 0 .15em 1.25em; border-left: 2px solid var(--accent); color: #505750; }
.article-body pre, .article-body code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.article-body code { padding: .12em .3em; background: #eae7df; font-size: .82em; }
.article-body pre { overflow-x: auto; margin: 1.8em 0; padding: 1.2rem 1.4rem; background: #eae7df; font-size: .84em; line-height: 1.6; }
.article-body pre code { padding: 0; background: none; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 0 2.7rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font: .78rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 2; padding: .5rem .75rem; background: var(--surface); }

@media (max-width: 46rem) {
  .site-shell { width: min(calc(100% - 2rem), var(--measure)); }
  .site-header {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "description" "nav";
    row-gap: 0;
    padding-top: 2.4rem;
  }
  .site-nav { gap: 1.2rem; margin-top: 1.4rem; }
  .chronology, .article, .static-page { padding-top: 3.25rem; }
  .section-heading { align-items: start; }
  .article-site-header { padding-top: 2.4rem; }
  .article-site-header .wordmark { font-size: clamp(1.75rem, 6.5vw, 2.15rem); }
}

@media (max-width: 30rem) {
  .site-nav { gap: 1.25rem; font-size: .82rem; }
  .section-heading { margin-bottom: 1.3rem; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.article-site-header { padding-top: 3.25rem; }
.article-site-header .wordmark { font-size: clamp(1.85rem, 2.9vw, 2.4rem); }

.article-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.article-page-link { display: grid; gap: .25rem; align-content: start; text-decoration: none; }
.article-page-direction { color: var(--accent); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-page-title { font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 1rem; }
.article-page-unavailable { color: var(--muted); opacity: .55; }
.article-page-next { text-align: right; }
@media (max-width: 30rem) { .article-pagination { gap: .75rem; } }

.post-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.post-list > li { margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.post-preview { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.25rem; padding: 1.35rem 0; }
.post-date { padding-top: .22rem; color: var(--muted); font: .78rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.post-title { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.2; }
.post-title a { text-decoration: none; }
.post-summary { max-width: 38rem; margin: .55rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.article-body pre[class*="language-"] { color: #f8f8f2; text-shadow: none; }
.article-body code[class*="language-"] { background: none; }
.article-body .token.comment, .article-body .token.prolog, .article-body .token.doctype, .article-body .token.cdata { color: #a5a99f; }
.article-body .token.punctuation { color: #dedbd2; }
.article-body .token.property, .article-body .token.tag, .article-body .token.constant, .article-body .token.symbol, .article-body .token.deleted { color: #ef8d73; }
.article-body .token.boolean, .article-body .token.number { color: #e8ae76; }
.article-body .token.selector, .article-body .token.attr-name, .article-body .token.string, .article-body .token.char, .article-body .token.builtin, .article-body .token.inserted { color: #b8cb8e; }
.article-body .token.operator, .article-body .token.entity, .article-body .token.url { color: #e2c47b; background: none; }
.article-body .token.atrule, .article-body .token.attr-value, .article-body .token.keyword { color: #d5a8d3; }
.article-body .token.function, .article-body .token.class-name { color: #8fc4d4; }
.article-body .token.regex, .article-body .token.important, .article-body .token.variable { color: #e4bd83; }
.article-body pre.mermaid { overflow-x: auto; margin: 1.8em 0; padding: 1.2rem; background: #eae7df; text-align: center; }
.article-body .mermaid svg { max-width: 100%; height: auto; }
.article-body .mermaid .labelBkg { fill: #eae7df !important; }
.article-body .mermaid .node rect, .article-body .mermaid .node polygon { fill: #f5f2eb !important; stroke: #ad482f !important; }
@media (max-width: 46rem) { .post-preview { grid-template-columns: 1fr; gap: .4rem; } }

@media (max-width: 46rem) {
  .site-shell { width: min(calc(100% - 2rem), var(--measure)); }
  .site-header {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "description" "nav";
    justify-items: center;
    row-gap: 0;
    padding-top: 2.4rem;
  }
  .site-description { max-width: 29rem; text-align: center; }
  .site-nav { gap: 1.2rem; margin-top: 1.4rem; }
  .chronology, .static-page, .article { padding-top: 3.25rem; }
  .article-site-header { padding-top: 2.4rem; }
  .article-site-header .wordmark { font-size: clamp(1.75rem, 6.5vw, 2.15rem); }
  .post-preview { grid-template-columns: 1fr; gap: .4rem; }
}
