/* Deliberately boring. Works in roughly any browser since 2001. */

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05em;
  line-height: 1.6;
  color: #222;
  background: #fffef9;
  max-width: 34em;
  margin: 2em auto;
  padding: 0 1em;
}

/* Roomier column for gallery-style pages (opt in with `wide: true`). */
body.wide {
  max-width: 48em;
}

h1 {
  font-size: 1.5em;
  font-weight: normal;
  margin-bottom: 0.25em;
}

h2 {
  font-size: 1.1em;
  margin-top: 2em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.2em;
}

a {
  color: #1a4a8a;
}

a:visited {
  color: #6a4a8a;
}

ul {
  padding-left: 1.2em;
}

li {
  margin-bottom: 0.4em;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin-top: 3em;
}

.footer {
  font-size: 0.85em;
  color: #777;
}

.note {
  color: #777;
  font-style: italic;
}

/* Top navigation */
.nav {
  font-size: 0.9em;
  margin: 0 0 2em 0;
}

/* Date/permalink lines under a title */
.meta {
  color: #777;
  font-size: 0.85em;
}

article .meta {
  margin-top: -0.5em;
}

/* Index lists of posts and links */
.postlist,
.linklist {
  list-style: none;
  padding-left: 0;
}

.postlist li,
.linklist li {
  margin-bottom: 1em;
}

.postlist .meta,
.linklist .meta {
  display: block;
}

.linknote {
  margin-top: 0.2em;
}

.linknote p {
  margin: 0.2em 0;
}

.more,
.backlink {
  font-size: 0.9em;
}

/* ---------------------------------------------------------------------------
   Audiobook tracklist
   --------------------------------------------------------------------------- */

/* Header block */
.audiobook-head {
  text-align: center;
  margin-bottom: 2em;
}

.audiobook-cover {
  width: 16em;
  max-width: 72%;
  height: auto;
  border: 1px solid #ddd;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

.audiobook-kicker {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8em;
  color: #999;
  margin: 1em 0 0.1em;
}

.audiobook-title {
  margin: 0 0 0.3em;
}

.audiobook-byline {
  color: #555;
  font-style: italic;
  line-height: 1.45;
  margin: 0.2em 0;
}

.audiobook-runtime {
  color: #999;
  font-size: 0.85em;
  margin-top: 0.3em;
}

.audiobook-intro {
  margin-bottom: 1em;
}

/* Download / subscribe block */
.audiobook-formats {
  margin: 0 0 2.5em;
  padding: 1.2em 1.3em;
  background: #faf8f0;
  border: 1px solid #eadfc4;
  border-radius: 4px;
}

.audiobook-formats .book-actions {
  margin-bottom: 0.8em;
}

.audiobook-note {
  font-size: 0.85em;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.feed-url {
  font-family: Menlo, Consolas, monospace;
  font-size: 0.92em;
  word-break: break-all;
  color: #444;
}

.audiobook-stores {
  margin: 1em 0 0;
  padding-top: 0.9em;
  border-top: 1px solid #eadfc4;
  font-size: 0.85em;
  color: #666;
}

/* Track list */
.tracklist {
  list-style: none;
  padding-left: 0;
}

.track {
  margin: 0;
  padding: 0.9em 0 1em;
  border-top: 1px solid #eee;
}

.track-head {
  overflow: hidden; /* contain the floated duration */
  margin-bottom: 0.45em;
}

.track-dur {
  float: right;
  margin-left: 1em;
  color: #999;
  font-size: 0.9em;
}

.track-kind {
  color: #999;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.35em;
}

.track audio {
  width: 100%;
  max-width: 32em;
  display: block;
}

/* ---------------------------------------------------------------------------
   Video gallery — deliberately stupid
   --------------------------------------------------------------------------- */

.gallery {
  list-style: none;
  padding-left: 0;
  text-align: center; /* centres the wrapping row of thumbnails */
}

.video {
  display: inline-block;
  vertical-align: top;
  width: 20em;
  max-width: 100%;
  margin: 0 0.6em 1.8em;
  text-align: left;
}

/* The thumbnail/title link only — not links inside a description. */
.video > a {
  display: block;
  text-decoration: none;
}

.video-thumb-wrap {
  position: relative;
  display: block;
}

.video-thumb {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ddd;
}

/* Play badge over the thumbnail. */
.play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.4em;
  height: 2.4em;
  margin: -1.2em 0 0 -1.2em;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  text-align: center;
  line-height: 2.4em;
}

.play:after {
  content: "\25B6"; /* ▶ */
  color: #fff;
  font-size: 1em;
  padding-left: 0.15em; /* nudge the triangle to optical centre */
}

.video > a:hover .play {
  background: rgba(26, 74, 138, 0.8);
}

.video-title {
  display: block;
  margin-top: 0.45em;
  color: #1a4a8a;
  line-height: 1.3;
}

.video > a:hover .video-title {
  text-decoration: underline;
}

.video-note {
  display: block;
  font-size: 0.8em;
  color: #999;
  margin-top: 0.15em;
}

.video-desc {
  font-size: 0.85em;
  color: #555;
  line-height: 1.4;
  margin: 0.35em 0 0;
  text-wrap: pretty; /* modern browsers avoid orphans; older ones just ignore it */
}

/* ---------------------------------------------------------------------------
   Books
   --------------------------------------------------------------------------- */

/* Buttons — plain bordered links, no fills to fight the page. */
.btn {
  display: inline-block;
  padding: 0.5em 1em;
  margin: 0 0.3em 0.6em 0;
  border: 1px solid #1a4a8a;
  border-radius: 3px;
  color: #1a4a8a;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95em;
}

.btn:visited {
  color: #1a4a8a;
}

.btn:hover {
  background: #1a4a8a;
  color: #fffef9;
}

.btn-primary {
  background: #1a4a8a;
  color: #fffef9;
}

.btn-primary:visited {
  color: #fffef9;
}

.btn-primary:hover {
  background: #14396b;
}

/* Book landing page */
.book {
  text-align: center;
}

.book-cover {
  max-width: 15em;
  width: 60%;
  height: auto;
  border: 1px solid #ddd;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

.book-title {
  margin-bottom: 0.1em;
}

.book-byline {
  color: #777;
  font-style: italic;
  margin-top: 0;
}

.book-synopsis {
  text-align: left;
  margin: 1.5em 0 2em;
}

.book-actions {
  margin-bottom: 0.5em;
}

/* Books index list */
.booklist {
  list-style: none;
  padding-left: 0;
}

.booklist li {
  overflow: hidden; /* contain the floated cover */
  margin-bottom: 2em;
}

.booklist-cover {
  float: left;
  width: 6.5em;
  margin: 0 1.2em 0.5em 0;
}

.booklist-cover img {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
}

.booklist-detail h2 {
  margin-top: 0;
  border: none;
}

/* ---------------------------------------------------------------------------
   Reading a chapter
   --------------------------------------------------------------------------- */

.chapter-eyebrow {
  font-size: 0.8em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 2.5em;
}

.chapter-eyebrow a {
  color: #999;
  text-decoration: none;
}

.chapter-head {
  text-align: center;
  margin-bottom: 2.5em;
}

.chapter-number {
  font-size: 0.85em;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.2em;
}

.chapter-title {
  font-size: 1.4em;
  font-weight: normal;
  margin: 0;
}

/* The prose itself — a touch more air than the rest of the site. */
.prose {
  line-height: 1.7;
}

.prose p {
  margin: 0 0 1em;
}

/* Indented paragraphs, book-style, except the first of a section. */
.prose p + p {
  margin-top: 0;
  text-indent: 1.3em;
}

.prose p.first,
.prose p.dateline,
.prose .scene + p {
  text-indent: 0;
}

/* Small-caps opening phrase. */
.prose .opening {
  font-variant: small-caps;
  letter-spacing: 0.02em;
}

/* Right-aligned date/place lines that open some chapters. */
.prose p.dateline {
  text-align: right;
  color: #555;
  margin-bottom: 0.1em;
}

/* Scene break. */
.prose hr.scene {
  border: none;
  text-align: center;
  margin: 1.8em 0;
}

.prose hr.scene:after {
  content: "\2766"; /* floral heart ornament */
  color: #aaa;
  font-size: 1.1em;
}

/* Previous / next chapter footer. */
.chapter-nav {
  overflow: hidden;
  margin-top: 3em;
  padding-top: 1.2em;
  border-top: 1px solid #ddd;
  font-size: 0.9em;
}

.chapter-prev,
.chapter-next {
  display: block;
  width: 48%;
  text-decoration: none;
}

.chapter-prev {
  float: left;
}

.chapter-next {
  float: right;
  text-align: right;
}

.chapter-nav .dir {
  display: block;
  color: #999;
  font-size: 0.85em;
}

.chapter-nav .label {
  display: block;
}
