@font-face{font-family:'LXGW Bright Code NF';font-style:normal;font-weight:300 400;font-display:swap;src:url('/fonts/lxgw-subset.woff2?v=28b63bbb53') format('woff2');}

/* CSS Custom Properties */
:root {
  /* Light theme colors */
  --color-primary: #dc143c;
  --color-primary-hover: #b91c3c;
  --color-border: #663399;
  --color-callout: #1e90ff;
  --color-text: #232333;
  --color-text-muted: #737373;
  --color-text-meta: #999999;
  --color-background: #ffffff;
  --color-background-code: #f1f1f1;
  --color-background-pre: #ececec;
  --color-background-toc: #ececec;
  --color-background-draft: #f9f2f4;
  
  /* Dark theme colors */
  --color-primary-dark: #50fa7b;
  --color-primary-hover-dark: #3dd458;
  --color-border-dark: #0066ff;
  --color-text-dark: #ffffff;
  --color-text-muted-dark: #dddddd;
  --color-background-dark: #202124;
  --color-background-code-dark: #3a3a3a;
  --color-background-pre-dark: #272822;
  --color-background-toc-dark: #272822;
  --color-background-draft-dark: #0066ff;
  
  /* Spacing and sizing */
  --content-max-width: 800px;
  --content-padding: 1ch;
  --border-radius: 5px;
  /* One family for absolutely everything. Defined once so the browser's own
     default `monospace` for <pre>/<code> and its default UI font for form
     controls cannot sneak in. */
  --font-family: 'LXGW Bright Code NF', 'LXGW Bright Code', ui-monospace,
    SFMono-Regular, Menlo, Consolas, 'Courier New', monospace;
  --font-size-base: 15px;
  --line-height-base: 1.6;
  --line-height-content: 1.5;
}
/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Always reserve the vertical scrollbar's width.
     Without this, a page that grows past the viewport — search results
     appearing, a long post — suddenly gains a scrollbar, the viewport gets
     ~15px narrower, and the centred content jumps sideways. Reserving the
     gutter makes the geometry identical either way. */
  scrollbar-gutter: stable;

  color: var(--color-text, #232333);
  font-family: var(--font-family);
  font-size: var(--font-size-base, 15px);
  line-height: var(--line-height-base, 1.6);
  scroll-behavior: smooth;
}

/* Safari only learned scrollbar-gutter in 18.2; a permanently present track
   achieves the same thing there. */
@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 8px;
  background-color: var(--color-background, #ffffff);
  transition: background-color 0.2s ease, color 0.2s ease;
}

* {
  -webkit-tap-highlight-color: transparent;
}

/* Selection styles */
::selection {
  background: var(--color-primary, #dc143c);
  color: #ffffff;
}

::-moz-selection {
  background: var(--color-primary, #dc143c);
  color: #ffffff;
}

/* Typography */
p {
  font-family: var(--font-family);
  line-height: var(--line-height-content, 1.5);
  /* Fallback for older browsers */
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

@supports (margin-block: 0.5em) {
  p {
    margin-top: unset;
    margin-bottom: unset;
    margin-block: 0.5em;
  }
}

hr {
  border: 0;
  /* Fallback for older browsers */
  border-top: 3px dotted var(--color-border, #663399);
  margin-top: 1em;
  margin-bottom: 1em;
}

@supports (border-block-start: 3px dotted var(--color-border, #663399)) {
  hr {
    border-top: unset;
    margin-top: unset;
    margin-bottom: unset;
    border-block-start: 3px dotted var(--color-border, #663399);
    margin-block: 1em;
  }
}

blockquote {
  /* Fallback for older browsers */
  border-left: 3px solid var(--color-border, #663399);
  padding-left: 1em;
  color: var(--color-text-muted, #737373);
  margin: 0;
  font-style: italic;
}

@supports (border-inline-start: 3px solid var(--color-border, #663399)) {
  blockquote {
    border-left: unset;
    padding-left: unset;
    border-inline-start: 3px solid var(--color-border, #663399);
    padding-inline-start: 1em;
  }
}

/* Links */
a {
  /* Fallback for older browsers */
  border-bottom: 3px solid var(--color-primary, #dc143c);
  /* Modern logical properties */
  border-block-end: 3px solid var(--color-primary, #dc143c);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a:hover,
a:focus {
  background-color: var(--color-primary-hover, #b91c3c);
  color: #ffffff;
  outline: 2px solid var(--color-primary, #dc143c);
  outline-offset: 2px;
}

a:focus {
  outline-style: solid;
}

/* Lists */
ul {
  list-style: none;
  /* Fallback for older browsers */
  padding-left: 2ch;
  /* Modern logical properties */
  padding-inline-start: 2ch;
}

ul li {
  text-indent: -2ch;
}

ul > li::before {
  content: '* ';
  font-weight: bold;
  color: var(--color-primary, #dc143c);
}

/* Images */
img {
  border: 3px solid var(--color-background-pre, #ececec);
  /* Fallback for older browsers */
  max-width: 100%;
  height: auto;
  /* Modern logical properties */
  max-inline-size: 100%;
  block-size: auto;
  border-radius: var(--border-radius, 5px);
}

figure {
  display: inline-block;
  margin: 0;
  /* Fallback for older browsers */
  max-width: 100%;
  /* Modern logical properties */
  max-inline-size: 100%;
}

figure img {
  /* Fallback for older browsers */
  max-height: 500px;
  /* Modern logical properties */
  max-block-size: 500px;
}

@media screen and (min-width: 37.5em) {
  figure {
    /* Fallback for older browsers */
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    /* Modern logical properties */
    padding-inline: 2.5rem;
  }
}

figure h4 {
  font-size: 1rem;
  margin: 0;
  /* Fallback for older browsers */
  margin-bottom: 1em;
  /* Modern logical properties */
  margin-block-end: 1em;
}

figure h4::before {
  content: '↳ ';
  color: var(--color-primary, #dc143c);
}

/* The UA stylesheet sets `font-family: monospace` on these four, so they
   ignore the family inherited from <html> unless it is stated explicitly.
   That is why code blocks used to render in the system font. */
pre,
code,
kbd,
samp {
  font-family: var(--font-family);
}

/* Code blocks */
code {
  background-color: var(--color-background-code, #f1f1f1);
  padding: 0.1em 0.2em;
  border-radius: 3px;
  font-size: 0.9em;
}

pre {
  background-color: var(--color-background-pre, #ececec);
  line-height: 1.4;
  overflow-x: auto;
  padding: 1em;
  border-radius: var(--border-radius, 5px);
  border: 1px solid var(--color-border, #663399);
}

.highlight pre ::selection {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

pre code {
  background-color: transparent;
  color: inherit;
  font-size: 100%;
  padding: 0;
}

/* Layout containers */
.content {
  /* Fallback for older browsers */
  margin-bottom: 4em;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--content-max-width, 800px);
  padding-left: var(--content-padding, 1ch);
  padding-right: var(--content-padding, 1ch);
  /* Modern logical properties */
  margin-block-end: 4em;
  margin-inline: auto;
  max-inline-size: var(--content-max-width, 800px);
  padding-inline: var(--content-padding, 1ch);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Header */
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  /* Fallback for older browsers */
  margin-top: 1em;
  margin-bottom: 1em;
  /* Modern logical properties */
  margin-block: 1em;
  line-height: 2.5em;
  gap: 1rem;
}

header .main {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-size: 1.2rem;
  /* Fallback for older browsers */
  margin-top: 2em;
  margin-bottom: 0.5em;
  /* Modern logical properties */
  margin-block-start: 2em;
  margin-block-end: 0.5em;
  line-height: 1.2;
}

h1::before { color: var(--color-primary, #dc143c); content: '# '; }
h2::before { color: var(--color-primary, #dc143c); content: '## '; }
h3::before { color: var(--color-primary, #dc143c); content: '### '; }
h4::before { color: var(--color-primary, #dc143c); content: '#### '; }
h5::before { color: var(--color-primary, #dc143c); content: '##### '; }
h6::before { color: var(--color-primary, #dc143c); content: '###### '; }

.meta {
  color: var(--color-text-meta, #999999);
  letter-spacing: -0.5px;
  font-size: 0.9em;
}

/* Post layout */
.post-container {
  /* Flexbox fallback for older browsers */
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}

@supports (display: grid) {
  .post-container {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 60em) {
  .post-container {
    /* Flexbox fallback */
    flex-wrap: nowrap;
  }
  
  @supports (display: grid) {
    .post-container {
      grid-template-columns: 1fr auto;
    }
  }
}

.post-content {
  /* Flexbox fallback */
  flex: 1;
  min-width: 0;
  /* Modern properties */
  min-inline-size: 0;
  overflow-wrap: break-word;
}

.toc {
  background-color: var(--color-background-toc, #ececec);
  border-radius: var(--border-radius, 5px);
  color: var(--color-text, #232333);
  /* Fallback for older browsers */
  max-width: 18.75rem;
  /* Flexbox fallback */
  flex: 0 0 auto;
  /* Modern properties */
  max-inline-size: 18.75rem;
  overflow-y: auto;
  padding: 0.75rem;
  border: 1px solid var(--color-border, #663399);
}

@media screen and (min-width: 60em) {
  .toc {
    position: sticky;
    /* Fallback for older browsers */
    top: 1.25rem;
    /* Modern logical properties */
    inset-block-start: 1.25rem;
  }
}

@media screen and (max-width: 59.99em) {
  .toc {
    /* Fallback for older browsers */
    margin-bottom: 1.5rem;
    /* Modern logical properties */
    margin-block-end: 1.5rem;
    order: -1;
  }
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  /* Fallback for older browsers */
  /* Was a 6.4px dotted rule; a hairline reads much calmer. */
  border-top: 1px solid var(--color-border, #663399);
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-top: 2rem;
  /* Modern logical properties */
  border-block-start: 1px solid var(--color-border, #663399);
  padding-block: 2rem;
  margin-block-start: 2rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.soc {
  display: flex;
  align-items: center;
  /* Fallback for older browsers */
  border-bottom: none;
  /* Modern logical properties */
  border-block-end: none;
  transition: color 0.2s ease;
}

.soc:hover,
.soc:focus {
  color: #ffffff;
  outline: 2px solid var(--color-primary, #dc143c);
  outline-offset: 2px;
}

.border {
  margin-inline: 0.5rem;
  border: 1px solid var(--color-border, #663399);
}

/* Common elements */
.title h1 {
  /* Fallback for older browsers */
  margin-bottom: 0;
  /* Modern logical properties */
  margin-block-end: 0;
}

time {
  color: var(--color-text-muted, #737373);
  font-size: 0.9em;
}

/* Posts */
article .title {
  /* Fallback for older browsers */
  margin-bottom: 1em;
  /* Modern logical properties */
  margin-block-end: 1em;
}


/* Callouts */
.callout {
  background-color: var(--color-callout, #1e90ff);
  color: #ffffff;
  padding: 1em;
  border-radius: var(--border-radius, 5px);
  /* Fallback for older browsers */
  margin-top: 1em;
  margin-bottom: 1em;
  /* Modern logical properties */
  margin-block: 1em;
}

.callout p {
  font-family: inherit;
  margin: 0;
}

.callout a {
  /* Fallback for older browsers */
  border-bottom: 3px solid #ffffff;
  /* Modern logical properties */
  border-block-end: 3px solid #ffffff;
  color: inherit;
}

.callout a:hover,
.callout a:focus {
  background-color: #ffffff;
  color: var(--color-callout, #1e90ff);
}

/* Callout variants */
.callout-alert {
  color: #721c24;
  background-color: #f8d7da;
  border: 3px solid #f5c2c7;
}

.callout-tip {
  color: #055160;
  background-color: #d1ecf1;
  border: 3px solid #b8daff;
}

.callout-warning {
  color: #664d03;
  background-color: #fff3cd;
  border: 3px solid #ffecb5;
}

.callout-custom {
  /* Custom styles will be applied inline */
  color: inherit;
}

/* Site and content elements */
.site-description {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.tags li::before {
  /* Was "🏷 " — LXGW Bright Code NF has no glyph for U+1F3F7, so it was always
     drawn by the system emoji font. */
  content: "# ";
  margin-inline-start: 2rem;
}

.tags a {
  /* Fallback for older browsers */
  border-bottom: 3px solid var(--color-primary, #dc143c);
  /* Modern logical properties */
  border-block-end: 3px solid var(--color-primary, #dc143c);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.tags a:hover,
.tags a:focus {
  color: #ffffff;
  background-color: var(--color-primary-hover, #b91c3c);
}

/* Icons and media */
svg {
  /* Fallback for older browsers */
  max-height: 1rem;
  max-width: 1rem;
  /* Modern logical properties */
  max-block-size: 1rem;
  max-inline-size: 1rem;
}

.feather {
  /* Fallback for older browsers */
  width: 1.5rem;
  height: 1.5rem;
  /* Modern logical properties */
  inline-size: 1.5rem;
  block-size: 1.5rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: inline-block;
  vertical-align: middle;
}

/* Draft label */
.draft-label {
  color: var(--color-border, #663399);
  text-decoration: none;
  padding: 0.125rem 0.25rem;
  border-radius: 4px;
  /* Fallback for older browsers */
  margin-left: 0.375rem;
  /* Modern logical properties */
  margin-inline-start: 0.375rem;
  background-color: var(--color-background-draft, #f9f2f4);
  font-size: 0.8em;
  font-weight: bold;
}
/* Code highlighting */
.highlight {
  position: relative;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--border-radius, 5px);
  overflow: hidden;
}
/* Code language badges */
.highlight pre code[class*="language-"] {
  -webkit-overflow-scrolling: touch;
}

.highlight pre code[class*="language-"]::before {
  background: #000000;
  border-radius: 0 0 0.25rem 0.25rem;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.025rem;
  padding: 0.1rem 0.5rem;
  position: absolute;
  /* Fallback for older browsers */
  right: 1rem;
  top: 0;
  /* Modern logical properties */
  inset-inline-end: 1rem;
  inset-block-start: 0;
  text-align: right;
  text-transform: uppercase;
}

/* Language-specific badges */
.highlight pre code[class*="language-js"]::before,
.highlight pre code[class="language-javascript"]::before {
  content: "js";
  background: #f7df1e;
  color: #000000;
}

.highlight pre code[class*="language-ts"]::before {
  content: "ts";
  background: #3178c6;
  color: #ffffff;
}

.highlight pre code[class*="language-py"]::before,
.highlight pre code[class*="language-python"]::before {
  content: "python";
  background: #3776ab;
  color: #ffffff;
}

.highlight pre code[class*="language-go"]::before {
  content: "go";
  background: #00add8;
  color: #ffffff;
}

.highlight pre code[class*="language-css"]::before {
  content: "css";
  background: #1572b6;
  color: #ffffff;
}

.highlight pre code[class*="language-html"]::before {
  content: "html";
  background: #e34f26;
  color: #ffffff;
}

.highlight pre code[class*="language-json"]::before {
  content: "json";
  background: #000000;
  color: #ffffff;
}

.highlight pre code[class*="language-yml"]::before,
.highlight pre code[class*="language-yaml"]::before {
  content: "yaml";
  background: #cc1018;
  color: #ffffff;
}

.highlight pre code[class*="language-shell"]::before,
.highlight pre code[class*="language-bash"]::before,
.highlight pre code[class*="language-sh"]::before {
  content: "shell";
  background: #4eaa25;
  color: #ffffff;
}

.highlight pre code[class*="language-md"]::before,
.highlight pre code[class*="language-markdown"]::before {
  content: "markdown";
  background: #083fa1;
  color: #ffffff;
}

/* Tables */
table {
  border-spacing: 0;
  border-collapse: collapse;
  /* Fallback for older browsers */
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1rem;
  /* Modern logical properties */
  inline-size: 100%;
  margin-block: 1rem;
  border-radius: var(--border-radius, 5px);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

table th {
  padding: 0.75rem;
  border: 1px solid var(--color-border, #663399);
  font-weight: bold;
  background-color: var(--color-background-pre, #ececec);
  text-align: start;
}

table td {
  padding: 0.75rem;
  border: 1px solid var(--color-border, #663399);
}

table tr:nth-child(even) {
  background-color: var(--color-background-code, #f1f1f1);
}

/* Navigation and theme toggle */
nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-toggle {
  /* Reset button styles */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  background: none;
  margin: 0;
  font: inherit;
  cursor: pointer;
  
  /* Custom styling */
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  /* Ensure icon is always visible */
  color: var(--color-text, #232333);
}

.nav-toggle:hover,
.nav-toggle:focus {
  background-color: var(--color-primary, #dc143c);
  color: #ffffff;
  outline: 2px solid var(--color-primary, #dc143c);
  outline-offset: 2px;
}

.nav-toggle:focus {
  outline-style: solid;
}

/* Search */
.search-page {
  display: grid;
  gap: 1.5rem;
}

.search-intro {
  margin-block-start: -0.5rem;
}

.search-panel {
  border: 1px solid var(--color-border, #663399);
  border-radius: var(--border-radius, 5px);
  background-color: var(--color-background-pre, #ececec);
  padding: 1rem;
}

.search-label {
  display: block;
  font-weight: bold;
  margin-block-end: 0.5rem;
}

.search-input {
  inline-size: 100%;
  border: 1px solid var(--color-border, #663399);
  border-radius: 4px;
  background-color: var(--color-background, #ffffff);
  color: var(--color-text, #232333);
  font: inherit;
  padding: 0.75rem 0.9rem;
}

.search-input:focus {
  outline: 2px solid var(--color-primary, #dc143c);
  outline-offset: 2px;
}

.search-hint {
  color: var(--color-text-muted, #737373);
  font-size: 0.95em;
  margin-block: 0.75rem 0;
}

kbd {
  border: 1px solid var(--color-border, #663399);
  border-radius: 4px;
  background-color: var(--color-background, #ffffff);
  font-size: 0.9em;
  padding: 0.1rem 0.35rem;
}

.search-status {
  margin-block: 1rem 0;
}

.search-status-empty,
.search-status-error {
  color: var(--color-text-muted, #737373);
}

.search-status-error {
  color: var(--color-primary, #dc143c);
}

.search-results {
  list-style: none;
  padding: 0;
  margin-block: 1rem 0;
}

.search-results li {
  text-indent: 0;
}

.search-results > li::before,
.search-tag-list > li::before {
  content: none;
}

.search-result + .search-result {
  margin-block-start: 1rem;
}

.search-result-card {
  border: 1px solid var(--color-border, #663399);
  border-radius: var(--border-radius, 5px);
  background-color: var(--color-background, #ffffff);
  padding: 1rem;
}

.search-result-title {
  margin-block: 0 0.35rem;
}

.search-result-meta {
  color: var(--color-text-muted, #737373);
  font-size: 0.95em;
  margin-block: 0;
}

.search-result-snippet {
  margin-block: 0.75rem 0;
}

.search-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin-block: 0.75rem 0;
}

.search-tag-list li {
  text-indent: 0;
}

.search-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-primary, #dc143c);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.9em;
}

.nav-toggle:active {
  transform: scale(0.95);
}

/* Media queries for responsive design */
button,
input,
select,
textarea {
  font-family: inherit;
}

@media (max-width: 37.4em) {
  .content {
    /* Fallback for older browsers */
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    /* Modern logical properties */
    padding-inline: 0.5rem;
  }
  
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .site-description {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ======================================================================
   Additions for the Node port — exact-match language badges and the base
   colours highlight.js needs (the `hljs` class is intentionally not put on
   <code>, so the theme's own pre/code background wins).
   ====================================================================== */
.highlight code {
  color: var(--color-text, #232333);
}

.highlight pre code[class="language-c"]::before { content: "c"; background: #5c6bc0; color: #ffffff; }
.highlight pre code[class="language-cpp"]::before { content: "c++"; background: #00599c; color: #ffffff; }
.highlight pre code[class="language-matlab"]::before { content: "matlab"; background: #e16737; color: #ffffff; }
.highlight pre code[class="language-asm"]::before,
.highlight pre code[class="language-x86asm"]::before { content: "asm"; background: #654ff0; color: #ffffff; }
.highlight pre code[class="language-python"]::before { content: "python"; background: #3776ab; color: #ffffff; }
.highlight pre code[class="language-javascript"]::before { content: "js"; background: #f7df1e; color: #000000; }
.highlight pre code[class="language-typescript"]::before { content: "ts"; background: #3178c6; color: #ffffff; }
.highlight pre code[class="language-go"]::before { content: "go"; background: #00add8; color: #ffffff; }
.highlight pre code[class="language-css"]::before { content: "css"; background: #1572b6; color: #ffffff; }
.highlight pre code[class="language-xml"]::before { content: "html"; background: #e34f26; color: #ffffff; }
.highlight pre code[class="language-json"]::before { content: "json"; background: #000000; color: #ffffff; }
.highlight pre code[class="language-yaml"]::before { content: "yaml"; background: #cc1018; color: #ffffff; }
.highlight pre code[class="language-bash"]::before,
.highlight pre code[class="language-shell"]::before { content: "shell"; background: #4eaa25; color: #ffffff; }
.highlight pre code[class="language-markdown"]::before { content: "markdown"; background: #083fa1; color: #ffffff; }
.highlight pre code[class="language-sql"]::before { content: "sql"; background: #e38c00; color: #ffffff; }
.highlight pre code[class="language-rust"]::before { content: "rust"; background: #dea584; color: #000000; }
.highlight pre code[class="language-java"]::before { content: "java"; background: #b07219; color: #ffffff; }
.highlight pre code[class="language-ini"]::before { content: "ini"; background: #6c6c6c; color: #ffffff; }
.highlight pre code[class="language-diff"]::before { content: "diff"; background: #526e77; color: #ffffff; }

/* Long images inside a post should not overflow their column. */
.post-content img {
  display: block;
  margin-inline: auto;
}

/* Reading progress-ish meta row under a post title. */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ======================================================================
   Single-weight webfont.

   Only the Light (300) face is shipped — a second CJK weight would double
   the download, which the whole font pipeline exists to avoid. Rather than
   let the browser synthesise a smeared faux-bold, emphasis is expressed with
   a hairline shadow: the standard trick for single-weight CJK webfonts.
   ====================================================================== */
strong,
b {
  font-weight: inherit;
  text-shadow: 0.025em 0 0 currentColor, -0.025em 0 0 currentColor;
}

header .main,
table th,
.tags li::before {
  font-weight: inherit;
  text-shadow: 0.03em 0 0 currentColor, -0.03em 0 0 currentColor;
}

/* ======================================================================
   Home / archive layout
   Home is the site's introduction followed by the newest few posts;
   /posts/ is everything grouped by year.
   ====================================================================== */
.home-about {
  margin-block-end: 2rem;
}

.section-label,
.year-label {
  font-size: 1.2rem;
  margin-block: 2em 0.5em;
  line-height: 1.2;
}

.section-label::before {
  color: var(--color-primary, #dc143c);
  content: '## ';
}

/* Years read as a divider rather than a heading competing with post titles. */
.year-label {
  border-block-end: 1px solid var(--color-border, #663399);
  padding-block-end: 0.25rem;
  font-size: 1.05rem;
}

.year-label::before {
  color: var(--color-primary, #dc143c);
  content: '# ';
}

.posts .post {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75ch;
  align-items: baseline;
  text-indent: 0;
}

.posts .post .meta {
  min-inline-size: 5ch;
  font-variant-numeric: tabular-nums;
}

/* Home lists posts as `03-24  Title`; the leading bullet is redundant there. */
.posts li.post::before {
  content: none;
}

.archive-link {
  margin-block-start: 1.5rem;
}

/* Sits on the same row as the social icons — the footer's own `gap` plus the
   trailing .border separator is all the spacing it needs. `flex-basis: 100%`
   here is what used to push it onto its own line. */
.footer-info {
  color: var(--color-text-meta, #999999);
  font-size: 0.85em;
}

.footer-legal {
  flex-basis: 100%;
  color: var(--color-text-meta, #999999);
  font-size: 0.85em;
  margin-block-start: 0.5rem;
}

.footer-legal a {
  border-block-end-width: 1px;
}


/* responsive measure — generated from site.config.mjs > layout */
:root { --font-size-base: 15px; --content-max-width: 800px; }
@media (min-width: 1360px) {
  :root { --font-size-base: 15px; --content-max-width: 860px; }
}
@media (min-width: 1600px) {
  :root { --font-size-base: 15px; --content-max-width: 900px; }
}
@media (min-width: 1900px) {
  :root { --font-size-base: 15px; --content-max-width: 940px; }
}
@media (min-width: 2200px) {
  :root { --font-size-base: 15px; --content-max-width: 970px; }
}
@media (min-width: 2500px) {
  :root { --font-size-base: 15px; --content-max-width: 1000px; }
}
@media (min-width: 3000px) {
  :root { --font-size-base: 15px; --content-max-width: 1030px; }
}
@media (min-width: 3600px) {
  :root { --font-size-base: 15px; --content-max-width: 1060px; }
}


/* highlight.js — light theme */

pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
  Theme: GitHub
  Description: Light theme as seen on github.com
  Author: github.com
  Maintainer: @Hirse
  Updated: 2021-05-15

  Outdated base version: https://github.com/primer/github-syntax-light
  Current colors taken from GitHub's CSS
*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#005cc5}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-code,.hljs-comment,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}