/* global */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

time {
  color: gray;
  margin-left: 1rem;
  min-width: 5rem;
}

#wrapper {
  background-color: #fafafa;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  padding: 1rem;
  word-break: break-word;

  background-color: #fff;
  color: #080808;
}

.link {
  color: #aa0000;
  text-decoration: underline;
}

.paginator {
  align-items: flex-end;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 2rem;
}

::-webkit-scrollbar {
  background-color: #fafafa;
  height: 8px;
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: #aaaaaa;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #888888;
}

/* header */

#header {
  align-items: center;
  display: flex;
  flex-direction: column;
}

#header > h1 {
  text-align: center;
}

@media screen and (min-width: 768px) {
  #header > h1 {
    font-size: 2.8rem;
  }
}

#header > nav {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  max-width: 768px;
  width: 100%;
}

#header > nav > span > a {
  font-size: 1.2rem;
}

/* main */

#main {
  align-self: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  max-width: 768px;
  padding: 2rem 0;
  width: calc(100% - 2rem);
}

/* footer */

#footer {
  align-items: center;
  display: flex;
  font-size: 0.9rem;
  flex-direction: column;
}

#footer > .footnote {
  text-align: center;
}
