/* Typography Styles */

/* Base Typography */
body {
  font-family: var(--font-family-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-foreground);
  font-weight: normal;
}

body {
  /* Headings */

  & h1,
  & h2,
  & h3,
  & h4,
  & h5,
  & h6 {
    padding: 0.75rem 0;
    margin: 0;
    color: var(--color-foreground);
    font-weight: normal;
  }

  & h1 {
    font-size: 1.5rem;
  }

  & h2 {
    font-size: 1.25rem;
  }

  & h3 {
    font-size: 0.825rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
  }

  & h4 {
    font-size: 0.825rem;
  }

  & h5 {
    font-size: 0.75rem;
  }

  & h6 {
    font-size: 0.75rem;
  }

  & p,
  & footer *,
  & nav * {
    font-size: 0.6875rem;
  }
}

p,
span,
a,
cite,
q,
em,
strong,
abbr,
time,
mark,
address,
ul,
ol,
li,
dl,
dd,
dt,
div,
article,
section,
aside,
blockquote,
figure,
figcaption,
main,
header,
footer,
nav,
details,
summary,
label,
legend,
fieldset,
input,
select,
option,
button,
textarea,
caption,
th,
td,
samp,
kbd,
var {
  font-size: 0.75rem;
  color: var(--color-foreground);
}

small {
  font-size: 0.715rem;
}

/* Paragraphs */

p {
  margin-top: 0;
}

/* Text Styling */

em {
  font-style: italic;
}

strong {
  font-weight: 700;
}

mark {
  background-color: var(--color-accent);
  padding: 0.2em;
  color: #212529;
}

/* Blockquote */

blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--color-border);
  font-style: italic;
  background-color: var(--color-surface);
}

blockquote p {
  margin-bottom: 0.5rem;
}

blockquote cite {
  display: block;
  color: var(--color-accent);
}

/* Semantic Text Elements */

abbr {
  text-decoration: underline dotted;
  cursor: help;
}

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

kbd {
  color: var(--color-foreground);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 0 var(--color-border);
}

time {
  color: var(--color-accent);
}

/* Superscript and Subscript */

sup,
sub {
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* Address */

address {
  margin-bottom: 1rem;
}

/* Definition Lists */

dl {
  margin: 1rem 0;
  padding: 0;
}

dt {
  font-weight: 600;
  color: var(--color-foreground);
  margin-top: 0.5rem;
}

dt:first-child {
  margin-top: 0;
}

dd {
  margin: 0.25rem 0 0.5rem 1.5rem;
  color: var(--color-accent);
}

/* Pre Element */

pre {
  display: block;
  font-family: var(--font-family-mono);
  font-size: 0.7rem;
  padding: 1rem;
  margin: 0 0 1rem 0;
  color: var(--color-foreground);
  word-break: break-all;
  word-wrap: break-word;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  overflow-x: auto;
}
