@font-face {
  font-family: "droid-sans";
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  src: url("/DroidSans.woff") format("woff");
}

@font-face {
  font-family: "droid-sans";
  font-display: swap;
  font-style: normal;
  font-weight: 700;
  src: url("/DroidSans-Bold.woff") format("woff");
}

*,
::before,
::after {
  background-repeat: no-repeat;
  box-sizing: border-box;
  color: inherit;
  font: inherit;
  list-style-type: none;
  margin: 0;
  padding: 0;
  text-decoration: inherit;
}

html {
  --fg: #000;
  --bg: #eee;
  --bg-dark: #6e6a67;
  --faded: #a3a790;
  --moth: #8fa61f;
}

@media (prefers-color-scheme: dark) {
  html {
    --fg: #fffcee;
    --bg: #454744;
    --bg-dark: #262928;
    --faded: #91958e;
    --moth: #89ac77;
  }
}

html {
  font-size: 15px;
  color-scheme: light dark;
  display: flex;
  justify-content: center;
  min-height: 100%;
}

@media (min-width: 600px) {
  html {
    padding: 2rem;
    background-color: var(--bg-dark);
    align-items: center;
  }
}

body {
  font-family: Droid Sans, droid-sans, Noto Sans, Lucida Grande, Lucida Sans, sans-serif;
  padding: 3rem;
  line-height: 1.5;
  max-width: 30rem;
  color: var(--fg);
  background-color: var(--bg);
}

body * + * {
  margin-top: 1rem;
}

body > * {
  padding-left: 5rem;
}

h1,
h2 {
  font-weight: 700;
}

h2 {
  margin-top: 3rem;
}

a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 93%;
  text-shadow:
     1px  0   var(--bg), -1px  0   var(--bg),
     1px  1px var(--bg), -1px  1px var(--bg),
     1px -1px var(--bg), -1px -1px var(--bg),
     2px  0   var(--bg), -2px  0   var(--bg),
     2px  1px var(--bg), -2px  1px var(--bg),
     2px -1px var(--bg), -2px -1px var(--bg);
}
a:hover {
  color: var(--faded);
}

dl {
  display: grid;
  grid-template-columns: 4rem 1fr;
  column-gap: 1rem;
  padding-left: 0;
}

dt {
  text-align: right;
  color: var(--faded);
}

dl > * {
  margin-top: 0;
}

ul > li::before {
  content: "•";
  position: absolute;
  width: 0.5rem;
  margin-left: -1.5rem;
  text-align: right;
  color: var(--faded);
}

li {
  margin-top: 0;
}

h1 {
  position: relative;
}

.moth {
  mask: url("https://xoria.org/moth3.png");
  background-color: var(--moth);
  width: 17px;
  height: 17px;
  image-rendering: pixelated;
  position: absolute;
  left: 2.5rem;
  top: 0.2rem;
}
