:root {
  /* Main text */
  --COLOR_MAIN: #EEE;
  /* Code and pre tags */
  --COLOR_CODE: #FFA033;

  /* For the primary background of the website */
  --BACKGROUND_COLOR_MAIN: #262626;
  /* For each section thats "floating" above the site */
  --BACKGROUND_COLOR_SECONDARY: #212121;
  /* This is the darker headers */
  --BACKGROUND_COLOR_HEADER: #1A1A1A;

  /* Generally for text and headers */
  --ACCENT_PRIMARY: #80CBC4;
  /* For inline comments and highlighting */
  --ACCENT_SECONDARY: #E8605A;
  /* For tags */
  --ACCENT_TERTIARY: #4E6BA2;

  /* These are the drop shadows onall the "floating" sections */
  --SHADOW: rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 3px 1px -2px, rgba(0, 0, 0, 0.2) 0px 1px 5px 0px;

  /* Borders and horizontal rules */
  --BORDER_COLOR_MAIN: #EEE;

  /* Tell the browser we are dark and mysterious */
  color-scheme: dark;
}
:root {
  /* Primary padding */
  --PADDING_MAIN: 1rem;
  /* Primary margin */
  --MARGIN_MAIN: 1rem;

  /* The maximum width of the full page */
  --WIDTH: 1280px;

  /* Most borders have this size */
  --BORDER_SIZE_MAIN: 1px;

  --BORDER_RADIUS: 5px;
}
:root {
  /* For pre and code blocks */
  --MONOSPACE: 'Consolas', 'Monospace';

  /* For most everything and all text elements */
  --HUMANIST: 'Seravek', 'Calibri', 'Roboto', 'Arial', 'sans-serif';

  /* Pretty much unused */
  --SANS: 'system-ui', 'BlinkMacSystemFont', "Segoe UI", 'Roboto', 'Noto', "Helvetica Neue", 'Arial', 'sans-serif';

  /* Pretty much unused */
  --SERIF: 'Athelas', 'Constantia', 'Georgia', 'serif';
}
/* HEADERS */

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.25;

  /* eslint-disable-next-line css/no-invalid-properties */
  color: var(--ACCENT_PRIMARY);
  font-weight: 200;
}

h1:has(+hr),
h2:has(+hr),
h3:has(+hr),
h4:has(+hr),
h5:has(+hr),
h6:has(+hr) {
  /* Selector for all h# elements followed by hr */

  /* eslint-disable-next-line css/no-invalid-properties */
  background-color: var(--BACKGROUND_COLOR_HEADER);

  /* eslint-disable-next-line css/no-invalid-properties */
  padding: var(--PADDING_MAIN);
}

h1+hr,
h2+hr,
h3+hr,
h4+hr,
h5+hr,
h6+hr {
  /* Selector for all hr elements preceeded by h# */
  display: none;
}

h1 {
  font-size: 3.05rem;
}

h2 {
  font-size: 2.44rem;
}

h3 {
  font-size: 1.95rem;
}

h4 {
  font-size: 1.56rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.11rem;
}

/* HORIZONTAL RULES */

hr {
  box-sizing: content-box;
  overflow: hidden;
  background: transparent;

  /* eslint-disable-next-line css/no-invalid-properties */
  border-bottom: var(--BORDER_SIZE_MAIN) solid var(--BORDER_COLOR_MAIN);
}

hr::before {
  display: table;
  content: "";
}

hr::after {
  display: table;
  clear: both;
  content: "";
}

/* LISTS */

ul[role=list],
ol[role=list],
ul.contains-task-list,
ol.contains-task-list {
  padding-left: 0;
  list-style: none;
}

ul.contains-task-list li>input,
ol.contains-task-list li>input {
  /* selector for input that has a parent of task list list item */

  /* eslint-disable-next-line css/no-invalid-properties */
  margin-right: var(--MARGIN_MAIN);
}

li>p+p {
  /* selector for paragraph preceded by another paragraph that has a list item as a parent */

  /* eslint-disable-next-line css/no-invalid-properties */
  margin-top: var(--MARGIN_MAIN);
}

ol ol,
ul ol {
  list-style-type: lower-roman;
}

ul ul ol,
ul ol ol,
ol ul ol,
ol ol ol {
  list-style-type: lower-alpha;
}

ol li::marker,
ul li::marker {
  /* eslint-disable-next-line css/no-invalid-properties */
  color: var(--ACCENT_SECONDARY)
}

/* PRE/CODE */

pre,
code {
  /* eslint-disable-next-line css/no-invalid-properties */
  font-family: var(--MONOSPACE);
  font-weight: 200;
}

p code,
table code,
pre:has(code) {
  /* eslint-disable-next-line css/no-invalid-properties */
  color: var(--COLOR_CODE);

  /* eslint-disable-next-line css/no-invalid-properties */
  border: var(--BORDER_SIZE_MAIN) solid var(--BORDER_COLOR_MAIN);

  padding: .2em .4em;
  font-size: 85%;
  white-space: break-spaces;
}

pre:has(code) {
  /* eslint-disable-next-line css/no-invalid-properties */
  padding: var(--PADDING_MAIN);
  font-size: 100%;
  white-space: pre;
}

/* ITALICS */

i,
em {
  font-style: normal;
  /* eslint-disable-next-line css/no-invalid-properties */
  color: VAR(--ACCENT_SECONDARY);
}

/* IMAGES */

img {
  background-color: transparent;
  border-style: none;
  max-width: 100%;
  box-sizing: content-box;
  object-fit: cover;
}

/* BLOCK-QUOTES */

blockquote {
  padding: 0 1em;

  /* eslint-disable-next-line css/no-invalid-properties */
  border-left: var(--BORDER_SIZE_MAIN) solid var(--BORDER_COLOR_MAIN);
}

blockquote>blockquote {
  /* selector for blockquote with a blockquote parent */

  /* eslint-disable-next-line css/no-invalid-properties */
  margin-top: var(--MARGIN_MAIN);
}

/* TABLES */

table {
  width: max-content;
  border-collapse: separate;
  border-spacing: 0;
}

table th,
table td {
  /* eslint-disable-next-line css/no-invalid-properties */
  padding-left: var(--PADDING_MAIN);
}

table tr th:first-of-type,
table tr td:first-of-type {
  padding-left: 0
}
