/**
 * Typography
 */

/* Reboot based on :
 - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
 - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
 ––––––––––––––––––––
*/

body {
  font-size: var(--font-size);
  line-height: var(--line-height); 
  font-style: var(--font-style);
  font-weight: var(--font-weight);
  font-family: var(--font-family);
}

/* Add the correct font weight in Chrome, Edge, and Safari */
b,
strong {
  font-weight: 700;
}

/* Prevent `sub` and `sup` elements from affecting the line height in all browsers */
sub,
sup {
  position: relative;
  font-size: 0.75em;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}

/* Pico */
/* –––––––––––––––––––– */

address,
dl,
figure,
form,
ol,
p,
pre,
table,
ul {
  margin: 0;
  color: var(--color);
  font-style: var(--font-style);
  font-weight: var(--font-weight);
  font-size: var(--font-size);
}

/* Code */
pre,
code,
kbd,
samp {
  font-family: var(--source-font-family);
  font-size: 0.813rem;
  font-weight: 450;
  line-height: 1.31;
}

/* Paragraphs */
p {
  margin: 0 0 var(--space);
}

p:last-child {
  margin-bottom: 0;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  margin: 0;
  font-family: var(--font-family);
  font-style: normal;
  color: var(--color);
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: var(--space);

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

h1 {
  font-size: 2.625rem;
  font-weight: 500;
  line-height: 1.07;
  margin-bottom: var(--space);
}
h2 {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.14;
  margin-bottom: var(--space);
}
h3 {
  font-size: 1.188rem;
  font-weight: 500;
  line-height: 1.10;
  letter-spacing: 0.01rem;
  margin-bottom: var(--space-sm);
}
h4 {
  font-size: 1rem;
  font-weight: 570;
  line-height: 1.12;
  letter-spacing: 0.02rem;
  margin-bottom: var(--space-xs);
}
h5,
h6 {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.02rem;
  margin-bottom: var(--space-xs);
}

/**
 * Make an element's text appear as a H1 heading.
 */
 .h1 {
   font-size: 2.625rem !important;
   font-weight: 500 !important;
   line-height: 1.07 !important;
 }
 /**
  * Make an element's text appear as a H2 heading.
  */
 .h2 {
   font-size: 1.375rem !important;
   font-weight: 500 !important;
   line-height: 1.14 !important;
 }
 /**
  * Make an element's text appear as a H3 heading.
  */
 .h3 {
   font-size: 1.188rem !important;
   font-weight: 500 !important;
   line-height: 1.10 !important;
   letter-spacing: 0.01rem !important;
 }
 /**
  * Make an element's text appear as a H4 heading.
  */
 .h4 {
   font-size: 1rem !important;
   font-weight: 570 !important;
   line-height: 1.12 !important;
   letter-spacing: 0.02rem !important;
 }
 /**
  * Make an element's text appear as a H5 or H6 heading.
  */
 .h5,
 .h6 {
   font-size: 0.875rem !important;
   font-weight: 600 !important;
   line-height: 1.14 !important;
   letter-spacing: 0.02rem !important;
 }

/**
 * Make an element's text appear smaller.
 */
.small,
small {
  font-size: 0.875rem;
  font-weight: 390;
  line-height: 1.21;
}

/* Lists */
ul,
ol {
  margin-bottom: var(--space-md);
}
:where(ol, ul) {
  padding-right: 0;
  padding-left: var(--space);
  padding-inline-start: var(--space);
  padding-inline-end: 0;

  li {
    margin-top: var(--space-xxs);
  }
}

/* Margin-top for nested lists */
/* 1. Remove the margin on nested lists in Chrome, Edge, IE, and Safari */
:where(ol, ul) {
  &:is(ol, ul) {
    margin: 0; /* 1 */
    margin-top: var(--space-xxs);
  }
}

ul li {
  list-style: square;
}

dl dt {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.02rem;
  margin: var(--space-md) 0 var(--space-xxs);
  padding: 0;
  opacity: 0.75;
}

dl dd {
  padding: 0;
  margin: 0;
}

/* Highlighted text */
mark {
  padding: var(--space-xxs) var(--space-xs);
  background-color: var(--mark-background-color);
  color: var(--mark-color);
  vertical-align: baseline;
}

/* Blockquote */
.manchet,
.blockquote,
blockquote {
  display: block;
  margin: 0 0 1rem;
  font-weight: 370;
  font-size: 1.125rem;
  line-height: 1.33;

  & footer {
    color: var(--blockquote-footer-color);
  }
}

/* Abbreviations */
/* 1. Remove underline decoration in Chrome, Edge, IE, Opera, and Safari */
abbr[title] {
  border-bottom: 1px dotted;
  text-decoration: none; /* 1 */
  cursor: help;
}

/* Ins */
ins {
  color: var(--ins-color);
  text-decoration: none;
}

/* del */
del {
  color: var(--del-color);
}