/* Base styles. These carry over the handful of Bootstrap 3 defaults (from
   the old customized build) the site actually relied on: the type scale,
   colors, and spacing for prose, code, and blockquotes. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.42857143;
  color: #333;
  background-color: #fff;
}

a {
  color: #337ab7;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #23527c;
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
}

h1, h2, h3 {
  margin-top: 22px;
  margin-bottom: 11px;
}

h4, h5, h6 {
  margin-top: 11px;
  margin-bottom: 11px;
}

h1 { font-size: 41px; }
h2 { font-size: 34px; }
h3 { font-size: 28px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p {
  margin: 0 0 11px;
}

ul,
ol {
  margin-top: 0;
  margin-bottom: 11px;
}

ul ul,
ol ul,
ul ol,
ol ol {
  margin-bottom: 0;
}

small {
  font-size: 87%;
}

/* Keep footnote markers from stretching the line they sit on. */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

img {
  vertical-align: middle;
}

hr {
  box-sizing: content-box;
  height: 0;
  /* The UA's auto inline margins would shrink an hr to nothing as a grid
     item. */
  margin: 22px 0;
  border: 0;
  border-top: 1px solid #eee;
}

blockquote {
  padding: 11px 22px;
  margin: 0 0 22px;
  font-size: 20px;
  border-left: 5px solid #eee;
}

blockquote p:last-child,
blockquote ul:last-child,
blockquote ol:last-child {
  margin-bottom: 0;
}

code,
kbd,
pre,
samp {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}

code {
  padding: 2px 4px;
  font-size: 90%;
  color: #333;
  background-color: #f9f2f4;
  border-radius: 4px;
}

pre {
  display: block;
  padding: 10.5px;
  margin: 0 0 11px;
  font-size: 15px;
  line-height: 1.42857143;
  overflow-x: auto;
  /* Wrap long lines at word boundaries, only splitting tokens that can't
     fit otherwise (Bootstrap's word-break: break-all split mid-word). */
  overflow-wrap: break-word;
  color: #333;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
}

pre code {
  padding: 0;
  font-size: inherit;
  color: inherit;
  white-space: pre-wrap;
  background-color: transparent;
  border-radius: 0;
}

a code {
  /* Make code inside a link the same color as the link */
  color: #08C;
}

/* Page layout. A single grid replaces Bootstrap's container/row/column
   floats. The header and content share a column indented by a twelfth of
   the page on wide screens (the old col-md-offset-1) and capped at ~70
   characters of the 16px prose so lines stay comfortable to read. The rules
   and footer span the full width. */

.site {
  --gutter: 15px;
  --offset: 0px;
  display: grid;
  grid-template-columns:
    [full-start] var(--offset)
    [main-start] minmax(0, 610px)
    [main-end] 1fr
    [full-end];
  padding-inline: var(--gutter);
}

@media (min-width: 992px) {
  .site {
    /* A twelfth of the whole page, not just the padded grid area. */
    --offset: calc((100% + 2 * var(--gutter)) / 12);
  }
}

.site > * {
  grid-column: full;
}

.site > .site-header,
.site > #content {
  grid-column: main;
}

#footer {
  margin-bottom: 300px;
  text-align: center;
}

/* Keep images from spilling past the capped measure. */
.entry-content img {
  max-width: 100%;
  height: auto;
}

.entry-title h3 {
  font-size: 22px;
  line-height: 35px;
}

.entry-date {
  font-size: 13px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.entry-content {
  margin-top: 20px;
}

.entry-content blockquote {
  font-size: 15px;
  margin-left: 1em;
}

/* this is style14 at https://codepen.io/ibrahimjabbari/pen/ozinB with
adjustments to the margin */
hr.fancy {
  box-sizing: border-box;
  border: 0;
  height: 1px;
  margin-top: 40px;
  margin-bottom: 40px;
  background-image: linear-gradient(to right, #f0f0f0, #8c8b8b, #f0f0f0);
}

/* Print: black on white, link targets spelled out, and no splitting code
   blocks, quotes, or images across pages. */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  .entry-content a[href]::after {
    content: " (" attr(href) ")";
    overflow-wrap: anywhere;
  }

  .entry-content a[href^="#"]::after {
    content: "";
  }

  pre,
  blockquote {
    border: 1px solid #999;
    break-inside: avoid;
  }

  img {
    break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    break-after: avoid;
  }

  hr.fancy {
    border-top: 1px solid #999;
  }

  #footer {
    margin-bottom: 0;
  }
}
