/* Start with a minimal reset */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { margin: 0; }
a { background-color: transparent; }

/* Element styling */
img { max-width: 100%; margin: 1rem 0 0 1rem; border: 0; border-radius: 5px; }
button, input, select, textarea { font: inherit; margin: 0; }
table { border-collapse: collapse; border-spacing: 0; width: 100%; margin-bottom: 1.75rem; }
td, th { padding: 0.25rem 0.5rem; }
tbody tr:nth-child(odd) td, tbody tr:nth-child(odd) th { background-color: #f9f9f9; }

html {
  background-color: #e8f1f3;
}

body {
  color: #1A5166;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
  font-size: 100%;
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.01rem;
  padding: 2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.1rem; }
h4, h5, h6 { font-size: 1rem; }
p, dl, ol, ul { margin: 1.5rem 0; }

a {
  color: #1A5166;
  text-decoration: none;
}

code {
  font-family: 'Source Code Pro', Monaco, Courier, monospace;
  font-size: 0.85rem;
  color: #1A5166;
  background-color: #f5f5f5;
  border: 1px solid #eef;
  border-radius: 3px;
  padding: 0.2em 0.5em;
}

pre {
  display: block;
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 1rem;
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: pre;
  white-space: pre-wrap;
  word-break: break-all;
  word-wrap: break-word;
  background-color: #f9f9f9;
}

pre code {
  font-family: 'Source Code Pro', Menlo, Monaco, Courier, monospace;
  font-size: 0.7rem;
  padding: 0;
  color: inherit;
  background-color: transparent;
  border: none;
}

blockquote {
  padding: 0.5rem 1rem;
  margin: 0.8rem 0 0.8rem -1.5rem;
  color: #7a7a7a;
  border-left: 0.3rem solid #e5e5e5;
}
  blockquote p:last-child {
    margin-bottom: 0;
  }

hr {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  display: block;
  width: 150px;
  margin: 1.5rem 0;
}

button, .btn {
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 5px;
  color: #ccc;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-size: 85%;
  line-height: normal;
  padding: 0.5rem 0.75rem;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  vertical-align: middle;
  white-space: nowrap;
  -webkit-transition: all 0.3s;
          transition: all 0.3s;
}
  button::-moz-focus-inner, .btn::-moz-focus-inner {
    padding: 0;
    border: 0;
  }
  button:hover, button:focus, .btn:hover, .btn:focus {
    color: #7fdbff;
    border: 1px solid #7fdbff;
    -webkit-transition: all 0.3s;
            transition: all 0.3s;
    text-decoration: none;
  }
  button:active, .btn:active {
    color: #0074d9;
    border: 1px solid #0074d9;
    -webkit-transition: all 0.3s;
            transition: all 0.3s;
  }

.site {
  max-width: 38rem;
  margin: 0 auto;
}

.header {
  border-bottom: 2px solid #fff;
  position: relative;
  margin: 4rem auto 0;
  text-align: center;
}

.logo {
  margin: 0;
  max-width: 5rem;
  height: auto;
}

.title {
  font-weight: 300;
  margin-top: 2rem;
}

.tagline {
  margin-top: -0.7rem;
  margin-bottom: 2.5rem;
}

.post {
  border-bottom: 2px solid #fff;
  padding-bottom: 0.8rem;
  position: relative;
}

.post--single {
  border-bottom: 0;
}

.post__title {
  font-weight: 200;
  margin-bottom: 0;
  display: inline-block;
}

.post__title--single {
  display: block;
  font-size: 3rem;
  text-align: center;
}

.post__date {
  position: absolute;
  font-weight: 300;
  right: 0;
  line-height: 3.5rem;
}

.post__date--single {
  display: block;
  position: static;
  right: auto;
  line-height: auto;
  text-align: center;
  margin-bottom: 0.5rem;
}

.post__content {
  font-size: 1.3rem;
  line-height: 1.6;
}

  .post__content a {
    text-decoration: none;
    padding: 0 1px;
    border-bottom: 2px solid #94b5c2;
    box-shadow: inset 0 -3px 0 #94b5c2;
    color: inherit;
    transition: cubic-bezier(.33,.66,.66,1);
    transition-property: color, background-color;
    transition-duration: 0.3s;
  }
  .post__content a:hover {
    background: #94b5c2;
    color: #fff;
  }
  .post__content h3 {
    font-size: 1.6rem;
    font-weight: normal;
    margin-top: 2.2rem;
  }

.post__content--single {
  padding-top: 2.2rem;
  border-top: 2px solid #fff;
}

.video {
  height: 0;
  padding-top: 2.5rem;
  padding-bottom: 67.5%;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

  .video embed, .video iframe, .video object, .video video {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
  }

.video.widescreen { padding-bottom: 57.25%; }
.video.vimeo { padding-top: 0; }

span[title] { border-bottom: 1px dotted; }
span.help { border-bottom: 1px dotted; cursor: help; }

.hidden {
  display: none;
}

.footer { margin-top: 5rem; }
.social { list-style: none none; margin: 0; padding: 0; text-align: center; }
.social li { display: inline-block; }

.social a {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  color: #1A5166;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.social__item--github a { background-image: url(/images/github.svg); }
.social__item--bluesky a { background-image: url(/images/bluesky.svg); }
.social__item--linkedin a { background-image: url(/images/linkedin.svg); }
.social__item--keybase a { background-image: url(/images/keybase.svg); }

.copyright { text-align: center; }

@media (max-width: 599px) {
  .post__date { display: none; }
  .post__date--single { display: block; }
  .post__content { font-size: 1rem; }
}

.site:has(.journal) {
  max-width: 44rem;
}

.journal .post__title {
  display: block;
  text-align: center;
  padding-top: 1rem;
  font-size: 1.6rem;
}

.journal .post__content {
  font-size: 1.25rem;
  font-weight: 350;
}
