/**
 * Any CSS included here will be global. The classic template
 * bundles Infima by default. Infima is a CSS framework designed to
 * work well for content-centric websites.
 */

/* [data-theme='dark'] {
  --ifm-color-primary-darkest: #831a40;
  --ifm-color-primary-darker: #9f1f4e;
  --ifm-color-primary-dark: #a82153;
  --ifm-color-primary: #bb255c;
  --ifm-color-primary-light: #ce2965;
  --ifm-color-primary-lighter: #d52c6a;
  --ifm-color-primary-lightest: #db487e;
} */

/* [data-theme='dark'] {
  --ifm-color-primary-darkest: color(display-p3 0.513 0.232 0.376);
  --ifm-color-primary-darker: color(display-p3 0.620 0.191 0.305);
  --ifm-color-primary-dark: color(display-p3 0.647 0.189 0.326);
  --ifm-color-primary: color(display-p3 0.733 0.176 0.360);
  --ifm-color-primary-light: color(display-p3 0.804 0.160 0.396);
  --ifm-color-primary-lighter: color(display-p3 0.839 0.161 0.416);
  --ifm-color-primary-lightest: color(display-p3 0.851 0.208 0.494);
}

[data-theme='light'] {
  --ifm-color-primary-darkest: color(display-p3 0.513 0.232 0.376);
  --ifm-color-primary-darker: color(display-p3 0.620 0.191 0.305);
  --ifm-color-primary-dark: color(display-p3 0.647 0.189 0.326);
  --ifm-color-primary: color(display-p3 0.733 0.176 0.360);
  --ifm-color-primary-light: color(display-p3 0.804 0.160 0.396);
  --ifm-color-primary-lighter: color(display-p3 0.839 0.161 0.416);
  --ifm-color-primary-lightest: color(display-p3 0.851 0.208 0.494);
} */

@font-face {
  font-family: "Mona Sans";
  src:
    url("/static/fonts/Mona-Sans.woff2") format("woff2 supports variations"),
    url("/static/fonts/Mona-Sans.woff2") format("woff2-variations");
  font-weight: 500 900;
  font-stretch: 75% 125%;
}

@font-face {
  font-family: "Inter";
  src:
    url("/static/fonts/Inter.var.woff2") format("woff2 supports variations"),
    url("/static/fonts/Inter.var.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-stretch: 75% 125%;
}

@font-face {
  font-family: "Monaspace Neon";
  src:
    url("/static/fonts/Monaspace-Neon.woff2")
    format("woff2 supports variations"),
    url("/static/fonts/Monaspace-Neon.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-stretch: 100% 100%;
}

html,
h4,
h5,
h6 {
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3 {
  font-family: "Mona Sans", sans-serif;
}

code * {
  font-family: "Monaspace Neon", monospace;
  font-variant-ligatures: discretionary-ligatures;
}

[data-theme="dark"] {
  /* OKLCH color space: oklch(lightness chroma hue) */
  --ifm-color-primary-darkest: oklch(66.47% 0.298 7);
  --ifm-color-primary-darker: oklch(66.47% 0.298 7);
  --ifm-color-primary-dark: oklch(66.47% 0.298 7);
  --ifm-color-primary: oklch(66.47% 0.298 7);
  --ifm-color-primary-light: oklch(66.47% 0.298 7);
  --ifm-color-primary-lighter: oklch(66.47% 0.298 7);
  --ifm-color-primary-lightest: oklch(66.47% 0.298 7);
}

[data-theme="light"] {
  --ifm-color-primary-darkest: oklch(66.47% 0.298 7);
  --ifm-color-primary-darker: oklch(66.47% 0.298 7);
  --ifm-color-primary-dark: oklch(66.47% 0.298 7);
  --ifm-color-primary: oklch(66.47% 0.298 7);
  --ifm-color-primary-light: oklch(66.47% 0.298 7);
  --ifm-color-primary-lighter: oklch(66.47% 0.298 7);
  --ifm-color-primary-lightest: oklch(66.47% 0.298 7);
}

/* discord invite */
.header-discord-link {
  height: 24px;
}

.header-discord-link:hover {
  opacity: 0.8;
}

.header-discord-link:before {
  content: "";
  width: 24px;
  height: 24px;
  display: flex;
  right: 550px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 127.14 96.36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill%3D%22%235865F2%22 d='M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z'/%3E%3C/svg%3E")
    no-repeat;
}

.header-github-link:hover {
  opacity: 0.8;
}

.header-github-link:before {
  content: "";
  width: 24px;
  height: 24px;
  display: flex;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
    no-repeat;
}

html[data-theme="dark"] .header-github-link:before {
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
    no-repeat;
}

.centered-text {
  text-align: center;
}
