/* ------- MAIN PAGE ------- */

* { margin: 0; padding: 0; box-sizing: border-box;
  
  /* Color scheme */
  
  --textcolor: #FFFAE8;
  --bgcolor2: #131313;
  --bgcolor: #191919;
  --highlight: #8194b8;
  --linkcolor2: #443F41;
  --linkcolor: #4C6087;
}

body {
  font-size: 18px;
  font-family: system-ui, monospace;
  line-height: 1.4;
  color: var(--textcolor);
  background: var(--bgcolor);
  position: relative;
  max-width: 64em;  /* remove this for a full-width layout */
  margin: 0 auto;  /* centers the layout */
}

/* ------- SECTIONS ------- */

section {
  padding: calc(6em + 5vw) 5vw 8vw 5vw;
  display: none;
  flex-wrap: wrap;
  justify-content: space-between;
  position: absolute;
  top: 0;
  min-height: 100vh;
  width: 100%;
  background: var(--bgcolor2);
}

section:target { /* Show section */
  display: block;
  flex-wrap: wrap;
  justify-content: space-between;
}

section#home { /* Show #home by default */
  display: block;
}

section h1 {
  color: var(--highlight);
  font-size: 1.4em;
  margin-bottom: 1em;
}

/* ------- HEADER ------- */

header {
  padding: 5vw 5vw 0 5vw;
  display: flex;
  flex-wrap: wrap;
  position: absolute;
  width: 100%;
  z-index: 2;
}

header h1 {
  font-size: 1em;
  flex: 1; /* pushes nav to the right */
  white-space: nowrap;
  padding: 0 5vw .5em 0;
  background: var(--bgcolor2);
}

header h1 a {
  font-size: 2em;
}

nav a {
  margin-right: 1.5vw;
}

nav a:hover {
  border-bottom: 1px solid;
}

/* --------- GENERAL --------- */

a {
  text-decoration: none;
  color: var(--linkcolor);
}

a:hover {
  border-bottom: 1px solid;
  color: var(--highlight);
}

a[href*="//"]:after {
  font-weight: 300;
  font-size: .85em;
  content: "\2197"; /* top right arrow: â†— */
  color: var(--textcolor);
  opacity: .25;
}

a[href*="//"]:hover:after {
  color: var(--highlight);
  opacity: 1;
}

a:before {
  font-size: .7em;
  margin-right: .4em;
}

a[href$=".pdf"]:before { content: "PDF"; }
a[href$=".txt"]:before { content: "TXT"; }
a[href$=".mp3"]:before { content: "MP3"; }
a[href$=".zip"]:before { content: "ZIP"; }
a[href$=".rar"]:before { content: "RAR"; }
a[href$=".jpeg"]:before,
a[href$=".jpg"]:before,
a[href$=".gif"]:before,
a[href$=".png"]:before { content: "IMG"; }

h2, h3, h4 {
  color: var(--highlight);
  font-size: 1.1em;
  font-weight: 1.1em;
  margin: 1.6em 0 .6em 0;
}

p, ul, ol, article {
  margin-left: 1em;
  margin-right: 2em;
  margin-bottom: .6em;
}

figure.video iframe, figure.video object, figure.video embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  visibility: hidden; /* so loading="lazy" should work? */
}

hr {
  border: 0;
  height: 0;
  border-bottom: 1px solid;
  opacity: .2;
  margin: 1.4em 0;
}

/* ------- Footnote styles ------- */

sup a {
  color: currentColor;
  pointer-events: none;
}

.footnotes {
  font-size: .865em;
}

.footnotes li {
  margin-top:.5em;
  max-width:95%;
  opacity: 60%;
}

a.footnote-backref {
  display: none;
}


/* ------- Footer ------- */

div#footer {
  font-size: 14px;
  text-align: center;
  color: var(--textcolor);
  opacity: .5;
}