@use "scss/colors";
@use "scss/fonts";
@use "scss/variables";
@use "./markdown";

.markdown {
  color: colors.$dark-blue;
  line-height: 24px;
  font-size: markdown.$font-size;
  font-weight: 400;

  h1 {
    font-size: 32px;
    line-height: 56px;
    font-weight: bold;
  }

  h2 {
    font-size: 22px;
    line-height: 36px;
    font-weight: bold;
  }

  h3 {
    font-size: 18px;
    font-weight: bold;
  }

  h4 {
    font-weight: bold;
  }

  a {
    color: colors.$blue;
    text-decoration: none;
    line-height: 24px;

    &:hover {
      text-decoration: underline;
    }
  }

  table {
    border-collapse: collapse;
  }

  th,
  td {
    border: 1px solid colors.$grey-100;
    margin: 0;
    padding: 8px 16px;
  }

  th {
    background: colors.$grey-50;
  }

  blockquote {
    border-left: 4px solid colors.$grey-100;
    padding-left: 16px;
    margin-left: 25px;
  }

  strong {
    font-weight: bold;
  }

  code {
    white-space: break-spaces;
    background: colors.$grey-50;
    font-family: fonts.$monospace;
  }

  pre > code {
    display: block;
    padding: 15px;
    overflow: auto;
    border-radius: variables.$border-radius-md;
    border-bottom: variables.$border-thick solid colors.$grey-100;
  }

  img {
    max-width: 100%;
  }

  li:not(:last-child) {
    margin-bottom: variables.$spacing-sm;
  }
}
