@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  --background: #0b1017;
  --body: #d9d9d9;
  --muted: #4b586e;
  --primary: #ef576e;
  --panel: #1f2e44;
  --rule: rgba(75, 88, 110, 0.46);
  --code: #101a27;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--body);
  background:
    radial-gradient(circle at 50% 9rem, rgba(75, 88, 110, 0.42), transparent 31rem),
    var(--background);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 28px;
}

.site-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  min-height: 88px;
  padding: 24px 32px 14px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
}

.logo-link,
.logo-link img {
  display: block;
  width: 253px;
  height: 50px;
}

.desktop-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-links a,
.mobile-links a {
  display: block;
  padding: 6px 24px;
  border: 1px solid transparent;
  border-radius: 9999px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.desktop-links a:hover,
.mobile-links a:hover {
  border-color: rgba(239, 87, 110, 0.7);
  color: var(--primary);
  background: rgba(239, 87, 110, 0.1);
}

.mobile-menu {
  display: none;
}

.article {
  position: relative;
  z-index: 1;
  width: min(944px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 112px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0;
  color: var(--body);
  font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  text-align: left;
}

h1 {
  margin-top: 0;
  color: #fff;
  font-size: 60px;
  font-weight: 600;
  line-height: 60px;
}

h2 {
  margin-top: 48px;
  font-size: 36px;
  font-weight: 300;
  line-height: 40px;
}

h3 {
  margin-top: 40px;
  font-size: 28px;
  font-weight: 400;
  line-height: 36px;
}

h4 {
  margin-top: 32px;
  font-size: 22px;
  font-weight: 500;
  line-height: 30px;
}

p,
ul,
ol,
blockquote,
pre,
table {
  margin-top: 16px;
  margin-bottom: 0;
}

p,
li {
  overflow-wrap: anywhere;
}

p {
  text-align: justify;
}

ul,
ol {
  padding-left: 28px;
}

li + li {
  margin-top: 8px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.article a:hover {
  color: #ff8a9c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

strong {
  color: #fff;
  font-weight: 700;
}

blockquote {
  padding: 16px 24px;
  border-left: 4px solid var(--primary);
  background: var(--panel);
}

blockquote > :first-child {
  margin-top: 0;
}

code {
  padding: 0.12em 0.34em;
  border-radius: 4px;
  color: #ff8a9c;
  background: var(--panel);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.84em;
  font-weight: 400;
}

pre {
  overflow-x: auto;
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  background: var(--code);
  color: var(--body);
  font-size: 15px;
  line-height: 22px;
}

pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
}

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  color: var(--body);
  font-size: 15px;
  line-height: 22px;
}

th,
td {
  min-width: 150px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th {
  color: #fff;
  background: var(--panel);
  font-weight: 600;
}

tr:nth-child(even) td {
  background: rgba(31, 46, 68, 0.28);
}

hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(944px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 44px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

@media (max-width: 767px) {
  body {
    background:
      radial-gradient(circle at 50% 5rem, rgba(75, 88, 110, 0.28), transparent 18rem),
      var(--background);
    font-size: 16px;
    line-height: 24px;
  }

  .site-nav {
    min-height: 88px;
    padding: 14px 16px 20px;
  }

  .logo-link,
  .logo-link img {
    width: 127px;
    height: 25px;
  }

  .desktop-links {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu summary {
    display: grid;
    width: 28px;
    height: 28px;
    cursor: pointer;
    list-style: none;
    place-items: center;
  }

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

  .mobile-menu summary img {
    width: 18px;
    height: 18px;
  }

  .mobile-links {
    position: absolute;
    top: 38px;
    right: 0;
    width: 170px;
    padding: 8px;
    border: 1px solid var(--rule);
    background: rgba(11, 16, 23, 0.98);
  }

  .article {
    width: calc(100% - 48px);
    padding: 24px 0 80px;
  }

  h1 {
    font-size: 36px;
    line-height: 40px;
  }

  h2 {
    margin-top: 36px;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 26px;
    font-weight: 300;
    line-height: 34px;
  }

  h3 {
    margin-top: 32px;
    font-size: 22px;
    line-height: 30px;
  }

  h4 {
    font-size: 19px;
    line-height: 27px;
  }

  p {
    text-align: left;
  }

  blockquote,
  pre {
    padding: 14px 16px;
  }

  th,
  td {
    min-width: 132px;
    padding: 10px 11px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media print {
  body {
    color: #111;
    background: #fff;
  }

  .site-nav,
  .site-footer {
    display: none;
  }

  .article {
    width: 100%;
    padding: 0;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  strong,
  a {
    color: #111;
  }
}
