/* blog.waterloointuition.com — design system.
   Mirrors the waterloointuition.com front page (Tailwind v4 build): slate
   gradient, white fixed nav, Inter, cyan accents, white/5 cards with gray-700
   borders. Hand-authored so the blog needs no CSS build step; every colour and
   size token lives in :root. Dark only, like the main site. */

:root {
  color-scheme: dark;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --white: #fff;
  --gray-100: oklch(96.7% .003 264.542);
  --gray-300: oklch(87.2% .01 258.338);
  --gray-400: oklch(70.7% .022 261.325);
  --gray-500: oklch(55.1% .027 264.364);
  --gray-700: oklch(37.3% .034 259.733);
  --gray-800: oklch(27.8% .033 256.848);
  --cyan-300: oklch(86.5% .127 207.078);
  --cyan-400: oklch(78.9% .154 211.53);
  --cyan-500: oklch(71.5% .143 215.221);
  --cyan-600: oklch(60.9% .126 221.723);
  --card: rgb(255 255 255 / .05);
  --card-hover: rgb(255 255 255 / .08);
  --band: rgb(0 0 0 / .4);
  --line: var(--gray-700);
  --line-hover: color-mix(in oklab, var(--cyan-400) 50%, transparent);
  --radius-lg: .5rem;
  --radius-xl: .75rem;
  --radius-2xl: 1rem;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --font: 'Inter', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --nav-h: 5.5rem;
}

/* ---------- base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
  background-color: var(--slate-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 3px; border-radius: 4px; }
.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; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--cyan-500); color: #000; font-weight: 700; padding: .6rem 1rem; border-radius: var(--radius-lg); }
.skip:focus { top: 1rem; }
.i { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -.125em; }
.wrap { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap-5 { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap-3 { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }
.band { background: var(--band); }
.cyan { color: var(--cyan-400); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- nav (white bar, as on the main site) --------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--white);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  padding: 1rem 1.5rem;
}
.nav-in { max-width: 80rem; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.brand img { display: block; height: 3.5rem; width: auto; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 2rem; align-items: center;
  font-size: 1.125rem; font-weight: 500; color: var(--gray-800); }
.nav-links a { transition: color .15s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--cyan-600); }
.nav-links a[aria-current] { box-shadow: inset 0 -2px 0 var(--cyan-500); padding-bottom: .15rem; }
.nav-search { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
  border-radius: 999px; background: var(--gray-100); color: var(--gray-800); }
.nav-search:hover { background: var(--cyan-500); color: #000 !important; }
.nav-toggle { color: var(--gray-800); font-size: 1.875rem; line-height: 1; display: inline-flex; padding: .25rem; }
.mobile-menu { background: var(--white); box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1); margin-top: .5rem;
  border-radius: var(--radius-lg); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; font-size: 1.125rem; font-weight: 500; color: var(--gray-800); }
.mobile-menu a { display: flex; gap: .6rem; align-items: center; padding: 1rem 1.5rem; }
.mobile-menu a:hover, .mobile-menu a[aria-current] { background: var(--gray-100); color: var(--cyan-600); }
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle, .mobile-menu { display: none !important; }
}

/* ---------- hero ------------------------------------------------------------ */
.hero { padding: calc(var(--nav-h) + 2.5rem) 1.5rem 3rem; text-align: center; }
.hero h1 { font-size: 2.25rem; line-height: 1.15; font-weight: 700; margin-bottom: 1.25rem; letter-spacing: -.01em; }
.hero .lead { font-size: 1.125rem; line-height: 1.6; color: var(--gray-300); max-width: 64rem; margin: 0 auto 2rem; }
.hero-sm { padding-bottom: 2.5rem; }
.hero-sm h1 { font-size: 2rem; margin-bottom: 1rem; }
.hero-sm .lead { font-size: 1.0625rem; margin-bottom: 0; }
.eyebrow { display: inline-flex; gap: .5rem; align-items: center; color: var(--cyan-400); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; font-size: .875rem; margin-bottom: 1rem; }
.hero-avatar { width: 7rem; height: 7rem; border-radius: 999px; object-fit: cover; border: 3px solid var(--cyan-400);
  display: block; margin: 0 auto 1.25rem; }
@media (min-width: 768px) {
  .hero { padding: calc(var(--nav-h) + 4.5rem) 1.5rem 4.5rem; }
  .hero h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 2rem; }
  .hero .lead { font-size: 1.5rem; margin-bottom: 2.5rem; }
  .hero-sm { padding-bottom: 3rem; }
  .hero-sm h1 { font-size: 3rem; }
  .hero-sm .lead { font-size: 1.25rem; }
}

/* search box (hero + search page) */
.searchbox { display: flex; max-width: 40rem; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-xl); overflow: hidden; transition: border-color .15s var(--ease); }
.searchbox:focus-within { border-color: var(--cyan-400); }
.searchbox input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--white); font: inherit;
  font-size: 1.125rem; padding: 1rem 1.25rem; }
.searchbox input::placeholder { color: var(--gray-400); }
.searchbox input:focus { outline: none; }
.searchbox button { background: var(--cyan-500); color: #000; font-weight: 700; padding: 0 1.5rem;
  display: inline-flex; gap: .5rem; align-items: center; transition: background .15s var(--ease); }
.searchbox button:hover { background: var(--cyan-400); }

/* ---------- buttons, chips -------------------------------------------------- */
.btn { display: inline-flex; gap: .6rem; align-items: center; justify-content: center; background: var(--cyan-500);
  color: #000; font-weight: 700; padding: 1rem 2.5rem; border-radius: var(--radius-lg); font-size: 1.125rem;
  transition: background .15s var(--ease); }
.btn:hover { background: var(--cyan-400); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--card); border-color: var(--cyan-400); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; gap: .4rem; align-items: center; font-size: .875rem; font-weight: 500;
  padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--gray-300);
  background: var(--card); transition: border-color .15s var(--ease), color .15s var(--ease); }
.chip:hover { border-color: var(--cyan-400); color: var(--white); }
.chip small { color: var(--gray-500); font-weight: 600; }
.chip-cat { color: var(--cyan-300); border-color: color-mix(in oklab, var(--cyan-400) 35%, transparent); }

/* ---------- sections --------------------------------------------------------- */
.section { padding: 5rem 0; }
.section-title { font-size: 1.875rem; line-height: 1.2; font-weight: 700; text-align: center; margin-bottom: 2.5rem; }
.section-title-left { text-align: left; margin-bottom: 2rem; font-size: 1.875rem; }
@media (min-width: 768px) { .section { padding: 7rem 0; } .section-title { font-size: 3rem; margin-bottom: 3.5rem; } }

/* ---------- cards ------------------------------------------------------------ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-2xl);
  transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease); }
.card:hover { border-color: var(--line-hover); }
.grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.post-card { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.post-card:hover { background: var(--card-hover); }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray-800); border-bottom: 1px solid var(--line); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.03); }
.post-card .body { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem 1.75rem 1.75rem; flex: 1; }
.post-card .cat { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--cyan-400); position: relative; z-index: 2; }
.post-card .cat:hover { color: var(--cyan-300); }
.post-card h3 { font-size: 1.25rem; line-height: 1.35; font-weight: 700; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card clickable */
.post-card p { color: var(--gray-300); font-size: .975rem; line-height: 1.65; }
.post-card .meta { margin-top: auto; padding-top: .5rem; }
.meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; color: var(--gray-400); font-size: .875rem; }
.meta .i { color: var(--cyan-400); margin-right: .3rem; }
.avatar { width: 2rem; height: 2rem; border-radius: 999px; object-fit: cover; border: 1px solid var(--line); }
.byline { display: inline-flex; gap: .55rem; align-items: center; color: var(--gray-300); font-weight: 500; }

.post-card.featured { display: grid; }
.post-card.featured .thumb { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); }
.post-card.featured h3 { font-size: 1.75rem; line-height: 1.25; }
.post-card.featured p { font-size: 1.0625rem; }
.post-card.featured .body { padding: 2rem; justify-content: center; }
@media (min-width: 1024px) {
  .post-card.featured { grid-template-columns: 1.15fr 1fr; }
  .post-card.featured .thumb { aspect-ratio: auto; min-height: 24rem; border-bottom: 0; border-right: 1px solid var(--line); }
  .post-card.featured .body { padding: 3rem; }
  .post-card.featured h3 { font-size: 2.25rem; }
}

/* topic cards */
.topic { display: flex; gap: 1.25rem; align-items: center; padding: 1.5rem 1.75rem; }
.topic .i { font-size: 1.875rem; color: var(--cyan-400); }
.topic h3 { font-size: 1.125rem; font-weight: 700; }
.topic p { color: var(--gray-400); font-size: .875rem; margin-top: .15rem; }
.topic:hover h3 { color: var(--cyan-300); }

/* ---------- pagination ------------------------------------------------------- */
.pager { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center; margin-top: 4rem; }
.pager a, .pager span { min-width: 2.75rem; height: 2.75rem; padding: 0 .9rem; display: inline-flex; align-items: center;
  justify-content: center; gap: .4rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card);
  color: var(--gray-300); font-weight: 600; }
.pager a:hover { border-color: var(--cyan-400); color: var(--white); }
.pager [aria-current] { background: var(--cyan-500); border-color: var(--cyan-500); color: #000; }
.pager .gap { border: 0; background: none; min-width: 1rem; padding: 0; }

/* ---------- post page ---------------------------------------------------------- */
.post-hero { padding: calc(var(--nav-h) + 2rem) 1.5rem 2rem; }
@media (min-width: 768px) { .post-hero { padding: calc(var(--nav-h) + 3.5rem) 1.5rem 2.5rem; } }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: var(--gray-400); font-size: .875rem; margin-bottom: 1.5rem; }
.crumbs a:hover { color: var(--cyan-300); }
.crumbs .i { font-size: .65rem; color: var(--gray-500); }
.post-hero h1 { font-size: 2rem; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; margin: 1.25rem 0 1.5rem; }
.post-hero .meta { font-size: .9375rem; gap: .5rem 1.25rem; }
.post-hero .avatar { width: 2.75rem; height: 2.75rem; }
@media (min-width: 768px) { .post-hero h1 { font-size: 3.25rem; } }
.post-feature { max-width: 64rem; margin: 0 auto 3rem; padding: 0 1.5rem; }
.post-feature img { display: block; width: 100%; border-radius: var(--radius-2xl); border: 1px solid var(--line); }

.post-foot { display: grid; gap: 2rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.post-foot h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); font-weight: 600; margin-bottom: .85rem; }
.share { display: flex; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.share a { width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); font-size: 1.125rem; color: var(--gray-300); transition: all .15s var(--ease); }
.share a:hover { border-color: var(--cyan-400); color: var(--cyan-300); }

.author-card { display: flex; gap: 1.5rem; align-items: center; padding: 1.75rem; margin-top: 3rem; }
.author-card img { width: 5rem; height: 5rem; border-radius: 999px; object-fit: cover; border: 2px solid var(--cyan-400); flex: none; }
.author-card h2 { font-size: 1.25rem; font-weight: 700; }
.author-card .role { color: var(--cyan-400); font-weight: 500; margin: .15rem 0 .5rem; }
.author-card p { color: var(--gray-300); }
.author-card .more { display: inline-flex; gap: .4rem; align-items: center; color: var(--cyan-400); font-weight: 600; margin-top: .6rem; }
.author-card .more:hover { color: var(--cyan-300); }

.cta { text-align: center; padding: 3rem 2rem; margin-top: 3rem; }
.cta h2 { font-size: 1.75rem; line-height: 1.3; font-weight: 700; margin-bottom: .75rem; }
.cta p { color: var(--gray-300); font-size: 1.125rem; margin-bottom: 2rem; }
.cta .alt { display: block; margin-top: 1.25rem; color: var(--gray-400); }
.cta .alt a { color: var(--cyan-300); font-weight: 600; }

.pn { display: grid; gap: 1rem; margin-top: 3rem; }
.pn a { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.5rem; }
.pn span { font-size: .8125rem; color: var(--gray-400); display: inline-flex; gap: .4rem; align-items: center; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.pn strong { font-weight: 600; line-height: 1.4; }
.pn a:hover strong { color: var(--cyan-300); }
.pn .next { text-align: right; align-items: flex-end; }
@media (min-width: 768px) { .pn { grid-template-columns: 1fr 1fr; } .pn .next:only-child { grid-column: 2; } }

/* ---------- article typography ------------------------------------------------ */
.prose { font-size: 1.0625rem; line-height: 1.8; color: var(--gray-300); overflow-wrap: break-word; }
@media (min-width: 768px) { .prose { font-size: 1.125rem; } }
.prose > * + *, .prose li > * + *, .prose blockquote > * + *, .prose .cols > div > * + *, .prose div > * + * { margin-top: 1.25em; }
.prose ul, .prose ol { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { color: var(--white); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.prose h2 { font-size: 1.75em; margin-top: 2em; }
.prose h3 { font-size: 1.45em; margin-top: 1.8em; }
.prose h4 { font-size: 1.25em; margin-top: 1.7em; }
.prose h5 { font-size: 1.1em; margin-top: 1.6em; }
.prose h6 { font-size: 1em; margin-top: 1.5em; text-transform: uppercase; letter-spacing: .05em; }
.prose h2 + *, .prose h3 + *, .prose h4 + *, .prose h5 + *, .prose h6 + * { margin-top: .75em; }
.prose > :first-child { margin-top: 0; }
.prose strong, .prose b { color: var(--white); font-weight: 600; }
.prose .subhead { color: var(--white); font-weight: 700; font-size: 1.15em; line-height: 1.4; margin-top: 2em; }
.prose .subhead + * { margin-top: .6em; }
.prose > .subhead:first-child { margin-top: 0; }
.prose a { color: var(--cyan-400); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklab, var(--cyan-400) 45%, transparent); transition: color .15s var(--ease); }
.prose a:hover { color: var(--cyan-300); text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { padding-left: .25em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--cyan-400); }
.prose ol > li::marker { font-weight: 600; }
.prose blockquote { border-left: 4px solid var(--cyan-400); padding: .25em 0 .25em 1.25em; color: var(--gray-100); font-style: italic; }
.prose .hl { color: var(--cyan-300); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose img { border-radius: var(--radius-xl); }
.prose figure { text-align: center; }
.prose figure img, .prose p > img:only-child { display: block; margin: 0 auto; border: 1px solid var(--line); }
.prose figcaption { color: var(--gray-400); font-size: .875em; margin-top: .75em; }
.prose code { font-family: var(--mono); font-size: .875em; background: rgb(255 255 255 / .08); padding: .15em .4em; border-radius: .3em; color: var(--gray-100); }
.prose pre { font-family: var(--mono); font-size: .875em; line-height: 1.65; background: var(--band); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 1.1em 1.35em; overflow-x: auto; color: var(--gray-100); white-space: pre; tab-size: 4; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose sup { line-height: 0; }
.prose .aligncenter, .prose .has-text-align-center { text-align: center; }
.prose .has-text-align-right { text-align: right; }

/* tables: default dark grid; .t-custom keeps its own border layout (K-maps, truth tables) */
.prose .table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; font-size: .9375em; line-height: 1.5; }
.prose .table-wrap > table:not(.t-custom) { width: 100%; }
.prose table:not(.t-custom) th, .prose table:not(.t-custom) td { border: 1px solid var(--line); padding: .6em .85em; text-align: left; vertical-align: top; }
.prose table:not(.t-custom) th { background: var(--card); color: var(--white); font-weight: 600; }
.prose table.t-custom, .prose table.t-custom * { border-color: var(--gray-400) !important; }
.prose table.t-custom th, .prose table.t-custom td { padding: .3em .75em; }
.prose table.t-custom th { color: var(--white); }
.prose .table-wrap:has(> .t-custom) { display: inline-block; vertical-align: top; margin: .5em 1.5em .5em 0; max-width: 100%; }

/* diagrams drawn for a white screen stay on white (they depict black-on-white pixels) */
.prose .figure-panel { display: inline-block; background: #fff; color: #111; border-radius: var(--radius-xl);
  padding: .75rem; margin: .35rem .5rem .35rem 0; vertical-align: middle; max-width: 100%; overflow-x: auto; line-height: 1.2; }
.prose .figure-panel svg { display: block; overflow: visible; }
.prose .video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .cols { display: grid; gap: 2rem; }
@media (min-width: 768px) { .prose .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prose .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .prose .cols { align-items: start; } }
.prose .MathJax_CHTML, .prose .MathJax { color: var(--white); }

/* ---------- all-articles list ---------------------------------------------------- */
.years { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2rem; }
.year-block { margin-top: 3.5rem; }
.year-block h2 { font-size: 1.875rem; font-weight: 700; display: flex; gap: .75rem; align-items: baseline; margin-bottom: 1rem; }
.year-block h2 small { font-size: .9375rem; color: var(--gray-400); font-weight: 500; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: 6.5rem 1fr; gap: .25rem 1.25rem; padding: .95rem .25rem; align-items: baseline; }
.rows a:hover .t { color: var(--cyan-300); }
.rows time { color: var(--gray-400); font-size: .875rem; font-variant-numeric: tabular-nums; }
.rows .t { font-weight: 600; line-height: 1.4; }
.rows .c { grid-column: 2; color: var(--gray-500); font-size: .8125rem; }
@media (min-width: 768px) { .rows a { grid-template-columns: 7.5rem 1fr 14rem; } .rows .c { grid-column: auto; text-align: right; } }

/* ---------- search page (Pagefind UI themed to match) -------------------------------- */
#search {
  --pagefind-ui-scale: 1;
  --pagefind-ui-primary: var(--cyan-400);
  --pagefind-ui-text: var(--gray-300);
  --pagefind-ui-background: var(--slate-900);
  --pagefind-ui-border: var(--gray-700);
  --pagefind-ui-tag: var(--gray-800);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: .75rem;
  --pagefind-ui-image-border-radius: .5rem;
  --pagefind-ui-image-box-ratio: 16 / 10;
  --pagefind-ui-font: var(--font);
}
#search .pagefind-ui__result-link { color: var(--white); }
#search .pagefind-ui__result-link:hover { color: var(--cyan-300); }
#search mark { background: color-mix(in oklab, var(--cyan-400) 30%, transparent); color: var(--white); border-radius: 2px; }
#search .pagefind-ui__search-input { background: var(--card); color: var(--white); }
#search .pagefind-ui__result { border-top-color: var(--gray-700); }
.search-empty { color: var(--gray-400); text-align: center; margin-top: 2rem; }

/* ---------- footer (as on the main site) -------------------------------------------- */
.site-foot { background: rgb(0 0 0 / .7); color: var(--gray-300); font-size: .875rem; }
.site-foot .wrap { padding-top: 4rem; padding-bottom: 4rem; }
.foot-grid { display: grid; gap: 3rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.site-foot h3 { color: var(--white); font-weight: 700; font-size: 1.125rem; margin-bottom: 1rem; display: flex; gap: .5rem; align-items: center; }
.site-foot h3 .i { color: var(--cyan-400); }
.site-foot p, .site-foot address { color: var(--gray-400); line-height: 1.625; font-style: normal; }
.site-foot .since { color: var(--gray-500); font-size: .75rem; margin-top: 1rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; color: var(--gray-400); display: grid; gap: .5rem; }
.site-foot li { display: flex; gap: .6rem; align-items: center; }
.site-foot li .i { color: var(--cyan-400); font-size: .75rem; }
.site-foot a { transition: color .15s var(--ease); }
.site-foot a:hover { color: var(--white); }
.site-foot .social { font-size: 1.5rem; color: var(--cyan-400); padding-top: .5rem; }
.site-foot .social .i { font-size: 1.5rem; }
.foot-bar { border-top: 1px solid var(--gray-800); padding-top: 2rem; text-align: center; font-size: .75rem; color: var(--gray-500); display: grid; gap: .5rem; }
.foot-bar a:hover { color: var(--gray-300); }
