:root {
  --bg: #ffffff;
  --text: #000000;
  --title-border: #ffffff;
  --title-shadow: 1px 2px 2px black;
}

html.is-dark-theme,
body.is-dark-theme {
  --bg: #28303d;
  --text: #f0f0f0;
  --title-border: #000000;
  --title-shadow: 2px 4px 4px black;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.5;
  transition: background-color 0.2s, color 0.2s;
}

a {
  color: inherit;
}

.site {
  min-height: 100vh;
}

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

.site-title {
  font-size: 72pt;
  border: 4px solid var(--title-border);
  border-radius: 6pt;
  margin: 20% auto;
  text-shadow: var(--title-shadow);
  display: inline-block;
  padding: 0 0.25em;
}

.site-title a {
  text-decoration: none;
}

.site-title:hover {
  text-shadow: 2px 4px 4px black;
  border-color: #000000;
}

#content {
  margin-top: -10%;
}

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

.fixed-bottom {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--text);
  border-radius: 4px;
}

#dark-mode-toggler > span {
  margin-left: 5px;
}

#dark-mode-toggler > span::before {
  content: "Off";
}

#dark-mode-toggler[aria-pressed="true"] > span::before {
  content: "On";
}

@media (prefers-color-scheme: dark) {
  html.respect-color-scheme-preference:not(.is-light-theme) {
    --bg: #28303d;
    --text: #f0f0f0;
    --title-border: #000000;
    --title-shadow: 2px 4px 4px black;
  }
}
