html.light {
    background-color: #FEFEFE;
}

ul, ol {
    color: #666;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2em;
    color: rgb(102, 102, 102);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 3.0rem; }
h3 { font-size: 2.5rem; }

.post-content h1 { font-size: 4.2rem; padding-top: 0.8em; }
.post-content h2 { font-size: 3.4rem; padding-top: 0.8em; }
.post-content h3 { font-size: 2.8rem; padding-top: 0.8em; font-weight:400;}
.post-content h4 { font-size: 2.2rem; padding-top: 0.8em; }
.post-content h5 { font-size: 2.0rem; padding-top: 0.8em; font-weight:400;}

hr {
    width: 80%;
    border: 0;
    border-top:1px solid #ccc;
}

.pagination {
    font-size: 1.3rem;
}

.post {
    width: 90%;
    max-width: 710px;
    margin: 4rem auto;
    padding-bottom: 4rem;
    word-break: break-word;
    text-align: left;
    line-height: 1.6em;
}

.post img {
    max-width: 100%;
}

a {
    transition: color ease 0.3s;
}

.post-excerpt {
    padding-top: 0;
}

.post-excerpt p {
    padding-left: 0;
}

.post-title a {
    text-decoration: none;  
    color: #666;
}

.post-title a:hover {
    color: #2087de;
}

.author-thumb {
    width: 24px;
    height: 24px;
    float: left;
    margin-right: 9px;
    border-radius: 100%;
}

.post-meta {
    display: block;
    margin: 0.75rem 0 0 0;
    font-size: 1.5rem;
    line-height: 2.2rem;
    padding-top: 0;
    color: #9EABB3;
}

.post-meta a {
   color: #9EABB3;
}


.page-title {
    text-align: center;   
}

.page-title img {
    vertical-align: middle;
    margin-right: 0.3em;
}

.blog-icon {
    height: 98px; 
    width: 83px;
}


/*-------------------------------------------*/
/* POST Page */

body.post-template .post-title {
    margin-top: 2em;   
    line-height: 1.2em;
}

.post-footer {
    position: relative;
    margin: 6rem 0 0 0;
    padding: 6rem 0 0 0;
    border-top: #EBF2F6 1px solid;
}

.post-footer a {
    color: #4A4A4A;
}

section:not(.main-header) .author-image,
main.pageContent .author-image{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    position: absolute;
    top: -60px;
    left: 50%;
    margin-left: -40px;
    width: 80px;
    height: 80px;
    border-radius: 100%;
    overflow: hidden;
    padding: 6px;
    background: #fff;
    z-index: 2;
    box-shadow: #E7EEF2 0 0 0 1px;
}

.main-header .author-image{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    width: 80px;
    height: 80px;
    border-radius: 100%;
    overflow: hidden;
    background: #fff;
    z-index: 2;
    box-shadow: #E7EEF2 0 0 0 1px;
    margin-right: 0.1em;
}

.main-header .tag-image{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    width: 80px;
    height: 80px;
    overflow: hidden;
    margin-right: 0.1em;
}

.author-image .img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    border-radius: 100%;
}

.tag-image .img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
}
    

.post-footer .author {
    margin-right: 180px;
}

.post-footer .share {
    position: absolute;
    top: 5rem;
    right: 0;
    width: 140px;
    color: #aaa;
    font-size: 1.3rem;
    text-align: center;
    padding-top: 0;
}

.post-footer .share a {
    font-size: 2.2rem;
    display: inline-block;
    margin: 1rem 1.6rem 1.6rem 0;
    color: #aaa;

}

.post-footer h4 {
 	font-family: "open-sans", "Lucida Grande", sans-serif;
	font-weight: 400;
}

/*---------------------*/


blockquote {
    margin: 0;
    padding-left: 30px;
    border-left: 4px solid #EBF2F6;
}

blockquote p {
    color: #9b9b9b;
    font-style: italic;
}

blockquote a
{
    color: #9b9b9b;
    text-decoration: underline;
}


/*---------------------*/

.post-content img:not(.full-img) {
    margin: 0 auto;
    display: block;
    zoom: 50%;
}

.post-content .full-img {
    width: auto;
    width: calc(100% + 32px); /* expand with to image + margins */
    margin: 0 -16px; /* get rid of margins */
    min-width: 0;
    max-width: 112%; /* fallback when calc doesn't work */
}

/* Stop .full-img from creating horizontal scroll - slight hack due to
   imperfections with browser width % calculations and rounding */
.post-template .content {
    overflow: hidden;
}

/* Break out larger images to be wider than the main text column
   the class is applied with jQuery */
.post-content .full-img {
    width: 106%;
    max-width: none;
    margin: 0 -3%;
}

.post-content {
    padding-top: 0.5em;
}


/*-----------------------------------------*/
a.discovery-toggle {   
    color: inherit;
    border: 1px solid #CCC;
    position: absolute;
    margin-top: 11px;
    padding: 0.3em 0.6em;
    border-radius: 4px;
    margin-left: 3em;
    font-size: 1.3rem;
    text-decoration: none;
    background-color: #FFF;
}

a.discovery-toggle:hover {   
    background-color: #FAFAFA;
}

section.teaser {
    border-bottom: none;
}

section.discover {
    padding: 0;
    margin-top: -24px;
    margin-bottom: 2rem;
    background-color: transparent;

    height: 50px;
    max-height: 50px;
    
    position: -webkit-sticky;
    top:0;
    right:0;
    left:0;
    
    border: none;
    
    -webkit-transition: -webkit-transform 0s,max-height 0.2s, background-color 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
    transition: transform 0s, max-height 0.2s, ,background-color 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
    z-index: 100;
}

section.discover.locked {
    border-bottom: 1px solid #CCC;
    
    background-color: rgba(255,255,255,0.60) !important;
    -webkit-backdrop-filter: blur(30px);
}

.no-cssbdf section.discover.locked {
	background-color: rgba(255,255,255,0.98) !important;
}

section.discover.highlighted {
    transition: max-height 500ms linear;
    height: auto;
    max-height: 500px; 
    border-top: 1px solid #CCC;   
    border-bottom: 1px solid #CCC;
    background-color: #FFF;
}

section.discover table tr > td {
    padding-top: 0.6em;
    padding-bottom: 0.6em;
}

section.discover.highlighted #posts-table {
    display: table;
}

section.discover h4 {
    display: none;
    float:right;
    margin-right: 3em;
    margin-top: 1em;
    
}

section.discover.locked:not(.highlighted) h4 {
    display: block;
}

#posts-filter {
    opacity: 0;

    position: absolute;
    right: 3em;
    top: 1em;
}

section.discover.highlighted #posts-filter {
    opacity: 1;
}

#posts-table {
    display: none;
    margin: 3em auto 2em;
    width: 70%;
    max-width: 710px;
    transition: opacity 50ms ease;
}

td.post-title {
    font-size: 1.8rem; 
    font-weight: 300;
}

td.meta-info {
    font-size: 1.3rem;
    text-align: right;
    color: #747d83;
    min-width: 130px;
}

/*---------------------------*/

pre {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0 0 1.75em 0;
    border: #E3EDF3 1px solid;
    width: 100%;
    padding: 10px;
    font-family: Inconsolata, monospace, sans-serif;
    font-size: 0.9em;
    white-space: pre;
    overflow: auto;
    background: #FCFCFC;
    border-radius: 5px;
}

pre code, tt {
    font-size: 0.85em;
    white-space: -moz-pre-wrap;
    white-space: pre-wrap;
    background: transparent;
    border: none;
    padding: 0;
}

code, tt {
    padding: 1px 3px;
    font-family: Menlo, 'Lucida Console', monospace;
    font-size: 0.85em;
    white-space: pre-wrap;
    border: #E3EDF3 1px solid;
    background: #F7FAFB;
    border-radius: 2px;
}

/* Archive Page */
a.archive-button {
    text-decoration: none;
    border-radius: 8px;
    color: #666;
    border: 1px #a2a2a2 solid;
    padding: 0.3em 0.8em;
}

a.archive-button:hover {
    background-color: rgba(0, 0, 0, 0.02);
}


@media screen and (max-width: 40em) {
	section.teaser {
		padding-top: 86px;
		padding-bottom: 48px;
	}

    /* General Font Size Adjustments */
    h1 {
        font-size: 3.5rem;
    }
    
    .post-meta {
        font-size: 1.3rem;
    }
    
    td.post-title {
        font-size: 1.5rem;
    }

    
    /* Discovery Section */
    #posts-table {
        width: 90%;
	}
    
    a.discovery-toggle {
		margin-left: 5%;
    }
    
    #posts-filter {
        right: 1.85em;
    } 
}
