@import url('https://fonts.cdnfonts.com/css/bookerly');
@import url('https://fonts.googleapis.com/css2?family=Fira+Mono&family=Alex+Brush&family=Akshar&family=Alan+Sans:wght@300..900&display=swap');

body {
  background: url(./theme/planes.png);
  padding: 1em;
  background-color: white;
  font-family: Bookerly, Geneva, sans-serif;
  color: #454344;
  margin: 0;
  text-align: center;
  min-height: 100%;
  font-size: 1.5em;
  font-weight: 300;
}
body:has(article) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 1) 60em, rgba(255, 255, 255, 1) calc(100% - 60em), rgba(255, 255, 255, 0) 100%), url(./theme/planes.png);
}
aside {
  width: 40%;
  float: right;
  margin: 1em;
  line-height: 1.5em;
}
cite.initials {
  font-family: "Alex Brush", cursive;
  font-size: 1.5em;
}
pre, code {
  font-family: "Fira Mono";
  tab-size: 2;
  transition: all .5s ease;
  overflow: hidden !important;
}
pre code {
  border-radius: 7px;
}
header,
h1,h2,h3,h4,h5,h6 {
  font-family: "Alan Sans";
  padding: 0;
  top: 0;
}
h1,h2,h3,h4,h5,h6 {
  /*position: sticky;
  background-color: white;*/
  margin: 1em auto 5px;
  padding-top: 5px;
}
h1 {
  font-size: 2.2em;
}
h2 {
  font-size: 2.0em;
  text-decoration: underline;
}
h3 {
  font-size: 1.8em;
}
h4 {
  font-size: 1.6em;
}
h5 {
  font-size: 1.4em;
}
h6 {
  font-size: 1.2em;
}
p {
  line-height: 1.8em;
  margin: .5em auto;
}
nav {
  position: fixed;
  top: 5px;
  right: 10px;
  width: 5em;
  font-size: 1.5em;
  text-align: right;
}
nav a {
  text-decoration: none;
}
nav a.off {
  opacity: .5;
}
header {
  font-weight: bold;
  text-align: center;
  margin-bottom: 1em;
  margin-left: calc((50vw - 20em) * -1);
  width: 100vw;
}
header > * {
  margin: 0;
}
header > p {
  font-size: 1.4em;
  line-height: 1.2em;
}
article {
  max-width: 40em;
  padding: 0 1em 1em;
  text-align: left;
  margin: 0 auto;
}
article h1 {
  font-size: 2.2em;
}
article iframe {
  width: 100%;
  margin: 0 auto;
}
p {
  margin: 0 0 1em 0;
}
mark {
  background-color:  #d9b38c;
  background-color:  #e6ccb3;
}
blockquote {
  color: #36454f;
  font-size: 1.1em;
  font-family: "Alan Sans", Tahoma;
  border-radius: 7px;
}
blockquote :is(dl,dt,dd)  {
  margin: 0;
}
blockquote dt {
  margin: 0;
}
blockquote dd::before {
  content: "~ ";
}
article blockquote {
  padding: 1em;
  background-color: rgba(221, 221, 221, .5);
}
article blockquote cite {
  white-space: nowrap;
  margin-left: .5em;
  color: #444;
  font-size: 1.1em;
}
article blockquote cite:before {
  content: "~ "
}
article blockquote p {
  margin: .2em 1em;
}
article blockquote.pull {
	display: block;
	float: right;
	padding: 1em;
	margin: .5em 0 .5em 1.1em;
  font-size: 1.4em;
	width: 11em;
	color: white;
  background-color: rgba(54, 69, 79, .6);
  border-radius: .5em;
}
article blockquote.pull:before {
  content: open-quote;
  font-weight: bold;
}
article blockquote.pull:after {
  content: close-quote;
  font-weight: bold;
}

article blockquote.pull.left {
  float: left;
	margin: .5em 1.1em .5em 0;
}
#sitename {
  color: #36454f;
  font-size: 4em;
  font-family: "Alex Brush", cursive;
  font-weight: normal;
  padding: 0;
  margin: 0;
  text-decoration: none;
}
h1#sitename {
  margin-bottom: .5em;
}
main {
  background: url(./theme/plane.png) no-repeat;
  background-position: 0 15px;
}
body#favs {
  font-size: 1em;
  background-image: url("/images/connected.jpg");
}
body#favs main {
  background: none;
}
.links {
  padding: 0;
  display: inline-block;
  width: 30em;
  list-style: none;
  display: block;
  margin: 2em auto;
  text-align: center;
  padding: 0;
}
.links li {
  transition: all .5s ease;
  opacity: .4;
}
.links.whereabouts li {
  opacity: 1;
}
.links li {
  position: relative;
  padding: 0;
  margin: 0;
  list-style: none;
  display: inline-block;
  padding: 5px;
  vertical-align: top;
}
.links a,
.links img {
  width: 5em;
  height: 5em;
  margin: 0;
  display: block;
}
.links li:hover {
  opacity: 1;
}
#shingle .links img {
  width: auto;
}
.links .emboss {
  position: absolute;
  bottom: 1.5em;
  left: 20px;
  z-index: 99;
  font-family: monospace;
  text-transform: uppercase;
  color: white;
  text-align: center;
  width: 4em;
  pointer-events: none;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
iframe + p {
  margin-top: 1.5em;
}
.links.whereabouts {
  width: 20em;
}
.links.whereabouts .emboss {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.links.whereabouts a:hover .emboss {
  opacity: 1;
}
a.back {
  text-decoration: none;
  font-size: 2em;
  position: fixed;
  bottom: 5px;
  right: 10px;
}
.footnotes {
  font-size: .8em;
  color: #36454f;
  line-height: 1.5em;
}
table {
  margin: .5em 0 1em;
  border-collapse: collapse;
}
code td, code th {
  border: solid 1px gray;
  padding: 5px;
}
article > img {
  float: right;
  padding: 0 0 1em 1em;
  width: 20em;
  object-fit: contain;
}
time {
  font-family: "Fira Mono";
}
article header > time {
  position: absolute;
  top: 1em;
  right: 1em;
  font-size: .8em;
}
article li {
  line-height: 1.8em;
  margin-bottom: .25em;
}
article section.footnotes li {
  line-height: 1em;
  margin-bottom: .2em;
}
article section.footnotes li p {
  margin: 0;
}
#blog header time {
  display: none;
}
.latest {
  margin: -1em auto 1em;
  text-align: center;
  color: #333366;
  font-size: .8em;
}

dt a, a[id] {
  font-weight: 500;
  text-decoration: underline;
  color: #836953;
}
dd {
  margin-inline-start: 1em;
  margin: 5px 0 1em 1em;
  line-height: 1.5em;
}

ul.posts {
  list-style: none;
  padding: 0;
  font-family: "Alan Sans";
}
ul.posts li {
  text-align: center;
  margin-bottom: .75em;
}
ul.posts li details p {
  font-size: .8em;
}
ul.tags {
  list-style: none;
  padding: 0;
  font-family: Akshar;
  font-size: .8em;
  line-height: 1em;
  font-weight: 100;
}
img[src*='#right'],
img[src*='#left'] {
  width: 20em;
  margin: 1em;
  border-radius: .5em;
}
img[src*='#right'] {
  float: right;
  margin-right: 0;
}
img[src*='#left'] {
  float: left;
  margin-left: 0;
}
img[src*='+sm'] {
  width: 10em;
  border-radius: .3em;
}
img[src*='+lg'] {
  width: 35em;
  border-radius: 1em;
}
ul.tags li {
  background-color: rgba(54, 69, 79, .8);
  color: white;
  border-radius: 5px;
  padding: .1em .4em;
  display: inline;
  margin-right: .3em;
  opacity: .8;
}
ul.tags li a:link,
ul.tags li a:visited {
  color: white;
  text-decoration: none;
}
ul.posts ul.tags {
  margin: 5px 0 1em 0;
  padding-left: 1em;
}
article header ul.tags {
  position: absolute;
  top: 1em;
  left: 1em;
}
article header ul.tags li {
  float: right;
  line-height: 1.5em;
}
header ul.tags:hover li {
  background-color: rgba(54, 69, 79, 1);
}
ul.posts li .tags {
  float: right;
  display: none;
}
ul.posts li p {
  font-size: .8em;
  color:#888;
  display: block;
  line-height: 1em;
}
sup {
  line-height: 1em;
}
article pre:hover {
  margin-left: -5em;
  margin-right: -5em;
}
#categories main p {
  text-align: center;
}
header time {
  display: none;
}
img[alt="The Story of Reality"],
img[alt="I Don't Have Enough Faith to Be an Atheist"] {
  max-height: 20em;
  max-width: 15em;
  margin-right: 2em;
  display: inline;
  vertical-align: top;
}
