h1,
h2,
h3,
h4,
h5 {
  color: #ddd;
}

b,
strong {
  color: #fff;
}

a {
  color: #a3bff0;
}

html {
  --font-sans: 'Arimo', sans-serif;
  --font-serif: 'IBM Plex Serif', serif;
  /* measured Rayleigh-scattering-dominated daytime sky blue, per
     https://clarkvision.com/articles/color.of.blue.sky/ */
  --sky-blue: #3358b2;
  font-family: var(--font-sans);
  font-size: 1.2em;
}

body {
  margin: 0;
  color: #ccc;
  background-color: #0d0922;
}

.container {
  margin: 0 auto;
  position: relative;
  max-width: 1000px;
  padding: 0 0.2em;
}

.site-title {
  font-size: 2.5em;
  margin-bottom: 10px;
  /* text-align: center; */
}

pre {
  overflow-x: scroll;
}

img {
  max-width: 100%;
}

.block {
  border: 1px dotted #888;
  padding: 5px 15px;
  margin: 0 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.block h1 {
  font-size: 1em;
  text-align: center;
  margin-bottom: 0;
}

.small {
  font-size: 0.8em;
}

.wave {
  background: #0d0922;
  color: #fff;
  text-shadow: 1px 1px 10px #fff, 1px 1px 10px #ccc;
}

footer {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer hr {
  width: 100%;
}

.logo-img {
  width: 400px;
  height: auto;
  display: block;
  padding: 0;
  margin: 10px 0;
}

#header-image {
  background-color: #0d0922;
  border-radius: 8px;
}

#header-image-light {
  display: none;
}

[data-theme="light"] #header-image {
  display: none;
}

[data-theme="light"] #header-image-light {
  display: block;
}

.external-link:after {
  background-image: url(external-link-light.svg);
  background-size: 10px 10px;
  display: inline-block;
  width: 10px;
  height: 10px;
  content: "";
  margin-inline-start: 5px;
}

.external-link-light:after {
  background-image: url(external-link-light.svg) !important;
}

a:not(:hover) {
  text-decoration: none;
}

@media only screen and (max-width: 1000px) {
  .container {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

#theme-toggle .icon-sun,
#theme-toggle .icon-moon {
  font-size: 1.3em;
}

.icon-sun {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: inline;
}

[data-theme="light"] .icon-moon {
  display: none;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5 {
  color: #333;
}

[data-theme="light"] b,
[data-theme="light"] strong {
  color: #000;
}

[data-theme="light"] a {
  color: #2a4fb0;
}

[data-theme="light"] body {
  color: #222;
  background-color: #d2daee;
}

[data-theme="light"] .external-link:after {
  background-image: url(external-link-dark.svg);
}
