@font-face {
  font-family: alephGlyphs;
  src: url("../assets/fonts/alephtape-glyphs.woff2") format("woff2");
  unicode-range: U+2135, U+2080-2089, U+2190-2193, U+2197, U+2713, U+2717;
  size-adjust: 110%;
  font-display: block;
}
:root {
  --paper: #ffffff;
  --ink: #0b6e4f;
  --rule: color-mix(in srgb, var(--ink) 25%, var(--paper));
  --wash: color-mix(in srgb, var(--ink) 8%, var(--paper));
  --ghost: color-mix(in srgb, var(--ink) 58%, var(--paper));
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-move: cubic-bezier(.4, 0, .6, 1);
  --font-serif: alephGlyphs, var(--chrome-serif);
  --font-mono: alephGlyphs, var(--chrome-mono);
  --type-hero: var(--site-type-heading);
  --type-section: var(--site-type-title);
  --type-title: var(--site-type-title);
  --type-body: var(--site-type-body);
  --type-meta: var(--site-type-control);
  --type-wordmark: 16px;
}

.fig { position: relative; display: block; width: 100%; margin: 0; }
.fig > svg, .fig > canvas { display: block; width: 100%; height: auto; overflow: visible; }
.fig > canvas { height: 100%; position: absolute; inset: 0; }
.fig-tag { position: absolute; top: 0; right: 0; font: 400 var(--type-meta)/1.4 var(--font-mono); color: var(--ink); }

.fig svg:not(.mechanism-site-scene, .mechanism-site-still) text { font: 400 var(--type-meta)/1.4 var(--font-mono); fill: var(--ink); }
:is(.mechanism-site-scene, .mechanism-site-still) [data-figure-type="label"] {
  font: 500 calc(var(--type-body) / var(--mechanism-scale, 1))/1.15 var(--font-serif);
}
:is(.mechanism-site-scene, .mechanism-site-still) [data-figure-type="meta"] {
  font: 400 calc(var(--type-meta) / var(--mechanism-scale, 1))/1.15 var(--font-mono);
}
:is(.mechanism-site-scene, .mechanism-site-still) [data-figure-type="score"] {
  font: 400 calc(var(--type-title) / var(--mechanism-scale, 1))/1.25 var(--font-mono);
}
.fig svg.upgrade-cycle text { font-size: 15px; }
.fig svg.upgrade-cycle .upgrade-cycle-caption { font-size: 13px; }
.fig svg.upgrade-cycle .upgrade-cycle-activation { font-size: 11px; }
.fig svg.upgrade-cycle:lang(zh) .upgrade-cycle-activation { font-size: 15px; }
.fig:is([data-fig="step-candidate"], [data-fig="step-seed"]) svg text { font-size: 10.5px; }
.fig svg text::selection { color: var(--ink); background-color: var(--rule); }
.fig svg .ratio { font: 500 var(--type-title)/1.25 var(--font-serif); }
.fig svg .l1, .fig svg .l2, .fig svg .l3, .fig svg .la, .fig svg .lg, .fig svg .ld {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.fig svg .l1 { stroke: var(--ink); stroke-width: 1.5; }
.fig svg .l2 { stroke: var(--ink); stroke-width: 1; }
.fig svg .l3 { stroke: var(--rule); stroke-width: .75; }
.fig svg .la { stroke: var(--ink); stroke-width: 1.75; }
.fig svg .lg, .fig svg .ld { stroke: var(--ghost); stroke-width: 1; }
.fig svg .ld { stroke-dasharray: 3 3; }
:is(.diagram, .fig) svg .diagram-icon-pending {
  color: var(--ghost);
  stroke-dasharray: 1.8 1.6;
}
.fig svg .n, .fig svg .na { fill: var(--ink); stroke: none; }
.fig svg .w { fill: var(--wash); stroke: none; }
.fig svg .o { fill: var(--paper); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fig svg .case-highlight { stroke-width: 1.75; }
