:root {
  --bg: #ffffff;
  --card: #fafafa;
  --soft: #f4f4f5;
  --ink: #18181b;
  --ink-2: #52525b;
  --ink-3: #71717a;
  --rule: #e9e9ec;
  --rule-strong: #d4d4d8;

  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure: 42rem;
  --wide: 66rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #09090b;
  --card: #111113;
  --soft: #18181b;
  --ink: #f4f4f5;
  --ink-2: #a1a1aa;
  --ink-3: #8b8b94;
  --rule: #232326;
  --rule-strong: #34343a;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b;
    --card: #111113;
    --soft: #18181b;
    --ink: #f4f4f5;
    --ink-2: #a1a1aa;
    --ink-3: #8b8b94;
    --rule: #232326;
    --rule-strong: #34343a;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

::selection { background: var(--ink); color: var(--bg); }

.icon { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }

a {
  color: var(--ink);
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}

a:hover { text-decoration-color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 30;
  padding: .5rem .9rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  font-size: .875rem;
}

.skip:focus { top: 1rem; }

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 20;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* site header */
.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .25s var(--ease);
}

.site.scrolled { border-bottom-color: var(--rule); }

.site-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.mark {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 7px;
  background: var(--ink);
  color: var(--bg);
  font: 600 .85rem/1 var(--sans);
}

.site nav { display: flex; align-items: center; gap: .15rem; font-size: .875rem; }

.site nav a, .theme {
  color: var(--ink-2);
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: 6px;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.site nav a:hover, .theme:hover { background: var(--soft); color: var(--ink); }
.site nav a[aria-current] { color: var(--ink); }

.theme {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  height: 2rem;
  padding: 0 .65rem;
  font: inherit;
  font-size: .8125rem;
  margin-left: .25rem;
  border: 1px solid var(--rule);
  background: none;
  cursor: pointer;
}

.theme svg { width: 15px; height: 15px; flex: none; }
.theme .moon, .theme .dark-label { display: none; }
:root[data-theme="dark"] .theme .sun, :root[data-theme="dark"] .theme .light-label { display: none; }
:root[data-theme="dark"] .theme .moon, :root[data-theme="dark"] .theme .dark-label { display: inline; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun, :root:not([data-theme="light"]) .theme .light-label { display: none; }
  :root:not([data-theme="light"]) .theme .moon, :root:not([data-theme="light"]) .theme .dark-label { display: inline; }
}

@media (max-width: 520px) {
  .site nav a.ext { display: none; }
  .theme { padding: 0; width: 2rem; justify-content: center; }
  .theme .theme-label { display: none !important; }
  .byline .status { margin-left: 0; }
}

main { position: relative; }

/* post header */
.post-head {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 4rem 1rem 2.5rem;
}

.status {
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  padding: .1rem .55rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
}

.post-head h1 {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.025em;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}

.post-head h1 span { color: var(--ink-3); }

.dek {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: 1.75rem;
  font-size: .875rem;
  color: var(--ink-3);
}

.byline strong { color: var(--ink); font-weight: 500; display: block; line-height: 1.4; }
.byline .status { margin-left: auto; }

.byline .mark { width: 2.25rem; height: 2.25rem; font-size: 1rem; border-radius: 9px; }

/* rounds strip */
.rounds {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1rem;
}

.rounds ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

.rounds li { border-right: 1px solid var(--rule); }
.rounds li:last-child { border-right: 0; }

.rounds a {
  display: block;
  height: 100%;
  padding: 1rem 1.15rem 1.15rem;
  color: inherit;
  text-decoration: none;
  transition: background-color .2s var(--ease);
}

.rounds a:hover { background: var(--card); }

.rounds .n { font-size: .8rem; line-height: 1; color: var(--ink-3); }

.rounds h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: .65rem 0 .25rem;
}

.rounds p { margin: 0; font-size: .85rem; line-height: 1.5; color: var(--ink-3); }

@media (max-width: 760px) {
  .rounds ol { grid-template-columns: 1fr 1fr; }
  .rounds li:nth-child(2n) { border-right: 0; }
  .rounds li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* body layout */
.post-body {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3.5rem 1rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

@media (min-width: 1040px) {
  .post-body {
    grid-template-columns: 12rem minmax(0, var(--measure));
    gap: 5rem;
  }
}

.toc { font-size: .875rem; }

.toc .label { font-weight: 500; color: var(--ink); margin: 0 0 .75rem; }

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

.toc a {
  display: block;
  padding: .35rem 0 .35rem .85rem;
  border-left: 1px solid var(--rule);
  color: var(--ink-3);
  text-decoration: none;
  line-height: 1.4;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-left-color: var(--ink); }

@media (min-width: 1040px) {
  .toc { position: sticky; top: 6rem; align-self: start; }
}

@media (max-width: 1039px) {
  .toc {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 1rem 1.15rem .85rem;
  }
}

/* prose */
.prose { min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { text-wrap: pretty; }
.prose p { margin: 0 0 1.15rem; }

.prose h2 {
  font-size: 1.6rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 4rem 0 1rem;
  text-wrap: balance;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 2.25rem 0 .6rem;
}

.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.prose li { margin: .35rem 0; }
.prose li::marker { color: var(--ink-3); }
.prose strong { font-weight: 600; }

.prose code {
  font: .85em var(--mono);
  background: var(--soft);
  border: 1px solid var(--rule);
  padding: .08em .35em;
  border-radius: 5px;
}

.lede { font-size: 1.15rem; line-height: 1.7; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; }

.chip {
  font-size: .8rem;
  color: var(--ink-2);
  background: var(--soft);
  padding: .25rem .6rem;
  border-radius: 6px;
}

.roles { list-style: none; padding: 0 !important; display: grid; gap: .5rem; }

.roles li {
  margin: 0;
  padding: .85rem 1.05rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.roles li strong { display: block; }
.roles li span { color: var(--ink-2); font-size: .95rem; }

.qgroup {
  margin: 0 0 1rem;
  padding: 1.1rem 1.25rem .35rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.qgroup h4 { margin: 0 0 .35rem; font-size: .95rem; font-weight: 600; }
.qgroup ul { margin-bottom: .75rem; }

/* video questions */
.questions { list-style: none; padding: 0 !important; margin: 2rem 0; counter-reset: q; }

.questions > li {
  counter-increment: q;
  margin: 0 0 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.questions h3 { margin: 0 0 .5rem; font-size: 1rem; display: flex; gap: .6rem; align-items: baseline; }

.questions h3::before {
  content: counter(q) ".";
  color: var(--ink-3);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.questions blockquote {
  margin: 0 0 .9rem;
  padding-left: .9rem;
  border-left: 1px solid var(--rule-strong);
  color: var(--ink);
  font-size: 1.05rem;
  text-wrap: pretty;
}

.questions .tip { margin: 0; }

.tip {
  margin: 1.25rem 0 1.5rem;
  padding: .75rem .95rem;
  background: var(--soft);
  border-radius: 8px;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.tip b { color: var(--ink); font-weight: 600; margin-right: .35rem; }

/* resources */
.resources {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: .6rem;
  margin: 1.5rem 0 2rem;
}

.res {
  padding: .9rem 1.05rem .55rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.res h4 { margin: 0 0 .3rem; font-size: .95rem; font-weight: 600; }
.res ul { list-style: none; padding: 0 !important; margin: 0 !important; }
.res li { margin: 0; border-top: 1px solid var(--rule); }
.res li:first-child { border-top: 0; }

.res a {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .45rem 0;
  font-size: .9rem;
  color: var(--ink-2);
  text-decoration: none;
}

.res a::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: .35em;
  background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 11 11 5M6 5h5v5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 11 11 5M6 5h5v5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s var(--ease), background-color .2s var(--ease);
}

.res a:hover { color: var(--ink); }
.res a:hover::after { background: var(--ink); transform: translate(2px, -2px); }

.outro {
  margin: 3.5rem 0 0;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--card);
}

.outro p { margin: 0 0 1rem; font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }

.button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
  font-size: .9rem;
  text-decoration: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.button:hover { opacity: .85; }
.button:active { transform: scale(.98); }

/* footer */
.foot {
  width: min(calc(100% - 2rem), calc(var(--wide) - 2rem));
  margin: 6rem auto 0;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: .875rem;
  color: var(--ink-3);
}

.foot a { color: var(--ink-2); }
.foot p { margin: 0; }

/* home */
.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 5.5rem 1rem 3.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.03em;
  margin: 0;
}

.hero p {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }

.links a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .8rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: .9rem;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}

.links a:hover { background: var(--card); border-color: var(--rule-strong); }

.writing {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1rem;
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--rule);
  font-size: .875rem;
}

.section-label h2 { margin: 0; font-size: .875rem; font-weight: 500; color: var(--ink-3); }
.section-label a { color: var(--ink-2); }

.entry {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
}

.entry time { font-size: .875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.entry h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.entry p { margin: .4rem 0 0; color: var(--ink-2); font-size: .975rem; max-width: 40rem; }

.entry .arrow {
  display: flex;
  font-size: 1.1rem;
  color: var(--ink-3);
  transition: transform .3s var(--ease), color .2s var(--ease);
}

.entry:hover .arrow { color: var(--ink); transform: translateX(4px); }
.entry:hover h3 { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px; }

@media (max-width: 680px) {
  .entry { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .entry .arrow { display: none; }
}

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

.rise { animation: rise .6s var(--ease) both; }
.rise.d1 { animation-delay: .05s; }
.rise.d2 { animation-delay: .1s; }
.rise.d3 { animation-delay: .15s; }
.rise.d4 { animation-delay: .2s; }

.hero-sm { padding-bottom: 2.5rem; }
.hero-sm h1 { font-size: clamp(2.1rem, 5vw, 3rem); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.25rem;
  font-size: .875rem;
  color: var(--ink-3);
}

.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); }

/* =====================================================================
   Colour layer: an aura of colour at the top of each page, one colour
   per interview round, and a yellow highlighter for key phrases.
   ===================================================================== */
:root {
  --g1: oklch(0.8 0.15 55 / .75); --g2: oklch(0.74 0.17 15 / .6); --g3: oklch(0.88 0.14 90 / .65);
  --h1c: oklch(0.82 0.15 160 / .7); --h2c: oklch(0.82 0.12 200 / .6); --h3c: oklch(0.9 0.14 120 / .6);
  --ember: oklch(0.55 0.16 40);
  --r1: oklch(0.74 0.15 68); --r2: oklch(0.66 0.18 18); --r3: oklch(0.64 0.14 155); --r4: oklch(0.58 0.16 300);
  --r1t: oklch(0.5 0.12 60); --r2t: oklch(0.52 0.17 20); --r3t: oklch(0.48 0.11 155); --r4t: oklch(0.48 0.16 300);
  --mix: 9%;
  --hl: oklch(0.91 0.16 100); --hl-swipe: oklch(0.91 0.16 100 / .85); --hl-top: 52%; --hl-ink: inherit; --hl-on: #18181b;
  --tile: #ffffff;
}

:root[data-theme="dark"] {
  --g1: oklch(0.6 0.16 50 / .5); --g2: oklch(0.55 0.18 15 / .42); --g3: oklch(0.65 0.13 85 / .3);
  --h1c: oklch(0.55 0.13 160 / .45); --h2c: oklch(0.55 0.11 200 / .4); --h3c: oklch(0.65 0.13 120 / .3);
  --ember: oklch(0.8 0.13 50);
  --r1: oklch(0.78 0.14 70); --r2: oklch(0.72 0.16 18); --r3: oklch(0.74 0.13 155); --r4: oklch(0.72 0.14 300);
  --r1t: oklch(0.82 0.13 70); --r2t: oklch(0.78 0.14 18); --r3t: oklch(0.8 0.12 155); --r4t: oklch(0.78 0.12 300);
  --mix: 14%;
  --hl: oklch(0.88 0.16 100); --hl-swipe: oklch(0.88 0.16 100 / .2); --hl-top: 6%; --hl-ink: oklch(0.94 0.09 100); --hl-on: #18181b;
  --tile: #f4f4f5;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --g1: oklch(0.6 0.16 50 / .5); --g2: oklch(0.55 0.18 15 / .42); --g3: oklch(0.65 0.13 85 / .3);
    --h1c: oklch(0.55 0.13 160 / .45); --h2c: oklch(0.55 0.11 200 / .4); --h3c: oklch(0.65 0.13 120 / .3);
    --ember: oklch(0.8 0.13 50);
    --r1: oklch(0.78 0.14 70); --r2: oklch(0.72 0.16 18); --r3: oklch(0.74 0.13 155); --r4: oklch(0.72 0.14 300);
    --r1t: oklch(0.82 0.13 70); --r2t: oklch(0.78 0.14 18); --r3t: oklch(0.8 0.12 155); --r4t: oklch(0.78 0.12 300);
    --mix: 14%;
    --hl: oklch(0.88 0.16 100); --hl-swipe: oklch(0.88 0.16 100 / .2); --hl-top: 6%; --hl-ink: oklch(0.94 0.09 100); --hl-on: #18181b;
    --tile: #f4f4f5;
  }
}

/* aura */
main { isolation: isolate; }
main::before {
  content: ""; position: absolute; z-index: -1; inset: -6rem 0 auto 0; height: 46rem; pointer-events: none;
  background:
    radial-gradient(38rem 22rem at 18% 18%, var(--g1), transparent 70%),
    radial-gradient(30rem 20rem at 62% 6%, var(--g2), transparent 70%),
    radial-gradient(34rem 18rem at 92% 30%, var(--g3), transparent 70%);
  filter: blur(24px);
  -webkit-mask: linear-gradient(#000 40%, transparent); mask: linear-gradient(#000 40%, transparent);
}
main:has(.hero:not(.hero-sm))::before {
  background:
    radial-gradient(38rem 22rem at 15% 25%, var(--h1c), transparent 70%),
    radial-gradient(30rem 20rem at 55% 5%, var(--h2c), transparent 70%),
    radial-gradient(34rem 18rem at 90% 30%, var(--h3c), transparent 70%);
}
.site:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.status { border-color: var(--ember); color: var(--ember); }

/* highlighter */
::selection { background: var(--hl); color: var(--hl-on); }
mark {
  color: var(--hl-ink);
  border-radius: 3px;
  background: linear-gradient(transparent var(--hl-top), var(--hl-swipe) var(--hl-top), var(--hl-swipe) 94%, transparent 94%);
  padding: 0 .12em; margin: 0 -.06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.tip b { background: var(--hl); color: var(--hl-on); padding: .05em .35em; border-radius: 3px; }

/* one colour per round */
.progress { height: 3px; background: linear-gradient(90deg, var(--r1) 0 25%, var(--r2) 25% 50%, var(--r3) 50% 75%, var(--r4) 75%); }
.rounds ol { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rounds li:nth-child(1) { --c: var(--r1); --ct: var(--r1t); }
.rounds li:nth-child(2) { --c: var(--r2); --ct: var(--r2t); }
.rounds li:nth-child(3) { --c: var(--r3); --ct: var(--r3t); }
.rounds li:nth-child(4) { --c: var(--r4); --ct: var(--r4t); }
.rounds a { box-shadow: inset 0 3px 0 var(--c); background: color-mix(in oklch, var(--c) calc(var(--mix) * .6), transparent); }
.rounds a:hover { background: color-mix(in oklch, var(--c) calc(var(--mix) * 1.6), transparent); }
.rounds .n { color: var(--ct); font-weight: 600; }

#online-test, #online-test ~ * { --c: var(--r1); --ct: var(--r1t); }
#video-round, #video-round ~ * { --c: var(--r2); --ct: var(--r2t); }
#interviews, #interviews ~ * { --c: initial; --ct: initial; }
#technical-round, #technical-round ~ * { --c: var(--r3); --ct: var(--r3t); }
#hr-round, #hr-round ~ * { --c: var(--r4); --ct: var(--r4t); }
#resources, #resources ~ * { --c: initial; --ct: initial; }
:is(#online-test, #video-round, #technical-round, #hr-round)::before {
  content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 3px; background: var(--c); margin-right: .55em; vertical-align: .12em;
}
.chip { background: color-mix(in oklch, var(--c, var(--soft)) var(--mix), var(--soft)); color: var(--ct, var(--ink-2)); font-weight: 500; }
.qgroup, .questions > li { border-color: color-mix(in oklch, var(--c, var(--rule)) 35%, var(--rule)); }
.qgroup h4, .questions h3::before { color: var(--ct, var(--ink)); }
.tip { background: color-mix(in oklch, var(--c, var(--soft)) var(--mix), var(--soft)); }
.questions blockquote { border-left-color: var(--c, var(--rule-strong)); }
.toc li:nth-child(4) a { --c: var(--r1); --ct: var(--r1t); }
.toc li:nth-child(5) a { --c: var(--r2); --ct: var(--r2t); }
.toc li:nth-child(6) a { --c: var(--r3); --ct: var(--r3t); }
.toc a.active { border-left-color: var(--c, var(--ink)); color: var(--ct, var(--ink)); font-weight: 500; }
.entry h3::after, .hero:not(.hero-sm) h1::after {
  content: ""; display: block; width: 4.5rem; height: 4px; margin-top: .6rem; border-radius: 2px;
  background: linear-gradient(90deg, var(--r1) 0 25%, var(--r2) 25% 50%, var(--r3) 50% 75%, var(--r4) 75%);
}
.hero:not(.hero-sm) h1::after { width: 6rem; height: 6px; margin-top: 1rem; border-radius: 3px; }

/* logos */
.logo { width: 1em; height: 1em; flex: none; }
.links a .logo { width: 15px; height: 15px; }
.foot-links { display: flex; gap: .9rem; }
.foot-links a { display: inline-flex; color: var(--ink-3); transition: color .2s var(--ease); }
.foot-links a:hover { color: var(--ink); }
.foot-links .logo { width: 18px; height: 18px; }

.co-tile {
  display: inline-grid; place-items: center; flex: none;
  width: 2.5rem; height: 2.5rem; border-radius: 10px;
  background: var(--tile); border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgb(0 0 0 / .06);
}
.co-tile img { width: 1.75rem; height: 1.75rem; display: block; }
.company { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.5rem; font-size: .9rem; line-height: 1.35; }
.company > span { display: grid; }
.company strong { font-weight: 600; color: var(--ink); }
.company > span > span { color: var(--ink-2); }

.entry h3 { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .75rem; }
.entry h3::after { grid-column: 2; margin-top: .5rem; }
.entry-co .co-tile { width: 2rem; height: 2rem; border-radius: 8px; }
.entry-co .co-tile img { width: 1.35rem; height: 1.35rem; }

.qgroup h4 { display: flex; align-items: center; gap: .55rem; }
.h-icons { display: inline-flex; gap: .3rem; color: var(--ct, var(--ink-2)); }
.h-icons .logo { width: 17px; height: 17px; }

.fav { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--tile); border: 1px solid var(--rule); flex: none; }
.fav img { width: 14px; height: 14px; display: block; }
.res a { justify-content: flex-start; align-items: center; gap: .6rem; }
.res a::after { margin-left: auto; margin-top: 0; }

/* photo */
.avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: block; flex: none; background: var(--soft); }
.portrait {
  width: 6.5rem; height: 6.5rem; margin-bottom: 1.5rem; padding: 3px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--r1), var(--r2), var(--r4), var(--r3), var(--r1));
}
.portrait img { width: 100%; height: 100%; border-radius: 50%; display: block; border: 3px solid var(--bg); background: var(--soft); }
.brand-photo { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: block; flex: none; background: var(--soft); box-shadow: 0 0 0 1px var(--rule); }

/* code blocks in articles */
.prose pre {
  font: .82rem/1.6 var(--mono);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 0 0 1.5rem;
  overflow-x: auto;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }

/* one colour per step: Ricoh driver write-up */
#print, #print ~ * { --c: var(--r1); --ct: var(--r1t); }
#format, #format ~ * { --c: var(--r2); --ct: var(--r2t); }
#scanner, #scanner ~ * { --c: var(--r3); --ct: var(--r3t); }
#ship, #ship ~ * { --c: var(--r4); --ct: var(--r4t); }
#testing, #testing ~ * { --c: initial; --ct: initial; }
:is(#print, #format, #scanner, #ship)::before {
  content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 3px; background: var(--c); margin-right: .55em; vertical-align: .12em;
}
.toc li a[href="#print"] { --c: var(--r1); --ct: var(--r1t); }
.toc li a[href="#format"] { --c: var(--r2); --ct: var(--r2t); }
.toc li a[href="#scanner"] { --c: var(--r3); --ct: var(--r3t); }
.toc li a[href="#ship"] { --c: var(--r4); --ct: var(--r4t); }
.toc li a:is([href="#problem"], [href="#testing"], [href="#learned"]) { --c: initial; --ct: initial; }
