/*==============================================================
  02. Typography
================================================================*/
/* Fonts (Instrument Sans, Inter) are loaded with <link> tags in each page <head>. */

body {
  &.cs_dark {
    background-color: #191919;
  }
}

body,
html {
  font-size: 16px;
  line-height: 1.4em;
  font-weight: 400;
  overflow-x: clip;
  color: var(--secondary-color);
  font-family: var(--secondary-font);
  background-color: var(--web-wash);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;

  /* Hide scrollbar but keep functionality */
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;

  &::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
  padding: 0;
  margin: 0 0 20px 0;
  font-weight: 700;
  line-height: 1.28em;
  color: var(--primary-color);
  font-family: var(--primary-font);
}

h1 {
  font-size: 56px;
}

h2 {
  font-size: 42px;
}

h3 {
  font-size: 30px;
}

h4 {
  font-size: 24px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}

p {
  margin-bottom: 15px;
}

ul {
  margin: 0 0 25px 0;
  padding-inline-start: 20px;
  list-style: square outside none;
}

ol {
  padding-inline-start: 20px;
  margin-bottom: 25px;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

blockquote {
  margin: 0 15px;
  font-style: italic;
  font-size: 20px;
  line-height: 1.6em;
  margin: 0;
}

address {
  margin: 0 0 15px;
}

img {
  border: 0;
  max-width: 100%;
  height: auto;
  border-radius: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

button {
  color: inherit;
  border: 0;
  outline: 0;
  padding: 0;
  background-color: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

a:hover {
  text-decoration: none;
  color: inherit;
}

table {
  width: 100%;
  margin-bottom: 25px;

  th {
    font-weight: 600;
    color: var(--secondary-color);
  }

  td,
  th {
    border-top: 1px solid var(--border-color);
    padding: 11px 10px;
  }
}

dl {
  margin-bottom: 25px;

  dt {
    font-weight: 600;
  }
}

b,
strong {
  font-weight: bold;
}

pre {
  color: var(--secondary-color);
  border: 1px solid var(--border);
  font-size: 18px;
  padding: 25px;
  border-radius: 5px;
}

kbd {
  font-size: 100%;
  background-color: var(--secondary-color);
  border-radius: 5px;
}

input,
textarea {
  color: var(--primary-color);
  transition: all 0.4s ease;
}

label {
  margin-bottom: 8px;
}