:root {
  --red: #C5004A;
  --darkred: #7F0036;
  --lightgray: #e0e0e0;
  --gray: #C0C0C0;
  --darkgray: #333;
  --navy: #17050F;
  --blue: #3e7485;
  --white: #fff;
  --green: #007F36;
  --primary: #7a7a48;
  --secondary: #529BB2;
  --ternaryold: #D9B963;
  --ternary: #c0a459;
  --back: #E6E093;

}
* {
  box-sizing: border-box;
}
html,
body {
  padding: 0;
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--darkgray);
  background-color: var(--white);
}

body>header {
  position: fixed;
  top: 0;
  box-shadow: 1px 6px 12px 3px rgba(50,54,57,0.3), -4px 0px 0px 2px rgba(50,54,57,0.15);
  width: 100%;
  z-index: 1000;
  background: var(--secondary);
  color: white;
  font-size: 15.5px;
  font-family: 'Roboto Condensed';  
}

p:last-child {
  margin-bottom: 0;
}


.tmpl-post li,
img {
  max-width: 39.5em; 
}
p,
.tmpl-post li {
  line-height: 1.45;
}
a[href] {
  color: var(--blue);
}
/* a[href]:visited {
  color: var(--navy);
} */
main {
  margin-top:60px;
}
main :first-child {
  margin-top: 0;
}

body>header:after {
  content: "";
  display: table;
  clear: both;
}
table {
  margin: 1em 0;
  font-size: 14.5px;
  width: 100%;
}

sup {
  padding: 0 7px;
  display: inline-block;
  font-weight: bold;
}
.footnotes {
font-size: 12.5px;
color: #666;
}
.footnotes ol {
  list-style: decimal
}

sup a {
  text-decoration: none;
}

sup a:hover {
  text-decoration: underline;
}

table td,
table th {
  padding-right: 1em;
  padding-left: 1em;
}

table tr:nth-child(2n) {
  background-color:  #f3f3d4;
}

table th {
  padding: 8px 4px;
  background-color: var(--back);  
}

pre,
code {
  font-family: Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace;
  line-height: 1.5;
}
code {
  font-size: 15.5px;
}
pre {
  font-size: 15.5px;
  line-height: 1.375;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  -moz-tab-size: 2;
  -o-tab-size: 2;
  tab-size: 2;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
  padding: 1em;
  margin: .5em 0;
  background-color: #f6f6f6;
}
.highlight-line {
  display: block;
  padding: 0.125em 1em;
  text-decoration: none; /* override del, ins, mark defaults */
  color: inherit; /* override del, ins, mark defaults */
}

article img, .list img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
article img.aside {
  width: 40%;
  float: right;
  margin: 15px;
}
article img.phone {
  width: 40%;
  margin: auto;
}

/* allow highlighting empty lines */
.highlight-line:empty:before {
  content: " ";
}
/* avoid double line breaks when using display: block; */
.highlight-line + br {
  display: none;
}

.highlight-line-isdir {
  color: #b0b0b0;
  background-color: #222;
}
.highlight-line-active {
  background-color: #444;
  background-color: hsla(0, 0%, 27%, .8);
}
.highlight-line-add {
  background-color: #45844b;
}
.highlight-line-remove {
  background-color: #902f2f;
}

/* Header */
.home {
  padding: 0 1rem;
  float: left;
  margin: 1rem 0; /* 16px /16 */
  font-size: 1em; /* 16px /16 */
}
.home :link:not(:hover) {
  text-decoration: none;
}

/* Nav */
.nav {
  padding: 0;
  list-style: none;
  float: left;
  margin: 0;
  margin-left: 2em;
  margin-right: 10px;
}

.nav a {
  color: white;
  padding: 12px;
}

.nav-item {
  display: inline-block;
}
.nav-item a[href]:not(:hover) {
  text-decoration: none;
}
.nav-item-active {
  font-weight: 700;
  text-decoration: underline;
}

/* Posts list */
.postlist {
  list-style: none;
  padding: 0;
  font-family: 'Inter', sans-serif;

  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: space-between;
  -ms-flex-pack: start;
  justify-content: space-between;
  -webkit-align-content: flex-start;
  -ms-flex-line-pack: start;
  align-content: flex-start;
  -webkit-align-items: flex-start;
  -ms-flex-align: start;
  align-items: flex-start;
}

.postlist li {
    width: 100%;
    max-width: 210px;
    margin-bottom: 24px;
    padding: 0px;
    padding-top: 0px;
    border-top: 6px solid var(--blue);
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
}

.post-img {
  height: 100px;
  max-height: 100px;
  margin-bottom: 4px;
  overflow: hidden;
  background-color: white;
}

.post-img img.phone, .post-img img.aside  {
  width: 100% !important;
  margin: 0;
  float: none;
}

.postlist a {
  font-family: 'Lora', serif;
  color: var(--blue);
  text-decoration: none;;
  padding: 0;
}

.postlist a:visited {
  color: var(--blue) !important;
  opacity: 0.8;
}

.postlist .list-tag {
  color: var(--primary) !important;
  text-transform: uppercase;
  font-size: 12.5px;
  opacity: 0.8;
  font-family: 'Roboto Mono', sans-serif;
}
.postlist .list-tag:visited {
  color: var(--primary) !important;
}
.postlist .list-tag:hover {
  opacity: 1;
  text-decoration: underline;
}
.postlist p {
  font-size: 13.5px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.postlist p.read {
  font-family: 'Lora', serif;
  display: block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  margin: .5rem 0 0;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--darkred);
  margin-top: 12px;
}

.postlist p.post-excerpt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.postlist-link {
  display: inline-block;
  padding: 0.25em 0.1875em; /* 4px 3px /16 */
}
.postlist-item-active .postlist-link {
  font-weight: bold;
}
.tmpl-home .postlist-link {
  font-size: 1.1875em; /* 19px /16 */
  font-weight: 700;
}


/* Tags */
.post-tag {
  display: inline-block;
  vertical-align: text-top;
  text-transform: uppercase;
  font-size: 0.8em;
  padding: 8px;
  margin-right: 0.8em;
  background-color: var(--primary);
  color: var( --white);
  border-radius: 0.25em;
  text-decoration: none;
}

.home-tags {
  margin-bottom: 24px;
}

.home-tags .post-tag {
  text-transform: none;
  font-size: 14.5px;
}

a[href].post-tag,
a[href].post-tag:visited {
  color: #fff;
}

/* Warning */
.warning {
  background-color: #ffc;
  padding: 1em 0.625em; /* 16px 10px /16 */
}
.warning ol:only-child {
  margin: 0;
}

/* Direct Links / Markdown Headers */
.direct-link {
  font-family: sans-serif;
  text-decoration: none;
  font-style: normal;
  margin-left: .1em;
}
a[href].direct-link,
a[href].direct-link:visited {
  color: transparent;
}
a[href].direct-link:focus,
a[href].direct-link:focus:visited,
:hover > a[href].direct-link,
:hover > a[href].direct-link:visited {
  color: #aaa;
}

/*
 Small Capitals
 https://en.wikipedia.org/wiki/Small_caps 
*/

.small-caps {font-variant: small-caps;}

/*
 Optical margin alignment for particular letters 
 https://en.wikipedia.org/wiki/Optical_margin_alignment
*/

.pull-T, .pull-V, .pull-W, .pull-Y {margin-left: -0.07em}
.push-T, .push-V, .push-W, .push-Y {margin-right: 0.07em}

.pull-O, .pull-C, .pull-o, .pull-c {margin-left: -0.04em}
.push-O, .push-C, .push-o, .push-c {margin-right: 0.04em}

.pull-A {margin-left: -0.03em}
.push-A {margin-right: 0.03em}

/* 
 Quotation mark 
 https://en.wikipedia.org/wiki/Quotation_mark) 
*/

/* Single quotation marks (') */
.pull-single{margin-left:-.27em}
.push-single{margin-right:.27em}

.pull-double, .push-double,
.pull-single, .push-single {display: inline-block}

/* Double quotation marks (") */
.pull-double{margin-left:-.46em}
.push-double{margin-right:.46em}



/* FIRT */
article {
  letter-spacing: -0.003em;
  color: rgba(61, 61, 61, 1);
  font-size: 21px;

}
.container {
  margin: auto;
  max-width: 39.5em;
}
main .container {
  padding: 1rem;
}

.tiny {
  font-size: 12px;
  color: var(--blue);
}

label {
  color: var(--primary);
  font-size: 15.5px;
  font-weight: bold;
  margin-bottom: 0;
}

form p {
  margin: 4px;
}



form.newsletter {
  background-color: var(--back);
  border:1px solid #ccc;
  padding:3px;
  text-align:center;  
}

input[type=text] {
  border: 2px solid var(--primary);
  font-size: 17px;
  width: 250px;
}

input.button {
  display: block;
  margin: auto;
  background: var(--red);
  color: white !important;
  font-size: 17.5px;
  font-weight: bold;
  width: 200px;
  text-align: center;
  text-decoration: none;
  -webkit-appearance: none;  
}

a.button {
  display: block;
  margin: auto;
  background: var(--back);
  color: var(--red) !important;
  font-size: 19.5px;
  padding: 12px;
  font-weight: bold;
  width: 220px;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
}

.container.list h1  {
  font-size: 27.5px;
  white-space: pre-line;
  line-height: 1em;  
  margin-bottom: 100px;
}
.container.list h1 a {
  color: white;
  text-decoration: none;
  border-bottom: 1px dashed white;
}

.container.list h1 strong {
  font-size: 33.5px;
  display: inline-block;
  padding: 8px;
  margin-bottom: 4px;
  margin-top: 4px;
  border-radius: 4px;
  color: white;
  background-color: var(--ternary);
}
.container.list h1 strong.name {
  font-size: 29.5px;
}
.container.list h1 span.smaller {
  font-size: 22.5px;
}

.container.list h1 span.smaller strong {
  padding: 4px;
  font-size: 22.5px;
}

.post-tag.large {
  display: inline-block;
  font-size: 15.5px;
  padding: 8px;
  margin: 8px;

}



header .container {
  margin: auto;
  max-width: 65em;
  margin-top: 30px;
}

footer .container {
  max-width: 65em;
}


.container.list {
  max-width: 60em;
}

.container.list.white {
  background: white;
  border-radius: 20px;
  margin-top: -100px;
  padding: 24px;  
}

header.list {
  background: var(--back);
}

#container-list {
  margin: auto;
  max-width: 70em;
}


i {
  font-weight: 300;
  font-style: normal;
}

em {
  font-weight: 800;
  font-style: normal;
  color: #000;
}

section.toc:empty {
  display: none;
}

section.toc {
  margin: 0 20px;
  padding: 0;
  font-size: 15px;
  color: rgba(70, 70, 70, 1);
  font-weight: 300;
  border-left: 2px solid var(--blue);  ;
}

.toc li {
   margin-bottom: 5px;
}


section.toc::before {
  content: 'Table of Contents:';
  margin-bottom: 10px;
  margin-left: 20px;
  display: block;
  color: black;
  font-weight: 800;;
}

article {
  font-size: 16.5px;
}

p, li {
  line-height: 1.57059;
  font-weight: 400;
  letter-spacing: -.022em;  
}


p a, article li a {
  color: #0070c9 !important;
  font-weight: normal;
}

.toc a {
  color: rgba(55, 55, 55, 1) !important;
  text-decoration: none;
  border-bottom: 1px dashed rgba(100, 100, 100, 1);
}

.toc a:hover {
  color: #0070c9 !important;
  /* text-decoration: underline; */
}

.toc ol ol {
  list-style: none;
  margin: 10px;
  font-size: 13px;
}



article li {
  margin-bottom: 12px;
}

p code, article li code {
  display: inline-block;
  padding: 0 6px;
  font-size: 17px;
  background: #f6f4f4;
  border: 1px solid #DDD;
  margin: 0 3px;
}

.toc ol ol ol {
  display: none;
}

.toc ol ol a {
  border-bottom: 1px dashed rgba(140, 140, 140, 1);
}

h3 {
  font-size: 27.5px;
  margin-top: 40px;
  color: #222
}

figcaption {
  text-align: center;
    font-size: 13px;
    margin-top: 5px;
    color: #555;
}

h4 {
  font-size: 23px;
}

#avatar {
  width: 60px;
  height: 113px;
  float: left;
  margin-right: 16px;
  margin-left: 8px
}

.readingTime {
  font-weight: 300;
}

#social {
  font-size: small;
  display: block;
  margin: 0; padding: 0;
}

p#author {
  line-height: normal !important;
}

#social a {
  display: inline-block;
  margin-right: 5px;
  font-weight: normal;
  margin-top: 5px;
  color: #009;
}

h1,h2,h3,p.tagline {
  font-family: 'Lora', serif;

}

h1 {
  font-size: 35.5px;
  margin-top: 24px !important;
}

h2 {
  font-size: 30px;
  color: black;
  border-top: 1.5px dotted #DDD;
  padding-top: 12px;
}

h2:first {
  border-top: none;
  padding-top: 0;
}

.readingTime {
  float: left;
}

.tags {
  margin-top: 54px;
  display: flex;
  clear: both;
  margin-bottom: 20px;
  flex-flow: wrap;
  flex-wrap: wrap;
}

.note .tags {
  margin-top: 0px;
}


#meta .tags {
  clear: none;
  margin-top:12px;
}

.post-img a:empty {
  display: none;
}

.hero {
  margin-left: -16px;
  margin-bottom: 16px;
  height: 200px;
  width: 100vw;
  background-size: contain;
  background-position: top left;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

figure {
  margin: 16px 0;
}

#meta {
  min-height: 110px;
  margin-bottom: 16px;
}

#meta p {
  margin: 0px;
  font-size: 17.5px;
}

.tagline {
  line-height: normal;
  font-size: 22.5px;
  font-style: italic;
  margin-top: -35px;
  margin-bottom: 32px;
  font-weight: normal;
  color: #999;
}

.publishedDate {
  color: var(--primary);
  font-size: 13.5px !important;
  margin-top: 12px !important;
}

.readingTime {
  margin-top: 8px;
}


blockquote {
  font-family: "Roboto Condensed",sans-serif;  
  border-left: 12px solid var(--red);
  padding-left: 12px;
  margin-top: 36px;
  margin-bottom: 36px;
  margin-right: 8px;
  color: #700;  
  font-size: 17.5px;
}

blockquote.info {
  border: 0;
  padding: 8px;
  border-top: 6px solid var(--blue);
  color: var(--blue);
  margin: 0;
  margin-top: 16px;
  border-left: 0;
}

blockquote.warning {
  background: white;
  font-size: 17.5px;
  border: 0;
  padding: 8px;
  padding-left: 48px;
  border-top: 6px solid var(--red);
  color: var(--darkred);
  margin: 0;
  margin-top: 24px;
  border-left: 0;
  margin-left: 10%;
  margin-right: 10%;
}
blockquote.warning p {
  display: inline-block;
}
blockquote.warning::before {
  content: '⚠️';
  margin-right: 8px;
  margin-bottom: 2px;
  font-size: 30px;
  margin-left: -40px;
  display: block;
  margin-bottom: -40px;
  text-shadow: 0px 0px 5px var(--darkred);
}

iframe {
  margin: 24px 0;
  font-size: 13.5px;
}

ul ul {
  margin-top: 12px !important;
}

blockquote.update {
  background: white;
  font-size: 17.5px;
  border: 0;
  padding: 8px;
  padding-left: 48px;
  border-top: 6px solid var(--green);
  color: var(--green);
  margin: 0;
  margin-top: 24px;
  border-left: 0;
  margin-left: 10%;
  margin-right: 10%;
}
blockquote.update p {
  display: inline-block;
}
blockquote.update::before {
  content: '💡';
  margin-right: 8px;
  margin-bottom: 2px;
  font-size: 30px;
  margin-left: -40px;
  display: block;
  margin-bottom: -40px;
  text-shadow: 0px 0px 5px var(--green);
}


article ul,article ol {
  list-style: none;
  margin: 32px 0;
  padding-left: 48px;
  position: relative;
  z-index: 1;
}

ol {
  counter-reset: ol-step-counter;
  padding-left: 60px;
}

ol:not([class])>li {
  counter-increment: ol-step-counter;
  margin-left: 16px;
}

ol ol:not([class])>li::before {
  display: none;
}

ol ol {
  padding-left: 0px;
  margin-left: 0px;
}


ol ol:not([class])>li {
  margin-left: 12px;
}

ol:not([class])>li::before {
  display: -ms-inline-flexbox;
  display: -webkit-inline-box;
  display: inline-flex;
  -ms-flex-align: center;
  -ms-flex-negative: 0;
  -ms-flex-pack: center;
  -webkit-box-align: center;
  -webkit-box-pack: center;
  align-items: center;
  background: var(--blue);
  border-radius: 50%;
  color: #fff;
  content: counter(ol-step-counter);
  flex-shrink: 0;
  font-size: .6em;
  font-weight: 800;;
  height: 20px;
  justify-content: center;
  left: 0;
  margin: 2px 0 0;
  position: absolute;
  width: 20px;
  margin-left: 36px;
}

article ul:not([class])>li::before {
  background: #606771;
  border-radius: 50%;
  color: #fff;
  content: '';
  height: 8px;
  left: 0;
  margin: 8px 0 0;
  position: absolute;
  width: 8px;
  margin-left: 16px;
}

article p {
  /* clear: both */
}

.author-footer::before {
  display: block;
  content: '· · · · ·';
  text-align: center;
  margin-bottom: 15px;
  
}

.author-footer {
  font-family: Lora, serif;
  font-style: italic;
  font-size: 19px;
}

#footer {
  font: "Roboto Mono",monospace;
  font-size: 15.5px;
  background-color: var(--back);
  color: #333;
  padding: 0;
  margin-top: 40px;
  border-top: 4px solid var(--blue);
  border-bottom: 4px solid var(--blue);
  font-weight: normal;
  min-height: 188px;
}

#footer .container {
  margin: auto;
  padding-top: 0px;
  margin-top: 0px;
  float: left;
}

#footer img {
  float: left;
  margin-right: 24px;
  margin-left: 15%;
}
 
#footer a {
  color: var(--blue) !important;
}

#footer code {
  font-size: 14px;
}

.header-title {
  margin-right: 24px;
  margin-left: 12px;
  border-left: 2px dashed #EEE;
  padding-left: 12px;
  margin-bottom: 12px;
  color: #DDD;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-title a {
  opacity: 0.7;
  text-decoration: none;
  color: white !important;
}


.home-img {
  width: 130px;
  height: 61px;
  float: left;
  vertical-align: middle;
  margin-left: 10px;
  top: 2px;
  left: 5px;
  margin-top: -24px;
  position: relative;
  margin-bottom: -6px
}

@media (max-width: 880px) {

    main>header, .container {
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);

    }

    .container.list {
      max-width: 45em;
      }

}


@media (max-width: 500px) {
  header {
    font-size: 13.5px;
  }

  .home {
    margin: 12px 0;
    margin-bottom: 8px;
  }

  .postlist li {
    max-width: 100%;
  }

  .nav {
    margin: 0;
    margin-left: 4px;
  }

  .nav-item {
    margin: 0;
    margin-top: 0px;
  }

  .nav-item a:first-child {
    margin-left: 11px;
  }
  .nav-item a {
    display: inline-block;
    padding: 8px 0px;
    margin: 0;
    /* margin-left: 8px; */
  }


  .header-title {
    float: none;
    display: block;
    clear: both;
    margin-left: 0px;
    border: 0;
    margin-top: 0;
    margin-bottom: 8px !important;
    padding-left: 12px;
    margin: 0;
    font-size: 11.5px;
    margin-left: 116px;
    position: relative;
    top: -24px;    
  }

  main {
    margin-top: 50px;
  }

  .container.list h1, .container.list h1 strong.name {
    font-size: 26px;
  }

  .container.list h1 span.smaller, .container.list h1 span.smaller strong {
    font-size: 16.5px;
  }

  #container-list {
    max-width: 17em;
    
  }

  .container.list.white {
    margin-left: 12px;
    margin-right: 12px;
  }



  .post-img {
    max-height: 130px;
    height: auto;
  }

  
  header .container {
    margin-top: 2px;
    margin-bottom: -36px;
  }

  figure {
    margin: 0;
    padding: 0;
    margin-bottom: 8px;
  }

  blockquote {
    margin-left: 0;
    margin-right: 8px;
  }

  section.toc {
    margin: 0;
  }

  img.phone {
    width: 75% !important
  }
  article ul, article ol {
    padding-left: 24px;
  }

  ol:not([class])>li::before {
    margin-left: 16px;
  }

  article ul:not([class])>li::before {
    margin-left: 6px;
    margin-top: 8px;
  }

  .home-img {
    width: 110px;
    margin-left: 2px;
    margin-top: -2px;
  }

  .post-tag {
    margin-bottom: 4px;
  }

  .home-tags .post-tag {
    text-transform: none;
    font-size: 12.5px;
    padding: 4px;
    margin: 2px;
    margin-bottom: 6px;
  }


  hr {
    margin: 24px 0;
  }

  #footer {
    margin-top: 36px;
  }

  ol ol:not([class])>li {
    margin-left: -20px;
  }


  blockquote.warning, blockquote.update {
    margin-left: 0;
    margin-right: 0;
  }

  #footer img {
    float: none;
    width: 80px;
    height: 80px;
    margin: 0;
  }

  #footer {
    min-height: 350px;

  }

  #footer .container {
    padding: 16px;
  }
}



@media (max-width: 340px) {
  body>header {
    font-size: 14px;
  }
  .home-img {
    width: 92px;
    margin-left: 2px;
    margin-top: -2px;
  }
  .header-title {
    margin-left: 97px;
  }
}

/* Fixed header anchors fix */
:target {
  scroll-margin-top: 70px;
}


.gpt {
  font-size: 1.1em;
  color: #3e7485;
}
.gpt::before {
  content: '🤖 '
}
