body {
  background-color: #000;
  color: #fff;
  font-family: "EB Garamond", serif;
  padding: 0 1rem;
  margin: 0;
  line-height: 1.5rem;
}

header {
  display: flex;
  flex-direction: column;
  padding: 0;
  background-color: #000;
  width: 100vw;
  position: sticky;
  top: 0;
  z-index: 1;
  justify-content: space-between;
}

address {
  display: flex;
  flex-direction: column;
  font-size: 1.12rem;
}

h1 {
  font-family: "Yantramanav", sans-serif;
  text-transform: uppercase;
  font-size: 3rem;
  padding-left: 3rem;
  margin: 0;
  line-height: initial;
}

h2,
h3 {
  padding-left: 1rem;
  font-style: italic;
  text-decoration: underline;
}

main {
  display: flex;
  flex-direction: column-reverse;
}

.menu {
  list-style: none;
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  font-style: italic;
  padding-right: 2rem;
  width: 90%;
  padding-inline-start: 0;
}


#sidebar {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

#sidebar dl {
  margin-block-start: 0;
  margin-block-end: 0;
}

#sidebar ul {
  padding-inline-start: 1em;
  margin-block-start: 1em;
}

#sidebar details>summary {
  list-style-type: '🌼';
}

#sidebar details[open]>summary {
  list-style-type: '🌼';
}

#sidebar details {
  border: 1px solid #fff;
  border-radius: 0.2rem;
  padding: 0.5rem;
  margin-bottom: 1rem;
  max-width: 100%;
  text-wrap: wrap;
  word-break: break-word;
}

#sidebar details[open]>summary {
  margin-bottom: 0.5rem;
}

#interests,
#contacts,
#projects,
#bio,
#alts,
#accounts {
  align-self: flex-start;
}

#bio a {
  text-decoration: none;
}

html .medium-editor-element img {
  max-width: inherit;
}

.album-container img {
  height: 120px;
}

#albums ul,
#playlist ul {
  margin: 0;
  padding: 1rem;
}

#albums a {
  text-decoration: none;
}

#playlist ul {
  list-style: none;
}

#albums li {
  padding: 2rem;
}

#albums dd,
#playlist dd {
  margin: 0;
}

#albums h2,
#playlist h2 {
  padding-left: 0;
}

.album-toggle,
.updates-toggle {
  display: none;
}


.album-title {
  cursor: pointer;
  font-size: 2.4rem;
  font-style: italic;
  text-decoration: underline;
}

.album-toggle:not(:checked)+span,
.updates-toggle:not(:checked)+span {
  display: none;
}

.album-toggle:checked+span {
  display: flex;
  flex-wrap: wrap;
}

.updates-toggle:checked+span {
  display: block;
  text-indent: 2rem;
  list-style-type: none;
  padding-bottom: 2rem;
}

#bio a:hover {
  text-decoration: underline;
}

a {
  color: #fff;
}

a:active {
  color: #ffb6c1;
}

article {
  display: flex;
  flex-direction: column;
}

.logo {
  max-width: 2rem;
  max-height: 1rem;
  margin-bottom: 0;
  object-fit: scale-down;
}

.contact-info {
  display: block;
}

#error-img {
  width: 100%;
}

nav {
  max-width: 100vw;
}

iframe {
  min-width: 40%;
  height: 100px;
}

#playlist li {
  display: flex;
  flex-direction: column;
}

#graph-view-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: flex-end;
  grid-area: c;
  position: relative;
  margin: 2rem 0.5rem;
  bottom: 2rem;
  width: auto;
}

main dd {
  margin-inline-start: 0;
}

#blog {
  align-content: baseline;
}

@media only screen and (min-width: 650px) {
  body {
    padding: 0 3rem;
  }

  main {
    display: flex;
    flex-direction: row;
  }

  #sidebar {
    width: 40%;
  }

  article {
    margin: 3rem 0;
    font-size: 1.3rem;
    display: grid;
    grid-template-areas:
      "a a a"
      "b b c"
      "b b c";
  }

  #readlist {
    grid-template-areas:
      "a b"
      "c d";
    column-gap: 6rem;
  }

  #readlist #graph-view-container {
    top: 25%;
  }

  #readlist #graph-view-aside.visible {
    padding-bottom: 6rem;
  }

  #readlist ul {
    padding-inline-start: 0;
  }

  #readlist li span {
    font-size: smaller;
    margin-right: 0
  }

  #read h1 {
    grid-area: a;
  }

  #reading h1 {
    grid-area: b;
  }

  #read {
    grid-area: c;
  }

  #reading {
    grid-area: d;
  }

  #readlist {
    padding: 3rem
  }

  #blog {
    margin: 2rem;
  }

  #graph-view-container {
    position: fixed;
    margin-right: 2rem;
    top: 35%;
    width: max-content;
  }

  #titlebio-wrap,
  #blog-title,
  #playlist-title,
  #albums-title {
    grid-area: a;
  }

  #content-wrap,
  #blog-posts {
    grid-area: b;
  }

  #playlist {
    grid-area: b;
  }

  header {
    display: flex;
    flex-direction: row;
    padding: 0;
    background-color: #000;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1;
    justify-content: space-between;
  }

  nav {
    width: 80%;
  }

  #album-container img {
    height: 250px;
    padding: 2rem 0;
  }

  h1 {
    padding-left: 1rem;
    margin: 4rem 0;
  }
}

aside.do {
  position: absolute;
  z-index: 2147483646;
  max-height: 90%;
  margin: 0;
}

menu.do {
  top: 0;
  right: 0;
}

aside.do {
  top: 0;
}

#graph-view-toggle {
  width: 100%;
  background: none;
  border: 1px solid white;
  color: white;
  padding: 1rem;
  font-size: large;
  cursor: pointer;
  text-align: right;
}

#graph-view-toggle:not(.visible)::after {
  content: "🍄 see graph!";
}

#graph-view-toggle.visible::after {
  content: "🪞 hide graph";
}

#graph-view-aside:not(.visible) {
  display: none;
}

#graph-view-aside.visible {
  position: relative;
  max-width: initial;
  min-width: calc(100% - 2px);
  max-height: inherit;
  display: block;
  border: 1px solid white;
  padding-bottom: 2rem;
}

#graph-view-aside svg.graph {
  max-height: 70%;
  margin: 0 auto;
  display: block;
  width: 50%;
  padding: 5rem;
  overflow: initial;
  height: 100%;
}

#graph-view-aside svg.graph circle[stroke="#551a8b"] {
  stroke-width: 3px;
}

#graph-view-aside svg.graph circle:not([stroke="#551a8b"]):not([stroke="#777"]):hover {
  stroke-width: 3px;
  cursor: pointer;
}

#blogposts label {
  cursor: pointer;
  text-decoration: underline;
}