/*CSS */

/* Page */
html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  padding: 0 0.25rem 0 0.25rem;
  color: #333;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  min-height: 95vh;
}

article footer{
  color: #333;
  opacity: 0.9;
  font-size: 0.9rem;
}
/** Desktop and large screens **/
@media screen and (min-width: 768px) {
  body {
    max-width: 35rem;
    margin: auto;
  }
  p img {
*    max-width: 95%; 
  }
}

/** Mobile devices and small screens **/
@media screen and (max-width: 767px) {
  body {
    max-width: 35rem;
    margin: auto;
  }
  p img {
    max-width: 95%;
  }
}

/* Typography */

p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

blockquote {
  line-height: 1.25;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Hyperlinks */
a, a:link, a:active {
  text-decoration: underline solid #00c;
  text-underline-offset: 0.25rem;
  color: #00c;
}

a {
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: #66f;
  text-decoration-color: #66f;
}

a:focus {
  outline: 2px solid #66f;
  outline-offset: 2px;
}

/* Lists */ 
ul, ol {
  line-height: 1.25;
}

li {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

li ul {
  margin-top: 0rem;
  margin-bottom: 0rem;
}

li ol {
  margin-top: 0rem;
  margin-bottom: 0rem;
}

/* Figures */

figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem auto;
  text-align: center;
  max-width: 100%;
}

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

figure figcaption{
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}
/* Tables */

table {
  line-height: 1.25;
  border-collapse: collapse;
  width: 99%;
}
th, td {
  padding: 0.2rem 0.2rem;
  border-left: 1px solid;
  text-align: left;
  vertical-align: top;
}

th:first-child,
td:first-child {
  border-left: none
}
thead tr{
  border-bottom: 1.5px solid;
}
/* Headings */
h1, h2, h3, h4, h5, h6{
  color: #000;
}

h1 {
  font-size: 1.25rem;
}

h2 {
  font-size: 1.20em;
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.15rem;
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.10rem;
}

h5 {
  font-size: 1.05rem;
}

/* Footnotes */
sup{
  display: inline-block;
  line-height: 0;
}

a.footnote-ref{
  color: #00c;
  text-decoration: none;
  font-size: 0.6rem;
}

hr {
  width: 35%;
  border: 0.5px #009 solid;
}

div.footnotes{
  font-size: .9em;
  line-height: 1.25;
}
div.footnotes a{
  text-decoration: none;
}

/* Post heading */
div.post-title {
  a, a:link, a:active, a:visited{
    color: #00c;
    text-decoration: none;
  }
}

div.post-title a:hover {
    color: #66f;
  }

/** Syntax **/
div.highlight {
  font-size: 0.8rem;
  line-height: 1.25
}

code, pre {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
}

code {
  max-width: 95%;
  white-space: pre-wrap;
  word-break: break-word;
}

/** Navigation bar **/
nav {
  display: flex;
  gap: 1rem;
  padding: 0.5rem  0;
  border-bottom: 1px dashed #333;
  font-size: 0.9rem;
  line-height: 1;
}

nav a:link, a:active {
  text-decoration: none;
}

footer {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

footer {
  p { 
    a, a:link {
      text-decoration: underline;
    }
  }
}

/** Printed page **/
@media print {
  body, article {
    color: #000;
    background: #fff;
    max-width: 40rem;
    padding: 0;
    font-size: 12pt;
  }

  article div.post-title{
    color: #000;
    size: 1.25rem;
  }
  article div.footnotes{
    width: 100%;
    font-size: 10pt;
    line-height: 1.25;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #000;
    background: none;
  }

  h2, h3 {
    page-break-after: avoid;
  }

  nav, aside, footer {
    display: none;
  }

  img {
    max-width: 95% !important;
  }

  article a, a:link {
    font-weight: 700;
    color: #000;
    text-decoration: none;
  }

   article a[href^=http]:after {
     content:" (" attr(href) ")";
    }

   article a[href^="#"]:after {
     content: "";
   }

   video {
     display: none;
   }
 }
