:root {
  --main: #191919;
  --second: #ffffff;
}

@font-face {
  font-family: "Satoshi";
  font-style: normal;
  src: url("/assets/Manrope.woff2") format("woff2");
  font-display: swap;
  font-weight: 1 999;
}

html {
  scroll-behavior: smooth;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  padding: 5rem 0;
  background: var(--second);
  color: var(--main);
  font-family: Satoshi, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5em;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: 38rem;
  width: min(40vw, 94%);
  display: inline-block;
  text-align: left;
}

@media screen and (max-width: 1100px) {
  main {
    width: 94%;
  }
}

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  display: block;
}

mjx-container[jax="SVG"] {
  display: inline-block !important;
  vertical-align: -0.12em;
}

mjx-container[jax="SVG"] > svg {
  display: inline !important;
  max-width: none !important;
}

::selection {
  background: #efefef;
}

:target {
  scroll-margin: 2rem;
}

h1 {
  margin: 0.5rem 0;
  font-size: 3rem;
  line-height: 1.3em;
  text-align: center;
  font-weight: 100;
  font-variant: small-caps;
  letter-spacing: 0.01em;
}

h2 {
  margin: 2.75rem 0 1.25rem;
  font-size: 1.2em;
  line-height: 1.3em;
  text-align: left;
  font-weight: 900;
}

h3,
h4,
h5,
h6 {
  margin: 2rem 0 1rem;
  line-height: 1.3em;
}

p,
blockquote,
details,
pre,
ul,
ol {
  margin: 1.6rem 0;
}

.subtitle {
  width: 100%;
  margin: 0 0 4.5rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 200;
  letter-spacing: -0.5px;
}

a {
  color: var(--main);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  text-decoration-style: dotted;
}

p a:hover,
li a:hover {
  background: rgba(240, 240, 240, 0.8);
  padding: 0 1.5px;
  margin: 0 -1.5px;
  border-radius: 5px;
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
}

strong {
  font-weight: 700;
}

ol,
ul {
  padding-left: 1.2em;
}

ol li,
ul li {
  margin: 0.75rem 0;
}

blockquote {
  margin: 3rem;
  font-size: 18px;
  line-height: 1.5em;
  font-style: italic;
}

code {
  font-size: 0.92em;
}

pre {
  overflow-x: auto;
}

hr {
  margin: 1.5rem 0 2rem;
  border: 0;
  border-top: 1px solid var(--main);
  opacity: 0.14;
}
