/* AdaOPD project page */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-greek.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* only used for the italic phrase in a headline */
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --ink: #0e1217;
  --text: #414a55;
  --muted: #556271;
  --line: #e3e7ec;
  --edge: #d3d8de;
  --band: #f5f7f9;

  /* the two method colors of the paper's figures: AdaOPD blue, OPD orange */
  --blue: #0072b2;
  --blue-wash: #e8f2f9;
  --orange: #d55e00;
  --bar: #c8ced6;

  --shadow: 0 1px 2px rgba(14, 18, 23, 0.04), 0 18px 44px -20px rgba(14, 18, 23, 0.16);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 30;
  inset: 10px auto auto 10px;
  padding: 8px 12px;
  background: #fff;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #fff;
  background-image:
    radial-gradient(ellipse 64% 500px at 50% 0, #eaf4fb, transparent 92%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #cfe5f2;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(14, 18, 23, 0.07);
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

.nav-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 60px;
}

.brand {
  justify-self: start;
  color: var(--ink);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand span,
.wordmark > span {
  color: var(--blue);
}

.nav-links {
  display: flex;
  gap: 34px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}

.button:hover {
  border-color: var(--ink);
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.button.primary:hover {
  border-color: #000;
  background: #000;
}

/* Title block */

.hero {
  padding-top: 42px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(60px, 9vw, 100px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.title {
  display: block;
  max-width: 29em;
  margin: 18px auto 0;
  color: var(--ink);
  font-size: clamp(18px, 2.1vw, 23px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.authors {
  max-width: 46em;
  margin: 20px auto 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 2;
  text-wrap: balance;
}

.authors span {
  margin: 0 0.7em;
  white-space: nowrap;
}

.authors a {
  text-decoration: none;
}

.authors a:hover,
.authors a:focus-visible {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.authors sup,
.contribution sup {
  margin-left: 1px;
  color: var(--muted);
  font-size: 0.66em;
  line-height: 0;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.2em;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.affiliations span {
  white-space: nowrap;
}

.contribution {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

/* Research summary */
.lead {
  max-width: 41em;
  margin: 19px auto 0;
  color: var(--text);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  text-wrap: pretty;
}

/* Cards and figures */

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

figure {
  margin: 0;
}

.figure {
  padding: 28px 28px 24px;
}

figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}

figcaption a {
  margin-left: auto;
  color: var(--blue);
  text-underline-offset: 0.18em;
  white-space: nowrap;
}

.teaser {
  margin-top: 32px;
}

.figure-panels {
  display: grid;
  align-items: start;
}

.teaser-panels {
  grid-template-columns: 1030fr 1170fr;
}

.method-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Show the paper's panels in reading order at every width using their original image. */
.figure-panel {
  overflow: hidden;
}

.figure-panel img {
  width: var(--image-width);
  max-width: none;
  transform: translateX(var(--image-offset, 0));
}

.teaser-example {
  --image-width: 213.592%;
  aspect-ratio: 1030 / 568;
}

.teaser-comparison {
  --image-width: 188.034%;
  --image-offset: -46.818%;
  aspect-ratio: 1170 / 568;
}

.method-opd,
.method-adaopd {
  --image-width: 200%;
  aspect-ratio: 1100 / 515;
}

.method-adaopd {
  --image-offset: -50%;
}

/* Headline numbers */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 36px;
  text-align: left;
}

.stat {
  padding-top: 24px;
  border-top: 1px solid #cdd3da;
}

.number {
  margin: 0;
  color: var(--blue);
  font-size: clamp(42px, 5.2vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.number small {
  margin-left: 0.3em;
  font-size: 0.31em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.warm .number {
  color: #aa4900;
}

.stat-label {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

/* Abstract, closed until asked for */

.abstract {
  max-width: 880px;
  margin: 44px auto 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
}

.abstract summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 24px;
  border-radius: 16px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.abstract summary::-webkit-details-marker {
  display: none;
}

.abstract summary::after {
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
}

.abstract[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.abstract p {
  margin: 0;
  padding: 2px 24px 24px;
  font-size: 15.5px;
  line-height: 1.7;
}

.abstract b {
  color: var(--ink);
  font-weight: 600;
}

/* Sections */

section {
  padding-top: 88px;
  padding-bottom: 88px;
  scroll-margin-top: 60px;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--band);
}

.kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2 em {
  display: block;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.12em;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.012em;
}

/* the problem belongs to OPD, so it wears OPD's color */
#problem h2 em {
  color: #aa4900;
}

.lede {
  max-width: 30em;
  margin: 26px 0 0;
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}

.lede b,
.points b {
  color: var(--ink);
  font-weight: 600;
}

.points {
  display: grid;
  gap: 14px;
  max-width: 31em;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.points li {
  position: relative;
  padding-left: 24px;
}

.points li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--blue);
  content: "";
}

.points .warm::before {
  background: var(--orange);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 72px;
  align-items: center;
}

.head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 64px;
}

.head .lede {
  margin: 0;
}

/* Method: three steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 28px 28px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.steps h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
}

/* Method: the trade-off weight */

.blend {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
  margin-top: 36px;
  padding: 44px 48px;
  scroll-margin-top: 80px;
}

.blend .kicker {
  margin-bottom: 24px;
}

.equations {
  container-type: inline-size;
  display: grid;
  justify-items: start;
  gap: 14px;
  padding-block: 16px;
  border-block: 1px solid var(--line);
  color: var(--ink);
}

.formula {
  font-size: clamp(16px, 7.2cqi, 27px);
}

.formula .opd {
  color: #aa4900;
}

.formula .sft {
  color: var(--blue);
}

.blend .note {
  max-width: 27em;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.readout {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.readout p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.readout p + p {
  text-align: right;
}

.readout span {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.readout b {
  color: var(--ink);
  font-size: 30px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}

.ramp-box {
  position: relative;
  margin-top: 6px;
}

.ramp-box > span {
  position: absolute;
  top: 0;
  left: 3%;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.ramp {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ramp .guide {
  stroke: #cdd3da;
  stroke-dasharray: 3 4;
}

.ramp .axis,
.ramp .ticks {
  stroke: #aab1b9;
}

.ramp .area {
  fill: var(--blue-wash);
}

.ramp .curve {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ramp .drop {
  stroke: var(--blue);
  stroke-dasharray: 2 3;
}

.ramp .marker {
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 2;
}

/* The slider lies on the x-axis of the plot: its thumb is the handle that moves the gap. */
.gap-slider {
  position: absolute;
  top: 91.18%;
  left: calc(3% - 12px);
  width: calc(94% + 24px);
  height: 24px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  -webkit-appearance: none;
  appearance: none;
}

.gap-slider::-webkit-slider-runnable-track {
  height: 24px;
  background: transparent;
}

.gap-slider::-moz-range-track {
  height: 24px;
  background: transparent;
}

.gap-slider::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(14, 18, 23, 0.2);
  -webkit-appearance: none;
}

.gap-slider::-moz-range-thumb {
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(14, 18, 23, 0.2);
}

.axis-labels {
  position: relative;
  height: 18px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 18px;
}

.axis-labels span {
  position: absolute;
  white-space: nowrap;
  transform: translateX(-50%);
}

.mix-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  font-size: 13.5px;
}

.mix-labels b {
  margin-left: 5px;
  color: var(--ink);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.mix-labels i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 2px;
}

.mix-labels .opd {
  margin: 0 0 0 8px;
}

.mix-labels .sft,
.mix .sft {
  background: var(--blue);
}

.mix-labels .opd,
.mix .opd {
  background: var(--orange);
}

.mix {
  display: flex;
  gap: 2px;
  height: 14px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 7px;
}

.mix i {
  min-width: 0;
}

.mix .sft {
  flex: var(--mu) 1 0;
}

.mix .opd {
  flex: calc(1 - var(--mu)) 1 0;
}

.demo-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
}

.play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px 0 14px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 550 13.5px var(--sans);
  cursor: pointer;
  transition: border-color 0.15s;
}

.play:hover {
  border-color: var(--ink);
}

.play svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

#method .figure {
  margin-top: 36px;
}

/* Results chart */

.chart {
  padding: 40px 48px 36px;
}

.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.chart-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.chart-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.tabs {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--band);
}

.tabs button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 550 14px var(--sans);
  cursor: pointer;
}

.tabs [aria-selected="true"] {
  background: #fff;
  box-shadow: 0 1px 3px rgba(14, 18, 23, 0.14);
  color: var(--ink);
}

.panel {
  margin-top: 30px;
  --bar-label: 100px;
  --bar-value: 50px;
  --bar-gap: 16px;
}

.panel h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16px;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-left: calc(var(--bar-label) + var(--bar-gap));
  margin-right: calc(var(--bar-value) + var(--bar-gap));
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.bars {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.bars li {
  display: grid;
  grid-template-columns: var(--bar-label) minmax(0, 1fr) var(--bar-value);
  gap: var(--bar-gap);
  align-items: center;
  height: 38px;
}

.bars .track {
  padding: 11px 0;
  border-left: 1px solid #aab1b9;
}

.bars i {
  display: block;
  width: calc(var(--v) / var(--max) * 100%);
  height: 16px;
  border-radius: 0 4px 4px 0;
  background: var(--bar);
}

.bars .value {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.bars .ours {
  color: var(--ink);
  font-weight: 650;
}

.bars .ours .value {
  color: var(--ink);
}

.bars .ours i {
  background: var(--blue);
}

.bars .opd i {
  background: var(--orange);
}

.reference {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* Results: training dynamics and the other settings */

.dynamics {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  margin-top: 72px;
}

.subhead {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.7vw, 32px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.kicker.more {
  margin: 96px 0 24px;
}

.settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.setting {
  padding: 30px 30px 32px;
  box-shadow: none;
}

.setting .number {
  font-size: clamp(36px, 3.8vw, 46px);
  letter-spacing: -0.045em;
}

.setting .number math {
  font-weight: 400;
  letter-spacing: normal;
}

.setting h3 {
  margin: 20px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.setting p:last-child {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.55;
}

/* Citation */

.citation {
  position: relative;
  max-width: 880px;
  margin-top: 22px;
}

pre {
  margin: 0;
  padding: 28px 32px;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: 13.5px/1.75 var(--mono);
}

.copy {
  min-height: 44px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 500 13px var(--sans);
  cursor: pointer;
}

.copy:hover {
  border-color: var(--ink);
}

#citation {
  border-bottom: 0;
}

footer {
  padding: 36px 0 64px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Narrow screens */

@media (max-width: 880px) {
  .hero {
    padding-top: 36px;
  }

  .figure {
    padding: 18px 18px 16px;
  }

  section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .split,
  .head,
  .steps,
  .blend,
  .settings {
    grid-template-columns: minmax(0, 1fr);
  }

  .split {
    gap: 40px;
  }

  .head {
    gap: 0;
    margin-bottom: 44px;
  }

  .head .lede {
    margin-top: 22px;
  }

  .blend {
    gap: 40px;
    padding: 32px 24px;
  }

  .chart {
    padding: 30px 22px 26px;
  }

  .dynamics {
    margin-top: 56px;
  }

  .kicker.more {
    margin-top: 72px;
  }
}

@media (max-width: 760px) {
  .nav-row {
    display: flex;
    justify-content: space-between;
  }

  .nav-links {
    gap: clamp(10px, 3vw, 22px);
  }

  .figure-panels {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding-right: 20px;
    padding-left: 20px;
  }

  .authors {
    text-wrap: wrap;
    font-size: 14px;
  }

  .authors span {
    margin: 0 0.45em;
  }

  .actions {
    gap: 8px;
  }

  .actions .button {
    padding: 0 17px;
  }

  .affiliations {
    line-height: 1.65;
  }

  .stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .stat {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding-top: 14px;
  }

  .stat .number {
    font-size: 37px;
  }

  .stat-label {
    margin: 0;
  }

  .nav-links a {
    font-size: 13px;
  }

  .panel {
    --bar-label: 75px;
    --bar-value: 38px;
    --bar-gap: 8px;
  }

  .bars {
    font-size: 14px;
  }

  .mix-labels {
    font-size: 12.5px;
  }

  pre {
    padding: 22px 16px;
    font-size: 12.5px;
  }

}

@media (max-width: 360px) {
  .blend {
    padding-inline: 18px;
  }

  .nav-row {
    padding-inline: 12px;
  }

  .nav-links {
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .abstract summary::after {
    transition: none;
  }
}
