:root {
  /* Light mode colors (default) */
  --bg-primary: white;
  --bg-navbar: lightgray;
  --bg-message: lightred;
  --text-primary: black;
  --text-secondary: #666;
  --border-primary: #202020;
  --border-secondary: grey;
  --border-hover: darkgrey;
  --border-transparent: #1c1c1c00;
  --shadow-color: rgb(39, 39, 39);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode colors */
    --bg-primary: #1a1a1a;
    --bg-navbar: #2d2d2d;
    --bg-message: #3a1f1f;
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --border-primary: #404040;
    --border-secondary: #555;
    --border-hover: #888;
    --border-transparent: #1c1c1c00;
    --shadow-color: rgb(0, 0, 0);
  }

  /* Override Milligram defaults for dark mode */
  a {
    color: #6db3f2;
  }

  a:hover {
    color: #9cc9f7;
  }

  button,
  input[type="button"],
  input[type="reset"],
  input[type="submit"] {
    background-color: #4a4a4a;
    border-color: #4a4a4a;
  }

  button:hover,
  input[type="button"]:hover,
  input[type="reset"]:hover,
  input[type="submit"]:hover {
    background-color: #5a5a5a;
    border-color: #5a5a5a;
  }

  code {
    background: #2a2a2a;
    border-color: #404040;
  }

  pre {
    background: #2a2a2a;
    border-left-color: #6db3f2;
  }

  hr {
    border-top-color: #404040;
  }

  blockquote {
    border-left-color: #404040;
  }

  table {
    border-color: #404040;
  }

  th,
  td {
    border-bottom-color: #404040;
  }
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Rethink Sans", "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 1.8em;
  font-weight: 200;
  letter-spacing: 0.012em;
  line-height: 1.8;
}
.message {
  padding: 1.8rem;
  margin: 1.2rem;
  background-color: var(--bg-message);
}
.navbar {
  line-height: 22px;
  border-bottom: 1px solid var(--border-primary);
  margin: 0px;
  background: var(--bg-navbar);
  box-shadow: 0px 2px 8px 0px var(--shadow-color);
  margin-bottom: 1em;
  width: 100%;
}
.navigation {
  padding-top: 0.8em;
  max-width: 112rem;
}
h1 {
  font-size: 2.8rem;
  font-style: bold;
}
h2,
h3 {
  margin-top: 2.2rem;
  margin-bottom: 2.2rem;
}
ul.home {
  margin-left: 24px;
  margin-top: 12px;
}
summary {
  cursor: pointer;
  white-space-collapse: collapse;
}
details {
  margin-top: 2.2rem;
  margin-bottom: 2.2rem;
}
footer {
  margin-top: 96px !important;
  text-align: center;
  font-size: 85%;
  bottom: 0;
}
.item {
  border: 1px var(--border-transparent) solid;
  padding: 6px;
  padding-left: 12px;
  display: block;
  cursor: pointer;
  font-size: 110%;
}
a.item {
  border: 1px var(--border-transparent) solid;
  padding: 6px;
  display: block;
}
.item:hover {
  border-left: 1px var(--border-hover) solid;
  padding-left: 12px;
}
.detail-container {
  min-height: 320px;
}
.article-item-deets {
  font-size: 75%;
  bottom: 0;
}
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
textarea,
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 0.1rem solid var(--border-secondary);
  border-radius: 0.4rem;
  box-shadow: none;
  box-sizing: inherit;
  height: 3.8rem;
  padding: 0.6rem 1rem;
  width: 100%;
}
div.content {
  border: 0;
  padding: 16px;
  font-size: 16pt;
}
dt {
  float: left;
  clear: left;
  text-align: right;
  font-weight: bold;
  margin-right: 12px;
}
dt::after {
  content: ": ";
}
dd {
  padding-left: 1.6em;
}
.link-button {
  text-align: center;
  display: inline-block;
  cursor: pointer;
  border: 0;
  margin: 0;
}
.end-of-internet {
  font-size: 75%;
  font-style: italic;
  margin-left: 20rem;
  margin-top: 12rem;
}
p {
  text-indent: 1.6em;
}

.stats {
  font-size: 80%;
}
