/* Content accents blend with each of Classic, Coding, Golden and BlueFlame. */
[data-route-enhanced] {
  --route-colour: color-mix(in srgb, var(--red) 75%, #6559ab);
  --route-tint: color-mix(in srgb, var(--route-colour) 9%, var(--surface-solid));
}
[data-route-enhanced="tools"] { --route-colour: color-mix(in srgb, var(--red) 70%, #1b768c); }
[data-route-enhanced="blog"] { --route-colour: color-mix(in srgb, var(--red) 72%, #9d5470); }
[data-route-enhanced="mathematics"] { --route-colour: color-mix(in srgb, var(--red) 70%, #98671b); }
[data-route-enhanced="teaching"] { --route-colour: color-mix(in srgb, var(--red) 75%, #34816d); }
[data-route-enhanced="work"] { --route-colour: color-mix(in srgb, var(--red) 72%, #466cac); }
html[data-theme="dark"] [data-route-enhanced] {
  --route-colour: color-mix(in srgb, var(--red) 80%, #b5aaff);
}
html[data-theme="dark"] [data-route-enhanced="tools"] { --route-colour: color-mix(in srgb, var(--red) 75%, #79e2ec); }
html[data-theme="dark"] [data-route-enhanced="blog"] { --route-colour: color-mix(in srgb, var(--red) 75%, #f0a4cd); }
html[data-theme="dark"] [data-route-enhanced="mathematics"] { --route-colour: color-mix(in srgb, var(--red) 75%, #edce84); }
html[data-theme="dark"] [data-route-enhanced="teaching"] { --route-colour: color-mix(in srgb, var(--red) 75%, #91ddbc); }
html[data-theme="dark"] [data-route-enhanced="work"] { --route-colour: color-mix(in srgb, var(--red) 75%, #9dc8ff); }
.home-portfolio-index > nav a[data-route-enhanced] {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 66px;
  padding: 9px 16px;
  transition: background .2s ease;
}
.home-portfolio-index { container-type: inline-size; border-top-width: 2px; box-shadow: none; backdrop-filter: none; }
.home-portfolio-index > header { flex-wrap: wrap; align-items: center; row-gap: 7px; padding: 11px 16px; }
.home-portfolio-index > header span { line-height: 1.2; }
.home-portfolio-index > header strong { font-size: 1.25rem; line-height: 1.2; }
.home-portfolio-index > nav a[data-route-enhanced] > span:nth-child(2) { gap: 2px; }
.home-portfolio-index > nav a[data-route-enhanced] strong { font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.home-portfolio-index > nav a[data-route-enhanced] small { font-size: .72rem; line-height: 1.5; white-space: normal; text-overflow: clip; overflow-wrap: anywhere; }
.home-portfolio-index > nav a[data-route-enhanced]:is(:hover, :focus-visible) {
  padding-left: 16px;
  background: color-mix(in srgb, var(--route-colour) 5%, var(--surface-solid));
}
.home-route-icon,
.home-pathway-card > .home-route-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  color: var(--route-colour);
  background: transparent;
  transition: transform .25s ease;
}
.home-route-icon > svg { width: 28px; height: 28px; stroke-width: 1.65; }
.home-pathway-card > .home-route-icon { width: 44px; height: 44px; }
.home-pathway-card > .home-route-icon > svg { width: 32px; height: 32px; }
.home-portfolio-index > nav b.home-route-action,
.home-pathway-card > b.home-route-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: var(--route-colour);
  white-space: nowrap;
}
.home-portfolio-index > nav b.home-route-action { font-size: .64rem; letter-spacing: .045em; }
.home-route-action-label { min-width: 0; transition: transform .2s ease; }
.home-route-go {
  --go-inset: clamp(0px, calc(8px - .25rem), 4px);
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.home-route-go::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: var(--go-inset);
  border: 1px solid color-mix(in srgb, var(--route-colour) 32%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--route-colour) 5%, var(--surface-solid));
  transition: background .22s ease, border-color .22s ease;
}
.home-route-go > .home-route-go-subject {
  position: relative;
  z-index: 1;
  width: 21px;
  height: 21px;
  stroke-width: 1.7;
  transition: transform .25s ease, opacity .18s ease;
}
.home-route-go-destination {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0;
  opacity: 0;
  transform: translateX(-26px);
  transition: opacity .2s ease, transform .25s ease;
}
.home-route-go-destination > svg { width: 22px; height: 19px; }
.home-route-go-destination > span { font: 800 .625rem/1.1 var(--font); letter-spacing: .07em; text-transform: uppercase; }
.home-route-go > .home-route-go-ring {
  position: absolute;
  z-index: 1;
  inset: var(--go-inset);
  width: calc(44px - var(--go-inset) * 2);
  height: calc(44px - var(--go-inset) * 2);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-dasharray: 129;
  stroke-dashoffset: 129;
  transform: rotate(-90deg);
  transition: stroke-dashoffset .5s ease;
}
[data-route-enhanced]:is(:hover, :focus-visible) .home-route-icon {
  transform: translateY(-1px) rotate(-3deg);
}
[data-route-enhanced]:is(:hover, :focus-visible) .route-detail { animation: home-route-ink .7s ease both; }
[data-route-enhanced]:is(:hover, :focus-visible) .home-route-go::before {
  background: color-mix(in srgb, var(--route-colour) 11%, var(--surface-solid));
  border-color: var(--route-colour);
}
[data-route-enhanced]:is(:hover, :focus-visible) .home-route-go-subject { opacity: 0; transform: translateX(26px) rotate(12deg); }
[data-route-enhanced]:is(:hover, :focus-visible) .home-route-go-destination { opacity: 1; transform: translateX(0); }
[data-route-enhanced]:is(:hover, :focus-visible) .home-route-go-ring { stroke-dashoffset: 0; }
[data-route-enhanced]:focus-visible { outline: 3px solid var(--route-colour); outline-offset: -3px; }
.home-pathway-card > b.home-route-action { justify-content: space-between; font-size: .78rem; white-space: normal; }
.home-pathway-card .home-route-action-label { overflow-wrap: anywhere; }
.home-portfolio-index > footer { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 10px; padding: 10px 16px; }
.home-portfolio-index > footer img { width: 36px; height: 36px; }
.home-portfolio-index > footer a { width: 36px; height: 36px; transition: background .2s ease, transform .2s ease; }
.home-portfolio-index > footer a:is(:hover, :focus-visible) { background: var(--surface-2); transform: translateX(2px); }
@keyframes home-route-ink { 0% { opacity: .2; } 55% { opacity: 1; } 75% { opacity: .45; } 100% { opacity: 1; } }
@media (max-width: 600px) {
  .home-portfolio-index > nav a[data-route-enhanced] { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 9px; padding: 8px 14px; }
  .home-portfolio-index > nav a[data-route-enhanced]:is(:hover, :focus-visible) { padding-left: 14px; }
  .home-portfolio-index .home-route-icon { width: 40px; height: 40px; }
  .home-portfolio-index > nav b.home-route-action { display: inline-flex; }
  .home-portfolio-index > nav small { white-space: normal; text-overflow: clip; }
}
@container (max-width: 21rem) {
  .home-portfolio-index > nav b.home-route-action { flex-direction: column-reverse; justify-content: center; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  [data-route-enhanced] *, .home-portfolio-index > footer a { transition: none !important; animation: none !important; }
  [data-route-enhanced]:is(:hover, :focus-visible) .home-route-icon { transform: none; }
}
@media (forced-colors: active) {
  .home-route-icon, .home-route-go { color: LinkText; }
  .home-route-go::before { border-color: ButtonText; }
}
