/* variables */
:root {
  --background: #111111;
  --outer: #1e1b28;
  --foreground: #cccccc;
  --accent-light: #aa5ba8;
  --accent-dark: #58496b;
  --link: #5b88aa;
  --visited: var(--accent-light);
}

/* axioms */
* {
  margin: 0;
  padding: 0;
}

*+* {
  margin-top: 1em;
}

/* base page setup */
html {
  min-height: 100%;
  color: #ccc;
  background-color: var(--outer);
  overscroll-behavior: none;

  font-family: "Iosevka Slab Web", "Courier New", "Courier", "monospace";
  font-size: 18px;
  line-height: 1.5;
}

body {
  margin: auto;
  padding: 0 1em;
  height: 100%;
  min-height: 100vh;
  max-width: 50em;

  display: flex;
  flex-direction: column;

  background-color: #111;
}

/* header */
header {
  margin-top: 0.5em;
  display: flex;
  flex-direction: column;
}

header div {
  height: 4em;
  display: flex;
  flex-direction: row;
  align-items: center;
}

header div * {
  margin: 0;
}

header img {
  height: 100%;
}

header h1 {
  font-size: 2.5em;
}

header nav {
  margin: 0;
}

nav a {
  font-size: 1.2em;
  color: var(--accent-light);
}

nav a:visited {
  color: var(--accent-light);
}


/* nav a:active { */
/* color: lightgreen; */
/* } */

/* main content */
main {
  margin-top: 0;
  flex: 1 0 auto;
}

/* footer */
footer {
  margin-top: 0;
  flex-shrink: 1;
}

/* universal styles */
h1,
h2,
h3 {
  line-height: 1.0;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.25em;
}

hr {
  margin: 1em 0;
  color: var(--accent-dark);
  border: none;
  border-bottom: 2px solid;
}

a {
  text-decoration: none;
  border-bottom: 2px solid;
  color: var(--link);
}

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

a:not([href^="#"], [href^="/"], [href*="localhost"], [href*="fogwaves.feral.gay"])::after {
  content: "";
  display: inline-block;
  content: url('/outlink.svg');
  background-size: contain;
  width: 1em;
  height: 1em;
  margin: 0;
  margin-left: 0.125em;
}

/* title+thumbnail preview links */
.preview-list {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.preview-link {
  margin: 0 auto;
  margin-bottom: 2em;
  padding: 0 0.5em;
  color: var(--accent-light);
  border: none;
}

.preview-link * {
  margin: 0;
}

.preview-link h3 {
  text-align: center;
}

.preview-link img {
  margin-top: 0.5em;
  border: 2px solid;
}

/* horizontal list of links */
.link-list {
  margin: 0.5em 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  font-size: 0.75em;
}

.link-list li {
  margin: 0;
  list-style: none;
}

.link-list li+li::before {
  margin: 0 0.5em;
  content: "•";
}