@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(--rhythm-3);
  --font-ratio: 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);
}
.footer ul li {
  font-size: var(--scale-d2);
  min-height: var(--rhythm-tight);
  letter-spacing: -0.05em;
}
.footer ul li a {
  color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
  
  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-d2);
}

article .footnotes ul > li,
article .footnotes ol > li,
article .backlinks ul > li,
article .backlinks ol > li {
  margin-bottom: 0;
}

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(--rhythm) auto;
  padding: var(--rhythm);
}

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

article table {
  margin: auto;
}

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

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

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

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

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

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