@import url("https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap");

:root {
  color-scheme: dark;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 18px;
  line-height: 22px;
  background: #000;
  color: #fff;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  display: flex;
  min-height: 100vh;
  padding: 20px 0;
  background: #000;
  color: #fff;
  text-align: center;
}

a { color: #fff; text-decoration: none; }

#container {
  width: 90%;
  margin: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
}

header h1 {
  margin: 2vh;
  font-size: 32px;
  font-weight: normal;
  line-height: 60px;
  text-align: left;
}

header .offset-title { margin-left: 10px; margin-right: 0; }

header .back {
  display: block;
  height: 100%;
  margin-left: -80px;
  padding: 0 22px;
  text-decoration: none;
}

header .back svg { height: 28px; }

main {
  margin: 0 auto;
  font-size: 18px;
}

main h3 {
  margin: 0;
  font-size: 18px;
  font-weight: normal;
  line-height: 240%;
  text-decoration: underline;
}

main p { line-height: 240%; }

main#nav ul { margin: 0; padding: 0; }
main#nav li { margin-bottom: 2vh; list-style: none; }
main#nav li:last-of-type { margin-bottom: 0; }
main#nav a:hover,
main#nav a:focus-visible { font-weight: bold; }

main#contact p { margin: 0; }
main#contact div:last-of-type { margin-top: 5vh; }

main#book { max-width: 700px; }
main#book a { color: #4aa4ff; text-decoration: underline; }
main#book a:hover,
main#book a:focus-visible { font-weight: bold; }

.home #container,
.page #container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home section img { width: 100%; max-width: 420px; }
.home h1 { margin: 2vh 0; line-height: initial; }

.single-book #container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-book .gallery {
  display: flex;
  width: 50%;
  align-items: center;
  justify-content: center;
}

.single-book .book-details { flex: 1; }
.single-book header h1 { max-width: 70%; text-align: center; }

#images { width: 100%; }

#preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

#preview img,
#preview video {
  display: block;
  max-width: 75%;
  max-height: 750px;
  margin: auto;
}
.not-found main { margin: auto; }

@media only screen and (max-width: 440px) {
  header h1 { font-size: 18px; line-height: 32px; }
  header .title-spacer { min-width: 62px; }
  .single-book header .back,
  .syndication-page header .back { margin-left: 0; }
  header .back svg { height: 18px; }
  .single-book header { margin-top: 2.5vh; }
}

@media only screen and (max-width: 1024px) {
  .single-book .gallery { width: 100%; }
  .single-book #container,
  .home #container { display: block; }
}
