* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body, table {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 20px;
  line-height: 1.4;
  color: #333;
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  font-weight: bold;
  line-height: 1.2;
  text-rendering: optimizeLegibility;
  clear: both;
}

h1 {
  font-size: 1.6em;
}

h2 {
  font-size: 1.3em;
}

h3 {
  font-size: 1em;
}

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

a:hover {
  text-decoration: underline;
}

li {
  margin: 0.5em 0;
}

form {
  margin: 30px 0;
}

table {
  margin: 20px 0 40px;
  border-collapse: collapse;
}

th, td {
  padding-bottom: 6px;
  padding-top: 6px;
  padding-right: 30px;
}

th {
  border-bottom: 1px solid #b3b3b3;
}

td {
  border-bottom: 1px solid #e6e6e6;
}

th:last-child, td:last-child {
  padding-right: 0;
}

input {
  font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  font-size: 1em;
  color: #333;
}

input[type="text"], input[type="email"], input[type="phone"] {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

input[type="submit"], input[type="button"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 1em;
  padding: 12px 48px;
  color: white;
  background-color: #841212;
  border: none;
  border-radius: 4px;
  margin: 20px 0;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #9b1b1b;
}

img {
  max-width: 100%;
}

figure, .figure {
  clear: both;
  margin: 40px auto;
  text-align: center;
}

figcaption, .figcaption {
  margin: 20px 0;
  text-align: center;
  font-style: italic;
  font-size: 0.9em;
}

p.figcaption {
  margin-top: -20px;
  margin-bottom: 40px;
}

figcaption .image-credit {
  margin-left: 10px;
}

figure.side {
  clear: right;
  float: right;
  margin: 0 -120px 0 40px;
  max-width: 360px;
}

figure.alt {
  display: none;
}

@media (max-width: 1080px) {
  figure.side {
    margin-right: calc((840px - 100vw)/2);
  }
}

@media (max-width: 840px) {
  figure.side {
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  figure.side {
    float: none;
    margin: 40px auto;
  }

  figure.only {
    display: none;
  }

  figure.alt {
    display: block;
  }
}

figure.wide {
  margin: 40px -120px;
}

figure.wide figcaption {
  margin-left: 20px;
  margin-right: 20px;
}

@media (max-width: 1040px) {
  figure.wide {
    margin: 40px calc((800px - 100vw)/2);
    width: 100vw;
  }
}

@media (max-width: 840px) {
  figure.wide {
    margin: 40px -20px;
  }
}

/* Taken from: https://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php */

.youtube {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  padding-top: 25px;
  height: 0;
  margin: 40px auto;
}

.youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.owid {
  margin: 20px auto;
}

.substack {
  height: 162px;
  width: 100%;
  max-width: 338px;
  border:1px solid #EEE;
}

blockquote {
  margin: 0;
  border-left: 3px solid #ccc;
  padding: 0 40px;
}

hr {
  clear: both;
  margin: 60px;
}

hr.no-clear {
  clear: none;
}

@media (max-width: 480px) {
  body, table {
    font-size: 18px;
  }

  th, td {
    padding-right: 20px;
  }

  blockquote {
    padding: 0 0 0 20px;
  }
}

twitter-widget.twitter-tweet-rendered {
  margin: 40px 0 !important;  /* we have to use !important because the Twitter rendering adds a style attribute */
}

.strikethrough {
  text-decoration: line-through;
}

.main-column {
  margin: auto;
  max-width: 840px;
  padding-left: 20px;
  padding-right: 20px;
}

.header {
  background-color: #841212;
  color: white;
}

.header-content {
  padding: 20px;
}

.header a {
  color: white;
}

.header .title {
  font-size: 1.4em;
}

.header .navigation {
  margin: 0;
  font-size: 0.8em;
}

.content {
  margin: 60px auto;
}

.next-prev {
  min-height: 30px;
  overflow: auto;
}

.next-prev .next {
  float: right;
  margin-left: 20px;
}

.next-prev .prev {
  float: left;
  margin-right: 20px;
}

@media (max-width: 480px) {
  .next-prev .next {
    float: none;
    margin: 0;
    display: block;
    text-align: right;
  }

  .next-prev .prev {
    float: none;
    margin: 0;
    display: block;
    text-align: left;
  }
}

p.image-credit {
  font-size: 0.75em;
}

.date {
  color: #9c9c9c;
}

.separator {
  margin: 0 8px;
}

.image-credit, .image-credit a {
  color: #b3b3b3;
}

p.affiliate-disclosure {
  margin-top: 60px;
  color: #b3b3b3;
}

.footer {
  clear: both;
  text-align: center;
  font-size: 0.7em;
  margin-top: 40px;
  padding: 20px;
}

.footer p, .footer a {
  color: #b3b3b3;
}

.book-image {
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

.table-container {
  overflow-x: scroll;
}

.asterisk {
  vertical-align: top;
}

.footnotes {
  margin-top: 100px;
  font-size: 0.8em;
}

sup {
  font-size: 0.6em;
}

.citation {
  font-size: 0.8em;
}

.subscribe-popup {
  position: fixed;
  right: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  min-width: 400px;
  margin: 30px;
  padding: 20px 20px 15px 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0px 5px 30px 5px rgba(0,0,0,0.2);
  transition: opacity 400ms;
}

.subscribe-popup > :first-child {
  margin-top: 0;
}

.subscribe-popup > :last-child {
  margin-bottom: 0;
}

@media not print {  /* don't try to print the popup */
  .subscribe-popup.visible {
    opacity: 1;
    visibility: visible;
  }
}

.subscribe-popup h3 {
  margin-bottom: 0;
}

.subscribe-popup .close {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 16px;
  color: #9c9c9c;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

.subscribe-popup .substack {
  height: 160px;
  max-width: none;
  border: none;
}

.subscribe-popup .social-link-block {
  margin-top: 0;
}

.subscribe-popup .social-link:hover {
  text-decoration: none;
}

.subscribe-popup .social-logo {
  width: 40px;
  margin-right: 8px;
}

.subscribe-popup .dont-show {
  position: absolute;
  right: 20px;
  bottom: 20px;
  margin: 0;
  font-size: 14px;
  color: #9c9c9c;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 767px), (max-height: 540px) {
  .subscribe-popup {
    margin: 0;
    border-radius: 0;
    width: 100%;
    min-width: 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
  }
}

@media (max-width: 375px) {
  .subscribe-popup .social-logo {
    width: 32px;
    margin-right: 4px;
  }
}

.home .header {
  text-align: center;
  background-color: #841212;
  color: white;
  margin: 0;
  padding: 0 20px 60px;
}

.home .header img {
  max-height: 360px;
}

.home .header .title {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 2.7em;
}

.home .youtube {
  margin-top: 20px;
}

.recent .post {
  margin: 60px 0;
}

.post-feature {
  clear: both;
  margin: 30px 0;
  min-height: 106.666px;
}

.post-feature .post-image {
  float: left;
  width: 160px;
  height: 106.666px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0 24px 12px 0;
}

.post-feature .title {
  clear: none;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1em;
}

.post-feature .description {
  margin-top: 0;
}

@media (max-width: 480px) {
  .post-feature .post-image {
    float: none;
    width: 100%;
    height: initial;
    margin-right: 0;
  }
}

.post .title {
  margin-bottom: 5px;
}

.post .subtitle {
  margin: 5px 0;
  color: #8a8a8a;
}

.post .date {
  margin-top: 5px;
  font-size: 0.8em;
}

.post .relevant-books-header {
  margin-top: 48px;
}

.post .comment-header {
  margin-top: 60px;
}

.post .discuss {
  color: #9c9c9c;
}

.post .discuss a {
  text-decoration: underline;
  color: #9c9c9c;
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-list .post-item {
  margin: 24px 0;
}

.book .subtitle {
  margin-top: -16px;
}

.book .author {
  font-size: 1.3em;
  color: #9c9c9c;
}

.book .book-image {
  float: left;
  max-width: 220px;
  margin: 0 40px 20px 0;
}

@media (max-width: 560px) {
  .book .book-image {
    float: none;
  }
}

.book-item {
  clear: both;
  margin: 30px 0 40px;
}

.book-item .title {
  clear: none;
  margin-top: 0;
  font-size: 1.15em;
}

.book-item .author {
  margin-top: -16px;
  color: #9c9c9c;
}

.book-item .book-image {
  float: left;
  width: 110px;
  margin: 0 24px 12px 0;
}

.post .subscribe, .post .support {
  margin: 60px auto;
  text-align: center;
}

.post .subscribe form {
  margin: 0;
  display: inline-block;
}

.post .subscribe form * {
  margin: 10px 0;
}

.post .subscribe form input.email {
  width: 280px;
  max-width: 100%;
  padding: 4px 8px;
}

.post .subscribe form input.button {
  padding: 5px 17px;
}

.post .subscribe.hidden {
  display: none;
}

.interview {
  margin: 40px 0 80px;
}

.interview .name {
  margin-bottom: 10px;
}

.interview .date {
  margin-top: 10px;
}
