@font-face {
  font-family: InterVariable;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: InterVariable;
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/InterVariable-Italic.woff2") format("woff2");
}
@font-face {
  font-family: "Diatype";
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/Cargo-DiatypePlusVariable.woff2") format("woff");
}
@font-face {
  font-family: "Diatype";
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
  src: url("/assets/fonts/Cargo-DiatypePlusVariable-Italic.woff2") format("woff");
}
:root {
  --color-dark-foreground: oklch(0.7721 0.0228 96.47);
  --color-dark-background: oklch(0.2308 0.0023 67.73);
  --body-padding: var(--space-l);
  --font-density: 1.4;
  --font-ratio: var(--ratio-golden);
  --rhythm-gap-block: var(--ratio-golden);
}

body {
  max-width: 1200px;
  margin: 0 auto;
}

.created::before {
  content: "Rédigé";
  filter: opacity(0.5);
}

.modified::before {
  content: "Révisé";
  filter: opacity(0.5);
}

article .p5-sketch-container {
  text-align: center;
}

.footer .footer-links {
  overflow: hidden;
}

.footer h2 {
  letter-spacing: var(--font-header-letter-spacing);
  line-height: 1em;
}
.footer ul li {
  font-size: var(--scale-s);
  letter-spacing: -0.05em;
}
.footer ul li a {
  color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
  overflow: hidden;
  max-width: 95%;
  hyphens: auto;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
}
.footer ul li a:hover {
  text-decoration: none;
  color: color-mix(in srgb, var(--color-accent) 80%, transparent);
}

.header a,
.footer a,
article .backlinks a,
.header svg,
.footer svg,
.theme-emoji,
.theme-emoji svg {
  text-decoration-color: transparent;
  color: var(--color-foreground);
}

.footer h2 a:hover,
article .backlinks a:hover {
  text-decoration-color: transparent;
  color: var(--color-accent);
}

article .footnotes {
  font-size: var(--scale-s);
}

article .footnotes ul > li,
article .footnotes ol > li,
article .backlinks ul > li,
article .backlinks ol > li {
  margin-bottom: 0;
  line-height: 1.1em !important;
}

article .backlinks ul {
  padding-left: 0;
}

article .backlinks > h4 {
  color: var(--color-muted);
}

article .backlinks li::before {
  display: none;
}

article .backlinks li {
  margin-top: 0;
}

.footnotes::before {
  content: "Notes";
  filter: opacity(0.5);
}

article .mermaid {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius);
  border: var(--border);
  text-align: center;
  margin: 0 auto var(--space) auto;
  padding: var(--space);
}

.footer ul li {
  font-size: var(--scale-xs) !important;
  line-height: 1em !important;
  overflow: hidden;
  text-wrap: nowrap !important;
}

.footer hr:first-of-type {
  margin-top: calc(7 * var(--space));
  margin-bottom: var(--space);
}

article table {
  margin: auto;
}

article:not(.no-grid) img {
  mix-blend-mode: multiply;
}

.dark article.note img {
  mix-blend-mode: normal;
  filter: brightness(80%);
}

.dark article.note img:hover,
.dark article.note img.zoomed {
  filter: brightness(100%);
}


article .table-wrapper {
  margin: var(--space-l) auto var(--space-xl) auto;
}

h1 + .metadata {
  position: relative;
  top: calc(var(--space) * -1.5r);
  color: var(--color-subtle);
  font-size: var(--scale-s);
}

.metadata a {
  color: var(--color-subtle);
  text-decoration: none;
}

.metadata a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}