*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

:root {
  --color-text: #fff;
  --color-link: #f00;
  --color-border: #fff;
  --color-visited: #d00;
  --color-background: #00c;
}

html {
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  font-size: 12px;
}

select,
option,
body,
button {
  color: var(--color-text);
  font-family: monospace;
  font-size: 1.37rem;
  line-height: 1.33;
}

body {
  font-size: 1.37rem;
}

body {
  width: 100%;
  height: 100%;
  background-color: var(--color-background);

  padding: 3rem 2rem;
}

p {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

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

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

header {
  margin-bottom: 4rem;
}

header h1 {
  margin-bottom: 1rem;
}

section {
  display: flex;
  flex-direction: column;
}

section > .row {
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1rem 0.75rem 0;
  vertical-align: middle;
  display: grid;
  grid-template-columns: 10rem 1fr;
}

section .header {
  font-weight: 600;
}

section .size {
  padding-right: 3rem;
  text-align: right;
}

@media screen and (max-width: 900px) {
  header {
    margin-bottom: 0px;
  }

  section > .row:first-child {
    display: none !important;
  }

  section .size {
    text-align: left;
  }

  section > .row {
    display: flex;
    flex-direction: column-reverse;
    padding-left: 10px;
    padding-left: 10px;
  }

  .selectTheme {
    float: none !important;
    margin-top: 0px !important;
  }

  article img {
    max-width: 100% !important;
  }

  footer .copyright {
    position: static !important;
  }
}

article {
  border-top: 1px dashed var(--color-border);
  margin-top: 14px;
  padding-top: 14px;
}

article img {
  max-width: 50%;
}

.selectTheme {
  float: right;
  margin-top: 9px;
}

.selectTheme select {
  appearance: none;
  background: transparent;
  outline: none;
  border: none;
  color: currentColor;
}

.selectTheme select option {
  color: var(--color-background);
}

footer {
  margin-top: 40px;
}

footer .copyright {
  text-align: center;
  position: fixed;
  bottom: 0;
  padding-top: 8px;
  padding-bottom: 8px;
  width: 100%;
  background: var(--color-background);
}

/* Themes */

/* Light */
html.light section {
  --color-background: #ccc;
  --color-border: #00c;
  --color-text: #000;
  --color-link: #c00;
  --color-visited: #000;
  background-color: var(--color-background);
}

html.light section > .row {
  color: var(--color-text);
}

html.light section .header.link {
  color: #00c;
}

html.light section .size {
  --color-text: #00c;
  color: var(--color-text);
}

/* Dark */
html.dark {
  --color-text: #e3e3e3;
  --color-link: #ff1e74;
  --color-border: #427b1b;
  --color-visited: #893dd0;
  --color-background: #0f032b;
}

article ol,
article ul {
  list-style-position: inside;
  line-height: 1.6;
}

/* https://developer.mozilla.org/en-US/docs/Web/CSS/counter() */
article ol {
  list-style-type: none;
  counter-reset: listCounter;
}

article ol li {
  counter-increment: listCounter;
}

article ol li::before {
  content: counter(listCounter) ".";
  width: 4ch;
  display: inline-block;
}

article > time {
  margin: 2rem 0;
  margin-top: 0;
  display: inline-block;
}

article > div {
  max-width: 60ch;
  line-height: 1.6;
  text-align: left;
}
