@font-face {
  font-family: "Gill Sans";
  src:
    url("../fonts/GillSans.woff2") format("woff2"),
    url("../fonts/GillSans.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gill Sans";
  src:
    url("../fonts/GillSans-Light.woff2") format("woff2"),
    url("../fonts/GillSans-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Reset Styles */
/* Adapted from Blueprint CSS (http://www.blueprintcss.org/) */
html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
code,
del,
dfn,
img,
q,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}
html {
  font-size: 100%;
  line-height: 1.5;
  background-color: #000066;
}
body {
  line-height: 1.5;
  background-color: #fff;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
table {
  border-collapse: separate;
  border-spacing: 0;
}
caption,
th,
td {
  text-align: left;
  font-weight: normal;
}
table,
td,
th {
  vertical-align: middle;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
}
blockquote,
q {
  quotes: "" "";
}
a img {
  border: none;
}

/* Utilities */
/* Once upon a time I thought I would be clever and use the name contain-float
 * instead of the standard, clearfix. That was a mistake, but I'm still using
 * it so the class name is aliased for now */
/* New clearfix from http://perishablepress.com/press/2009/12/06/new-clearfix-hack/ */
.clearfix:after,
.contain-floats:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}
* html .clearfix,
* html .contain-floats {
  zoom: 1;
} /* IE6 */
*:first-child + html .clearfix,
*:first-child + html .contain-floats {
  zoom: 1;
} /* IE7 */

/* Typography and Colors */
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
div,
body {
  font-family: Georgia, sans-serif;
  color: #333;
}

@font-face {
  font-family: "Inconsolata";
  src: url("../fonts/Inconsolata-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inconsolata";
  src: url("../fonts/Inconsolata-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

code {
  font-family: "Inconsolata", monospace;
}

.blog-body code,
.comment-body code {
  background-color: #fdf8d4;
  border: 1px solid #e8d98a;
  border-radius: 3px;
  padding: 1px 4px;
}

/* Shiki wraps highlighted code in <pre><code> and the
.blog-body code rule above looks AWFUL if we don't turn it off
in the pre blocks */
.blog-body pre code,
.comment-body pre code {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: inherit;
}

#header .tagline {
  font-size: 0.625rem;
}

.blog-entry h2,
#body.wide h2 {
  font-size: 1.75rem;
  font-weight: bold;
  text-wrap: pretty;
}

.blog-details,
.blog-details h3 {
  font-size: 0.75rem;
  line-height: 1.3125rem;
  text-align: right;
  font-weight: bold;
}

.blog-body h3,
.blog-comments h3 {
  font-size: 1.3125rem;
  font-weight: bold;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.blog-body h3:first-child,
.blog-comments h3:first-child {
  margin-top: 0;
}

.comment-details h3 {
  font-weight: normal;
}

.blog-entry p {
  font-size: 1rem;
  line-height: 1.6;
}

.blog-entry ul,
ol {
  margin-left: 36px;
  margin-right: 36px;
  margin-bottom: 10px;
}

.blog-entry li {
  font-size: 1rem;
  line-height: 1.6;
  list-style-position: inside;
}

.blog-entry blockquote,
.comment-body blockquote {
  font-size: 1rem;
  line-height: 1.6;
  margin: 10px 36px 10px 36px;
  border-left: 1px solid #666;
  padding-left: 5px;
}

.blog-entry blockquote ul,
.blog-entry blockquote ol {
  margin-left: 18px;
  margin-right: 0;
}

.blog-entry blockquote li {
  list-style-position: outside;
  padding-left: 0.25em;
}

.blog-toolbar li {
  font-size: 0.875rem;
}

.photo-caption {
  display: block;
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.4;
  color: #666;
}

/* Check support for child selector in IE
 * If not supported, .comment-details h3 should be styled #333 */
.blog-details,
.blog-details h3,
.blog-details a:link,
.blog-body h3,
.blog-body h4,
.blog-comments > h3,
#footer h2,
#month-archives h3 {
  /* Brown */
  color: #5a3c0c;
}

.blog-details,
#search,
#footer-outer,
#month-archives h3,
table.data th {
  /* Light Yellow */
  background-color: #fff9bf;
}

#sidebar {
  line-height: 1.3;
}

#sidebar ul {
  list-style-type: disc;
  padding-left: 16px;
  margin-bottom: 4px;
}

#sidebar ul li,
#sidebar ul li a {
  font-size: 0.75rem;
  line-height: 1.4;
  margin-bottom: 3px;
}

#sidebar .sidebar-item p {
  font-size: 0.6875rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 12px;
  margin-bottom: 2px;
}

#sidebar h2 {
  font-size: 0.875rem;
  font-weight: bold;
}

#sidebar p {
  font-size: 0.75rem;
}

#sidebar .sidebar-more {
  text-transform: uppercase;
}

#twitter p {
  margin-bottom: 10px;
}

#delicious-links li a {
  font-size: 0.875rem;
}

#delicious-links li p {
  padding-left: 12px;
}

#footer {
  font-size: 0.75rem;
}

#footer h2 {
  font-size: 0.875rem;
  font-weight: bold;
}

.current-book-title {
  font-size: 0.875rem;
  font-style: italic;
  text-align: center;
}

.current-author {
  font-size: 0.75rem;
  text-align: center;
}

.book-title {
  font-style: italic;
}

#quotation {
  font-size: 0.875rem;
}

.quote-speaker {
  text-align: right;
}

.quote-attribution {
  font-size: 0.75rem;
  font-style: italic;
}

/* Links */
/* Links are underlined except for headline and menu links */
a:link {
  text-decoration: underline;
  color: #000;
}

a:visited {
  color: #666;
}

a:hover {
  background-color: #fff9bf;
  text-decoration: none;
}

.blog-entry h2,
h2 a:link,
h2 a:visited,
#body.wide h2 {
  text-decoration: none;
  /* Orange */
  color: #ff7f00;
}

.blog-toolbar li a {
  text-decoration: none;
}

#header a:hover {
  background-color: transparent;
}

ul#menubar li a:hover {
  background-color: #006; /* Avoids hover background in IE 6/7 */
}

/* White link highlighting when link is on yellow background */
#footer a:hover,
.comment a:hover,
.blog-details a:hover {
  background-color: #fff;
}

/* Lists */
ul.hanging li {
  text-indent: -20px;
  padding-left: 20px;
}

#delicious-links {
  margin-top: -3px; /* Fixes optical illustion, I think */
  list-style-type: none;
  font-size: 0.75rem;
}

#delicious-links li {
  margin-bottom: 10px;
}

#reading ul {
  list-style-type: none;
}

/* Tables */
table.data {
  font-size: 0.875rem;
  margin: 20px auto 20px auto;
}
table.data th {
  padding: 2px 12px 2px 12px;
}
table.data td {
  padding: 2px 20px 2px 12px;
}

table.data th {
  font-size: 0.75rem;
  font-weight: bold;
  border-bottom: 1px solid #666;
  border-right: 5px solid #fff;
}
table.numeric td,
table td.numeric {
  text-align: right;
}
/* Layout */
#header-outer {
  background: url("../images/header-background.png") repeat-x #000066;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#header {
  position: relative;
  width: 962px;
  height: 108px;
  margin: 0 auto;
}

#header h1 a {
  position: absolute;
  top: 26px;
  width: 908px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  padding-left: 54px;
  height: 40px;
  display: block;
  font-family: "Gill Sans", sans-serif;
  font-weight: normal;
  font-size: 2.25rem;
  line-height: 40px;
  color: white;
  letter-spacing: -0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

#header .tagline {
  font-family: "Gill Sans", sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  line-height: 1;
  text-transform: uppercase;
  color: white;
  left: 54px;
  position: absolute;
  top: 13px;
}

#header ul {
  list-style-type: none;
  position: absolute;
  top: 27px;
  right: 54px;
  width: auto;
  height: 40px;
}

#header ul li {
  display: inline;
  height: 40px;
}

#header ul li a {
  margin-left: 20px;
  float: left;
  height: 40px;
  overflow: visible;
  color: white;
  font-family: "Gill Sans", sans-serif;
  font-weight: normal;
  font-size: 1.125rem;
  line-height: 40px;
  text-decoration: none;
  text-transform: uppercase;
  width: auto;
}

#menubar-blog a,
#menubar-til a,
#menubar-projects a,
#menubar-gallery a,
#menubar-about a {
  width: auto;
  background-image: none;
}

/* Icon-only link, so it needs its own vertical centering; the text links
   above rely on line-height instead. Double-ID selector so this still wins
   over the "#header ul li a" mobile override below. */
#header #menubar-rss a {
  display: inline-flex;
  align-items: center;
}

#menubar-rss svg {
  width: 18px;
  height: 18px;
}

#page-outer {
  background-color: #fff;
  flex: 1;
  padding-bottom: 30px;
}

#page {
  padding: 15px 0 0 0;
  width: 962px;
  margin: 0 auto;
}

#body {
  float: left;
  width: 692px;
}

#body.wide {
  /* For pages without a sidebar */
  float: right; /* IE 6 shifts the main content left without float: right */
  width: 962px;
}

/* Inset */
div.blog-body p,
.blog-details,
.blog-body h3,
.blog-body h4,
.photo-caption,
.blog-comments h3,
.sidebar-item h2,
#sidebar p {
  padding-left: 5px;
  padding-right: 5px;
}

/* Blog Layout */
.blog-entry {
  margin-bottom: 60px;
}

.til-badge {
  font-size: 0.7em;
  font-weight: bold;
  background: #e8f4e8;
  color: #2a6e2a;
  padding: 2px 6px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 8px;
  text-decoration: none;
}

.blog-entry h2,
#body.wide h2 {
  padding-left: 167px; /* 162px +5px inset */
  border-bottom: 1px solid #666;
}

.blog-details {
  float: left;
  width: 142px;
  padding-top: 10px;
  padding-bottom: 12px;
}

.blog-body {
  float: right;
  width: 530px;
  padding-top: 10px;
}

.blog-body p,
.comment-body p {
  margin-top: 0px;
  margin-bottom: 10px;
}

.blog-body pre {
  margin-bottom: 10px;
  padding: 0.5em 1em 0.5em 1em;
}

.blog-body img {
  max-width: 500px;
  height: auto;
}

.blog-entry-meta {
  float: left;
  clear: left;
  width: 142px;
  text-align: right;
  padding: 6px 5px 0 0;
}

.category-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: bold;
  background: #e8f4e8;
  color: #2a6e2a;
  padding: 2px 6px;
  border-radius: 3px;
}

.blog-body div.section-break {
  background: url("../images/hr.png") no-repeat center;
  margin: 20px auto 22px auto;
  width: 314px;
  height: 10px;
}

.blog-body div.section-break hr {
  display: none;
}

.blog-toolbar {
  clear: both;
  margin-left: 486px;
}

.blog-toolbar ul {
  clear: both;
  list-style-type: none;
  margin-right: 0;
}

.blog-toolbar li {
  display: block;
  width: 136px;
  margin-bottom: 5px;
}

.blog-toolbar li a {
  line-height: 0.875rem;
  padding-left: 16px;
  background: url("../images/blog-toolbar-2.png") no-repeat;
}

li.continue-reading a {
  background-position: 0 2px;
}
.continue-reading a:hover {
  background-position: 0 -25px;
}
li.leave-comment a {
  background-position: -200px 2px;
}
.leave-comment a:hover {
  background-position: -200px -25px;
}
li.permalink a {
  background-position: -400px 2px;
}
.permalink a:hover {
  background-position: -400px -25px;
}

.blog-comments {
  float: right;
  width: 530px;
  padding-top: 10px;
}

.comment {
  margin-bottom: 30px;
}

.comment-body {
  padding: 15px;
  padding-top: 10px;
  background: #fff9bf url("../images/comment-arrow-5.png") no-repeat -20px bottom;
  /*background: #fff9bf url(/images/comment-arrow-4.png) no-repeat -48px bottom;*/ /* Alternate arrow style */
}

.comment-details {
  padding-left: 54px;
}

.comment-details h3 {
  padding-left: 0;
  display: inline;
  font-size: 0.875rem;
}

#comments-form {
}

#comment-text {
  width: 500px;
  height: 150px;
  margin-bottom: 15px;
  font-family: Georgia, sans-serif;
  font-size: 1rem;
}

#comments-form label {
  clear: left;
  float: left;
  display: block;
  padding-left: 5px;
  width: 60px;
}

ul.entry-navigation {
  list-style-type: none;
}

.entry-navigation li.previous-entry {
  margin-right: 55px;
}

.entry-navigation li.next-entry {
  text-align: right;
  margin-left: 54px;
}

/* Blog accouterments */
div.photo.vertical,
div.photo.horizontal {
  width: 260px;
  margin-top: 4px; /* To align photos with paragraph text better */
  margin-left: 10px;
  margin-bottom: 10px;
  float: right;
  clear: right;
}

div.photo.highlight {
  margin: 16px 0 16px 0;
}

div.photo a img,
div.photo img,
div.photo object {
  display: block;
  border: 1px solid #666;
  margin: 0 auto;
}

div.photo img.no-border {
  border: 0;
}

div.photo .photo-caption {
  margin-top: 10px;
}

img.no-border img,
div.no-border a img {
  border: 0px;
}

.photo-credit,
.photo-credit a {
  display: inline;
}

/* Images (see Media component) */
.figure {
  margin: 16px 0;
}

.figure img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.figure-bordered img {
  border: 1px solid #666;
}

.figure figcaption {
  display: block;
  margin-top: 10px;
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.4;
  color: #666;
  padding-left: 5px;
  padding-right: 5px;
}

.figure figcaption p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.book-detail {
  float: right;
  width: 206px;
  margin-top: 4px; /* To align photos with paragraph text better */
  margin-left: 10px;
}

div.rating {
  width: 121px;
  padding-top: 27px;
  height: 0px;
  overflow: hidden;
  margin: 0 auto;
  background: url("../images/book-rating.png") no-repeat 0 6px;
}

.book-detail img {
  display: block;
  margin: 0 auto;
}

.book-detail a img {
  border: 1px solid #666;
}

.book-detail .book-rating {
  margin: 6px auto 6px auto;
}

.book-detail h3 a {
  font-size: 0.75rem;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
}

.book-detail h4 {
  font-size: 0.75rem;
}

/* Sidebar Layout */
#sidebar {
  float: right;
  width: 260px;
}

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

.sidebar-item h2 {
  margin-bottom: 5px;
}

#search {
  margin-left: 5px;
  padding: 6px;
  margin-top: 0px;
  text-align: right;
}

#search-field {
  float: left;
  width: 170px;
}

p.more {
  display: block;
  text-align: right;
  margin-right: 5px;
  text-transform: uppercase;
}

p.more a {
  text-decoration: none;
  color: #666 !important;
  font-size: 0.625rem;
  padding: 3px;
}

/* Blog Archives */
#blog-archives select {
  margin-left: 5px;
  width: 201px;
}

/* Footer Layout*/
#footer-outer {
  clear: both;
  /*  margin-top: 30px;*/
  background: url("../images/footer_shadow.png") repeat-x #fff9bf;
  padding: 26px 0 26px 0;
}

#footer {
  position: relative;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
  width: 874px;
  margin: 0 auto;
  padding: 0px 44px 16px 44px;
}

#footer.mini {
  height: 0px;
  padding-bottom: 0px;
  border-bottom: none;
}

#about,
#content-guide,
#reading,
#quotation {
  float: left;
  width: 206px;
  padding-left: 10px;
}

/* Previously included #quotation when display was hidden */
#footer h2 {
  margin-top: 12px;
}

#content-guide ul {
  list-style-type: none;
  /*font-size: 12px;*/
}

#reading img {
  display: block;
  margin: 8px auto;
}

p.creative-commons {
  margin-top: 20px;
  font-size: 0.75rem;
  text-align: center;
}

/* Quote Controls */
/*#quotation h2 {
	display: none;
}*/

#quotation ul {
  list-style-type: none;
}

#previous-quote {
  float: left;
  width: 83px;
  padding-left: 20px;
  background: url("../images/previous.png") no-repeat left center;
}

#next-quote {
  float: right;
  width: 83px;
  text-align: right;
  padding-right: 20px;
  background: url("../images/continue.png") no-repeat right center;
}

/* Errors */
#error {
  text-align: center;
}

#error h1 {
  font-size: 6rem;
  letter-spacing: -6px;
}

/* Grid checking */
body.grid {
  background: #fff url("../images/grid-gray.png") repeat-y center top;
}

body.grid #page-outer {
  background: transparent;
}

/* TIL Pages */
.til-browse-header {
  padding: 0 0 0.5rem 54px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.til-browse-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  font-family: "Gill Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a3c0c;
}

.til-browse-header a {
  color: #5a3c0c;
  text-decoration: none;
}

.til-sep {
  width: 3px;
  height: 3px;
  flex: none;
  border-radius: 50%;
  background-color: #5a3c0c;
}

.til-intro {
  margin-bottom: 1.5rem;
}

.til-intro p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.til-section {
  margin-bottom: 0.25rem;
}

.til-label {
  float: left;
  width: 142px;
  padding-top: 8px;
  padding-right: 5px;
  text-align: right;
  color: #5a3c0c;
  font-size: 0.9375rem;
  font-weight: bold;
  text-transform: none;
}

.til-entries {
  float: right;
  width: 530px;
  padding-top: 6px;
}

.til-entries ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  list-style: disc;
}

.til-entries li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.125rem;
}

.entry-date {
  color: #666;
  font-size: 0.875rem;
  margin-left: 0.3em;
}

/* Mobile fallback: the layout above uses fixed pixel widths and floats throughout.
 * Rather than retrofitting full responsiveness, this media query unsticks the
 * worst breakage (horizontal overflow, half-yellow post bodies) by collapsing
 * the floated columns into a single stacked column on small viewports. */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  #header,
  #page,
  #footer {
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
  }
  #header {
    height: auto;
    padding: 8px 0 0;
  }
  #header h1 a,
  #header .tagline,
  #header ul {
    position: static;
  }
  #header .tagline {
    display: none;
  }

  #header h1 a {
    width: auto;
    height: auto;
    padding: 8px 16px;
    font-size: 1.5rem;
    line-height: 1.2;
  }
  #header ul {
    width: auto;
    height: auto;
    padding: 6px 16px 8px;
  }
  #header ul li a {
    float: none;
    display: inline-block;
    width: auto;
    height: auto;
    line-height: 1.5;
    margin: 0 12px 0 0;
    padding: 0;
    font-size: 1rem;
  }

  #body,
  #body.wide,
  #sidebar {
    float: none;
    width: 100%;
  }
  #page {
    padding: 15px 16px 0;
  }

  .blog-entry h2,
  #body.wide h2 {
    padding-left: 5px;
  }
  .blog-entry {
    display: flex;
    flex-direction: column;
  }
  .blog-entry h2 {
    order: 1;
  }
  .blog-details {
    order: 2;
    float: none;
    width: auto;
  }
  .blog-details h3 {
    text-align: left;
  }
  .blog-entry-meta {
    order: 3;
    float: none;
    width: auto;
    text-align: left;
    padding: 4px 0 0;
  }
  .blog-body {
    order: 4;
    float: none;
    width: auto;
  }
  .blog-comments {
    order: 5;
    float: none;
    width: auto;
  }
  .blog-toolbar {
    margin-left: 0;
  }
  .blog-body img,
  div.photo img,
  div.photo a img {
    max-width: 100%;
    height: auto;
  }

  #footer {
    padding: 0 16px 16px;
  }
  #about,
  #content-guide,
  #reading,
  #quotation {
    float: none;
    width: auto;
    padding-left: 0;
    margin-bottom: 20px;
  }

  .til-browse-header {
    padding-left: 0;
  }

  .til-label {
    float: none;
    width: auto;
    text-align: left;
    padding-top: 0;
    padding-right: 0;
    margin-top: 1.25rem;
  }
  .til-entries {
    float: none;
    width: auto;
    padding-top: 0.25rem;
  }
}
