/* Reading, archive, and taxonomy pages share the light Bento palette. */
.content-page .content-shell {
  padding-top: 26px;
  padding-bottom: 32px;
}

.content-page .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.7;
}

.content-page .breadcrumb a:hover {
  color: var(--site-accent);
}

.content-page .breadcrumb > span:last-child {
  overflow-wrap: anywhere;
}

.article-page .home-shell {
  width: min(1024px, calc(100% - 32px));
}

.article-page main.content-shell {
  padding-top: 0;
}

.article-page .home-header {
  min-height: 36px;
  padding: 4px 0;
  flex-wrap: nowrap;
  border: 0;
}

.article-page .home-brand {
  gap: 5px;
  color: var(--site-accent);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.article-page .home-brand::after { content: "»"; }
.article-page .home-brand-mark,
.article-page .home-brand-period,
.article-page .home-nav > .home-rss { display: none; }
.article-page .home-nav { gap: 12px; font-size: 13px; }
.article-page .home-nav > a { min-height: 28px; }
.article-page .home-nav > a:hover { color: var(--site-accent); }

.article-page .article-paper {
  --article-padding: 40px;
  padding: var(--article-padding);
}

.content-page .article-paper,
.content-page .list-paper,
.content-page .empty-page {
  min-width: 0;
  border: 1px solid var(--site-border);
  border-radius: 6px;
  background: var(--site-card);
  box-shadow: 0 3px 16px rgb(30 49 68 / 2%);
}

.content-page .list-paper,
.content-page .empty-page { padding: 44px 48px; }

.content-page .article-header { margin-bottom: 16px; }

.content-page .page-kicker {
  margin: 0 0 14px;
  color: var(--site-accent);
  font-family: var(--site-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  line-height: 1.6;
}

.content-page .collection-title {
  margin: 0;
  color: var(--site-text);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.content-page .article-title-main {
  margin: 20px 0;
  color: var(--site-text);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.content-page .article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--site-accent);
  font-size: 14px;
  line-height: 20px;
}

.content-page .article-tags a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-page .post-content {
  --article-code-font: Menlo, Monaco, Consolas, "Courier New", monospace;
  color: #354255;
  font-size: 16px;
  line-height: 1.625;
  overflow-wrap: break-word;
}

.content-page .post-content > :first-child {
  margin-top: 0;
}

.content-page .post-content > :last-child {
  margin-bottom: 0;
}

.content-page .post-content p,
.content-page .post-content ul,
.content-page .post-content ol,
.content-page .post-content dl {
  margin: .7em 0;
}

.content-page .post-content h1,
.content-page .post-content h2,
.content-page .post-content h3,
.content-page .post-content h4,
.content-page .post-content h5,
.content-page .post-content h6 {
  margin: 1em 0 .2em;
  padding: 0;
  border: 0;
  color: var(--site-text);
  font-weight: 700;
  line-height: inherit;
  scroll-margin-top: 28px;
}

.content-page .post-content h1 { font-size: 2.5em; }
.content-page .post-content h2 { font-size: 2em; }
.content-page .post-content h3 { font-size: 1.5em; }
.content-page .post-content h4 { font-size: 1.25em; }
.content-page .post-content h5 { font-size: 1.125em; }
.content-page .post-content h6 { font-size: 1em; }

.content-page .post-content :is(h2, h3, h4, h5) {
  position: relative;
  border-bottom: 1px solid var(--site-border);
}

.content-page .post-content h2::before,
.content-page .post-content h3::before,
.content-page .post-content h4::before,
.content-page .post-content h5::before {
  position: absolute;
  top: 0;
  left: calc(-1 * var(--article-padding));
  width: 10px;
  height: 100%;
  background: var(--site-accent);
  content: "";
}

.content-page .post-content a {
  color: #24745b;
  text-decoration: underline;
  text-decoration-color: #bad4c9;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.content-page .post-content a:hover {
  color: #18523f;
  text-decoration-color: currentColor;
}

.content-page .post-content strong { color: var(--site-text); }
.content-page .post-content ul { padding-left: 1.5em; list-style: disc; }
.content-page .post-content ol { padding-left: 1.5em; list-style: decimal; }
.content-page .post-content li { margin: .3em 0; padding-left: .15em; }
.content-page .post-content li::marker { color: #81918e; }
.content-page .post-content li > ul,
.content-page .post-content li > ol { margin: .4em 0; }
.content-page .post-content li > p { margin: .5em 0; }
.content-page .post-content ul:has(> li > input[type="checkbox"]) { list-style: none; padding-left: 0; }
.content-page .post-content input[type="checkbox"] { margin-right: 8px; accent-color: var(--site-accent); }
.content-page .post-content dt { margin-top: 1em; color: var(--site-text); font-weight: 600; }
.content-page .post-content dd { padding-left: 1.25em; }

.content-page .post-content blockquote {
  margin: 1.6em 0;
  padding: 16px 22px;
  border-left: 3px solid #75ad99;
  border-radius: 0 8px 8px 0;
  background: #f2f7f5;
  color: #466156;
}

.content-page .post-content blockquote > :first-child { margin-top: 0; }
.content-page .post-content blockquote > :last-child { margin-bottom: 0; }

.content-page .post-content code,
.content-page .post-content kbd,
.content-page .post-content samp {
  padding: .065em .4em;
  border: 0;
  border-radius: 2px;
  background: #edf6f2;
  color: var(--site-accent);
  font-family: var(--article-code-font);
  font-size: .87em;
  overflow-wrap: anywhere;
}

.content-page .post-content kbd { box-shadow: 0 1px 0 #ccd6df; }

.content-page .post-content pre {
  max-width: 100%;
  margin: .7em 0;
  padding: 1em;
  overflow-x: auto;
  border: 0;
  border-radius: 2px;
  background: var(--site-bg);
  color: #35465c;
  font-family: var(--article-code-font);
  font-size: 13px;
  line-height: 1.625;
  tab-size: 4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
}

.content-page .post-content pre code,
.content-page .post-content pre samp {
  display: block;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: inherit;
  word-break: normal;
  overflow-wrap: anywhere;
}

.content-page .post-content .highlight { min-width: 0; margin: .7em 0; }
.content-page .post-content .highlight pre { margin: 0; }
.content-page .post-content .chroma .line { display: flex; }
.content-page .post-content .chroma .cl { min-width: 0; flex: 1; }
.content-page .post-content .chroma .hl { background: #e6eee9; }
.content-page .post-content .chroma :is(.ln, .lnt) { padding-right: 18px; color: #8694a4; user-select: none; }
.content-page .post-content .chroma .lnlinks { color: inherit; text-decoration: none; }
.content-page .post-content .chroma :is(.k, .kc, .kd, .kn, .kp, .kr, .kt, .nt) { color: #8250a0; }
.content-page .post-content .chroma :is(.nf, .fm, .nc, .nd, .nn) { color: #286aa1; }
.content-page .post-content .chroma :is(.s, .s1, .s2, .sa, .sb, .sc, .sd, .se, .sh, .si, .sr, .ss, .sx) { color: #28714e; }
.content-page .post-content .chroma :is(.m, .mb, .mf, .mh, .mi, .il, .mo, .no) { color: #a85827; }
.content-page .post-content .chroma :is(.c, .c1, .ch, .cm, .cp, .cpf, .cs) { color: #778592; font-style: italic; }
.content-page .post-content .chroma :is(.o, .ow, .p) { color: #586578; }
.content-page .post-content .chroma :is(.na, .nb, .bp, .nv, .vc, .vg, .vi, .vm) { color: #315a80; }
.content-page .post-content .chroma :is(.err, .gr, .gt) { color: #ac3845; background: #fff0f1; }
.content-page .post-content .chroma .gd { color: #9c3440; background: #ffebe9; }
.content-page .post-content .chroma .gi { color: #24623f; background: #daf4e3; }
.content-page .post-content .chroma :is(.gh, .gu) { color: #286aa1; font-weight: 600; }
.content-page .post-content .chroma .ge { font-style: italic; }
.content-page .post-content .chroma .gs { font-weight: 700; }

.content-page .post-content table {
  display: block;
  max-width: 100%;
  margin: 1.6em 0;
  overflow-x: auto;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  border-spacing: 0;
  color: inherit;
  font-size: .88em;
  line-height: 1.65;
}

.content-page .post-content th,
.content-page .post-content td {
  padding: 11px 15px;
  border-bottom: 1px solid var(--site-border);
  background: transparent;
  color: inherit;
  text-align: left;
}

.content-page .post-content th { background: #f3f6f9; color: var(--site-text); font-weight: 600; }
.content-page .post-content tr:last-child td { border-bottom: 0; }
.content-page .post-content td { font-size: inherit; }
.content-page .post-content .chroma .lntable { display: table; width: auto; margin: 0; border: 0; }
.content-page .post-content .chroma .lntd { padding: 0; border: 0; }
.content-page .post-content .chroma .lntd pre { border: 0; border-radius: 0; }

.content-page .post-content img,
.content-page .post-content video,
.content-page .post-content iframe {
  max-width: 100%;
  margin: 1.5em auto;
  border-radius: 7px;
}

.content-page .post-content img { height: auto; }
.content-page .post-content figure { margin: 1.6em 0; }
.content-page .post-content figure img { margin: 0 auto; }
.content-page .post-content figcaption { margin-top: 10px; color: var(--site-muted); font-size: 12px; }
.content-page .post-content hr { margin: 2.3em 0; border: 0; border-top: 1px solid var(--site-border); }
.content-page .post-content details { margin: 1.5em 0; padding: 15px 20px; border: 1px solid var(--site-border); border-radius: 8px; }
.content-page .post-content summary { color: var(--site-text); cursor: pointer; font-weight: 600; }
.content-page .post-content .footnotes { margin-top: 3em; color: var(--site-muted); font-size: .82em; }
.content-page .post-content .footnotes li { scroll-margin-top: 28px; }

.content-page .article-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--site-border);
}

.content-page .back-to-archive {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--site-accent);
  font-size: 13px;
  font-weight: 500;
}

.content-page .back-to-archive svg { width: 16px; height: 16px; }
.content-page .back-to-archive:hover { color: #164a39; }
.content-page .comments:not(:empty) { margin-top: 32px; }
.content-page .comments iframe { color-scheme: light; }

.content-page .collection-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--site-border);
}

.content-page .collection-description { margin-top: 13px; color: var(--site-muted); font-size: 14px; line-height: 1.8; }
.content-page .collection-count { flex-shrink: 0; padding-bottom: 7px; color: var(--site-muted); font-family: var(--site-mono); font-size: 12px; }
.content-page .archive-year + .archive-year { margin-top: 35px; }
.content-page .archive-year > h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--site-accent); font-family: var(--site-mono); font-size: 18px; font-weight: 600; }
.content-page .archive-year > h2 > span { color: #7c8c9e; font-size: 12px; font-weight: 400; }
.content-page .article-list { margin: 0; padding: 0; list-style: none; }
.content-page .article-list > li + li { border-top: 1px solid #edf0f4; }

.content-page .article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 12px;
  margin-inline: -12px;
  border-radius: 6px;
  transition: background-color .16s ease;
}

.content-page .article-row:hover { background: #f5f8f7; }
.content-page .row-main { min-width: 0; }
.content-page .row-title { margin: 0; color: var(--site-text); font-size: 17px; font-weight: 600; line-height: 1.65; overflow-wrap: anywhere; }
.content-page .article-row:hover .row-title { color: var(--site-accent); }
.content-page .row-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 7px; overflow: hidden; color: var(--site-muted); font-size: 13px; line-height: 1.85; }
.content-page .row-meta { display: flex; flex-shrink: 0; align-items: center; gap: 22px; color: var(--site-muted); font-family: var(--site-mono); font-size: 12px; }
.content-page .row-meta svg { width: 16px; height: 16px; color: #81968d; }
.content-page .empty-state { padding: 40px 0; color: var(--site-muted); font-size: 14px; }

.content-page .taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.content-page .taxonomy-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 125px;
  padding: 23px;
  border: 1px solid var(--site-border);
  border-radius: 6px;
  background: var(--site-card);
  transition: background-color .16s ease, border-color .16s ease;
}

.content-page .taxonomy-card:hover { border: 1px solid #bfd7cc; background: #f5faf7; }
.content-page .taxonomy-name { grid-column: 1 / -1; color: var(--site-text); font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.content-page .taxonomy-count { color: var(--site-muted); font-family: var(--site-mono); font-size: 12px; }
.content-page .taxonomy-card svg { width: 16px; height: 16px; color: var(--site-accent); }
.content-page .empty-page { padding-block: 90px; text-align: center; }
.content-page .empty-page h1 { margin-bottom: 18px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -1px; line-height: 1.4; }
.content-page .empty-page > p:not(.page-kicker) { color: var(--site-muted); font-size: 15px; }
.content-page .empty-page .archive-cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; padding: 11px 18px; border: 1px solid #bad4c9; border-radius: 7px; background: #edf6f2; color: var(--site-accent); font-size: 13px; }
.content-page .empty-page .archive-cta svg { width: 16px; height: 16px; }
.content-page .empty-page .archive-cta:hover { border: 1px solid #75ad99; background: #e4f1eb; }

.content-page summary:focus-visible,
.content-page pre:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 4px;
}

@media (max-width: 960px) {
  .content-page .taxonomy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .content-page .content-shell { padding-top: 21px; padding-bottom: 12px; }
  .content-page .breadcrumb { margin-bottom: 19px; gap: 8px; font-size: 12px; }
  .article-page .article-paper { --article-padding: 20px; }
  .content-page .list-paper { padding: 26px 20px; border-radius: 6px; }
  .content-page .article-title-main { margin: 12px 0 20px; font-size: 32px; line-height: 1.25; }
  .content-page .collection-title { font-size: 28px; letter-spacing: -.6px; }
  .content-page .page-kicker { margin-bottom: 12px; font-size: 12px; }
  .content-page .post-content h2 { font-size: 1.625em; }
  .content-page .post-content h3 { font-size: 1.3125em; }
  .content-page .post-content :is(h2, h3, h4, h5)::before { width: 5px; }
  .content-page .post-content blockquote { padding: 13px 16px; }
  .content-page .post-content th,
  .content-page .post-content td { padding: 9px 12px; }
  .content-page .article-footer { margin-top: 35px; }
  .content-page .collection-header { align-items: flex-start; gap: 15px; margin-bottom: 25px; padding-bottom: 24px; }
  .content-page .collection-count { padding-top: 3px; font-size: 12px; }
  .content-page .collection-description { font-size: 13px; }
  .content-page .archive-year > h2 { font-size: 16px; }
  .content-page .article-row { align-items: flex-start; flex-direction: column; gap: 9px; padding-block: 17px; }
  .content-page .row-title { font-size: 16px; }
  .content-page .row-meta { width: 100%; justify-content: space-between; }
  .content-page .row-summary { font-size: 12px; }
  .content-page .taxonomy-grid { gap: 10px; }
  .content-page .taxonomy-card { min-height: 115px; padding: 17px; }
  .content-page .taxonomy-name { font-size: 16px; }
  .content-page .taxonomy-count { font-size: 12px; }
  .content-page .empty-page { padding: 60px 20px; }
}
