@charset "UTF-8";
:root {
  --space-2xs: clamp(0.25rem, 0.2273rem + 0.1136vw, 0.3125rem);
  --space-xs: clamp(0.5rem, 0.4545rem + 0.2273vw, 0.625rem);
  --space-s: clamp(1rem, 0.9091rem + 0.4545vw, 1.25rem);
  --space-m: clamp(1.5rem, 1.3636rem + 0.6818vw, 1.875rem);
  --space-l: clamp(2rem, 1.8182rem + 0.9091vw, 2.5rem);
  --space-xl: clamp(3rem, 2.7273rem + 1.3636vw, 3.75rem);
  --space-2xl: clamp(4rem, 3.6364rem + 1.8182vw, 5rem);
  --space-2xs-xs: clamp(0.25rem, 0.1136rem + 0.6818vw, 0.625rem);
  --space-xs-s: clamp(0.5rem, 0.2273rem + 1.3636vw, 1.25rem);
  --space-s-m: clamp(1rem, 0.6818rem + 1.5909vw, 1.875rem);
  --space-m-l: clamp(1.5rem, 1.1364rem + 1.8182vw, 2.5rem);
  --space-l-xl: clamp(2rem, 1.3636rem + 3.1818vw, 3.75rem);
  --space-xl-2xl: clamp(3rem, 2.2727rem + 3.6364vw, 5rem);
  /* Light theme colors */
  --color-bg: #ffffff;
  --color-bg-secondary: #f5f5f5;
  --color-text: #1a1a1a;
  --color-text-secondary: #666666;
  --color-accent: #0066cc;
  --color-accent-hover: #0052a3;
  --color-border: #e0e0e0;
  --color-code-bg: #f5f5f5;
  --color-inline-code-bg: #ebebeb;
  /* Typography */
  --font-family: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  --font-size-base: 18px;
  --line-height-base: 1.75;
  --line-height-heading: 1.25;
  /* Layout */
  --max-width: 720px;
  --spacing-xs: var(--space-2xs);
  --spacing-sm: var(--space-xs);
  --spacing-md: var(--space-s);
  --spacing-lg: var(--space-m);
  --spacing-xl: var(--space-xl);
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-medium: 250ms ease;
}

[data-theme=dark] {
  --color-bg: #0d1117;
  --color-bg-secondary: #161b22;
  --color-text: #e6edf3;
  --color-text-secondary: #8b949e;
  --color-accent: #58a6ff;
  --color-accent-hover: #79c0ff;
  --color-border: #30363d;
  --color-code-bg: #161b22;
  --color-inline-code-bg: #2d333b;
}

html {
  height: 100%;
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-family);
  letter-spacing: -0.01em;
  line-height: 1.6;
  line-height: calc(0.25rem + 1em);
  display: flex;
  flex-direction: column;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--transition-medium), color var(--transition-medium);
  margin: 0 auto;
  padding: 1rem;
}

main {
  flex: 1;
}

.content-container {
  width: 90vw;
  margin-inline: auto;
}

ol,
ul {
  padding: 0 1.1rem 1rem;
  margin: 2rem 0;
}
.article ol,
.article ul {
  margin: 0.5rem 0;
}

ul:where([role=list]) {
  list-style: none;
}

ul li {
  margin-block-end: 0.6rem;
}

ul li::marker {
  font-weight: bold;
}

ol {
  list-style-type: decimal-leading-zero;
  margin-inline-start: 0.5em;
}

ol li::marker {
  font-weight: 700;
  font-size: 1em;
  color: var(--color-accent);
}

a[aria-current=page] {
  font-weight: bold;
}

html {
  /* Tailwind Typography-inspired scale */
  --step-0: 1rem; /* 16px */
  --step-1: 1.125rem; /* 18px */
  --step-2: 1.25rem; /* 20px */
  --step-3: 1.5rem; /* 24px */
  --step-4: 1.875rem; /* 30px */
  --step-5: 2.25rem; /* 36px */
  --step-6: 3rem; /* 48px */
  --step-7: 3.5rem; /* 56px */
}

body {
  font-size: var(--step-0);
  line-height: 1.75;
  font-family: var(--font-family);
  font-optical-sizing: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  margin-bottom: 0.6lh;
}
section h1,
section h2,
section h3,
section h4,
section h5,
section h6 {
  margin-top: 0;
  margin-block-start: 0;
}
h1:target,
h2:target,
h3:target,
h4:target,
h5:target,
h6:target {
  background-color: var(--color-bg-secondary);
}

h6,
.h6 {
  font-size: var(--step-0);
  line-height: 1.5;
  font-weight: 600;
}

h5,
.h5 {
  font-size: var(--step-1);
  line-height: 1.5;
  font-weight: 600;
}

h4,
.h4 {
  font-size: var(--step-2);
  line-height: 1.4;
  font-weight: 600;
}

h3,
.h3 {
  font-size: var(--step-3);
  line-height: 1.3;
  font-weight: 700;
}

h2,
.h2 {
  font-size: var(--step-4);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1,
.h1 {
  font-size: var(--step-5);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.h0 {
  font-size: var(--step-6);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 900;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  margin: 0 0 1lh 0;
  text-wrap: pretty;
}
p:last-child {
  margin-bottom: 0;
}
p:empty {
  display: none;
  margin: 0;
}

/* Remove margin-top patterns - use margin-bottom only */
p + p {
  margin-top: 0;
}

h1 + p,
h2 + p,
h3 + p,
h4 + p,
h5 + p,
h6 + p {
  margin-top: 0;
}

ul,
ol {
  margin: 0 0 1lh 0;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35lh;
}
li:last-child {
  margin-bottom: 0;
}

li > p {
  margin-bottom: 0.5lh;
}
li > p:last-child {
  margin-bottom: 0;
}

ul ul,
ul ol,
ol ul,
ol ol {
  margin-top: 0;
  margin-bottom: 0.5lh;
}

blockquote {
  margin: 0 0 1.5lh 0;
  padding-left: 1.25rem;
  border-left: 6px solid var(--color-text-secondary);
  color: var(--color-text-secondary);
  font-style: italic;
}

pre {
  margin: 0 0 1.25lh 0;
  padding: 0.9rem 1.1rem;
  border-radius: 0.5rem;
  line-height: 1.6;
}

hr {
  margin: 0 0 2lh 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

table {
  margin: 0 0 1.5lh 0;
}

small,
caption,
cite,
figcaption {
  font-size: var(--step--1, 0.85rem);
}

blockquote {
  margin: 0 0 2rem 0;
  margin-trim: block;
  padding-left: 1.5rem;
  border-left: 7px solid var(--color-text-secondary);
  color: var(--color-text-secondary);
}

a {
  color: inherit;
  font-weight: 500;
}

/* ===========================
   Header & Navigation
   =========================== */
.site-header {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--spacing-lg);
  margin-top: -1rem;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
  gap: 0.25rem;
}

.site-logo-svg {
  height: 1.5rem;
  width: auto;
}

/* Logo text color changes with theme */
.logo-text {
  fill: var(--color-text);
  transition: fill var(--transition-fast);
}

/* Wave stays coral/red in both themes */
.logo-wave {
  fill: #D54B2C;
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo:hover .logo-wave {
  opacity: 0.85;
}

.site-logo:hover .logo-text {
  fill: var(--color-text-secondary);
}

/* Fallback text if SVG not loaded */
.site-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  font-variant: small-caps;
  letter-spacing: 0.5px;
}

.site-title .perf {
  font-style: italic;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-list a:hover,
.nav-list a[aria-current=page] {
  color: var(--color-text);
  text-decoration: none;
}

/* ===========================
   Theme Toggle
   =========================== */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--color-bg-secondary);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sun-icon,
.moon-icon {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

[data-theme=light] .sun-icon {
  opacity: 1;
  transform: scale(1);
}

[data-theme=light] .moon-icon {
  opacity: 0;
  transform: scale(0.8);
}

[data-theme=dark] .sun-icon {
  opacity: 0;
  transform: scale(0.8);
}

[data-theme=dark] .moon-icon {
  opacity: 1;
  transform: scale(1);
}

/* ===========================
   Topic Modes (Perf vs Management)
   =========================== */
/* Topic indicator pill on posts */
.topic-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.topic-indicator--perf {
  background-color: rgba(229, 57, 53, 0.1);
  color: #c62828;
  border: 1px solid rgba(229, 57, 53, 0.2);
}

.topic-indicator--mgmt {
  background-color: rgba(30, 136, 229, 0.1);
  color: #1565c0;
  border: 1px solid rgba(30, 136, 229, 0.2);
}

.topic-indicator--hot {
  background-color: transparent;
  color: #e65100;
  border: 1px solid #e65100;
}

[data-theme=dark] .topic-indicator--perf {
  background-color: rgba(229, 57, 53, 0.15);
  color: #ef5350;
  border-color: rgba(229, 57, 53, 0.3);
}

[data-theme=dark] .topic-indicator--mgmt {
  background-color: rgba(30, 136, 229, 0.15);
  color: #42a5f5;
  border-color: rgba(30, 136, 229, 0.3);
}

[data-theme=dark] .topic-indicator--hot {
  background-color: transparent;
  color: #ff9800;
  border-color: #ff9800;
}

.topic-indicator svg {
  width: 12px;
  height: 12px;
}

/* Topic intro paragraph with inline filters */
.topic-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  max-width: 40rem;
}

/* ===========================
   Topic Link Inline Filters
   =========================== */
/* Inline filter links within the intro */
.topic-link {
  all: unset;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.5px;
  padding-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  /* Straight underline via gradient */
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 2px;
  transition: text-shadow var(--transition-fast);
}

.topic-link svg {
  align-self: center;
  flex-shrink: 0;
  position: relative;
}

@keyframes wave-move {
  from {
    background-position: 0 100%;
  }
  to {
    background-position: 20px 100%;
  }
}
/* --- "everything" (inherits text color, no glow) --- */
.topic-link--all {
  color: var(--color-text);
}
.topic-link--all:hover, .topic-link--all.topic-link--active {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath fill='none' stroke='%23222' stroke-width='2' d='M0 3.5c5 0 5-3 10-3s5 3 10 3'/%3E%3C/svg%3E");
  background-size: 20px 4px;
  background-repeat: repeat-x;
}
.topic-link--all:hover {
  animation: wave-move 1s linear infinite;
}
.topic-link--all.topic-link--active {
  animation: none;
}
.topic-link--all.topic-link--active:hover {
  animation: wave-move 0.8s linear infinite;
}
[data-theme=dark] .topic-link--all:hover, [data-theme=dark] .topic-link--all.topic-link--active {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath fill='none' stroke='%23e0e0e0' stroke-width='2' d='M0 3.5c5 0 5-3 10-3s5 3 10 3'/%3E%3C/svg%3E");
}

/* --- Performance ⚡ --- */
.topic-link--perf {
  color: #e53935;
}
.topic-link--perf:hover, .topic-link--perf.topic-link--active {
  text-shadow: 0 0 8px rgba(229, 57, 53, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath fill='none' stroke='%23e53935' stroke-width='2' d='M0 3.5c5 0 5-3 10-3s5 3 10 3'/%3E%3C/svg%3E");
  background-size: 20px 4px;
  background-repeat: repeat-x;
}
.topic-link--perf:hover {
  animation: wave-move 1s linear infinite;
}
.topic-link--perf.topic-link--active {
  animation: none;
}
.topic-link--perf.topic-link--active:hover {
  animation: wave-move 0.8s linear infinite;
}
[data-theme=dark] .topic-link--perf {
  color: #ef5350;
}
[data-theme=dark] .topic-link--perf:hover, [data-theme=dark] .topic-link--perf.topic-link--active {
  text-shadow: 0 0 8px rgba(239, 83, 80, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath fill='none' stroke='%23ef5350' stroke-width='2' d='M0 3.5c5 0 5-3 10-3s5 3 10 3'/%3E%3C/svg%3E");
}

/* --- Management 👥 --- */
.topic-link--mgmt {
  color: #1e88e5;
}
.topic-link--mgmt:hover, .topic-link--mgmt.topic-link--active {
  text-shadow: 0 0 8px rgba(30, 136, 229, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath fill='none' stroke='%231e88e5' stroke-width='2' d='M0 3.5c5 0 5-3 10-3s5 3 10 3'/%3E%3C/svg%3E");
  background-size: 20px 4px;
  background-repeat: repeat-x;
}
.topic-link--mgmt:hover {
  animation: wave-move 1s linear infinite;
}
.topic-link--mgmt.topic-link--active {
  animation: none;
}
.topic-link--mgmt.topic-link--active:hover {
  animation: wave-move 0.8s linear infinite;
}
[data-theme=dark] .topic-link--mgmt {
  color: #42a5f5;
}
[data-theme=dark] .topic-link--mgmt:hover, [data-theme=dark] .topic-link--mgmt.topic-link--active {
  text-shadow: 0 0 8px rgba(66, 165, 245, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath fill='none' stroke='%2342a5f5' stroke-width='2' d='M0 3.5c5 0 5-3 10-3s5 3 10 3'/%3E%3C/svg%3E");
}

/* --- Hot Takes 🔥 --- */
.topic-link--hot {
  color: #e65100;
}
.topic-link--hot:hover, .topic-link--hot.topic-link--active {
  text-shadow: 0 0 8px rgba(230, 81, 0, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath fill='none' stroke='%23e65100' stroke-width='2' d='M0 3.5c5 0 5-3 10-3s5 3 10 3'/%3E%3C/svg%3E");
  background-size: 20px 4px;
  background-repeat: repeat-x;
}
.topic-link--hot:hover {
  animation: wave-move 1s linear infinite;
}
.topic-link--hot.topic-link--active {
  animation: none;
}
.topic-link--hot.topic-link--active:hover {
  animation: wave-move 0.8s linear infinite;
}
[data-theme=dark] .topic-link--hot {
  color: #ff9800;
}
[data-theme=dark] .topic-link--hot:hover, [data-theme=dark] .topic-link--hot.topic-link--active {
  text-shadow: 0 0 8px rgba(255, 152, 0, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath fill='none' stroke='%23ff9800' stroke-width='2' d='M0 3.5c5 0 5-3 10-3s5 3 10 3'/%3E%3C/svg%3E");
}

/* Post list topic icon watermark */
.post-archive li[data-topic]::before {
  content: "";
  position: absolute;
  right: -3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  opacity: 0.3;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transition: opacity var(--transition-fast);
}

.post-archive li[data-topic]:hover::before {
  opacity: 0.45;
}

/* ⚡ Performance - lightning bolt */
.post-archive li[data-topic=perf]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e53935' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E");
}

/* 👥 Management - people */
.post-archive li[data-topic=mgmt]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e88e5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

/* 🔥 Hot Takes - flame */
.post-archive li[data-topic=hot]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e65100' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22c-4-3-8-6-8-11a8 8 0 0 1 16 0c0 5-4 8-8 11z'/%3E%3Cpath d='M12 22c-2-2-4-4-4-7a4 4 0 0 1 8 0c0 3-2 5-4 7z'/%3E%3C/svg%3E");
}

/* Dark mode icon color overrides */
[data-theme=dark] .post-archive li[data-topic=perf]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef5350' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E");
}

[data-theme=dark] .post-archive li[data-topic=mgmt]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2342a5f5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

[data-theme=dark] .post-archive li[data-topic=hot]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9800' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22c-4-3-8-6-8-11a8 8 0 0 1 16 0c0 5-4 8-8 11z'/%3E%3Cpath d='M12 22c-2-2-4-4-4-7a4 4 0 0 1 8 0c0 3-2 5-4 7z'/%3E%3C/svg%3E");
}

/* Article page topic icon watermark */
.post[data-topic] .post-header {
  position: relative;
  overflow: hidden;
}

.post[data-topic] .post-header::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4rem;
  height: 4rem;
  opacity: 0.06;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.post[data-topic=perf] .post-header::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e53935' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E");
}

.post[data-topic=mgmt] .post-header::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e88e5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.post[data-topic=hot] .post-header::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e65100' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22c-4-3-8-6-8-11a8 8 0 0 1 16 0c0 5-4 8-8 11z'/%3E%3Cpath d='M12 22c-2-2-4-4-4-7a4 4 0 0 1 8 0c0 3-2 5-4 7z'/%3E%3C/svg%3E");
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
  .nav-list {
    width: 100%;
    justify-content: flex-start;
  }
  .post-archive li[data-topic]::before {
    right: 0;
  }
}
/*
 * a11y syntax highlighting theme for Prism
 * Based on https://github.com/ericwbailey/a11y-syntax-highlighting
 * @author ericwbailey
 * Adapted for performent with light/dark theme support
 */
/* Light theme colors */
:root {
  --prism-bg: #fefefe;
  --prism-text: hsl(0, 0%, 33%);
  --prism-comment: hsl(16, 100%, 25%);
  --prism-punctuation: hsl(0, 0%, 41%);
  --prism-property: hsl(2, 80%, 47%);
  --prism-string: hsl(120, 100%, 25%);
  --prism-operator: hsl(192, 65%, 35%);
  --prism-function: hsl(43, 74%, 30%);
  --prism-keyword: hsl(282, 100%, 41%);
}

/* Dark theme colors */
[data-theme=dark] {
  --prism-bg: hsl(0, 0%, 17%);
  --prism-text: hsl(60, 30%, 96%);
  --prism-comment: hsl(54, 32%, 75%);
  --prism-punctuation: hsl(60, 30%, 96%);
  --prism-property: hsl(17, 100%, 74%);
  --prism-string: hsl(80, 75%, 55%);
  --prism-operator: hsl(187, 78%, 66%);
  --prism-function: hsl(51, 100%, 50%);
  --prism-keyword: hsl(291, 30%, 83%);
}

/* Base styles */
code[class*=language-],
pre[class*=language-] {
  color: var(--prism-text);
  background: none;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.5;
  tab-size: 2;
  hyphens: none;
}

/* Code blocks */
pre[class*=language-] {
  padding: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  overflow: auto;
  border-radius: 0.3em;
  background: var(--prism-bg);
  border: 1px solid var(--color-border);
}

:not(pre) > code[class*=language-],
pre[class*=language-] {
  background: var(--prism-bg);
}

/* Inline code */
:not(pre) > code[class*=language-] {
  padding: 0.1em 0.3em;
  border-radius: 0.3em;
  white-space: normal;
}

/* Comments */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: var(--prism-comment);
}

/* Punctuation */
.token.punctuation {
  color: var(--prism-punctuation);
}

/* Properties, tags, constants, symbols, deleted */
.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
  color: var(--prism-property);
}

/* Operators, entities, URLs, CSS strings, variables */
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
  color: var(--prism-operator);
}

/* Selectors, attr-names, strings, chars, builtins, inserted */
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: var(--prism-string);
}

/* Atrules, attr-values, functions, regex, important */
.token.atrule,
.token.attr-value,
.token.function,
.token.regex,
.token.important {
  color: var(--prism-function);
}

/* Booleans, numbers, keywords */
.token.boolean,
.token.number,
.token.keyword {
  color: var(--prism-keyword);
}

/* Important and bold */
.token.important,
.token.bold {
  font-weight: bold;
}

/* Italic */
.token.italic {
  font-style: italic;
}

/* Entity help cursor */
.token.entity {
  cursor: help;
}

/* Line highlight plugin */
.line-highlight {
  background: hsla(51, 100%, 50%, 0.1);
  border-top: 1px solid hsla(51, 100%, 50%, 0.55);
  border-bottom: 1px solid hsla(51, 100%, 50%, 0.55);
}

/* Line numbers plugin */
.line-numbers .line-numbers-rows {
  border-right: 1px solid var(--prism-text);
}

.line-numbers-rows > span::before {
  color: var(--prism-comment);
}

/* Forced colors mode support */
@media (forced-colors: active) {
  :root {
    --prism-bg: Canvas;
    --prism-text: CanvasText;
    --prism-comment: GrayText;
    --prism-punctuation: LinkText;
    --prism-property: CanvasText;
    --prism-string: CanvasText;
    --prism-operator: LinkText;
    --prism-function: GrayText;
    --prism-keyword: CanvasText;
  }
  .token.boolean,
  .token.number,
  .token.keyword {
    font-weight: bold;
  }
}
/* Mermaid diagram styling */
/* Container for mermaid diagrams */
.mermaid {
  padding: var(--spacing-md);
  border-radius: 6px;
  margin: var(--spacing-lg) 0;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  border: 1px solid var(--color-border);
}

/* Pre blocks with mermaid class need special handling */
pre.language-mermaid {
  display: none;
}

/* Style the rendered SVG */
.mermaid svg {
  max-width: 100%;
  height: auto;
}

/* Mermaid text colors for themes */
[data-theme=dark] .mermaid {
  background-color: var(--color-bg-secondary);
}

/* ===========================
   Skip Link (Accessibility)
   =========================== */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 1000;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 4px 0;
  transform: translateY(-100%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Screen reader only utility */
/* Misspelled/intentional text styling */
.misspelled {
  text-decoration: underline wavy red;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================
   Main Content & Grid Layout
   =========================== */
.wrapper {
  --viewport-padding: 16px;
  display: grid;
  grid-template-columns: 1fr min(65ch, 100% - var(--viewport-padding) * 2) 1fr;
  gap: 0 var(--viewport-padding);
}

.wrapper > * {
  grid-column: 2;
}

.full-bleed {
  grid-column: 1/-1;
}

/* ===========================
   Post Archive (Minimalist List)
   =========================== */
.post-archive {
  list-style: none;
  padding: 0;
  margin: var(--spacing-lg) 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.post-archive li {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-sm) 0;
  align-items: baseline;
  position: relative;
}

.post-archive time {
  color: var(--color-text-secondary);
  flex-shrink: 0;
  min-width: 140px;
}

.post-archive a {
  flex: 1;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.post-archive a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.post-archive .reading-time {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* ===========================
   Tag Page
   =========================== */
.tag-page .tag-count {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.tag-page .back-link {
  margin-top: var(--spacing-xl);
}

/* ===========================
   Post Single
   =========================== */
.post-header {
  margin-bottom: var(--spacing-xl);
}

.post-title {
  margin-bottom: var(--spacing-md);
}

.post-meta {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  flex-wrap: wrap;
}

.separator {
  color: var(--color-text-secondary);
}

.post-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 0.5rem;
  align-items: baseline;
}

.post-tags li {
  display: inline;
  margin: 0;
  padding: 0;
}

.post-tags a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-tags a::before {
  content: "#";
}

.post-tags a:hover {
  color: var(--color-accent);
}

.post-content {
  margin-top: var(--spacing-xl);
}

/* ===========================
   Post Helpers (TOC, TL:DR)
   =========================== */
.post-helpers {
  margin-top: var(--spacing-md);
  display: flex;
  flex-direction: column;
}

.post-details {
  margin: 0 0 0 0;
  padding: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
  transition: all var(--transition-fast);
}

.post-details[open] {
  background-color: transparent;
}

.post-details-summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-accent);
  padding: var(--spacing-sm) 0;
  display: flex;
  align-items: center;
  user-select: none;
  transition: color var(--transition-fast);
  list-style: none;
  font-size: 0.95rem;
}

.post-details-summary:hover {
  color: var(--color-text);
}

.post-details-summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 0.5rem;
  transform: rotate(0deg);
  transition: transform var(--transition-fast);
  font-size: 0.7em;
}

.post-details[open] .post-details-summary::before {
  transform: rotate(90deg);
}

.post-details-summary::-webkit-details-marker {
  display: none;
}

.post-toc {
  margin: 0.35rem 0 0 0;
  padding: 0;
}

.post-toc ol,
.post-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-toc li {
  margin: 0 0 0.12rem 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

.post-toc ol ol,
.post-toc ol ul {
  margin-left: 1.5rem;
  margin-top: 0.05rem;
  padding: 0;
}

.post-toc a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px dotted var(--color-border);
  transition: all var(--transition-fast);
}

.post-toc a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.post-tldr {
  margin: 0.35rem 0 0 1.5rem;
  font-size: 0.95rem;
}

.post-tldr > *:first-child {
  margin-top: 0;
}

.post-tldr > *:last-child {
  margin-bottom: 0;
}

.post-tldr ul,
.post-tldr ol {
  margin: 0 0 0.35rem 1.5rem;
  padding: 0;
}

.post-tldr li {
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.post-tldr strong {
  color: var(--color-text);
  font-weight: 700;
}

/* ===========================
   Post Navigation
   =========================== */
.post-footer {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-border);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.post-nav-prev,
.post-nav-next {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.post-nav-next {
  text-align: right;
}

.post-nav-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===========================
   Inline Code (non-highlighted)
   =========================== */
:not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background-color: var(--color-inline-code-bg);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

/* ===========================
   Heading Anchors
   =========================== */
.heading-wrapper {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.heading-anchor {
  color: var(--color-text-secondary);
  text-decoration: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  font-size: 0.75em;
  font-weight: normal;
}

.heading-anchor:hover {
  color: var(--color-accent);
}

.heading-anchor:focus {
  opacity: 1;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.heading-wrapper:hover .heading-anchor {
  opacity: 1;
}

/* ===========================
   Links List
   =========================== */
.links-list {
  list-style: none;
  padding: 0;
  margin: var(--spacing-lg) 0;
}

.links-list li {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background-color: var(--color-bg-secondary);
  border-left: 3px solid var(--color-accent);
}

.links-list h3 {
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.links-list p {
  margin: 0;
  color: var(--color-text-secondary);
}

.links-list a {
  font-weight: 600;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl) var(--spacing-md);
  color: var(--color-text-secondary);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
}

.footer-content p {
  margin: 0 0 var(--spacing-sm) 0;
}
.footer-content p:last-child {
  margin-bottom: 0;
}

/* ===========================
   Blockquotes
   =========================== */
blockquote {
  margin: 0 0 var(--spacing-lg) 0;
  padding-left: var(--spacing-lg);
  border-left: 3px solid var(--color-accent);
  color: var(--color-text-secondary);
  font-style: italic;
  line-height: 1.75;
}

/* History Block - for historical context/timeline notes */
.history-block {
  margin: 0 0 var(--spacing-lg) 0;
  padding: var(--spacing-lg);
  background-color: rgba(139, 111, 78, 0.08);
  border-left: 4px solid #8b6f4e;
  border-radius: 4px;
  position: relative;
}

.history-block::before {
  content: "HISTORY";
  position: absolute;
  right: 100%;
  top: 0;
  transform: rotate(-90deg);
  transform-origin: bottom right;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #8b6f4e;
  opacity: 0.5;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.history-block p {
  margin: 0 0 0.5lh 0;
  font-style: normal;
  color: var(--color-text);
}

.history-block p:last-child {
  margin-bottom: 0;
}

[data-theme=dark] .history-block {
  background-color: rgba(160, 130, 100, 0.08);
  border-left-color: #a08264;
}

[data-theme=dark] .history-block::before {
  color: #a08264;
}

/* Note Block - for informational notes */
.note-block {
  margin: 0 0 var(--spacing-lg) 0;
  padding: var(--spacing-lg);
  background-color: rgba(37, 99, 235, 0.08);
  border-left: 4px solid #2563eb;
  border-radius: 4px;
  position: relative;
}

.note-block::before {
  content: "NOTE";
  position: absolute;
  right: 100%;
  top: 0;
  transform: rotate(-90deg);
  transform-origin: bottom right;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #2563eb;
  opacity: 0.5;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.note-block p {
  margin: 0 0 0.5lh 0;
  font-style: normal;
  color: var(--color-text);
}

.note-block p:last-child {
  margin-bottom: 0;
}

[data-theme=dark] .note-block {
  background-color: rgba(96, 165, 250, 0.08);
  border-left-color: #60a5fa;
}

[data-theme=dark] .note-block::before {
  color: #60a5fa;
}

/* Warning Block - for cautionary information */
.warning-block {
  margin: 0 0 var(--spacing-xl) 0;
  padding: var(--spacing-lg);
  background-color: rgba(245, 158, 11, 0.08);
  border-left: 4px solid #f59e0b;
  border-radius: 4px;
  position: relative;
}

.warning-block::before {
  content: "WARNING";
  position: absolute;
  right: 100%;
  top: 0;
  transform: rotate(-90deg);
  transform-origin: bottom right;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #f59e0b;
  opacity: 0.5;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.warning-block p {
  margin: 0 0 0.5lh 0;
  font-style: normal;
  color: var(--color-text);
}

.warning-block p:last-child {
  margin-bottom: 0;
}

[data-theme=dark] .warning-block {
  background-color: rgba(251, 191, 36, 0.08);
  border-left-color: #fbbf24;
}

[data-theme=dark] .warning-block::before {
  color: #fbbf24;
}

/* Danger Block - for critical warnings */
.danger-block {
  margin: 0 0 var(--spacing-lg) 0;
  padding: var(--spacing-lg);
  background-color: rgba(239, 68, 68, 0.08);
  border-left: 4px solid #ef4444;
  border-radius: 4px;
  position: relative;
}

.danger-block::before {
  content: "DANGER";
  position: absolute;
  right: 100%;
  top: 0;
  transform: rotate(-90deg);
  transform-origin: bottom right;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ef4444;
  opacity: 0.5;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.danger-block p {
  margin: 0 0 0.5lh 0;
  font-style: normal;
  color: var(--color-text);
}

.danger-block p:last-child {
  margin-bottom: 0;
}

[data-theme=dark] .danger-block {
  background-color: rgba(248, 113, 113, 0.08);
  border-left-color: #f87171;
}

[data-theme=dark] .danger-block::before {
  color: #f87171;
}

/* ===========================
   Images
   =========================== */
/* Full-Width/Full-Bleed Section for HAR Viewer and Special Tables */
.full-width-section {
  margin-bottom: var(--spacing-md);
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 0 var(--spacing-lg) 0;
  border-radius: 6px;
}

/* ===========================
   Lists
   =========================== */
ul,
ol {
  margin: 0 0 var(--spacing-lg) 0;
  padding-left: var(--spacing-lg);
}

li {
  margin-bottom: var(--spacing-md);
  line-height: 1.75;
}
li:last-child {
  margin-bottom: 0;
}

/* ===========================
   Horizontal Rule
   =========================== */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0 0 var(--spacing-xl) 0;
}

/* ===========================
   Tables
   =========================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-lg) 0;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg-secondary);
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--color-bg-secondary);
}

/* Responsive table wrapper */
.table-wrapper {
  overflow-x: auto;
  margin: var(--spacing-lg) 0;
}

.table-wrapper table {
  margin: 0;
}

.table-row-highlight td {
  background-color: rgba(245, 158, 11, 0.1);
}

@media (max-width: 768px) {
  th,
  td {
    padding: 0.5rem 0.75rem;
  }
}
/* Table caption */
.table-caption {
  padding: 0.75rem 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text);
  opacity: 0.7;
  text-align: left;
  font-style: italic;
  margin: 0.75rem 0;
}

.full-width-section:has(+ .table-caption),
.full-bleed:has(+ .table-caption) {
  margin-bottom: 0;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
  :root {
    --font-size-base: 18px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav-next {
    text-align: left;
  }
  .post-archive li {
    flex-direction: column;
    gap: var(--spacing-xs);
    overflow: hidden;
    padding-right: 2.5rem;
  }
  .post-archive time {
    min-width: auto;
  }
  .post-archive .reading-time {
    margin-left: 0;
  }
}
/* ===========================
   Print Styles
   =========================== */
@media print {
  .skip-link,
  .site-header,
  .site-footer,
  .post-nav,
  .theme-toggle {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}
/* ===========================
   Reduced Motion
   =========================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.p-0 {
  padding: 0;
}

.m-0 {
  margin: 0;
}