/* =========================================================
   RJ/OS — monochrome desktop portfolio
   ========================================================= */

@font-face {
  font-family: 'Geist Pixel';
  src: url('../fonts/geist-pixel-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Silkscreen';
  src: url('../fonts/silkscreen-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #e6e6e3;
  --surface: #fbfbf9;
  --surface-2: #f1f1ee;
  --ink: #111111;
  --ink-2: #333333;
  --muted: #5e5e5b;          /* 6.2:1 on --surface */
  --line: #111111;
  --line-soft: #cfcfcb;
  --inv: #fbfbf9;             /* text on ink */
  --dot: rgba(0, 0, 0, 0.16);
  --scrim: rgba(17, 17, 17, 0.35);

  --font-pixel: 'Geist Pixel', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --font-mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-body: var(--font-mono);
  /* Chunky display face — crisp at multiples of 8px */
  --font-display: 'Silkscreen', var(--font-pixel);

  --fs: 15px;
  --radius: 0px;
  --shadow: 4px 4px 0 0 var(--ink);
  --shadow-sm: 2px 2px 0 0 var(--ink);
  --menubar-h: 36px;
  --dock-h: 76px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 160ms;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b0b0b;
    --surface: #151515;
    --surface-2: #1d1d1d;
    --ink: #ececea;
    --ink-2: #cfcfcc;
    --muted: #a2a29e;         /* 7.3:1 on --surface */
    --line: #dcdcd9;
    --line-soft: #333331;
    --inv: #111111;
    --dot: rgba(255, 255, 255, 0.1);
    --scrim: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0b0b0b;
  --surface: #151515;
  --surface-2: #1d1d1d;
  --ink: #ececea;
  --ink-2: #cfcfcc;
  --muted: #a2a29e;
  --line: #dcdcd9;
  --line-soft: #333331;
  --inv: #111111;
  --dot: rgba(255, 255, 255, 0.1);
  --scrim: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

:root[data-text='l'] { --fs: 17px; }
:root[data-text='xl'] { --fs: 19px; }
:root[data-body-font='pixel'] { --font-body: var(--font-pixel); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 400 var(--fs) / 1.6 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
ul[role='list'], ol { list-style: none; padding: 0; }
[hidden] { display: none !important; }

::selection { background: var(--ink); color: var(--inv); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 8px; top: 8px; z-index: 10000;
  padding: 8px 12px;
  background: var(--ink); color: var(--inv);
  font-family: var(--font-pixel); text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.px-icon { width: 16px; height: 16px; fill: currentColor; flex: none; }
.px-icon--inline { width: 0.9em; height: 0.9em; margin-left: 0.3em; vertical-align: -0.05em; }

.kbd {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid currentColor;
  font: 11px/16px var(--font-pixel);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ---------- Typography helpers ---------- */
.title-pixel {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 1.6em;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 0.4em;
}
.eyebrow {
  display: block;
  font: 12px/1.4 var(--font-pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.section-title {
  font: 16px/1.4 var(--font-display);
  letter-spacing: 0;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  margin: 24px 0 8px;
}
.muted { color: var(--muted); }
.small { font-size: 0.85em; }
.link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.link:hover { text-decoration-thickness: 2px; }
button.link { font: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: 13px/1.2 var(--font-pixel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur);
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 0 var(--ink); }
.btn--solid { background: var(--ink); color: var(--inv); }
.btn--solid:hover { background: var(--ink-2); }
.btn--ghost { box-shadow: none; border-color: transparent; padding-left: 6px; padding-right: 10px; }
.btn--ghost:hover { border-color: var(--line); }
.btn--small { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn-row--spaced { margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--line-soft); }

/* =========================================================
   Menubar
   ========================================================= */
.menubar {
  position: fixed; inset: 0 0 auto 0; z-index: 5000;
  height: var(--menubar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font: 13px/1 var(--font-pixel);
}
.menubar__left, .menubar__right { display: flex; align-items: center; gap: 4px; min-width: 0; }
.menubar__brand, .menubar__btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 8px;
  letter-spacing: 0.04em;
}
.menubar__brand:hover, .menubar__btn:hover { background: var(--ink); color: var(--inv); }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px;
  background: var(--ink); color: var(--inv);
  font: 8px/1 var(--font-display); letter-spacing: 0;
}
.menubar__brand:hover .brand-mark { background: var(--inv); color: var(--ink); }
.menubar__app {
  padding: 0 8px;
  border-left: 1px solid var(--line-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.menubar__btn--icon { padding: 0 6px; }
.menubar__clock { padding: 0 8px; white-space: pre; font-variant-numeric: tabular-nums; }

/* =========================================================
   Desktop
   ========================================================= */
.desktop {
  position: fixed;
  inset: var(--menubar-h) 0 0 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 16px 16px;
  background-position: 8px 8px;
}
:root[data-wallpaper='grid'] .desktop {
  background-image:
    linear-gradient(var(--dot) 1px, transparent 1px),
    linear-gradient(90deg, var(--dot) 1px, transparent 1px);
  background-size: 32px 32px;
}
:root[data-wallpaper='plain'] .desktop { background-image: none; }

/* Icons */
.desktop-icons { position: absolute; inset: 16px auto calc(var(--dock-h) + 8px) 16px; z-index: 1; }
.desktop-icons__list {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(auto-fill, 92px);
  grid-auto-columns: 92px;
  gap: 4px;
  height: 100%;
  list-style: none; padding: 0;
}
.desktop-icon {
  width: 92px; height: 92px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 4px;
  border: 1px solid transparent;
  color: var(--ink);
}
.desktop-icon__img {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease);
}
.desktop-icon__img .px-icon { width: 32px; height: 32px; }
.desktop-icon__label {
  font: 12px/1.2 var(--font-pixel);
  letter-spacing: 0.03em;
  text-align: center;
  padding: 1px 4px;
  background: var(--bg);
}
.desktop-icon:hover .desktop-icon__img { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 0 var(--ink); }
.desktop-icon:focus-visible { outline: none; }
.desktop-icon:focus-visible .desktop-icon__label,
.desktop-icon:active .desktop-icon__label { background: var(--ink); color: var(--inv); }
.desktop-icon:focus-visible .desktop-icon__img { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Hero widget */
.widget {
  position: absolute; right: 32px; top: 32px; z-index: 1;
  width: min(420px, calc(100% - 280px));
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.widget__eyebrow { font: 13px/1.4 var(--font-pixel); color: var(--muted); letter-spacing: 0.04em; }
.widget__name {
  font: 400 48px / 0.95 var(--font-display);
  letter-spacing: 0;
  margin: 8px 0 14px;
  text-transform: uppercase;
}
.widget__tagline { color: var(--ink-2); max-width: 36ch; }
.widget__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.widget__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.widget__stats > div { padding-top: 10px; }
.widget__stats > div + div { padding-left: 12px; border-left: 1px dashed var(--line-soft); }
.widget__stats dt { font: 11px/1.3 var(--font-pixel); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.widget__stats dd { font: 16px/1.4 var(--font-pixel); }

/* =========================================================
   Windows
   ========================================================= */
.windows { position: absolute; inset: 0 0 var(--dock-h) 0; z-index: 2; pointer-events: none; }
.window {
  position: absolute;
  display: flex; flex-direction: column;
  min-width: 320px; min-height: 220px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  pointer-events: auto;
}
.window:focus { outline: none; }
.window:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.window:not(.is-active) { box-shadow: 2px 2px 0 0 var(--line-soft); }

.window__bar {
  display: flex; align-items: center; gap: 8px;
  height: 36px; flex: none;
  padding: 0 4px 0 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.window.is-dragging .window__bar { cursor: grabbing; }
.window.is-active .window__bar { background: var(--ink); color: var(--inv); }
.window__icon { display: grid; }
.window__title {
  flex: 1; min-width: 0;
  display: flex; align-items: baseline; gap: 10px;
  font: 16px/1 var(--font-display);
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap; overflow: hidden;
}
.window__file { font: 11px/1 var(--font-pixel); text-transform: none; letter-spacing: 0.02em; opacity: 0.65; overflow: hidden; text-overflow: ellipsis; }
.window__controls { display: flex; gap: 2px; }
.wbtn {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border: 1px solid transparent;
}
.wbtn:hover { border-color: currentColor; }
.window.is-active .wbtn:focus-visible { outline-color: var(--inv); outline-offset: -3px; }

.window__body {
  flex: 1; min-height: 0;
  overflow: auto;
  padding: 20px 22px 24px;
  container-type: inline-size;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
}
.window__body--flush { padding: 0; }
.window__resize {
  position: absolute; right: -1px; bottom: -1px;
  width: 16px; height: 16px;
  cursor: nwse-resize;
  touch-action: none;
  background:
    linear-gradient(135deg, transparent 50%, var(--line) 50%, var(--line) 56%, transparent 56%, transparent 70%, var(--line) 70%, var(--line) 76%, transparent 76%);
}
.window.is-max {
  inset: 0 !important;
  width: auto !important; height: auto !important;
  box-shadow: none;
  border-width: 0 0 1px;
}
.window.is-max .window__resize { display: none; }

.window.is-opening { animation: win-in 180ms var(--ease); }
.window.is-closing { animation: win-out 140ms ease-in forwards; pointer-events: none; }
@keyframes win-in { from { opacity: 0; transform: scale(0.96) translateY(6px); } }
@keyframes win-out { to { opacity: 0; transform: scale(0.97); } }

/* =========================================================
   Dock
   ========================================================= */
.dock {
  position: fixed; left: 50%; bottom: 12px; z-index: 4000;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
}
.dock__list {
  display: flex; align-items: center; gap: 4px;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow-x: auto;
  scrollbar-width: none;
}
.dock__sep { width: 1px; height: 32px; background: var(--line-soft); margin: 0 4px; }
.dock__btn {
  position: relative;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid transparent;
}
.dock__btn .px-icon { width: 28px; height: 28px; }
.dock__btn:hover { border-color: var(--line); }
.dock__btn.is-active { background: var(--ink); color: var(--inv); }
.dock__btn.is-running::after {
  content: ''; position: absolute; bottom: 2px; left: 50%;
  width: 4px; height: 4px; margin-left: -2px;
  background: currentColor;
}
.dock__tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: var(--ink); color: var(--inv);
  font: 11px/1.2 var(--font-pixel); letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur);
}
.dock__btn:hover .dock__tip, .dock__btn:focus-visible .dock__tip { opacity: 1; }

/* =========================================================
   Launcher
   ========================================================= */
.launcher {
  width: min(560px, calc(100% - 32px));
  margin: 12vh auto auto;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 6px 6px 0 0 var(--ink);
}
.launcher::backdrop { background: var(--scrim); }
.launcher__field {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.launcher__prompt { font: 18px var(--font-pixel); }
.launcher__field input {
  flex: 1; min-width: 0;
  height: 54px;
  border: 0; background: none;
  font: 16px var(--font-mono);
}
.launcher__field input:focus { outline: none; }
.launcher__field:focus-within { box-shadow: inset 0 -2px 0 var(--ink); }
.launcher__list { list-style: none; padding: 6px; max-height: min(52vh, 420px); overflow: auto; }
.launcher__opt {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px;
  cursor: pointer;
}
.launcher__opt[aria-selected='true'] { background: var(--ink); color: var(--inv); }
.launcher__opt:hover:not([aria-selected='true']) { background: var(--surface-2); }
.launcher__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.launcher__kind { font: 11px var(--font-pixel); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.launcher__empty { padding: 16px; color: var(--muted); }
.launcher__hint {
  display: flex; gap: 14px; align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
  font: 11px var(--font-pixel); color: var(--muted);
}

/* =========================================================
   Boot
   ========================================================= */
.boot {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 350ms ease;
}
.boot.is-done { opacity: 0; pointer-events: none; }
.boot__inner { width: min(420px, calc(100% - 48px)); }
.boot__logo { font: 64px/1 var(--font-display); margin-bottom: 20px; }
.boot__log { font: 13px/1.7 var(--font-mono); min-height: 10.2em; color: var(--ink-2); white-space: pre-wrap; }
.boot__bar { height: 10px; border: 1px solid var(--line); padding: 1px; margin-top: 12px; }
.boot__bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width 180ms steps(4); }
.boot__hint { margin-top: 12px; font: 11px var(--font-pixel); color: var(--muted); letter-spacing: 0.06em; }

.noscript { position: absolute; inset: 24px; padding: 24px; background: var(--surface); border: 1px solid var(--line); overflow: auto; }
.noscript h2 { font-family: var(--font-pixel); font-weight: 400; margin-bottom: 12px; }
.noscript ul { margin-top: 12px; }

/* =========================================================
   App content
   ========================================================= */
.window__body p + p { margin-top: 0.8em; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag {
  font: 11px/1 var(--font-pixel);
  letter-spacing: 0.05em;
  padding: 4px 6px;
  border: 1px solid var(--line);
}

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.toolbar__meta { margin-left: auto; font: 12px var(--font-pixel); color: var(--muted); }
.chip {
  min-height: 32px; padding: 4px 12px;
  border: 1px solid var(--line);
  font: 12px var(--font-pixel); letter-spacing: 0.04em;
}
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--inv); }

/* Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  list-style: none; padding: 0;
}
.grid-cards--compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card {
  display: flex; flex-direction: column;
  width: 100%; height: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
button.card:hover, button.card:focus-visible { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.card__media img, .detail__media img, .about__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  filter: grayscale(1) contrast(1.05);
  transition: filter 300ms ease;
}
button.card:hover img, button.card:focus-visible img, .detail__media:hover img, .about__photo:hover img { filter: none; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px; flex: 1; }
.card__title { font: 15px/1.25 var(--font-pixel); letter-spacing: 0.02em; }
.card__text { font-size: 0.87em; color: var(--muted); flex: 1; }
.card--static .btn { align-self: flex-start; margin-top: 6px; }

/* Project detail */
.detail__article { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 12px; }
.detail__media { border: 1px solid var(--line); aspect-ratio: 16 / 10; overflow: hidden; box-shadow: var(--shadow-sm); }
.detail__text h2:focus { outline: none; }
@container (min-width: 720px) {
  .detail__article { grid-template-columns: 1.1fr 1fr; align-items: start; }
}

/* Split view (blog, certificates) */
.split { display: grid; grid-template-columns: 1fr; gap: 0; height: 100%; margin: -20px -22px -24px; }
.split__nav { border-bottom: 1px solid var(--line); overflow: auto; }
.split__main { padding: 22px 24px 28px; overflow: auto; }
.split:not(.split--always).is-reading .split__nav { display: none; }
.split:not(.split--always):not(.is-reading) .split__main { display: none; }
@container (min-width: 640px) {
  .split { grid-template-columns: minmax(220px, 34%) 1fr; }
  .split__nav { border-bottom: 0; border-right: 1px solid var(--line); }
  .split .split__nav, .split .split__main { display: block !important; }
  .split__back { display: none; }
}
.split--always { grid-template-rows: minmax(0, auto) minmax(0, 1fr); }
.split--always .split__nav { max-height: 220px; }
@container (min-width: 640px) {
  .split--always { grid-template-rows: none; }
  .split--always .split__nav { max-height: none; }
}

.post-list { list-style: none; padding: 0; }
.post-link {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.post-link:hover { background: var(--surface-2); }
.post-link[aria-current] { background: var(--ink); color: var(--inv); }
.post-link[aria-current] .post-link__excerpt, .post-link[aria-current] .post-link__date { color: inherit; opacity: 0.75; }
.post-link:focus-visible { outline-offset: -3px; }
.post-link__date { display: block; font: 11px var(--font-pixel); color: var(--muted); letter-spacing: 0.05em; }
.post-link__title { display: block; font: 15px/1.3 var(--font-pixel); margin: 4px 0; }
.post-link__excerpt { display: block; font-size: 0.82em; color: var(--muted); line-height: 1.45; }

/* Blog: search, grouping and tag filters */
.blog-tools {
  position: sticky; top: 0; z-index: 1;
  display: grid; gap: 8px;
  padding: 12px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.blog-search {
  width: 100%;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 16px; /* avoid iOS zoom */
}
.blog-search:focus-visible { outline-offset: 0; box-shadow: var(--shadow-sm); }
.blog-tools__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.blog-tools__label { font: 11px var(--font-pixel); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.blog-tools__meta { font: 11px var(--font-pixel); color: var(--muted); letter-spacing: 0.05em; }
.chip--small { min-height: 26px; padding: 2px 8px; font-size: 11px; }
.post-group__title {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 10px 16px 6px;
  font: 11px var(--font-pixel); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.blog-note { padding: 18px 16px; color: var(--muted); display: grid; gap: 10px; justify-items: start; }
.tag--btn { background: none; cursor: pointer; }
.tag--btn:hover { background: var(--surface-2); }

.empty { height: 100%; display: grid; place-content: center; text-align: center; }

.prose { max-width: 64ch; }
.prose h2:focus { outline: none; }
.prose h3 { font: 16px/1.3 var(--font-pixel); letter-spacing: 0.02em; margin: 1.6em 0 0.5em; }
.prose h4 { font: 14px/1.3 var(--font-pixel); letter-spacing: 0.02em; margin: 1.4em 0 0.4em; }
.prose [data-body] > h1, .prose [data-body] > h2 { font: 18px/1.3 var(--font-pixel); margin: 1.6em 0 0.5em; }
.prose p, .prose ul, .prose ol, .prose pre, .prose blockquote, .prose table, .prose img { margin-top: 0.9em; }
.prose ul { padding-left: 1.2em; list-style: square; }
.prose ol { padding-left: 1.6em; list-style: decimal; }
.prose li + li { margin-top: 0.3em; }
.prose strong { font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose code { font-family: var(--font-mono); font-size: 0.9em; padding: 1px 4px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.prose pre { padding: 12px 14px; overflow-x: auto; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.88em; line-height: 1.5; }
.prose pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.prose blockquote { padding-left: 14px; border-left: 3px solid var(--ink); color: var(--muted); }
.prose img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px dashed var(--line-soft); margin: 1.6em 0; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; font-size: 0.9em; }
.prose th, .prose td { border: 1px solid var(--line-soft); padding: 6px 10px; text-align: left; }
.prose th { background: var(--surface-2); font-weight: 600; }
.split__back { margin-bottom: 12px; }

/* About */
.about { display: grid; gap: 22px; }
.about__photo { border: 1px solid var(--line); box-shadow: var(--shadow-sm); aspect-ratio: 1; max-width: 180px; overflow: hidden; background: var(--surface-2); margin-bottom: 14px; }
.about__name { font: 18px/1.2 var(--font-pixel); letter-spacing: 0.01em; }
.about__role { font-weight: 500; margin-top: 4px; }
.about__headline {
  font: 12px/1.5 var(--font-pixel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 10px;
  margin: 2px 0 10px;
  border-bottom: 1px solid var(--line);
  text-wrap: balance;
}
.about__meta { font: 12px/1.5 var(--font-pixel); letter-spacing: 0.04em; }
.about__links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 0.9em; }
.about__text p { max-width: 70ch; }
.about__text p + p { margin-top: 0.9em; }
.about__text > .title-pixel + p { margin-top: 0; }
@container (min-width: 600px) { .about { grid-template-columns: 200px 1fr; gap: 28px; align-items: start; } }

/* About: journey (vertical on narrow windows, horizontal steps on wide) */
.journey { list-style: none; padding: 0; margin: 16px 0 4px; display: grid; }
.journey__step { position: relative; padding: 0 0 20px 28px; }
.journey__step::before {
  content: ''; position: absolute; left: 0; top: 4px;
  width: 11px; height: 11px;
  background: var(--surface); border: 1px solid var(--line);
}
.journey__step:not(:last-child)::after { content: ''; position: absolute; left: 5px; top: 15px; bottom: -4px; border-left: 1px dashed var(--line); }
.journey__step:last-child { padding-bottom: 0; }
.journey__step:last-child::before { background: var(--ink); }
.journey__idx { font: 12px var(--font-pixel); letter-spacing: 0.06em; color: var(--muted); }
.journey__title { font: 15px/1.3 var(--font-pixel); letter-spacing: 0.02em; margin: 2px 0 4px; }
.journey__text { font-size: 0.87em; color: var(--muted); }
@container (min-width: 640px) {
  .journey { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .journey__step:not(:last-child)::after { left: 11px; right: -20px; top: 5px; bottom: auto; border-left: 0; border-top: 1px dashed var(--line); }
  .journey__step { padding: 26px 0 0; }
  .journey__step::before { top: 0; }
}

/* About: current focus */
.focus { display: grid; margin-top: 12px; }
.focus__row { display: grid; grid-template-columns: 1fr; gap: 2px 16px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.focus__row dt { font: 12px/1.9 var(--font-pixel); letter-spacing: 0.06em; text-transform: uppercase; }
.focus__row--growing { border-bottom: 0; }
.focus__row--growing dd { color: var(--muted); }
@container (min-width: 520px) { .focus__row { grid-template-columns: 190px 1fr; align-items: baseline; } }

/* System info (stack) */
.sysinfo {
  display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.sysinfo__art { font: 12px/1.1 var(--font-mono); margin: 0; }
.sysinfo__facts { display: grid; gap: 2px; font-size: 0.9em; min-width: 0; flex: 1 1 260px; }
.sysinfo__facts div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.sysinfo__facts dt { font-family: var(--font-pixel); font-size: 12px; line-height: 1.9; }
.sysinfo__facts dt::after { content: ':'; }

.layers { list-style: none; padding: 0; margin-top: 20px; border: 1px solid var(--line); }
.layer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
}
.layer + .layer { border-top: 1px dashed var(--line-soft); }
.layer:nth-child(even) { background: var(--surface-2); }
.layer__head { display: flex; align-items: baseline; gap: 10px; font-weight: 400; }
.layer__idx { font: 11px/1 var(--font-pixel); letter-spacing: 0.06em; color: var(--muted); }
.layer__name { font: 16px/1 var(--font-display); text-transform: uppercase; }
.layer__count { margin-left: auto; font: 11px/1 var(--font-pixel); letter-spacing: 0.04em; color: var(--muted); }
.layer__items { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.tech {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tech:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-sm); }
.tech__badge {
  display: grid; place-items: center;
  min-width: 34px; height: 34px; padding: 0 6px;
  background: var(--ink); color: var(--inv);
  font: 13px/1 var(--font-pixel); letter-spacing: 0.02em;
}
.tech__name { padding: 0 12px; font-size: 0.9em; white-space: nowrap; }
@container (min-width: 600px) {
  .layer { grid-template-columns: 180px 1fr; align-items: center; }
  .layer__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .layer__count { margin-left: 0; }
}

/* Certificates */
.cert-list { list-style: none; padding: 0; outline-offset: -3px; }
.cert-list li {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}
.cert-list li:hover { background: var(--surface-2); }
.cert-list li[aria-selected='true'] { background: var(--ink); color: var(--inv); }
.cert-list__title { display: block; font-size: 0.88em; line-height: 1.35; }
.cert-list__meta { display: block; font: 11px var(--font-pixel); letter-spacing: 0.04em; margin-top: 4px; opacity: 0.75; }
.certificate { display: grid; gap: 14px; justify-items: start; }
.certificate__frame {
  width: 100%;
  padding: 26px 24px;
  text-align: center;
  border: 1px solid var(--line);
  outline: 1px solid var(--line); outline-offset: -8px;
  box-shadow: var(--shadow);
  background:
    repeating-linear-gradient(45deg, transparent 0 6px, var(--dot) 6px 7px) border-box,
    var(--surface);
  background-clip: padding-box;
  position: relative;
}
.certificate__frame::before {
  content: ''; position: absolute; inset: 14px;
  background: var(--surface);
  z-index: 0;
}
.certificate__frame > * { position: relative; z-index: 1; }
.certificate__eyebrow { font: 12px var(--font-pixel); letter-spacing: 0.2em; text-transform: uppercase; }
.certificate__small { font-size: 0.8em; color: var(--muted); margin-top: 14px; }
.certificate__name { font: 24px/1.1 var(--font-display); margin-top: 4px; }
.certificate__course { font: 500 1em/1.35 var(--font-body); margin: 6px auto 0; max-width: 34ch; }
.certificate__foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px;
  margin-top: 22px; font-size: 0.85em;
}
.certificate__foot > span:first-child { text-align: left; }
.certificate__foot > span:last-child { text-align: right; }
.certificate__k { display: block; font: 10px var(--font-pixel); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); padding-top: 4px; margin-bottom: 2px; }
.certificate__seal .px-icon { width: 40px; height: 40px; }
.certificate__note { font-size: 0.8em; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 16px 0 20px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; border-left: 1px dashed var(--line); }
.timeline__item { position: relative; padding: 0 0 22px 28px; }
.timeline__item::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 11px; height: 11px;
  background: var(--surface); border: 1px solid var(--line);
}
.timeline__item:first-child::before { background: var(--ink); }
.timeline__period { font: 12px var(--font-pixel); letter-spacing: 0.06em; color: var(--muted); }
.timeline__title { font: 500 1.02em/1.35 var(--font-body); margin-top: 2px; }
.timeline__place { font: 12px var(--font-pixel); letter-spacing: 0.03em; margin: 2px 0 4px; }

/* Notice */
.notice {
  padding: 12px 14px; margin-bottom: 18px;
  border: 1px dashed var(--line);
  background: var(--surface-2);
  font-size: 0.88em;
}

/* Forms */
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 22px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .setting__label { font: 12px var(--font-pixel); letter-spacing: 0.06em; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 16px; /* avoid iOS zoom */
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; box-shadow: var(--shadow-sm); }
.field [aria-invalid='true'] { border-width: 2px; border-style: dashed; }
.form__error:empty { display: none; }
.form__error { font: 12px var(--font-pixel); padding: 8px 10px; background: var(--ink); color: var(--inv); }

/* Settings */
.settings { display: grid; gap: 22px; }
.setting { border: 0; padding: 0; display: grid; gap: 8px; }
.segmented { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); width: fit-content; }
.segmented__opt { position: relative; }
.segmented__opt + .segmented__opt { border-left: 1px solid var(--line); }
.segmented__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.segmented__opt span { display: block; padding: 8px 14px; font: 12px var(--font-pixel); letter-spacing: 0.04em; }
.segmented__opt input:checked + span { background: var(--ink); color: var(--inv); }
.segmented__opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.segmented__opt:hover input:not(:checked) + span { background: var(--surface-2); }
.shortcuts { display: grid; gap: 6px; font-size: 0.88em; }
.shortcuts div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line-soft); padding-bottom: 6px; }
.settings > .btn { justify-self: start; }

/* Terminal */
.term {
  height: 100%;
  display: flex; flex-direction: column;
  background: var(--ink); color: var(--inv);
  font: 14px/1.55 var(--font-mono);
  --muted: color-mix(in srgb, var(--inv) 65%, var(--ink));
}
.term__out { flex: 1; overflow: auto; padding: 14px 16px 4px; scrollbar-color: var(--inv) transparent; }
.term__row { white-space: pre-wrap; word-break: break-word; }
.term__row + .term__row { margin-top: 4px; }
.term__echo { margin-top: 10px !important; }
.term__err { opacity: 0.85; }
.term__err::before { content: '! '; }
.term__cmd { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.term__prompt { font-family: var(--font-pixel); font-size: 13px; white-space: nowrap; }
.term__line { display: flex; align-items: center; gap: 10px; padding: 8px 16px 14px; }
.term__input { flex: 1; min-width: 0; background: none; border: 0; color: inherit; caret-color: currentColor; font-size: 14px; }
.term__input:focus { outline: none; }
.term__line:focus-within { box-shadow: inset 3px 0 0 var(--inv); }
.term .title-pixel { font-size: 18px; }
.term .link { color: inherit; }

/* =========================================================
   Arcade
   ========================================================= */
.arcade { display: grid; grid-template-columns: 1fr; gap: 18px; }
.arcade > * { min-width: 0; }
@container (min-width: 640px) { .arcade { grid-template-columns: 190px 1fr; } }
.arcade__lib ul { display: flex; flex-direction: column; gap: 6px; }
@container (max-width: 639px) { .arcade__lib ul { flex-direction: row; overflow-x: auto; } .arcade__blurb { display: none; } }
.arcade__game {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-decoration: none;
}
.arcade__game:hover { background: var(--surface-2); }
.arcade__game[aria-current] { background: var(--ink); color: var(--inv); box-shadow: var(--shadow-sm); }
.arcade__title { display: block; font: 14px var(--font-pixel); white-space: nowrap; }
.arcade__blurb { display: block; font-size: 0.78em; opacity: 0.75; margin-top: 2px; line-height: 1.35; }
.arcade__head { margin-bottom: 12px; }
.arcade__head h2 { margin-bottom: 2px; }
.arcade__head h2:focus { outline: none; }

.game { display: grid; gap: 12px; justify-items: center; }
.game:focus { outline: none; }
.game__hud {
  width: 100%;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  font: 12px var(--font-pixel); letter-spacing: 0.04em;
}
.game__hud strong { font-weight: 400; font-size: 15px; }
.game__hud .btn { margin-left: auto; }
.game__status { min-height: 1.6em; font-size: 0.9em; text-align: center; }
.select { display: inline-flex; align-items: center; gap: 6px; }
.select select { border: 1px solid var(--line); background: var(--surface); padding: 4px 6px; font: 12px var(--font-pixel); }

/* Snake */
.snake-wrap { position: relative; width: min(100%, 400px); }
.snake-canvas {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  image-rendering: pixelated;
  touch-action: none;
}
.snake-canvas:focus-visible { outline-offset: 3px; }
.snake-overlay {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font: 13px/1.5 var(--font-pixel); text-align: center;
  pointer-events: none;
  white-space: nowrap;
}
.dpad { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(2, 44px); gap: 4px; }
.dpad__btn { border: 1px solid var(--line); font-size: 14px; background: var(--surface); }
.dpad__btn:active { background: var(--ink); color: var(--inv); }
.dpad__up { grid-column: 2; grid-row: 1; }
.dpad__left { grid-column: 1; grid-row: 2; }
.dpad__down { grid-column: 2; grid-row: 2; }
.dpad__right { grid-column: 3; grid-row: 2; }
@media (hover: hover) and (pointer: fine) { .dpad { display: none; } }

/* Tic-tac-toe */
.ttt { display: grid; gap: 0; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ttt [role='row'] { display: grid; grid-template-columns: repeat(3, 1fr); }
.ttt__cell {
  width: clamp(64px, 18cqi, 96px); aspect-ratio: 1;
  border: 1px solid var(--line-soft);
  font: clamp(28px, 8cqi, 44px)/1 var(--font-pixel);
  text-transform: uppercase;
}
.ttt__cell:hover:not([aria-disabled='true']) { background: var(--surface-2); }
.ttt__cell[aria-disabled='true'] { cursor: default; }
.ttt__cell:focus-visible { outline-offset: -4px; }
.ttt__cell.is-win { background: var(--ink); color: var(--inv); }

/* Hangman */
.hm { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 36px; }
.hm__art { font: 16px/1.15 var(--font-mono); margin: 0; }
.hm__word { font: 26px/1 var(--font-pixel); letter-spacing: 0.12em; text-transform: uppercase; }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 4px; width: 100%; max-width: 480px; }
.key {
  height: 40px;
  border: 1px solid var(--line);
  font: 14px var(--font-pixel); text-transform: uppercase;
  background: var(--surface);
}
.key:hover:not(:disabled) { background: var(--surface-2); }
.key:disabled { cursor: default; color: var(--muted); border-color: var(--line-soft); }
.key.is-miss { text-decoration: line-through; }

/* Chess — newspaper-diagram style: outline glyphs for white, solid for black */
.game__actions { margin-left: auto; display: inline-flex; gap: 6px; }
.game__hud .game__actions .btn { margin-left: 0; }
/* The board keeps fixed colours in both themes, like a physical board — inverting it would turn black pieces white. */
.chess, .chess-promo {
  --sq-light: #fbfbf9; --sq-dark: #cfcfcb; --sq-ink: #111111; --sq-mark: #5e5e5b;
}
.chess { width: min(100%, 384px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.chess [role='row'] { display: grid; grid-template-columns: repeat(8, 1fr); }
.chess__cell {
  position: relative;
  aspect-ratio: 1;
  display: grid; place-items: center;
  padding: 0;
  font: clamp(24px, 7.5cqi, 36px)/1 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', 'Apple Symbols', serif;
  color: var(--sq-ink);
}
.chess__cell.is-light { background: var(--sq-light); }
.chess__cell.is-dark { background: var(--sq-dark); }
.chess__cell[data-rank]:not([data-rank=''])::before,
.chess__cell[data-file]:not([data-file=''])::after {
  position: absolute;
  font: 9px/1 var(--font-pixel);
  opacity: 0.7;
  pointer-events: none;
}
.chess__cell[data-rank]:not([data-rank=''])::before { content: attr(data-rank); top: 3px; left: 3px; }
.chess__cell[data-file]:not([data-file=''])::after { content: attr(data-file); bottom: 3px; right: 3px; }
.chess__cell.is-last { box-shadow: inset 0 0 0 2px var(--sq-mark); }
.chess__cell.is-sel { background: var(--sq-ink); color: var(--sq-light); }
.chess__cell.is-check { background: repeating-linear-gradient(45deg, var(--sq-light) 0 5px, var(--sq-ink) 5px 6px); }
.chess__cell.is-move { background-image: radial-gradient(circle, var(--sq-ink) 0 14%, transparent 15%); }
.chess__cell.is-cap { box-shadow: inset 0 0 0 3px var(--sq-ink); }
.chess__cell:focus-visible { outline: 2px dashed var(--sq-mark); outline-offset: -5px; z-index: 1; }
.chess-promo { display: flex; gap: 6px; }
.chess-promo__btn {
  width: 52px; height: 52px;
  border: 1px solid var(--line); background: var(--sq-light); color: var(--sq-ink); box-shadow: var(--shadow-sm);
  font: 32px/1 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', 'Apple Symbols', serif;
}
.chess-promo__btn:hover { background: var(--sq-dark); }
.chess-log {
  width: min(100%, 384px);
  max-height: 4.8em; overflow-y: auto;
  font-size: 0.82em; line-height: 1.6; color: var(--muted);
  word-spacing: 0.2em;
}
.chess-log:empty { display: none; }

/* =========================================================
   Responsive — phone becomes a "home screen"
   ========================================================= */
@media (max-width: 720px) {
  :root { --dock-h: 0px; }
  .menubar__brand-text, .menubar__btn-label, .menubar__btn .kbd { display: none; }
  .menubar__clock { font-size: 12px; }
  .desktop { overflow-y: auto; padding: 16px 16px 32px; }
  .desktop-icons { position: static; }
  .desktop-icons__list {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    height: auto;
    gap: 8px;
  }
  .desktop-icon { width: 100%; height: 88px; }
  .widget { position: static; width: auto; margin-bottom: 20px; padding: 20px; }
  .widget__name { font-size: 40px; }
  .desktop > .widget { order: -1; }
  .desktop { display: flex; flex-direction: column; }
  .dock { display: none; }
  .windows { position: fixed; inset: var(--menubar-h) 0 0 0; z-index: 3000; }
  .window {
    inset: 0 !important;
    width: auto !important; height: auto !important;
    border: 0; box-shadow: none;
  }
  .window__resize, .wbtn--max { display: none; }
  .window__bar { cursor: default; height: 44px; }
  .wbtn { width: 40px; height: 40px; }
  .window__body { padding: 16px 16px 24px; }
  .split { margin: -16px -16px -24px; }
}

@media (min-width: 721px) and (max-height: 620px) {
  .widget { display: none; }
}

/* =========================================================
   Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:root[data-motion='reduce'] *, :root[data-motion='reduce'] *::before, :root[data-motion='reduce'] *::after {
  animation: none !important; transition: none !important;
}

/* Windows high contrast / forced colors */
@media (forced-colors: active) {
  .window.is-active .window__bar, .btn--solid, .chip[aria-pressed='true'], .dock__btn.is-active,
  .launcher__opt[aria-selected='true'], .post-link[aria-current], .cert-list li[aria-selected='true'] {
    forced-color-adjust: none;
    background: Highlight; color: HighlightText;
  }
}
