@use '../abstracts/if_screen' as *;

html,
body {
  font-family: var(--font-family);
  font-size: var(--font-size);
  color: var(--text-color);
}

a {
  color: var(--link-color);
}

h1,
h2,
h3 {
  padding: 0;
  margin: 0.8em 0 0.6em 0;

  > a {
    color: inherit;
    text-decoration: none;
    display: block;
  }
}

h1 {
  font-size: calc(var(--h1-font-size) * 0.8);

  @include if_screen(">two-columns") {
    font-size: var(--h1-font-size);
  }

  small {
    font-size: 0.5em;
    opacity: 0.8;
  }
}

h2 {
  font-size: var(--h2-font-size);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 500;
}

dl,
ol,
ul,
p {
  margin: 0.5rem 0 1rem 0;
  line-height: 1.5;
}

dt {
  font-weight: 400;
}

dd {
  margin: 0 0 0.3rem 1.5rem;
}

ol,
ul {
  padding-left: 1.5rem;

  ol,
  ul {
    margin-top: 0;
  }
}

code,
kbd,
pre,
samp {
  font-family: var(--font-family-monospace);
}

table {
  width: 100%;
}

td,
th {
  text-align: left;
  vertical-align: top;

  p {
    margin: 0;
  }
}

th {
  border-bottom: var(--hr-border);
}

.ellipsis {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.is-link {
  cursor: pointer;
}

.has-extra-vertical-margin {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
