code {
	font-family: menlo, inconsolata, monospace;
	font-size: calc(1em - 2px);
	color: #555;
	background-color: #f0f0f0;
	padding: 0.2em 0.4em;
	border-radius: 2px;
}

/* The chip treatment is for code inside a sentence. Inside a `pre` the block
   already provides the surface, and leaving it on draws a box within a box and
   shrinks the text a second time. */
pre code {
	font-size: inherit;
	color: inherit;
	background-color: transparent;
	padding: 0;
	border-radius: 0;
	/* excsn sets `white-space: pre` here, which is what actually holds the text
	   and so defeats the wrapping on the block. */
	white-space: inherit;
	overflow-wrap: inherit;
}

.post header .category-list-item a {
  color: white;
}

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

body {
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #337ab7;
}

.bg-color-primary1 {
  background-color: #00b894;
}

.inline {
  display: inline;
}

/* Layout */
.app-main {
	min-height: 100vh;
	display: grid;
	grid:
	"header"
	"content"
	"footer";
  grid-template-rows: auto 1fr auto;
}

.app-main > header {
	grid-area: header;
}

.app-main > header a {
  color: white;
}

.app-main > footer a {
  color: yellow;
}

.app-main > main {
	grid-area: content;
	min-height: 100%;
	display: flex;
	flex-direction: column;
}

.post {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.post > article {
	flex: 1;
}

.app-main > footer {
	grid-area: footer;
  background-color: #010101;
}

.app-main > header .logo-container {
  padding-right: 48px;
}

/* Navigation */
.app-navigation {
  display: inline-block;
}

.app-navigation nav ul li {
  display: inline-block;
}

.app-navigation nav ul li:hover {
  background-color: #C0392B;
}

.app-navigation nav a {
  font-size: 1.2em;
  font-weight: 600;
  color: white;
  text-decoration: none;
}

.app-navigation nav li:has(a[aria-current="page"]) {
  background-color: rgb(192, 58, 43);
}

/* Normans Oven */
* {
  font-family: Inter, Helvetica, Segoe UI, Arial, sans-serif;
}

a {
  text-decoration: none;
  font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
  display: inline-block;
  width: 100%;
}

.app-main {
  margin: 0 10%;
  display: grid;
  grid-template-areas: "header"
                       "content"
                       "footer";
}

.post article ol li, .post-list-item ol li {
  list-style-type: decimal;
  margin: 10px 0;
  margin-left: 10px;
}

blockquote {
  border-left: 4px solid #ccc;
  margin-bottom: 5px;
  margin-top: 5px;
  padding-left: 16px;
}

/* Wrapping, not scrolling. A long line reflows rather than running off the
   side; `anywhere` covers a token with no break opportunity in it, which
   `break-word` alone will not split. */
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 10px;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #BBB;
  margin: 10px;
  padding: 0;
}

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

.icon, .top-bar .title, .top-bar .logo *, .knob>* {
  vertical-align: middle;
}

.top-bar .logo {
  display: inline-block;
  text-decoration: none;
}

.top-bar .logo .title {
  display: inline-block;
  font-size: 2em;
  font-weight: 700;
}

.top-bar .logo img {
  width: 50px;
  height: 50px;
}

.content-container {
  margin: 0 5%;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 16px;
}

#content {
  margin: 5px 0px;
}

.search-bar {
  margin: 5px 0px;
  border: 1px solid #EEE;
}

.search-bar .searchBarOptions, .search-bar .searchBarOptions>li,
.search-bar .searchBarControls, .search-bar .searchBarControls>li,
.search-bar .searchField {
  display: inline-block;
}

.search-bar .searchBarOptions .searchBarOption {
  margin: 1px;
  border: 1px solid #DDD;
  padding: 0px;
}

.search-bar .searchBarControls>li {
  padding: 0px;
}

.search-bar .searchBarOptions input {
  padding: 0;
  border: 0;
}

.search-bar .searchField .inputDisplay {
  padding: 5px;
}

.searchBarForm {
  display: inline-block;
}

.tagName {
  font-weight: 200;
}

.text-muted {
  color: #636c72!important;
}

.submit-container {
  padding: 10px 0;
}

.post-list-item .header h1 {
  margin: 0.1em 0;
}

article h1, article h2, article h3, article h4, article h5, article h6,
.post-list-item h1, .post-list-item h2, .post-list-item h3, .post-list-item h4, .post-list-item h5, .post-list-item h6,
.note-editable h1, .note-editable h2, .note-editable h3, .note-editable h4, .note-editable h5, .note-editable h6 {
  font-weight: 500;
  margin: 0.5em 0;
}

article h1, post-li .content h1, .note-editable h1 {
  font-size: 1.8em;
}

article h2, post-li .content h2, .note-editable h2 {
  font-size: 1.6em;
}

article h3, post-li .content h3, .note-editable h3 {
  font-size: 1.4em;
}

article h4, .post-li .content h4, .note-editable h4 {
  font-size: 1.2em;
}

article h5, post-li .content h5, .note-editable h5 {
  font-size: 1em;
}

article h6, post-li .content h6, .note-editable h6 {
  font-size: .8em;
}

article p, post-li .content p, .note-editable p {
  margin: .5em 0 0 0;
  font-size: 1.1em;
  line-height: 1.6;
  font-weight: normal;
}

/* Matches the editor's preview pane, so what an author checks before saving is
   what a reader gets. Only the parts the site had no rule for at all — the
   palette is the site's own. */
.post article,
.post-list-item .content {
  line-height: 1.6;
  padding: 1.25rem;
}

.post article img,
.post article iframe,
.post article video,
.post-list-item .content img,
.post-list-item .content iframe,
.post-list-item .content video {
  max-width: 100%;
}

.post article table,
.post-list-item .content table {
  border-collapse: collapse;
}

.post article th,
.post article td,
.post-list-item .content th,
.post-list-item .content td {
  border: 1px solid #CCCCCC;
  padding: 0.3rem 0.6rem;
}

.post article pre,
.post-list-item .content pre {
  background: #F4F4F4;
}

article .welcome-section p {
  font-size: 1.4em;
}

article p:first-child {
  margin: 0;
}

.post header {
  background-color: #010101;
}

/* Same trap as `.category-list`: excsn drops the marker but leaves the UA's
   padding-inline-start, so a list sits 40px right of everything around it. */
.post-list,
.saga-post-list,
.saga-list {
  padding: 0;
  margin: 0;
}

.post-list-item {
  display: block;
}

.post-list > .post-list-item {
  margin-top: 20px;
  padding: 0px;
}

.post-list > .post-list-item:first-child {
  margin-top: 0px;
}

/* The saga's own header is a dark block too, so without this the first post
   merges into it. */
.saga > .post-list {
  margin-top: 20px;
}

.post-list > .post-list-item > .header {

  padding: 40px 20px;
}

@media only screen and (max-width: 768px) {
  
  .post-list > .post-list-item .title {
    font-size: 2em;
  }
}

@media only screen and (min-width: 768px) {
  
  .post-list > .post-list-item .title {
    font-size: 2.5em;
  }
}

.post-list > .post-list-item p {

  font-size: 16px;
}

.post-list-item .btn {
  font-weight: 700;
  background-color: #E67E22;
}

.category-list-item {
  display: inline-block;
  padding: 0;
}

.category-list {
  display: inline-block;
  /* excsn drops the marker but not the UA's padding-inline-start, which
     indented the badges away from the title. */
  padding: 0;
  margin: 0;
}

.category-list a, .category-list a:visited {
  padding: 5px;
  font-size: 12px;
  background-color: #E67E22;
  color: white;
}

.category-list li {
  margin-right: 10px;
}

.category-list li:last-child {
  margin-right: 0;
}

.saga-list {
  display: grid;
  /* `min(320px, 100%)` rather than a bare 320px: the shell is 80% of the
     viewport, so a narrow phone gives a track less than the minimum and the
     row overflows the page. */
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 10px;
}

.saga-post-list li .btn {
  background-color: #E67E22;
}

.saga-item {
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Two lines' worth, so a one-word title does not leave a stunted bar beside a
   title that wrapped. */
.saga-item > h3 {
  margin: 0;
  padding: 10px;
  font-size: 20px;
  line-height: 1.3;
  min-height: calc(2 * 1.3 * 20px + 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Grows to the bottom of a card the row stretched, so the button still lands on
   the bottom edge with no page background showing through above it. */
.saga-item > .content {
  padding: 10px;
  flex: 1;
}

.saga-item .btn {
  background-color: #E67E22;
}

/* Not the orange the category badges use: keywords are not links and must not
   read as clickable. */
.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  margin: 5px 0 0;
}

.keyword-list-item {
  padding: 3px 6px;
  font-size: 12px;
  background-color: #39383A;
  color: white;
}

/* A measure, not a width: at the shell's margins a paragraph otherwise runs
   about 130 characters on a wide monitor. */
.about-me article {
  max-width: 100ch;
}

.about-me .lead {
  font-size: 1.35em;
  line-height: 1.5;
}

.about-me h3 {
  margin-top: 0;
}

.about-me .pull-quote {
  border-left: 4px solid #E67E22;
  padding: 10px 0 10px 16px;
  margin: 0;
  font-size: 1.4em;
  line-height: 1.4;
  font-style: italic;
}

.about-me .read-on {
  margin-top: 2em;
}

.sagas .tip-info {
	font-size: 14px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.post-sagas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-saga {
  background-color: #FFFFFF;
  border-left: 4px solid #E67E22;
  padding: 10px 15px;
}

.post-saga p {
  margin: 5px 0 0 0;
}

.badge-position {
  display: inline-block;
  padding: 5px;
  font-size: 12px;
  background-color: #E67E22;
  color: white;
}

/* The saga is the page; a post in it is an entry. Without this the entry's
   title is the larger of the two and the hierarchy reads backwards. */
.saga > header .title {
  font-size: 3em;
}

.saga .post-list-item .title {
  font-size: 1.8em;
}

.saga > header {
  border-bottom: 4px solid #E67E22;
}
