/* ===================== KiteSink shared styles =====================
   Loaded on every page.

   1. Reset, shared keyframes, paper grain, a11y defaults
   2. Design tokens (--k-*)  — prefixed so they never collide with the
      product pages' own --ink / --paper / --accent variables
   3. Shared chrome injected by ks.js: header, slim bar, footer,
      mobile pill nav, the Find palette
   4. The 2027 component kit (.k-*) used by the landing + hub pages
      (opt in with <body class="ks-paper k2">)
   5. Motion: cross-page view transitions + scroll-driven reveals
   6. Legacy night-mode remaps for the older inline-styled cream pages

   Page-specific layout stays in each page's own <style> block.
   ================================================================= */

/* ---------- 1. reset + shared bits ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* shared keyframes (pulse dots, marquee bands, equalizer bars, bobbing kite) */
@keyframes ks-pulse   { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes ks-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ks-eq      { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
/* legacy aliases used inline on some pages */
@keyframes pulse   { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* paper-grain overlay — opt in with <body class="ks-paper"> (cream pages only;
   the project pages keep their own art direction). Sits above content but
   below the header and the mobile pill nav; pointer-events:none keeps it inert.
   It must stay below the header (z-index 60). iOS 26 Safari, and iOS browsers built on the
   same WebKit, colour the strip behind the clock by hit-testing one point near the top centre
   of the screen and taking the first fixed or sticky element there; they ignore
   pointer-events and never look beneath what they hit. Above the header, this full-screen
   layer was what they hit, so the strip showed the page instead of the header's colour. */
body.ks-paper::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 55; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.13 0 0 0 0 0.11 0 0 0 0 0.06 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* dark: grain flips to faint light specks so it reads on the near-black page */
html[data-theme="dark"] body.ks-paper::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.93 0 0 0 0 0.89 0 0 0 0 0.72 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* accessibility: respect reduced-motion + a consistent focus ring */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
:focus-visible { outline: 2px solid #2f5436; outline-offset: 2px; }
html[data-theme="dark"] :focus-visible { outline-color: #82c795; }

/* ---------- 2. tokens ---------- */
:root {
  --k-paper: #ece2cb;  --k-raised: #f3ecd9;  --k-sunk: #e2d7bb;
  --k-ink: #1d1810;    --k-copy: #5e5238;    --k-mute: #645636;   /* AA on paper, raised, tinted and under the frosted header */
  --k-green: #2f5436;        /* accent text + lines (flips lighter at night) */
  --k-green-fill: #2f5436;   /* accent fills (stays brand green at night)   */
  --k-green-deep: #23402b;   --k-pine: #1f3024;
  --k-brass: #7a4f10;        /* text-safe brass (AA on every light surface) */
  --k-brass-fill: #b07227;   --k-tan: #d8b07a;
  --k-on-green: #f0e8d6;     --k-on-green-mute: #c2ceb9;
  --k-rule: rgba(34,28,16,.17);  --k-rule-strong: rgba(34,28,16,.3);
  --k-tint: rgba(34,28,16,.06);
  --k-shadow: 0 14px 30px rgba(34,28,16,.09);
  --k-shadow-lift: 0 22px 44px rgba(34,28,16,.14);
  --k-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --k-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --k-gutter: clamp(20px, 4vw, 40px);
  --k-max: 1240px;
  --k-r: 14px;  --k-r-sm: 12px;
  --k-ease: cubic-bezier(.2,.7,.2,1);
}
html[data-theme="dark"] {
  --k-paper: #16130d;  --k-raised: #211c13;  --k-sunk: #0f0d08;
  --k-ink: #f2ead6;    --k-copy: #b7ac8f;    --k-mute: #a99a7b;
  --k-green: #82c795;  --k-brass: #e0a94e;
  --k-rule: rgba(236,226,203,.13);  --k-rule-strong: rgba(236,226,203,.26);
  --k-tint: rgba(236,226,203,.06);
  --k-shadow: 0 14px 30px rgba(0,0,0,.4);
  --k-shadow-lift: 0 22px 44px rgba(0,0,0,.5);
}

/* ---------- 3. shared chrome ---------- */

/* legacy helper classes still used inline by older pages */
.ks-link { transition: color .15s; text-decoration: none; }
.ks-link:hover { color: #2f5436 !important; }
.ks-nav-link { transition: color .15s; }
.ks-nav-link:hover { color: #2f5436; }
.ks-foot-link { transition: color .15s; }
.ks-foot-link:hover { color: #d8b07a !important; }

/* wordmark */
.ks-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--k-ink);
  text-decoration: none; font: 800 19px/1 var(--k-sans); letter-spacing: -.035em; }
.ks-brand b { color: var(--k-green); font-weight: 800; }
.ks-brand svg { flex-shrink: 0; transition: transform .5s var(--k-ease); transform-origin: 70% 30%; }
.ks-brand:hover svg { transform: rotate(-7deg) translateY(-1px); }
.ks-logo .lg { fill: #2f5436; } .ks-logo .lgs { stroke: #2f5436; } .ks-logo .lgl { fill: #3a6b46; } .ks-logo .lgd { fill: #23402b; }
html[data-theme="dark"] .ks-logo .lg { fill: #4c8a5d; } html[data-theme="dark"] .ks-logo .lgs { stroke: #4c8a5d; }
html[data-theme="dark"] .ks-logo .lgl { fill: #63a576; } html[data-theme="dark"] .ks-logo .lgd { fill: #2f5436; }

/* full header (landing, hubs, library, about, older cream pages) */
.ks-hd {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between;
  gap: 10px 18px; min-height: 60px; padding: 10px var(--k-gutter);
  background: var(--k-paper);   /* solid, and no backdrop-filter: see the note below */
  border-bottom: 1px solid var(--k-rule); font-family: var(--k-sans);
}
/* iOS 26 Safari draws the page under the status bar. It fills that strip with the colour of a
   bar pinned to the top edge, but only when the bar has a solid background-color and no
   backdrop-filter anywhere on it (WebKit, LocalFrameView::fixedContainerEdges). With a
   backdrop-filter it leaves the strip clear and the page shows above the bar. So every bar
   that pins to the top of the screen stays solid and unfiltered. */
.ks-nav { display: flex; align-items: center; gap: clamp(2px, .8vw, 8px); font: 500 13px/1 var(--k-mono); }
.ks-nav a { color: var(--k-copy); text-decoration: none; padding: 10px 12px; border-radius: 30px;
  transition: color .15s, background .15s; white-space: nowrap; }
.ks-nav a:hover { color: var(--k-green); background: color-mix(in srgb, var(--k-green) 10%, transparent); }
.ks-nav a[aria-current] { color: var(--k-on-green); background: var(--k-green-fill); }
/* Library is always one click away, but it does not shout */
.ks-nav a.is-quiet:not([aria-current]) { color: var(--k-mute); font-weight: 400; }
.ks-nav a.is-quiet:not([aria-current])::before { content: ""; display: inline-block; width: 1px; height: 11px; margin-right: 12px; background: var(--k-rule-strong); vertical-align: -1px; }

.ks-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ks-findbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 9px 0 13px; border-radius: 30px;
  border: 1px solid var(--k-rule-strong); background: transparent; color: var(--k-copy);
  font: 500 12.5px/1 var(--k-mono); cursor: pointer; transition: color .15s, border-color .15s;
}
.ks-findbtn:hover { color: var(--k-green); border-color: var(--k-green); }
.ks-kbd { font: 500 10.5px/1 var(--k-mono); padding: 4px 6px; border-radius: 6px; background: var(--k-tint); color: var(--k-copy); }
.ks-kbd[data-k]::after { content: attr(data-k); }   /* the header's shortcut hint: drawn here so the button's visible label is just "Find" */
.ks-status { display: none; align-items: center; gap: 8px; font: 500 12px/1 var(--k-mono); color: var(--k-green); white-space: nowrap; }
.ks-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ks-pulse 2.4s ease-in-out infinite; }
@media (min-width: 1100px) { .ks-status { display: inline-flex; } }
@media (max-width: 900px)  { .ks-findbtn .ks-kbd { display: none; } .ks-findbtn { padding: 0 12px; } }
@media (max-width: 700px)  { .ks-findbtn { width: 44px; height: 44px; padding: 0; justify-content: center; } .ks-findbtn span { display: none; } }

/* theme toggle (in the shared header) */
.ks-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--k-rule-strong); background: transparent; color: var(--k-copy);
  transition: color .15s, border-color .15s, background .15s; flex-shrink: 0;
}
.ks-theme-toggle:hover { color: var(--k-green); border-color: var(--k-green); }
@media (max-width: 700px) { .ks-theme-toggle { width: 44px; height: 44px; } }

/* slim bar (project pages keep their own art direction beneath it) */
.ks-bar {
  position: sticky; top: 0; z-index: 1000; height: 38px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 clamp(16px, 4vw, 40px); box-sizing: border-box;
  background: var(--k-paper);   /* solid and unfiltered, for the same reason as .ks-hd */
  border-bottom: 1px solid var(--k-rule); font-family: var(--k-sans);
}
.ks-bar .ks-brand { font-size: 14px; gap: 7px; letter-spacing: -.03em; }
.ks-barnav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 22px); min-width: 0; overflow-x: auto;
  white-space: nowrap; font: 500 12px/1 var(--k-mono); color: var(--k-copy); scrollbar-width: none; }
.ks-barnav::-webkit-scrollbar { display: none; }
.ks-barnav a { flex-shrink: 0; color: inherit; text-decoration: none; padding: 12px 0; transition: color .15s; }
.ks-barnav a:hover, .ks-barnav a[aria-current] { color: var(--k-green); }
.ks-barnav button { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; padding: 0; }
.ks-barnav button:hover { color: var(--k-green); }
@media (max-width: 480px) {
  .ks-bar { padding: 0 12px; gap: 8px; }
  .ks-bar .ks-brand span { display: none; }   /* the kite + sink mark alone still links home */
  .ks-barnav { gap: 13px; font: 500 12px/1 var(--k-sans); }
  /* on the narrowest phones the links scroll sideways; Find stays pinned at the end */
  .ks-barnav button { position: sticky; right: 0; background: var(--k-paper); box-shadow: -8px 0 8px var(--k-paper); }
}

/* cream bottom strip (project sub-pages) */
.ks-bottombar { background: var(--k-paper); border-top: 1px solid var(--k-rule); padding: 16px clamp(16px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font: 400 12px/1.4 var(--k-mono); color: var(--k-mute); }
.ks-bottombar a { color: var(--k-copy); text-decoration: none; }
.ks-bottombar a:hover { color: var(--k-green); }

/* footer — pine in both themes */
.ks-ft { background: #1f3024; color: #ece2cb; padding: clamp(44px, 6vw, 68px) var(--k-gutter) 40px; font-family: var(--k-sans); }
.ks-ft-in { max-width: var(--k-max); margin: 0 auto; }
.ks-ft-top { display: grid; gap: 36px 40px; }
.ks-ft-word { font: 800 clamp(48px, 9vw, 104px)/.88 var(--k-sans); letter-spacing: -.05em; color: #ece2cb; }
.ks-ft-word b { color: #d8b07a; font-weight: 800; }
.ks-ft-me { display: flex; align-items: center; gap: 13px; margin-top: 18px; max-width: 420px; }
.ks-ft-me img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 40%; border: 2px solid rgba(216,176,122,.5); display: block; }
.ks-ft-me p { margin: 0; font: 400 15px/1.45 var(--k-sans); color: rgba(236,226,203,.66); }
.ks-ft-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.ks-ft-col h2 { margin: 0 0 12px; font: 600 10.5px/1 var(--k-mono); text-transform: uppercase; letter-spacing: .16em; color: rgba(236,226,203,.6); }
.ks-ft-col a { display: block; padding: 6px 0; font: 500 14px/1.3 var(--k-sans); color: #d8b07a; text-decoration: none; transition: color .15s, translate .2s var(--k-ease); }
.ks-ft-col a:hover { color: #f3ecd9; translate: 3px 0; }
.ks-ft-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(236,226,203,.2); display: flex; justify-content: space-between;
  align-items: center; gap: 12px 20px; flex-wrap: wrap; font: 400 12px/1.5 var(--k-mono); color: rgba(236,226,203,.62); }
.ks-ft-base a { color: inherit; text-decoration: none; }
.ks-ft-base a:hover { color: #d8b07a; }
.ks-ft-base .ks-status { display: inline-flex; color: #d8b07a; }
.ks-ft-base .ks-status i { background: #5c9a6e; }
@media (min-width: 620px)  { .ks-ft-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ks-ft-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: end; } }

/* floating mobile pill nav (injected by ks.js on pages with the shared
   header/footer). Hidden on desktop; the top nav hides ≤700px instead. */
.ks-pillnav {
  display: none; position: fixed; left: 0; right: 0; margin-inline: auto; width: fit-content;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  gap: 2px; background: #1f3024;
  border-radius: 40px; padding: 5px; box-shadow: 0 12px 28px rgba(20,16,8,.34);
  z-index: 90; white-space: nowrap; max-width: calc(100% - 20px); overflow-x: auto; scrollbar-width: none;
}
/* No view-transition-name, transform or backdrop blur on this bar or the header: on iOS
   each one made its page-change snapshot come out as a soft rectangle. Both now ride in
   the page's own cross-fade, where identical pixels stay put. */
.ks-pillnav::-webkit-scrollbar { display: none; }
.ks-pillnav a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; font: 500 12.5px/1 var(--k-sans); letter-spacing: -.005em; color: rgba(236,226,203,.86);
  border-radius: 30px; padding: 0 11px; text-decoration: none; transition: background .2s, color .2s; }
.ks-pillnav a.on { font-weight: 600; color: #1f3024; background: #ece2cb; }
@media (max-width: 700px) {
  .ks-nav, .ks-topnav { display: none !important; }
  .ks-kite { display: none !important; }
  .ks-pillnav { display: flex; }
  body.ks-haspill { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 372px) { .ks-pillnav a { padding: 0 9px; font-size: 12px; } }

/* Find palette (⌘K / Ctrl K / "/") — the whole site in one input */
.ks-find {
  width: min(640px, calc(100vw - 20px)); max-height: min(72dvh, 640px); margin: max(9dvh, 14px) auto auto; padding: 0;
  border: 1px solid var(--k-rule-strong); border-radius: 18px; background: var(--k-raised); color: var(--k-ink);
  box-shadow: 0 30px 80px rgba(0,0,0,.4); overflow: hidden; font-family: var(--k-sans);
  opacity: 0; translate: 0 -12px;
  transition: opacity .18s, translate .2s var(--k-ease), overlay .2s allow-discrete, display .2s allow-discrete;
}
.ks-find[open] { display: flex; flex-direction: column; opacity: 1; translate: 0 0; }
@starting-style { .ks-find[open] { opacity: 0; translate: 0 -12px; } }
.ks-find::backdrop { background: rgba(20,16,8,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ks-find-top { display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 18px; border-bottom: 1px solid var(--k-rule); color: var(--k-mute); }
.ks-find-in { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; color: var(--k-ink); font: 500 17px/1 var(--k-sans); outline: none; }
.ks-find-in::placeholder { color: var(--k-mute); opacity: 1; }
.ks-find .ks-find-in:focus-visible { outline: none; }   /* the caret marks focus; the field is the dialog's only input */
.ks-find-in::-webkit-search-cancel-button { display: none; }
.ks-find-x { border: 1px solid var(--k-rule-strong); background: transparent; color: var(--k-mute); border-radius: 8px;
  font: 500 11px/1 var(--k-mono); padding: 7px 9px; cursor: pointer; }
.ks-find-x:hover { color: var(--k-green); border-color: var(--k-green); }
.ks-find-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.ks-find-group { padding: 12px 10px 6px; font: 600 10px/1 var(--k-mono); text-transform: uppercase; letter-spacing: .16em; color: var(--k-mute); }
.ks-find-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: baseline; padding: 10px 12px;
  border-radius: 10px; text-decoration: none; color: inherit; }
.ks-find-list a .t { font: 600 15px/1.3 var(--k-sans); letter-spacing: -.01em; color: var(--k-ink); }
.ks-find-list a .d { grid-column: 1; font: 400 13px/1.4 var(--k-sans); color: var(--k-copy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-find-list a .s { grid-row: 1; grid-column: 2; font: 500 10.5px/1 var(--k-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--k-mute); white-space: nowrap; }
.ks-find-list li.on a, .ks-find-list a:hover { background: color-mix(in srgb, var(--k-green) 12%, transparent); }
.ks-find-list li.on a .t { color: var(--k-green); }
.ks-find-empty { padding: 22px 14px 18px; font: 400 15px/1.5 var(--k-sans); color: var(--k-copy); }
.ks-find-empty p { margin: 0; max-width: none; }
.ks-find-empty .ks-find-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ks-find-list a.ks-find-act { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--k-rule-strong); background: transparent; color: var(--k-ink); font: 600 14px/1 var(--k-sans); text-decoration: none; }
.ks-find-list a.ks-find-act:hover { border-color: var(--k-green); background: transparent; }
.ks-find-list a.ks-find-act--go { background: var(--k-green); border-color: var(--k-green); color: var(--k-paper); }
.ks-find-list a.ks-find-act--go:hover { background: var(--k-green); filter: brightness(1.08); }

/* Kit, the search buddy: a kite with eyes. Drawn by kit() in ks.js. It is decoration;
   the words beside it carry the meaning. Moods: idle, busy, found, none. */
.ks-find-kit { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px 6px 16px;
  border-bottom: 1px solid var(--k-rule); background: color-mix(in srgb, var(--k-brass-fill) 9%, transparent); }
.ks-find-kit .ks-kit { width: 30px; height: 38px; }
.ks-find-say { margin: 0; min-width: 0; max-width: none; font: 500 14px/1.4 var(--k-sans); color: var(--k-copy); }
.ks-kit { flex: none; overflow: visible; transform-origin: 50% 36%; transition: rotate .4s var(--k-ease), translate .4s var(--k-ease); }
.ks-kit .kd { fill: var(--k-brass-fill); }
.ks-kit .kl { stroke: rgba(255,255,255,.34); }
.ks-kit .kt { stroke: var(--k-brass-fill); transform-box: fill-box; transform-origin: 50% 0; animation: ks-kit-tail 2.6s ease-in-out infinite alternate; }
.ks-kit .ke circle { fill: #fbf6e8; }
.ks-kit .kp circle { fill: #1d1810; }
.ks-kit .ke, .ks-kit .kp { transform-box: fill-box; transform-origin: center; animation: ks-kit-blink 5.4s infinite; }
.ks-kit .kp { transition: translate .25s var(--k-ease); }
.ks-kit .km, .ks-kit .km-o { stroke: #1d1810; }
.ks-kit .km-o { display: none; }
.ks-kit[data-mood="found"] { rotate: -5deg; }
.ks-kit[data-mood="found"] .kp { translate: 0 1.4px; }            /* looks down at the results */
.ks-kit[data-mood="busy"] .kp { translate: 1.2px -1px; }
.ks-kit[data-mood="none"] { rotate: 13deg; translate: 0 3px; }     /* droops */
.ks-kit[data-mood="none"] .kp { translate: -1px 1.3px; }
.ks-kit[data-mood="none"] .km { display: none; }
.ks-kit[data-mood="none"] .km-o { display: inline; }
@keyframes ks-kit-tail { from { rotate: -8deg; } to { rotate: 8deg; } }
@keyframes ks-kit-blink { 0%, 46%, 50%, 100% { scale: 1 1; } 48% { scale: 1 .1; } }
@media (prefers-reduced-motion: reduce) { .ks-kit, .ks-kit * { animation: none !important; transition: none !important; } }
.ks-find-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--k-rule);
  font: 500 11px/1 var(--k-mono); color: var(--k-mute); }
.ks-find-foot span { display: none; }
.ks-find-foot a { color: var(--k-green); text-decoration: none; margin-left: auto; padding: 6px 0; }
.ks-find-foot a:hover { text-decoration: underline; }
@media (hover: hover) and (min-width: 700px) { .ks-find-foot span { display: inline; } }

/* reserve space for the JS-injected chrome so there's no layout shift before
   ks.js runs (matches the real bar/header heights + backgrounds) */
[data-ks="bar"]:empty { display: block; height: 38px; background: color-mix(in srgb, var(--k-paper) 94%, transparent); border-bottom: 1px solid var(--k-rule); }
[data-ks="header"]:empty { display: block; min-height: 61px; background: color-mix(in srgb, var(--k-paper) 92%, transparent); border-bottom: 1px solid var(--k-rule); }
[data-ks="footer"]:empty { display: block; min-height: 420px; background: #1f3024; }

/* ---------- 4. component kit (opt in: <body class="ks-paper k2">) ---------- */
body.k2 { background: var(--k-paper); color: var(--k-ink); font: 400 16px/1.6 var(--k-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
/* zero-specificity defaults, so any component class can override them */
:where(body.k2) a { color: inherit; }
body.k2 :focus-visible { outline: 2px solid var(--k-green); outline-offset: 3px; border-radius: 4px; }
body.k2 ::selection { background: var(--k-green-fill); color: var(--k-on-green); }
:where(body.k2) :is(h1, h2, h3, h4, p, figure) { margin: 0; }

.k-skip { position: absolute; left: 16px; top: -80px; z-index: 110; padding: 12px 18px; border-radius: 10px;
  background: var(--k-raised); color: var(--k-ink); font: 600 14px var(--k-sans); }
.k-skip:focus { top: 10px; }
.k-wrap { max-width: var(--k-max); margin-inline: auto; padding-inline: var(--k-gutter); }
.k-band { padding-block: clamp(52px, 8vw, 96px); }
.k-band + .k-band { border-top: 1px solid var(--k-rule); }
.k-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* type */
.k-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font: 600 11.5px/1.5 var(--k-mono);
  text-transform: uppercase; letter-spacing: .15em; color: var(--k-green); }
.k-eyebrow .ast { font-size: 14px; letter-spacing: 0; }
.k-h1 { font: 800 clamp(44px, 10.4vw, 108px)/.92 var(--k-sans); letter-spacing: -.05em; color: var(--k-ink); text-wrap: balance; }
.k-h1 em, .k-h2 em { font-style: normal; color: var(--k-green); }   /* emphasis is colour: Geist ships no italic, so a slant would be faked */
.k-h2 { font: 800 clamp(32px, 6vw, 58px)/1 var(--k-sans); letter-spacing: -.045em; color: var(--k-ink); text-wrap: balance; }
.k-h3 { font: 700 clamp(20px, 2.6vw, 25px)/1.18 var(--k-sans); letter-spacing: -.028em; color: var(--k-ink); text-wrap: balance; }
.k-lead { font: 400 clamp(17px, 2.1vw, 21px)/1.5 var(--k-sans); letter-spacing: -.012em; color: var(--k-copy); max-width: 56ch; text-wrap: pretty; }
.k-copy { color: var(--k-copy); max-width: 62ch; text-wrap: pretty; }
.k-small { font-size: 14px; line-height: 1.55; color: var(--k-copy); }
.k-label { font: 600 10.5px/1.4 var(--k-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--k-mute); }
.k-num { font: 500 12px/1 var(--k-mono); color: var(--k-brass); letter-spacing: .04em; }

/* section header: number · title · aside link */
.k-shead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 24px; align-items: end; margin-bottom: clamp(26px, 4vw, 44px); }
.k-shead .k-num { display: block; margin-bottom: 12px; }
@media (min-width: 760px) { .k-shead { grid-template-columns: minmax(0, 1fr) auto; } }

/* buttons + links */
.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px;
  border-radius: 40px; border: 1.5px solid transparent; background: var(--k-green-fill); color: var(--k-on-green) !important;
  font: 600 14.5px/1.3 var(--k-sans); text-decoration: none; text-align: center; cursor: pointer;
  transition: translate .2s var(--k-ease), background .2s, border-color .2s, color .2s, box-shadow .2s; }
.k-btn:hover { background: var(--k-green-deep); translate: 0 -2px; box-shadow: 0 10px 20px rgba(31,48,36,.2); }
.k-btn:active { translate: 0 0; scale: .98; }
.k-btn[disabled] { opacity: .5; cursor: not-allowed; translate: none; box-shadow: none; }
.k-btn--ghost { background: transparent; color: var(--k-ink) !important; border-color: var(--k-rule-strong); }
.k-btn--ghost:hover { background: transparent; border-color: var(--k-green); color: var(--k-green) !important; box-shadow: none; }
.k-btn--cream { background: #ece2cb; color: #23402b !important; }
.k-btn--cream:hover { background: #f7f1e2; }
.k-btn--sm { min-height: 44px; padding: 8px 18px; font-size: 13.5px; }
.k-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.k-go { display: inline-flex; align-items: center; gap: 7px; padding-block: 8px; font: 600 13px/1.3 var(--k-mono); color: var(--k-green) !important; text-decoration: none; }
.k-go::after { content: "→"; transition: translate .22s var(--k-ease); }
.k-go:hover::after { translate: 4px 0; }
.k-go--out::after { content: "↗"; }
.k-go--out:hover::after { translate: 2px -2px; }
.k-go--brass { color: var(--k-brass) !important; }
.k-inline { color: var(--k-green) !important; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.k-inline:hover { text-decoration-thickness: 2px; }

/* status + chips */
.k-status { display: inline-flex; align-items: center; gap: 7px; font: 600 10.5px/1 var(--k-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--k-green); white-space: nowrap; }
.k-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ks-pulse 2.4s ease-in-out infinite; }
.k-status--wip  { color: var(--k-brass); }
.k-status--soon { color: var(--k-mute); }
.k-status--soon::before { animation: none; background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.k-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 30px; border: 1px solid var(--k-rule-strong);
  font: 500 11.5px/1.3 var(--k-mono); color: var(--k-copy); text-decoration: none; white-space: nowrap; }
a.k-chip { transition: color .15s, border-color .15s, background .15s; }
a.k-chip:hover { color: var(--k-green); border-color: var(--k-green); background: color-mix(in srgb, var(--k-green) 8%, transparent); }
.k-chips { display: flex; flex-wrap: wrap; gap: 7px; }

/* cards */
.k-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--k-rule); border-radius: var(--k-r); background: var(--k-raised); color: var(--k-ink);
  container-type: inline-size; }
a.k-card, .k-card--link { text-decoration: none; transition: translate .25s var(--k-ease), box-shadow .25s, border-color .25s; }
a.k-card:hover, .k-card--link:hover { translate: 0 -3px; box-shadow: var(--k-shadow-lift); border-color: var(--k-rule-strong); }
.k-card--pine { background: #23402b; color: #f0e8d6; border-color: transparent; }
.k-card--pine .k-label, .k-card--pine .k-small, .k-card--pine .k-copy { color: #c2ceb9; }
.k-card--pine .k-h3, .k-card--pine .k-h2 { color: #f0e8d6; }
.k-card--pine .k-go { color: #d8b07a !important; }
.k-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.k-card-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--k-rule-strong); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
/* stretched link: one real <a> makes the whole card clickable, inner links stay usable */
.k-stretch::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.k-card :is(a, button, input, [role="switch"]):not(.k-stretch) { position: relative; z-index: 1; }

/* pine band (full-bleed dark section) */
.k-pine { background: #23402b; color: #f0e8d6; }
.k-pine .k-h2, .k-pine .k-h3 { color: #f0e8d6; }
.k-pine .k-h2 em { color: #d8b07a; }
.k-pine .k-lead, .k-pine .k-copy, .k-pine .k-small { color: #c2ceb9; }
.k-pine .k-eyebrow, .k-pine .k-num, .k-pine .k-go { color: #d8b07a !important; }
.k-pine .k-label { color: #a9b9a3; }
.k-pine :focus-visible { outline-color: #d8b07a !important; }

/* form controls */
.k-field { display: grid; gap: 7px; min-width: 0; }
.k-field > .k-label { display: flex; justify-content: space-between; gap: 10px; }
.k-input, .k-select { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--k-rule-strong);
  background: var(--k-paper); color: var(--k-ink); font: 500 16px/1.2 var(--k-sans); font-variant-numeric: tabular-nums; }
.k-input:focus-visible, .k-select:focus-visible { outline-offset: 1px; border-color: var(--k-green); }
.k-input::placeholder { color: var(--k-mute); opacity: 1; }   /* 1, not the browser default: Firefox dims placeholders */
textarea.k-input { min-height: 84px; line-height: 1.45; resize: vertical; }
.k-range { width: 100%; height: 28px; margin: 0; accent-color: var(--k-green-fill); cursor: pointer; }
html[data-theme="dark"] .k-range { accent-color: #82c795; }

/* segmented control (tabs / unit toggles): <div class="k-seg" role="tablist|group"><button aria-selected|aria-pressed> */
.k-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 24px; background: var(--k-tint); max-width: 100%; }
.k-seg button { border: 0; background: transparent; padding: 9px 14px; min-height: 40px; border-radius: 30px; cursor: pointer;
  font: 600 12.5px/1 var(--k-mono); color: var(--k-copy); white-space: nowrap; transition: background .2s, color .2s; }
.k-seg button:hover { color: var(--k-ink); }
.k-seg button:is([aria-selected="true"], [aria-pressed="true"]) { background: var(--k-raised); color: var(--k-ink); box-shadow: 0 1px 3px rgba(34,28,16,.2); }
:where(html[data-theme="dark"]) .k-seg button:is([aria-selected="true"], [aria-pressed="true"]) { background: #332b1d; }
.k-seg--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.k-seg--scroll::-webkit-scrollbar { display: none; }

/* toggle chips (multi-select) */
.k-tog { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 30px; cursor: pointer;
  border: 1.5px solid var(--k-rule-strong); background: transparent; color: var(--k-copy); font: 500 13px/1 var(--k-sans);
  transition: background .18s, color .18s, border-color .18s; }
.k-tog:hover { border-color: var(--k-green); color: var(--k-green); }
.k-tog[aria-pressed="true"] { background: var(--k-green-fill); border-color: var(--k-green-fill); color: var(--k-on-green); }
.k-tog[disabled] { opacity: .75; cursor: default; }

/* product windows — a project card wears its own product's palette, so the
   landing and hub pages preview each product in its real colours */
.k-pc { --pc-bg: var(--k-raised); --pc-ink: var(--k-ink); --pc-copy: var(--k-copy); --pc-accent: var(--k-green); --pc-rule: var(--k-rule-strong); --pc-tint: var(--k-tint);
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 3vw, 26px); border-radius: var(--k-r);
  background: var(--pc-bg); color: var(--pc-ink); border: 1px solid var(--pc-rule); container-type: inline-size;
  transition: translate .25s var(--k-ease), box-shadow .25s; }
.k-pc:hover { translate: 0 -3px; box-shadow: var(--k-shadow-lift); }
.k-pc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.k-pc-tag { font: 600 11px/1.3 var(--k-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--pc-accent); }
.k-pc-title { font: 800 clamp(24px, 3.4vw, 30px)/1.05 var(--k-sans); letter-spacing: -.04em; color: var(--pc-ink); text-wrap: balance; }
.k-pc-title a { color: inherit !important; text-decoration: none; }
.k-pc p { color: var(--pc-copy); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.k-pc .k-status, .k-pc .k-go { color: var(--pc-accent) !important; }
.k-pc .k-label { color: var(--pc-copy); }
.k-pc-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--pc-rule); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.k-pc :is(a, button, input, [role="switch"]):not(.k-stretch) { position: relative; z-index: 1; }
.k-pc :focus-visible { outline-color: var(--pc-accent) !important; }
.k-pc--vantix   { --pc-bg: #1e222a; --pc-ink: #e9e9e6; --pc-copy: #aab0bb; --pc-accent: #92a6cc; --pc-rule: rgba(146,166,204,.28); --pc-tint: rgba(146,166,204,.1); }
.k-pc--backline { --pc-bg: #0b0c0f; --pc-ink: #f3f4f6; --pc-copy: #a6abb5; --pc-accent: #ff8a3d; --pc-rule: rgba(255,255,255,.16); --pc-tint: rgba(255,255,255,.06); }
.k-pc--sotd     { --pc-bg: #f7f1e6; --pc-ink: #221c17; --pc-copy: #5f554a; --pc-accent: #a44c18; --pc-rule: rgba(34,28,23,.2); --pc-tint: rgba(34,28,23,.06); }
.k-pc--club     { --pc-bg: #f5f1e8; --pc-ink: #241d14; --pc-copy: #5f5545; --pc-accent: #8a5d17; --pc-rule: rgba(36,29,20,.2); --pc-tint: rgba(36,29,20,.06); }
.k-pc--camp     { --pc-bg: #1f3024; --pc-ink: #f5eedb; --pc-copy: #b9c7b0; --pc-accent: #e0b35c; --pc-rule: rgba(224,179,92,.3); --pc-tint: rgba(245,238,219,.08); }
html[data-theme="dark"] .k-pc--sotd { --pc-bg: #211d19; --pc-ink: #efe8dc; --pc-copy: #b3a797; --pc-accent: #e08a55; --pc-rule: rgba(239,232,220,.16); --pc-tint: rgba(239,232,220,.07); }
html[data-theme="dark"] .k-pc--club { --pc-bg: #1c1711; --pc-ink: #efe6d3; --pc-copy: #b5a88f; --pc-accent: #dfae63; --pc-rule: rgba(239,230,211,.16); --pc-tint: rgba(239,230,211,.07); }

/* big tabular number */
.k-stat { font: 800 clamp(34px, 7vw, 56px)/1 var(--k-sans); letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: var(--k-ink); }
.k-stat small { font: 500 13px/1 var(--k-mono); letter-spacing: 0; color: var(--k-mute); margin-left: 4px; }

/* marquee divider (items are links; pauses on hover/focus) */
.k-marquee { position: relative; background: var(--k-green-fill); border-block: 1px solid rgba(34,28,16,.2); overflow: hidden; white-space: nowrap; }
.k-marquee-track { display: inline-flex; animation: ks-marquee 34s linear infinite; }
.k-marquee:hover .k-marquee-track, .k-marquee:focus-within .k-marquee-track, .k-marquee.is-paused .k-marquee-track { animation-play-state: paused; }
.k-marquee span { display: inline-flex; align-items: center; font: 700 clamp(18px, 2.6vw, 24px)/1 var(--k-sans); letter-spacing: -.02em; color: #ece2cb; }
.k-marquee a { padding: 15px 20px; color: inherit !important; text-decoration: none; }
.k-marquee a:hover { color: #d8b07a !important; }
.k-marquee i { color: #d8b07a; font-style: normal; }
/* pause control: hover can't pause it on a touch screen */
.k-marquee-pause { position: absolute; right: 0; top: 0; bottom: 0; width: 52px; border: 0; cursor: pointer; display: grid; place-items: center;
  background: #23402b; color: #ece2cb; box-shadow: -14px 0 16px #2f5436; font: 600 13px/1 var(--k-mono); }
.k-marquee-pause:hover { color: #d8b07a; }
.k-marquee-pause:focus-visible { outline: 2px solid #d8b07a !important; outline-offset: -4px !important; }

/* disclosure rows (<details>) */
.k-qa { border-top: 1px solid var(--k-rule); }
.k-qa:last-of-type { border-bottom: 1px solid var(--k-rule); }
.k-qa > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center;
  padding: 18px 2px; cursor: pointer; font: 600 clamp(16px, 2vw, 18px)/1.3 var(--k-sans); letter-spacing: -.015em; color: var(--k-ink); }
.k-qa > summary::-webkit-details-marker { display: none; }
.k-qa > summary::after { content: "+"; font: 400 22px/1 var(--k-mono); color: var(--k-mute); transition: rotate .25s var(--k-ease); }
.k-qa[open] > summary::after { rotate: 45deg; }
.k-qa > summary:hover { color: var(--k-green); }
.k-qa-body { padding: 0 2px 22px; color: var(--k-copy); max-width: 70ch; }
.k-qa-body > * + * { margin-top: 10px !important; }

/* in-page section nav (hub pages): sticks under the header and tracks the section in view */
.k-subnav { position: sticky; top: var(--ks-hd-h, 60px); z-index: 50; background: color-mix(in srgb, var(--k-paper) 90%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--k-rule); }
.k-subnav > div { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-block: 7px; }
.k-subnav > div::-webkit-scrollbar { display: none; }
.k-subnav a { flex-shrink: 0; padding: 9px 12px; border-radius: 30px; font: 500 12.5px/1 var(--k-mono); color: var(--k-copy); text-decoration: none; transition: background .2s, color .2s; }
.k-subnav a:hover { color: var(--k-green); }
.k-subnav a.on { background: var(--k-tint); color: var(--k-ink); }
/* anchors and keyboard focus land below the sticky chrome, not under it */
html:has(.ks-hd) { scroll-padding-top: 76px; }
html:has(.k-subnav) { scroll-padding-top: 126px; }
body.k2 [hidden] { display: none !important; }

/* hub hero: section label + statement + lead */
.k-hero { padding-block: clamp(30px, 5vw, 60px) clamp(34px, 5vw, 56px); }
.k-hero .k-h1 { font-size: clamp(40px, 7.4vw, 88px); margin-top: 16px; max-width: 16ch; }
.k-hero .k-lead { margin-top: clamp(16px, 2.2vw, 24px); }
.k-seclabel { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--k-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--k-green); }
.k-seclabel .k-num { letter-spacing: .04em; }
.k-crumb { font: 500 12px/1.4 var(--k-mono); color: var(--k-mute); }
.k-crumb a { color: inherit; text-decoration: none; }
.k-crumb a:hover { color: var(--k-green); }

/* Fingers: give the small links and controls room. Kept last in this section so
   it wins over the rules above it. */
@media (pointer: coarse) {
  a.k-chip { padding: 12px 14px; } .k-subnav a { padding-block: 16px; } .k-seg button { min-height: 44px; }
  .k-go { padding-block: 13px; } .ks-find-x { min-height: 44px; padding-inline: 14px; }
  .ks-find-foot a { padding-block: 14px; }
  .ks-ft-col a { padding-block: 11px; } .ks-ft-base a { display: inline-block; padding-block: 11px; }
}

/* ---------- 5. motion ---------- */
/* cross-page transitions (Chromium + Safari; others just navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* scroll-driven reveals: content is fully visible wherever this isn't supported. The fill is
   `forwards`, not `both`: a block that has not been scrolled to yet keeps its own opacity, so
   print, full-page captures and anything that reads the page without scrolling see all of it. */
@keyframes k-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }   /* transform, so hover's `translate` stays free */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .k-reveal { animation: k-rise linear forwards; animation-timeline: view(); animation-range: entry 0px entry 180px; }   /* px, not %: a tall card is solid once 180px of it is on screen */
  }
}
@media print { .k-reveal { animation: none !important; opacity: 1 !important; transform: none !important; } }

/* ---------- 6. legacy night mode (older inline-styled cream pages) ----------
   Those pages use inline hex colors, so the dark theme remaps the known
   palette tokens by attribute-matching the inline `color:`/`background:` values.
   Follows the system (prefers-color-scheme) by default; the header toggle
   stores an override in localStorage.ksTheme. A tiny pre-paint snippet in each
   cream page's <head> resolves stored-else-system before paint.
   Accent BACKGROUNDS (green/brass tiles, marquees) stay their brand color —
   only text tokens, surfaces, and hairlines flip. */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body { background: #16130d; color: #e9dfc9; }

/* surfaces */
html[data-theme="dark"] [style*="background:#ece2cb"] { background: #16130d !important; }
html[data-theme="dark"] [style*="background:#f3ecd9"] { background: #211c13 !important; }
html[data-theme="dark"] [style*="background:#e6dcc2"] { background: #241f15 !important; }
html[data-theme="dark"] [style*="background:#f7f1e2"] { background: #241f15 !important; }
html[data-theme="dark"] [style*="rgba(236,226,203,.85)"] { background: rgba(22,19,13,.86) !important; }
html[data-theme="dark"] [style*="rgba(236,226,203,.94)"] { background: rgba(22,19,13,.92) !important; }

/* text — ink → light */
html[data-theme="dark"] [style*="color:#1d1810"] { color: #f2ead6 !important; }
html[data-theme="dark"] [style*="color:#221c10"] { color: #e9dfc9 !important; }
/* muted browns → lighter warm grays */
html[data-theme="dark"] [style*="color:#5e5238"] { color: #b7ac8f !important; }
html[data-theme="dark"] [style*="color:#6f6040"] { color: #a99a7b !important; }
/* green accent text → brighter (backgrounds stay green) */
html[data-theme="dark"] [style*="color:#2f5436"] { color: #82c795 !important; }
/* brass accent text → brighter */
html[data-theme="dark"] [style*="color:#8a5a18"] { color: #e0a94e !important; }
html[data-theme="dark"] [style*="color:#b07227"] { color: #e0a94e !important; }

/* hairlines: dark-on-cream → light-on-dark (borders) */
html[data-theme="dark"] [style*="rgba(34,28,16,.12)"] { border-color: rgba(236,226,203,.09) !important; }
html[data-theme="dark"] [style*="rgba(34,28,16,.14)"] { border-color: rgba(236,226,203,.1) !important; }
html[data-theme="dark"] [style*="rgba(34,28,16,.16)"] { border-color: rgba(236,226,203,.1) !important; }
html[data-theme="dark"] [style*="rgba(34,28,16,.18)"] { border-color: rgba(236,226,203,.13) !important; }
html[data-theme="dark"] [style*="rgba(34,28,16,.2)"]  { border-color: rgba(236,226,203,.14) !important; }
html[data-theme="dark"] [style*="rgba(34,28,16,.22)"] { border-color: rgba(236,226,203,.15) !important; }
html[data-theme="dark"] [style*="rgba(34,28,16,.32)"] { border-color: rgba(236,226,203,.22) !important; }
html[data-theme="dark"] [style*="rgba(34,28,16,.35)"] { border-color: rgba(236,226,203,.24) !important; }
/* .09 is a fill (progress-bar tracks), not a border */
html[data-theme="dark"] [style*="background:rgba(34,28,16,.09)"] { background: rgba(236,226,203,.09) !important; }

/* blog-post prose is styled from a <style> block, which the inline-style
   matching above can't reach — remap it by class instead */
html[data-theme="dark"] .prose p { color: #e9dfc9; }
html[data-theme="dark"] .prose h2,
html[data-theme="dark"] .prose strong { color: #f2ead6; }
html[data-theme="dark"] .prose em { color: #82c795; }
html[data-theme="dark"] .prose figcaption { color: #a99a7b; }
html[data-theme="dark"] .prose figure img { border-color: rgba(236,226,203,.13); }
