/*
 * theme "Base16 Ocean Dark" generated by syntect
 */

.syn-code {
 color: #c0c5ce;
 background-color: #2b303b;
}

.syn-variable.syn-parameter.syn-function {
 color: #c0c5ce;
}
.syn-comment, .syn-punctuation.syn-definition.syn-comment {
 color: #65737e;
}
.syn-punctuation.syn-definition.syn-string, .syn-punctuation.syn-definition.syn-variable, .syn-punctuation.syn-definition.syn-string, .syn-punctuation.syn-definition.syn-parameters, .syn-punctuation.syn-definition.syn-string, .syn-punctuation.syn-definition.syn-array {
 color: #c0c5ce;
}
.syn-none {
 color: #c0c5ce;
}
.syn-keyword.syn-operator {
 color: #c0c5ce;
}
.syn-keyword {
 color: #b48ead;
}
.syn-variable, .syn-variable.syn-other.syn-dollar.syn-only.syn-js {
 color: #bf616a;
}
.syn-entity.syn-name.syn-function, .syn-meta.syn-require, .syn-support.syn-function.syn-any-method, .syn-variable.syn-function {
 color: #8fa1b3;
}
.syn-support.syn-class, .syn-entity.syn-name.syn-class, .syn-entity.syn-name.syn-type.syn-class {
 color: #ebcb8b;
}
.syn-meta.syn-class {
 color: #eff1f5;
}
.syn-keyword.syn-other.syn-special-method {
 color: #8fa1b3;
}
.syn-storage {
 color: #b48ead;
}
.syn-support.syn-function {
 color: #96b5b4;
}
.syn-string, .syn-constant.syn-other.syn-symbol, .syn-entity.syn-other.syn-inherited-class {
 color: #a3be8c;
}
.syn-constant.syn-numeric {
 color: #d08770;
}
.syn-none {
 color: #d08770;
}
.syn-none {
 color: #d08770;
}
.syn-constant {
 color: #d08770;
}
.syn-entity.syn-name.syn-tag {
 color: #bf616a;
}
.syn-entity.syn-other.syn-attribute-name {
 color: #d08770;
}
.syn-entity.syn-other.syn-attribute-name.syn-id, .syn-punctuation.syn-definition.syn-entity {
 color: #8fa1b3;
}
.syn-meta.syn-selector {
 color: #b48ead;
}
.syn-none {
 color: #d08770;
}
.syn-markup.syn-heading .syn-punctuation.syn-definition.syn-heading, .syn-entity.syn-name.syn-section {
 color: #8fa1b3;
}
.syn-keyword.syn-other.syn-unit {
 color: #d08770;
}
.syn-markup.syn-bold, .syn-punctuation.syn-definition.syn-bold {
 color: #ebcb8b;
font-weight: bold;
}
.syn-markup.syn-italic, .syn-punctuation.syn-definition.syn-italic {
 color: #b48ead;
font-style: italic;
}
.syn-markup.syn-raw.syn-inline {
 color: #a3be8c;
}
.syn-string.syn-other.syn-link {
 color: #bf616a;
}
.syn-meta.syn-link {
 color: #d08770;
}
.syn-meta.syn-image {
 color: #d08770;
}
.syn-markup.syn-list {
 color: #bf616a;
}
.syn-markup.syn-quote {
 color: #d08770;
}
.syn-meta.syn-separator {
 color: #c0c5ce;
 background-color: #4f5b66;
}
.syn-markup.syn-inserted, .syn-markup.syn-inserted.syn-git_gutter {
 color: #a3be8c;
}
.syn-markup.syn-deleted, .syn-markup.syn-deleted.syn-git_gutter {
 color: #bf616a;
}
.syn-markup.syn-changed, .syn-markup.syn-changed.syn-git_gutter {
 color: #b48ead;
}
.syn-markup.syn-ignored, .syn-markup.syn-ignored.syn-git_gutter {
 color: #4f5b66;
}
.syn-markup.syn-untracked, .syn-markup.syn-untracked.syn-git_gutter {
 color: #4f5b66;
}
.syn-constant.syn-other.syn-color {
 color: #96b5b4;
}
.syn-string.syn-regexp {
 color: #96b5b4;
}
.syn-constant.syn-character.syn-escape {
 color: #96b5b4;
}
.syn-punctuation.syn-section.syn-embedded, .syn-variable.syn-interpolation {
 color: #ab7967;
}
.syn-invalid.syn-illegal {
 color: #2b303b;
 background-color: #bf616a;
}
.syn-markup.syn-deleted.syn-git_gutter {
 color: #f92672;
}
.syn-markup.syn-inserted.syn-git_gutter {
 color: #a6e22e;
}
.syn-markup.syn-changed.syn-git_gutter {
 color: #967efb;
}
.syn-markup.syn-ignored.syn-git_gutter {
 color: #565656;
}
.syn-markup.syn-untracked.syn-git_gutter {
 color: #565656;
}


:root {
  --bg: #131313;
  --bg-soft: #1c1b1b;
  --bg-border: #2a2a2a;
  --line: #1c1b1b;
  --text: #e5e2e1;
  --text-soft: #c4c7c8;
  --text-faint: #8e9192;
  --accent: #e5e2e1;
  --display: Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

/* Custom scrollbar — thin, subtle. */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(142, 145, 146, 0.3); border-radius: 3px; }

::selection { background: #404040; color: #fff; }

.wrap {
  max-width: 160rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header — fixed editorial masthead with backdrop blur. */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  background: rgba(19, 19, 19, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-title {
  font-family: var(--display);
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
}
.site-title a {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.site-title a:hover { opacity: 0.8; }
.site-tagline {
  display: none;
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.header-nav a:hover { color: var(--text); }
.header-nav a.active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}

.header-nav .rss-link {
  display: flex;
  align-items: center;
  color: var(--text-faint);
  transition: color 0.2s ease;
}

.header-nav .rss-link:hover {
  color: var(--text);
}

.header-nav .rss-icon {
  display: block;
}

/* Main content — offset for the fixed header. */
main.wrap {
  padding-top: 6rem;
}

/* Main layout — article + sidebar. */
.main-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 0 0 5rem;
}
.main-col {
  flex: 1;
  min-width: 0;
}

/* Sidebar — sticky editorial rail. */
.sidebar {
  display: none;
}
.sidebar-section {
  padding-bottom: 2rem;
}
.sidebar-section + .sidebar-section {
  margin-top: 3rem;
}
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
}
.sidebar-head h3 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-soft);
  margin: 0;
  padding-bottom: 0.5rem;
}
.sidebar-head span {
  font-size: 0.72rem;
  color: var(--text-faint);
}
.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-list li {
  padding: 0rem 0 0.9rem;
}
.sidebar-list time {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}
.sidebar-list a {
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.sidebar-list a:hover { color: var(--text-soft); }
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sidebar-tags .tag {
  margin: 0;
}

/* Outline section in the post sidebar. */
.sidebar-outline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-outline li {
  padding: 0.5rem 0;
  line-height: 1.3;
}

.sidebar-outline li + li {
  border-top: 1px solid var(--line);
}

.sidebar-outline .outline-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: baseline;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-outline .outline-link:hover {
  color: var(--text-soft);
}

.sidebar-outline .outline-marker {
  color: var(--text-faint);
  font-size: 0.7rem;
  line-height: inherit;
  user-select: none;
}

.sidebar-outline .outline-label {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* H1 headings — bold, no indent. */
.sidebar-outline .outline-level-1 .outline-label {
  font-weight: 600;
}

/* H2 headings — normal weight, no indent. */

/* H3 headings — indent + smaller. */
.sidebar-outline .outline-level-3 .outline-label {
  padding-left: 1rem;
}
.sidebar-outline .outline-level-3 .outline-marker {
  visibility: hidden;
}

/* H4 headings — deeper indent. */
.sidebar-outline .outline-level-4 .outline-label {
  padding-left: 2rem;
}
.sidebar-outline .outline-level-4 .outline-marker {
  visibility: hidden;
}

/* H5 headings — even deeper. */
.sidebar-outline .outline-level-5 .outline-label {
  padding-left: 3rem;
}
.sidebar-outline .outline-level-5 .outline-marker {
  visibility: hidden;
}

/* H6 headings — deepest. */
.sidebar-outline .outline-level-6 .outline-label {
  padding-left: 4rem;
}
.sidebar-outline .outline-level-6 .outline-marker {
  visibility: hidden;
}/* "All older posts" / "All tags" links in the sidebar. */
.all-tags-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}
.all-tags-link:hover { color: var(--text); }

/* Archive page — article + sidebar layout, mirrors .main-layout. */
.archive-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 0 0 5rem;
}
.archive-col {
  flex: 1;
  min-width: 0;
}
.archive-sidebar {
  display: none;
}
.archive-sidebar .sidebar-section {
  padding-bottom: 2rem;
}

/* Home page — card-based layout with sidebar. */
.home-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 0 0 5rem;
}
.home-col {
  flex: 1;
  min-width: 0;
}

/* Featured card — the latest post, large and prominent. */
.featured-card {
  display: block;
  padding: 3rem 3rem 2.5rem;
  border: 1px solid var(--bg-border);
  border-radius: 8px;
  background: var(--bg-soft);
  text-decoration: none;
  color: var(--text);
  margin-bottom: 2.5rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.featured-card:hover {
  border-color: var(--text-faint);
  background-color: #222;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.featured-meta span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.featured-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}
.featured-title {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.featured-summary {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--text-soft);
  margin: 0 0 1.5rem;
  max-width: 46rem;
}
.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.featured-tags .tag {
  margin: 0;
}

/* Card grid — smaller cards for older posts. */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.post-card {
  display: block;
  padding: 2rem 2rem 1.75rem;
  border: 1px solid var(--bg-border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  animation: rise 0.5s ease both;
}
.post-card:nth-child(2) { animation-delay: 0.08s; }
.post-card:nth-child(3) { animation-delay: 0.16s; }
.post-card:nth-child(4) { animation-delay: 0.24s; }
.post-card:nth-child(5) { animation-delay: 0.32s; }
.post-card:nth-child(6) { animation-delay: 0.4s; }
.post-card:nth-child(7) { animation-delay: 0.48s; }
.post-card:nth-child(8) { animation-delay: 0.56s; }
.post-card:hover {
  border-color: var(--text-faint);
  background-color: var(--bg-soft);
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.post-card-meta time,
.post-card-meta span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.post-card-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}
.post-card-title {
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}
.post-card-summary {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  max-width: 42rem;
}
.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.post-card-tags .tag {
  margin: 0;
}

/* "All posts" link below the card grid. */
.all-posts-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}
.all-posts-link:hover { color: var(--text); }

/* Home sidebar — topic vs posts table. */
.home-sidebar {
  display: none;
}
.home-sidebar .sidebar-section {
  padding-bottom: 2rem;
}
.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.topic-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.topic-list .tag-link {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.topic-list .tag-link:hover { color: var(--text-soft); }
.topic-list .tag-count {
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* Index — editorial post list. */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-list li {
  padding: 2.5rem 0;
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.post-list li:nth-child(2) { animation-delay: 0.08s; }
.post-list li:nth-child(3) { animation-delay: 0.16s; }
.post-list li:nth-child(4) { animation-delay: 0.24s; }
.post-list li:nth-child(5) { animation-delay: 0.32s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-date {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 0.75rem;
}
.post-title {
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 400;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
.post-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.post-title a:hover { color: var(--text-soft); }
.post-summary {
  color: var(--text-soft);
  margin: 0;
  max-width: 40rem;
  font-size: 0.95rem;
}
.post-tags { margin-top: 1rem; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-soft);
  border: 1px solid rgba(229, 226, 225, 0.8);
  padding: 0.4rem 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tag:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* Tag pages. */
.tag-head {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--bg-border);
  margin-bottom: 1rem;
}
.tag-head h1 {
  font-family: var(--display);
  font-size: 2.8rem;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.tag-count {
  color: var(--text-faint);
  font-size: 0.8rem;
  margin: 0;
}
.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tag-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  animation: rise 0.5s ease both;
}
.tag-list li:nth-child(2) { animation-delay: 0.05s; }
.tag-list li:nth-child(3) { animation-delay: 0.1s; }
.tag-list li:nth-child(4) { animation-delay: 0.15s; }
.tag-list li:nth-child(5) { animation-delay: 0.2s; }
.tag-link {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.tag-link:hover { color: var(--text-soft); }
.tag-list .tag-count {
  font-size: 0.78rem;
}

/* Post page. */
.post-head {
  padding: 1.5rem 0 0;
  margin-bottom: 2rem;
}
.post-head h1 {
  font-family: var(--display);
  font-size: 5.5rem;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  font-weight: lighter;
}
.post-subtitle {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--text-soft);
  max-width: 90%;
}
.post-meta-labels {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.post-meta-labels span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.post-meta-labels .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}
.back-link {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
/* Article body — editorial typography. */
.article {
  font-size: 1.15rem;
}
.article h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}
.article h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 2rem 0 0.8rem;
}
.article p { margin: 0 0 1.5rem; }
.article a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(229, 226, 225, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
.article a:hover { text-decoration-color: var(--text); }
.article ul, .article ol { padding-left: 1.5rem; margin: 0 0 1.5rem; }
.article li { margin-bottom: 0.5rem; }
.article li::marker { color: var(--text-faint); }
.article blockquote {
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 2rem;
  border-left: 2px solid var(--text);
  color: var(--text-soft);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.4;
}
.article code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-soft);
  color: var(--text);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  border: 1px solid var(--bg-border);
}
.article pre {
  background: var(--bg-soft);
  border: 1px solid var(--bg-border);
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  margin: 2rem 0;
  line-height: 1.6;
  font-family: var(--mono);
}
.article pre code {
  background: none;
  border: none;
  color: var(--text);
  padding: 0;
  font-size: inherit;
}
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
.article th, .article td {
  border: 1px solid var(--bg-border);
  padding: 0.75rem 1rem;
  text-align: left;
}
.article th {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--bg-soft);
}
.article tbody th {
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
  background: none;
  color: var(--text);
}
.article hr { border: none; border-top: 1px solid var(--bg-border); margin: 2.5rem 0; }

/* Drop cap — first paragraph of the article. */
.article .drop-cap::first-letter {
  font-family: var(--display);
  font-size: 5rem;
  line-height: 0.8;
  float: left;
  margin-right: 1rem;
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--text);
}
@media (min-width: 640px) {
  .article .drop-cap::first-letter {
    font-size: 6rem;
  }
}

/* Prev / next post navigation. */
.post-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.post-nav-link:hover {
  border-color: var(--text-faint);
  background-color: var(--bg-soft);
}
.post-nav-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-faint);
}
.post-nav-title {
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--text);
}
.post-nav-next {
  margin-left: auto;
  text-align: right;
}

/* About page — article + sidebar layout, mirrors .main-layout. */
.about-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 0 0 5rem;
}
.about-col {
  flex: 1;
  min-width: 0;
}
.about-intro {
  padding: 1.5rem 0 0;
}
.about-portrait-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.about-portrait {
  width: 12rem;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--bg-border);
}
/* On mobile the portrait sits centered above the article text. */
.about-portrait-sidebar {
  display: none;
}
.about-article {
  max-width: 56rem;
}
.about-sidebar {
  display: none;
}
.about-sidebar .sidebar-section {
  padding-bottom: 2rem;
}
.about-links a {
  font-size: 1.1rem;
}

/* Footer. */
.site-footer {
  margin-top: 4rem;
  padding: 4rem 0;
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.footer-brand {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-transform: none;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-links a {
  color: var(--text-faint);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--text);
}

@media (min-width: 768px) {
  .site-tagline { display: block; }
  .main-layout { flex-direction: row; align-items: flex-start; gap: 2rem; }
  .main-col { flex: 1; max-width: 70%; }
  .sidebar {
    display: block;
    width: 26%;
    flex-shrink: 0;
    position: sticky;
    top: 8rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
  }
  .home-layout { flex-direction: row; align-items: flex-start; gap: 2rem; }
  .home-col { flex: 1; max-width: 70%; }
  .home-sidebar {
    display: block;
    width: 26%;
    flex-shrink: 0;
    position: sticky;
    top: 8rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
  }
  .about-layout { flex-direction: row; align-items: flex-start; gap: 2rem; }
  .about-col { flex: 1; max-width: 70%; }
  .about-portrait-mobile {
    display: none;
  }
  .about-portrait-sidebar {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
  }
  .about-portrait-sidebar .about-portrait {
    width: 14rem;
  }
  .about-sidebar {
    display: block;
    width: 26%;
    flex-shrink: 0;
    position: sticky;
    top: 8rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
  }
}

@media (min-width: 1920px) {
  .wrap {
    max-width: 200rem;
    padding-left: 6rem;
    padding-right: 2rem;
  }
  .main-layout { gap: 6rem; }
  .archive-layout { gap: 6rem; }
  .home-layout { gap: 6rem; }
  .about-layout { gap: 6rem; }
  .main-col { max-width: 76%; }
  .sidebar { width: 20%; }
  .archive-col { max-width: 76%; }
  .archive-sidebar { width: 20%; }
  .home-col { max-width: 76%; }
  .home-sidebar { width: 20%; }
  .about-col { max-width: 76%; }
  .about-sidebar { width: 20%; }
  .article {
    font-size: 1.2rem;
  }
  .post-summary { max-width: 48rem; }
}

/* 4K / UHD (3840px) and up — maximize the reading area. */
@media (min-width: 2560px) {
  .wrap {
    max-width: 240rem;
    padding-left: 8rem;
    padding-right: 2rem;
  }
  .main-layout { gap: 8rem; }
  .archive-layout { gap: 8rem; }
  .home-layout { gap: 8rem; }
  .about-layout { gap: 8rem; }
  .main-col { max-width: 80%; }
  .sidebar { width: 16%; }
  .archive-col { max-width: 80%; }
  .archive-sidebar { width: 16%; }
  .home-col { max-width: 80%; }
  .home-sidebar { width: 16%; }
  .about-col { max-width: 80%; }
  .about-sidebar { width: 16%; }
  .article {
    font-size: 1.25rem;
  }
  .post-head h1 { font-size: 6rem; }
  .post-subtitle { font-size: 2.2rem; }
  .post-summary { max-width: 56rem; }
}

@media (max-width: 600px) {
  .site-title { font-size: 1.875rem; }
  .post-head h1 { font-size: 2rem; }
  .post-title { font-size: 1.5rem; }
  .header-nav { gap: 1rem; }
}
