/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0; font: inherit; font-size: 100%; vertical-align: baseline; }
html { overflow-y: scroll; font-size: 62.5%; -webkit-tap-highlight-color: rgba(0,0,0,0); }
body, html { overflow-x: hidden; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
img { max-width: 100%; border: 0; }
svg:not(:root) { overflow: hidden; }
table { border-spacing: 0; border-collapse: collapse; }
input:focus { outline: none; }
textarea { resize: vertical; overflow: auto; }
mark { background-color: #fdffb6; }

/* ===== BASE ===== */
html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  color: #3c484e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 1.5rem;
  line-height: 1.6em;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  background: #f4f8fb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { text-shadow: none; background: #cbeafb; }
::-moz-selection { text-shadow: none; background: #cbeafb; }
hr { position: relative; display: block; width: 100%; margin: 2.5em 0 3.5em; height: 1px; border-top: 1px solid #e3e9ed; }
audio, canvas, iframe, img, svg, video { vertical-align: middle; }
a { color: #26a8ed; text-decoration: none; background-color: transparent; }
a:hover { text-decoration: underline; }
a:active, a:hover { outline: 0; }
b, strong { font-weight: 700; }
dfn, em, i { font-style: italic; }
small { font-size: 80%; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; line-height: 1.15; font-weight: 700; text-rendering: optimizeLegibility; }
h1 { margin: 0 0 .5em; font-size: 5rem; font-weight: 700; }
h2 { margin: 1.5em 0 .5em; font-size: 2rem; }
h3 { margin: 1.5em 0 .5em; font-size: 1.8rem; font-weight: 500; }
h4 { margin: 1.5em 0 .5em; font-size: 1.6rem; font-weight: 500; }
h5, h6 { margin: 1.5em 0 .5em; font-size: 1.4rem; font-weight: 500; }
@media (max-width: 500px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.7rem; }
}
blockquote { margin: 1.5em 0; padding: 0 1.6em; border-left: .5em solid #e5eff5; }
blockquote p { margin: .8em 0; font-size: 1.2em; font-weight: 300; }
p { margin: 0 0 1.5em; }
ol, ul { margin: 0 0 1.5em; padding-left: 1.3em; padding-right: 1.5em; }
ul { list-style: disc; }
ol { list-style: decimal; }
li { margin: .5em 0; padding-left: .3em; line-height: 1.6em; }

/* ===== LAYOUT ===== */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { z-index: 100; flex-grow: 1; }
.outer { position: relative; padding: 0 4vw; }
.inner { margin: 0 auto; max-width: 1040px; width: 100%; }

/* ===== SITE HEADER ===== */
.site-header {
  position: relative;
  padding-top: 12px;
  padding-bottom: 12px;
  color: #fff;
  background: #090a0b no-repeat 50%;
  background-size: cover;
}
.site-header::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 10;
  display: block;
  background: rgba(0,0,0,.18);
}
.site-header::after {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  bottom: auto;
  z-index: 10;
  display: block;
  height: 80px;
  background: linear-gradient(rgba(0,0,0,.1), transparent);
}
.site-header-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10vw 4vw;
  min-height: 200px;
  max-height: 450px;
  text-align: center;
}
.site-title { z-index: 10; margin: 0; padding: 0; font-size: 3.8rem; font-weight: 700; }
.site-logo { max-height: 45px; }
.site-description { z-index: 10; margin: 0; padding: 5px 0; font-size: 2.2rem; font-weight: 300; letter-spacing: .5px; opacity: .8; }
@media (max-width: 500px) {
  .site-title { font-size: 3rem; }
  .site-description { font-size: 1.8rem; }
}

/* ===== NAV ===== */
.site-nav {
  position: relative;
  z-index: 300;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 40px;
  font-size: 1.2rem;
}
.site-nav-left {
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-right: 10px;
  padding-bottom: 80px;
  letter-spacing: .4px;
  white-space: nowrap;
}
.site-nav-logo {
  flex-shrink: 0;
  display: block;
  margin-right: 24px;
  padding: 11px 0;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1em;
  font-weight: 700;
  letter-spacing: -.5px;
}
.site-nav-logo:hover { text-decoration: none; }
.site-nav-logo img { display: block; width: auto; height: 21px; }
.nav { display: flex; margin: 0 0 0 -12px; padding: 0; list-style: none; }
.nav li { padding: 0; text-transform: uppercase; display: block; margin: 0; }
.nav li a { display: block; margin: 0; padding: 10px 12px; color: #fff; opacity: .8; }
.nav li a:hover { text-decoration: none; opacity: 1; }
.site-nav-right {
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.social-links { flex-shrink: 0; display: flex; align-items: center; }
.social-links a:last-of-type { padding-right: 20px; }
.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 10px;
  color: #fff;
  opacity: .8;
}
.social-link:hover { opacity: 1; }
.social-link svg { height: 1.8rem; fill: #fff; }
.social-link-fb svg { height: 1.5rem; }
.rss-button { opacity: .8; }
.rss-button:hover { opacity: 1; }
.rss-button svg { margin-bottom: 1px; height: 2.1rem; fill: #fff; }
@media (max-width: 700px) {
  .site-header { padding-right: 0; padding-left: 0; }
  .site-nav-left { margin-right: 0; padding-left: 4vw; }
  .site-nav-right { display: none; }
}

/* ===== POST FEED (HOME) ===== */
@media (min-width: 900px) {
  .home-template .post-feed { margin-top: -70px; padding-top: 0; }
  .home-template .site-nav { position: relative; top: -70px; }
}
.home-template .site-header::after { display: none; }
.post-feed {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -20px;
  padding: 40px 0 0;
}
.post-card {
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  overflow: hidden;
  margin: 0 20px 40px;
  min-height: 300px;
  background: #fff 50%;
  background-size: cover;
  border-radius: 5px;
  box-shadow: 8px 14px 38px rgba(39,44,49,.06), 1px 3px 8px rgba(39,44,49,.03);
  transition: all .5s ease;
}
.post-card:hover {
  box-shadow: 8px 28px 50px rgba(39,44,49,.07), 1px 6px 12px rgba(39,44,49,.04);
  transition: all .4s ease;
  transform: translate3D(0,-1px,0) scale(1.02);
}
.post-card-image-link { position: relative; display: block; overflow: hidden; border-radius: 5px 5px 0 0; }
.post-card-image { width: auto; height: 200px; background: #c5d2d9 no-repeat 50%; background-size: cover; }
.post-card-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.post-card-content-link {
  position: relative;
  flex-grow: 1;
  display: block;
  padding: 25px 25px 0;
  color: #15171a;
}
.post-card-content-link:hover { text-decoration: none; }
.post-card-tags {
  display: block;
  margin-bottom: 4px;
  color: #738a94;
  font-size: 1.2rem;
  line-height: 1.15em;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.post-card-title { margin-top: 0; }
.post-card-excerpt { font-family: Georgia, serif; }
.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 25px 25px;
}
.author-list { display: flex; flex-wrap: wrap-reverse; margin: 0; padding: 0; list-style: none; }
.author-list-item { position: relative; flex-shrink: 0; margin: 0; padding: 0; }
.author-list-item:first-child { z-index: 10; }
.static-avatar { display: block; overflow: hidden; border: 2px solid #fff; border-radius: 100%; margin: 0 -5px; width: 34px; height: 34px; }
.author-profile-image { display: block; width: 100%; height: 100%; background: #e3e9ed; border-radius: 100%; object-fit: cover; }
.author-name-tooltip {
  position: absolute;
  bottom: 105%;
  z-index: 999;
  display: block;
  padding: 2px 8px;
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: .2px;
  white-space: nowrap;
  background: #15171a;
  border-radius: 3px;
  box-shadow: 0 12px 26px rgba(39,44,49,.08), 1px 3px 8px rgba(39,44,49,.03);
  opacity: 0;
  transition: all .3s cubic-bezier(.4,.01,.165,.99);
  transform: translateY(6px);
  pointer-events: none;
}
.author-list-item:hover .author-name-tooltip { opacity: 1; transform: translateY(0); }
.reading-time {
  flex-shrink: 0;
  margin-left: 20px;
  color: #738a94;
  font-size: 1.2rem;
  line-height: 33px;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
}
/* Featured first card (wide) */
@media (min-width: 795px) {
  .home-template .post-feed .post-card:nth-child(6n+1):not(.no-image) {
    flex: 1 1 100%;
    flex-direction: row;
  }
  .home-template .post-feed .post-card:nth-child(6n+1):not(.no-image) .post-card-image-link {
    position: relative;
    flex: 1 1 auto;
    border-radius: 5px 0 0 5px;
  }
  .home-template .post-feed .post-card:nth-child(6n+1):not(.no-image) .post-card-image {
    position: absolute;
    width: 100%;
    height: 100%;
  }
  .home-template .post-feed .post-card:nth-child(6n+1):not(.no-image) .post-card-content { flex: 0 1 357px; }
  .home-template .post-feed .post-card:nth-child(6n+1):not(.no-image) h2 { font-size: 2.6rem; }
  .home-template .post-feed .post-card:nth-child(6n+1):not(.no-image) p { font-size: 1.8rem; line-height: 1.55em; }
  .home-template .post-feed .post-card:nth-child(6n+1):not(.no-image) .post-card-content-link { padding: 30px 40px 0; }
  .home-template .post-feed .post-card:nth-child(6n+1):not(.no-image) .post-card-meta { padding: 0 40px 30px; }
}
@media (max-width: 650px) {
  .post-feed { padding-top: 5vw; }
  .post-card { margin: 0 20px 5vw; }
}

/* ===== POST FULL (ARTICLE PAGE) ===== */
.page-template .site-main,
.post-template .site-main { padding-bottom: 4vw; background: #fff; }
.post-full { position: relative; z-index: 50; }
.post-full-header {
  margin: 0 auto;
  padding: 6vw 3vw 3vw;
  max-width: 1040px;
  text-align: center;
}
@media (max-width: 500px) { .post-full-header { padding: 14vw 3vw 10vw; } }
.post-full-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #738a94;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
}
.post-full-meta-date { color: #3eb0ef; }
.post-full-title { margin: 0; color: #090a0b; }
.date-divider { display: inline-block; margin: 0 6px 1px; }
.post-full-image {
  margin: 0 -10vw -165px;
  height: 50vh;
  background: #c5d2d9 50%;
  background-size: cover;
  border-radius: 5px;
}
@media (max-width: 1170px) {
  .post-full-image { margin: 0 -4vw -100px; height: 600px; border-radius: 0; }
}
@media (max-width: 800px) { .post-full-image { height: 400px; } }
.post-full-content {
  position: relative;
  margin: 0 auto;
  padding: 70px 100px 0;
  min-height: 230px;
  font-family: Georgia, serif;
  font-size: 2.2rem;
  line-height: 1.6em;
  background: #fff;
}
@media (max-width: 1170px) { .post-full-content { padding: 5vw 7vw 0; } }
@media (max-width: 800px) { .post-full-content { font-size: 1.9rem; } }
.post-full-content::before,
.post-full-content::after {
  content: "";
  position: absolute;
  top: 15px;
  z-index: -1;
  display: block;
  width: 20px;
  height: 200px;
  background: rgba(39,44,49,.15);
  filter: blur(5px);
}
.post-full-content::before { left: -5px; transform: rotate(-5deg); }
.post-full-content::after { right: -5px; transform: rotate(5deg); }
.post-full-content p,
.post-full-content blockquote,
.post-full-content dl,
.post-full-content ol,
.post-full-content ul,
.post-full-content h1,
.post-full-content h2,
.post-full-content h3,
.post-full-content h4,
.post-full-content h5,
.post-full-content h6,
.post-full-content pre { min-width: 100%; }
.post-full-content a { color: #000; box-shadow: inset 0 -1px 0 #3eb0ef; }
.post-full-content a:hover { color: #3eb0ef; text-decoration: none; }
.post-full-content em,
.post-full-content strong { color: #090a0b; }
.post-full-content img,
.post-full-content video { display: block; margin: 1.5em auto; max-width: 1040px; }
@media (max-width: 1040px) {
  .post-full-content img,
  .post-full-content video { width: 100%; }
}
.post-full-content blockquote { margin: 0 0 1.5em; padding: 0 1.5em; border-left: 3px solid #3eb0ef; }
.post-full-content blockquote p { margin: 0 0 1em; font-style: italic; }
.post-full-content h1,
.post-full-content h2,
.post-full-content h3,
.post-full-content h4,
.post-full-content h5,
.post-full-content h6 {
  color: #090a0b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
@media (max-width: 500px) {
  .post-full-meta { font-size: 1.2rem; line-height: 1.3em; }
  .post-full-title { font-size: 2.9rem; }
  .post-full-image { margin-bottom: 4vw; height: 350px; }
  .post-full-content { padding: 0; }
  .post-full-content::before, .post-full-content::after { display: none; }
}

/* ===== KG POST ===== */
.kg-post {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 920px;
}
.post-template .kg-post > p:first-child { font-size: 1.25em; line-height: 1.5em; }
.post-full-content .kg-image { max-width: 100%; }
.post-full-content .kg-image-wide { max-width: 1040px; }
.kg-image-card { margin: 0 0 1.5em; }

/* ===== POST FOOTER / AUTHOR ===== */
.post-full-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 3vw 0 6vw;
  max-width: 840px;
}
.author-card {
  display: flex;
  align-items: center;
}
.author-card .author-profile-image { width: 60px; height: 60px; }
.author-card-content { margin-left: 15px; }
.author-card-name { margin: 8px 0 2px; padding: 0; font-size: 2rem; }
.author-card-name a { color: #15171a; font-weight: 700; }
.author-card-name a:hover { text-decoration: none; }
.author-card-content p { margin: 0; color: #738a94; line-height: 1.3em; }
.post-full-footer-right { flex-shrink: 0; margin-left: 20px; }
.author-card-button {
  display: block;
  padding: 9px 16px;
  border: 1px solid #aebbc1;
  color: #738a94;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 500;
  border-radius: 20px;
  transition: all .2s ease;
}
.author-card-button:hover { border-color: #3eb0ef; color: #3eb0ef; text-decoration: none; }

/* ===== FLOATING HEADER ===== */
.floating-header {
  visibility: hidden;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  height: 60px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: hsla(0,0%,100%,.95);
  transition: all .5s cubic-bezier(.19,1,.22,1);
  transform: translate3d(0,-120%,0);
}
.floating-active {
  visibility: visible;
  transition: all .5s cubic-bezier(.22,1,.27,1);
  transform: translateZ(0);
}
.floating-header-logo {
  overflow: hidden;
  margin: 0 0 0 20px;
  font-size: 1.6rem;
  line-height: 1em;
  letter-spacing: -1px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.floating-header-logo a {
  display: flex;
  align-items: center;
  color: #15171a;
  line-height: 1.1em;
  font-weight: 700;
}
.floating-header-logo a:hover { text-decoration: none; }
.floating-header-logo img { margin: 0 10px 0 0; max-height: 20px; }
.floating-header-divider { margin: 0 5px; line-height: 1em; }
.floating-header-title {
  flex: 1;
  overflow: hidden;
  margin: 0;
  color: #2e2e2e;
  font-size: 1.6rem;
  line-height: 1.3em;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.floating-header-share {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-left: 2%;
  font-size: 1.3rem;
  line-height: 1;
}
.floating-header-share a { display: flex; align-items: center; justify-content: center; }
.floating-header-share svg { width: auto; height: 16px; fill: #fff; }
.floating-header-share-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-right: 10px;
  color: rgba(0,0,0,.7);
  font-weight: 500;
}
.floating-header-share-label svg {
  margin: 0 5px 0 10px;
  width: 18px;
  height: 18px;
  stroke: rgba(0,0,0,.7);
  transform: rotate(90deg);
  fill: none;
}
.floating-header-share-tw,
.floating-header-share-fb {
  display: block;
  align-items: center;
  width: 60px;
  height: 60px;
  color: #fff;
  line-height: 60px;
  text-align: center;
  transition: all .5s cubic-bezier(.19,1,.22,1);
}
.floating-header-share-tw { background: #33b1ff; }
.floating-header-share-fb { background: #005e99; }
.progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  border: none;
  color: #3eb0ef;
  background: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.progress::-webkit-progress-bar { background-color: transparent; }
.progress::-webkit-progress-value { background-color: #3eb0ef; }
.progress::-moz-progress-bar { background-color: #3eb0ef; }
@media (max-width: 900px) {
  .floating-header { height: 40px; }
  .floating-header-logo, .floating-header-title { font-size: 1.5rem; }
  .floating-header-share-fb, .floating-header-share-tw { width: 40px; height: 40px; line-height: 40px; }
}
@media (max-width: 800px) {
  .floating-header-logo { margin-left: 10px; }
  .floating-header-logo a { color: #2e2e2e; }
  .floating-header-divider, .floating-header-title { visibility: hidden; }
}
@media (max-width: 450px) { .floating-header-share-label { display: none; } }

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  padding-top: 20px;
  padding-bottom: 60px;
  color: #fff;
  background: #000;
}
.site-footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
  color: hsla(0,0%,100%,.7);
}
.site-footer-content a { color: hsla(0,0%,100%,.7); }
.site-footer-content a:hover { color: #fff; text-decoration: none; }
.site-footer-nav { display: flex; }
.site-footer-nav a { position: relative; margin-left: 20px; }
.site-footer-nav a::before {
  content: "";
  position: absolute;
  top: 11px;
  left: -11px;
  display: block;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 100%;
}
.site-footer-nav a:first-of-type::before { display: none; }
@media (max-width: 650px) {
  .site-footer-content { flex-direction: column; }
  .site-footer-nav a:first-child { margin-left: 0; }
}
