/**
 * Typography from Pico.css v2
 * Source: https://github.com/picocss/pico
 */

/* Typography variables */
:root {
  --font-family: system-ui, -apple-system, "Segoe UI", "Roboto", "Ubuntu",
    "Cantarell", "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  --line-height: 1.5;
  --font-weight: 400;
  --font-size: 16px;
  
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.875rem;
  --h3-font-size: 1.5rem;
  --h4-font-size: 1.25rem;
  --h5-font-size: 1.125rem;
  --h6-font-size: 1rem;
  
  --font-weight-bold: 700;
  --font-weight-heading: 700;
  
  --line-height-headings: 1.25;
}

/* Base typography */
body {
  font-family: var(--font-family);
  font-size: var(--font-size);
  font-weight: var(--font-weight);
  line-height: var(--line-height);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: var(--font-weight-heading);
  line-height: var(--line-height-headings);
  color: inherit;
}

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

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

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

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

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

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

/* Paragraphs */
p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Small text */
small {
  font-size: 0.875em;
}

/* Bold text */
strong,
b {
  font-weight: var(--font-weight-bold);
}

/* Lists */
ol,
ul {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 2rem;
}

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

li {
  margin-bottom: 0.5rem;
}

/* Blockquote */
blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 0.25rem solid var(--border-color, #ddd);
}

blockquote p {
  margin-bottom: 0;
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.875em;
  font-style: italic;
}

/* Code blocks */
pre,
code,
kbd,
samp {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875em;
}

pre {
  overflow: auto;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 0.25rem;
  background-color: var(--code-background-color, #f5f5f5);
}

code {
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  background-color: var(--code-background-color, #f5f5f5);
}

pre code {
  padding: 0;
  background-color: transparent;
}

/* Horizontal rule */
hr {
  margin: 2rem 0;
  height: 1px;
  border: 0;
  background-color: var(--border-color, #ddd);
}

/* Links */
a {
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.1em;
}

a:hover {
  text-decoration: underline;
}

/* Abbreviations */
abbr[title] {
  cursor: help;
  text-decoration: underline dotted;
}

/* Misc text elements */
mark {
  padding: 0.2em;
  background-color: #fff8c5;
}

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

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Text alignment */
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Article & Typography Spacing */
article {
  margin-bottom: 2rem;
}

article > * {
  margin-bottom: 1rem;
}

article > :first-child {
  margin-top: 0;
}

article > :last-child {
  margin-bottom: 0;
}

article > header {
  margin-bottom: 1rem;
}

article > header > :last-child {
  margin-bottom: 0;
}

article > footer {
  margin-top: 1.5rem;
  font-size: 0.875em;
}