/*
	Name: Smashing HTML5
	Date: July 2009
	Description: Sample layout for HTML5 and CSS3 goodness.
	Version: 2.0 - Responsive Update
	Author: Enrique Ramírez
	Autor URI: http://enrique-ramirez.com
*/

/* Imports */
@import url("reset.css");
@import url("pygment.css");
@import url("typogrify.css");
@import url("https://fonts.googleapis.com/css?family=Crimson+Text:400,400italic,600,600italic,700,700italic");

/***** Global *****/
/* Body */
body {
    background: #FDF6E3;
    color: #8A887B;
    font-size: 16px;
    font-family: 'Crimson Text', 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: left;
    text-shadow: 0px 0px 1px #BFBFBF;
    padding-top: 100px;
    min-width: 320px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

code {
    border: 1px solid #eaeaea;
    background-color: #f8f8f8;
    font-size: 0.875rem;
    font-style: normal;
    color: #777;
    border-radius: 7px;
    -moz-border-radius: 7px;
    -webkit-border-radius: 7px;
    padding: 0 3px;
    font-weight: normal;
    font-family: Consolas, "Liberation Mono", Courier, monospace;
    word-break: break-word;
}

/* Headings */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

h1, h2, h3, h4, h5, h6 {
    text-shadow: 0px 0px 1px #BFBFBF;
    font-weight: normal;
    font-style: normal;
    line-height: 1.3;
    margin-bottom: 0.5em;
    font-family: 'Crimson Text', arial, serif;
}

h3, h4, h5, h6 { margin-top: 0.8em; }

hr { border: 1px dotted #8A887B; }

/* Anchors */
a { outline: 0; }
a img { border: 0px; text-decoration: none; max-width: 100%; }
a:link, a:visited {
    color: inherit;
    padding: 0 1px;
    text-decoration: underline;
}
a:hover, a:active {
    text-decoration: underline;
}

h1 a:hover {
    background-color: inherit;
}

/* Paragraphs */
p { margin-bottom: 1.143em; line-height: 1.6; }

strong, b { font-weight: bold; }
em, i { font-style: italic; }

/* Lists */
ul {
    list-style: outside disc;
    margin: 1em 0 1.5em 1.5em;
}

ol {
    list-style: outside decimal;
    margin: 1em 0 1.5em 1.5em;
}

.post-info {
    font-size: 0.875rem;
}

.readmore { float: right }

dl { margin: 0 0 1.5em 0; }
dt { font-weight: bold; }
dd { margin-left: 1.5em; }

pre {
    background-color: #000;
    padding: 10px;
    color: #fff;
    margin: 10px 0;
    overflow: auto;
    max-width: 100%;
    box-sizing: border-box;
}

/* Quotes */
blockquote {
    margin: 20px;
    font-style: italic;
    padding-left: 15px;
    border-left: 3px solid #8A887B;
}

div.note {
    margin: 5px;
    font-size: 85%;
    max-width: 300px;
}

/* Tables */
table {
    margin: .5em auto 1.5em auto;
    width: 100%;
    overflow-x: auto;
    display: block;
}

/* HTML5 tags */
header, section, footer,
aside, nav, article, figure {
    display: block;
}

/***** Layout *****/
.body {
    width: 92%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 4%;
    box-sizing: border-box;
}

img.right, figure.right {
    float: right;
    margin: 0 0 1em 1em;
    max-width: 50%;
}

img.left, figure.left {
    float: left;
    margin: 0 1em 1em 0;
    max-width: 50%;
}

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

/*
	Header
*****************/
#banner {
    margin: 0 auto;
    padding: 1.5em 0 0 0;
    position: relative;
}

#banner h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 0.5em;
    text-align: center;
}

#banner h1 a:link, #banner h1 a:visited {
    color: #383732;
    display: inline-block;
    font-weight: normal;
    text-decoration: none;
}

#banner h1 a:hover, #banner h1 a:active {
    background: none;
    color: inherit;
}

#banner h1 strong {
    font-size: 0.6em;
    font-weight: normal;
    display: block;
    margin-top: 0.5em;
}

#tagline {
    text-align: center;
    font-style: italic;
    padding: 0;
    margin: 0 0 1.5em;
    font-size: 1.1rem;
}

#banner nav {
    padding: 0;
    text-align: center;
    width: 100%;
    font-style: italic;
    margin-bottom: 1.5em;
}

#banner nav ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

#banner nav li {
    margin: 0;
}

#banner nav a:link, #banner nav a:visited {
    display: inline-block;
    padding: 8px 15px;
    text-decoration: none;
    color: #8A887B;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#banner nav a:hover, #banner nav a:active,
#banner nav .active a:link, #banner nav .active a:visited {
    background: rgba(138, 136, 123, 0.1);
    text-decoration: underline;
}

/*
	Featured
*****************/
#featured {
    background: transparent;
    margin-bottom: 2em;
    overflow: hidden;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
}

#featured figure {
    border: 2px solid #eee;
    float: none;
    margin: 1em auto;
    max-width: 100%;
    width: auto;
}

#featured figure img {
    display: block;
    width: 100%;
    height: auto;
}

#featured h2 {
    color: inherit;
    font-size: 1.714em;
    margin-bottom: 0.333em;
}

#featured h3 {
    font-size: 1.429em;
    margin-bottom: .5em;
}

#featured h3 a:link, #featured h3 a:visited {
    color: #000305;
    text-decoration: none;
}

#featured h3 a:hover, #featured h3 a:active {
    color: #8A887B;
}

/*
	Body
*****************/
#content {
    background: transparent;
    margin-bottom: 2em;
    overflow: hidden;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
}

/*
	Extras
*****************/
#extras {
    margin: 0 auto 3em auto;
    overflow: hidden;
    width: 100%;
}

#extras ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#extras li {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

#extras h2 {
    color: inherit;
    font-size: 1.429em;
    margin-bottom: 1em;
    padding: 0;
}

#extras a:link, #extras a:visited {
    color: #444;
    display: block;
    text-decoration: none;
    padding: .3em 0;
}

#extras a:hover, #extras a:active {
    color: #8A887B;
}

#extras .blogroll {
    margin-bottom: 2em;
}

#extras .social {
    margin-bottom: 2em;
}

#extras div[class='social'] a {
    background-repeat: no-repeat;
    background-position: 0 6px;
    padding-left: 30px;
    margin-bottom: 8px;
}

/*
	About
*****************/
#about {
    background: transparent;
    font-style: italic;
    font-size: 0.875rem;
    margin-bottom: 2em;
    overflow: hidden;
    padding: 20px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
}

#about .primary {
    margin-bottom: 1em;
}

#about .primary strong {
    color: #C64350;
    display: block;
    font-size: 1.286em;
}

#about .photo {
    float: none;
    margin: 0 auto 1em;
    display: block;
    max-width: 150px;
}

#about .url:link, #about .url:visited {
    text-decoration: none;
}

#about .bio {
    width: 100%;
}

/*
	Footer
*****************/
#contentinfo {
    padding: 2em 0;
    text-align: center;
    font-size: 0.875rem;
}

/***** Sections *****/
/* Blog */
.hentry {
    display: block;
    clear: both;
    padding: 1.5em 0;
    border-bottom: 1px solid #eee;
}

.hentry:last-child {
    border-bottom: none;
}

.entry-title {
    text-align: center;
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 0.5em;
    margin-top: 0;
    line-height: 1.3;
}

.entry-title a:link, .entry-title a:visited {
    text-decoration: none;
    color: #8A887B;
}

.hentry .post-info * {
    font-style: normal;
}

.hentry footer {
    margin-bottom: 1.5em;
    font-size: 0.875rem;
}

.hentry footer address {
    display: inline;
}

#posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#posts-list .hentry {
    padding-left: 0;
}

#posts-list footer {
    position: relative;
    width: 100%;
    margin-bottom: 1em;
}

#about-author {
    background: #f9f9f9;
    clear: both;
    font-style: normal;
    margin: 2em 0;
    padding: 15px;
    border-radius: 5px;
    box-sizing: border-box;
}

#about-author strong {
    color: #C64350;
    display: block;
    font-size: 1.429em;
    margin-bottom: 0.5em;
}

#about-author .photo {
    border: 1px solid #ddd;
    float: none;
    margin: 0 auto 1em;
    display: block;
    max-width: 100px;
}

#comments-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#comments-list blockquote {
    background: #f8f8f8;
    clear: both;
    font-style: normal;
    margin: 0 0 1em;
    padding: 15px;
    border-radius: 5px;
    box-sizing: border-box;
}

#comments-list footer {
    color: #888;
    padding: 0.5em 0 0;
    text-align: left;
    font-size: 0.875rem;
}

#add-comment label {
    display: block;
    margin-bottom: 5px;
    width: 100%;
}

#add-comment input[type='text'],
#add-comment input[type='email'],
#add-comment input[type='url'],
#add-comment textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1em;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#add-comment textarea {
    height: 150px;
    resize: vertical;
}

#add-comment input[type='submit'] {
    padding: 10px 20px;
    background: #8A887B;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
}

#add-comment input[type='submit']:hover {
    background: #383732;
}

/* Media Queries */
@media screen and (min-width: 768px) {
    body {
        padding-top: 120px;
    }
    
    #banner h1 {
        font-size: 3rem;
    }
    
    #banner nav ul {
        gap: 20px;
    }
    
    #featured figure {
        float: right;
        margin: 0.786em 0 0 2em;
        width: 248px;
    }
    
    #extras .blogroll {
        float: left;
        width: 70%;
    }
    
    #extras .blogroll li {
        float: left;
        width: 48%;
        margin-right: 2%;
        box-sizing: border-box;
    }
    
    #extras .blogroll li:nth-child(2n) {
        margin-right: 0;
    }
    
    #extras .social {
        float: right;
        width: 28%;
    }
    
    #about .primary {
        float: left;
        width: 20%;
    }
    
    #about .photo {
        float: left;
        margin: 5px 20px;
    }
    
    #about .bio {
        float: right;
        width: 70%;
    }
    
    #posts-list footer {
        float: left;
        width: 25%;
    }
    
    #posts-list .entry-content {
        float: right;
        width: 70%;
    }
    
    #about-author .photo {
        float: left;
        margin: 5px 1em 0 0;
    }
    
    img.right, figure.right {
        margin: 0 0 2em 2em;
        max-width: 40%;
    }
    
    img.left, figure.left {
        margin: 0 2em 2em 0;
        max-width: 40%;
    }
}

@media screen and (min-width: 1024px) {
    .body {
        width: 90%;
        max-width: 1200px;
        padding: 0;
    }
    
    #banner nav {
        width: 100%;
    }
    
    #banner nav ul {
        width: auto;
    }
    
    #extras .blogroll li {
        width: 30%;
        margin-right: 3.33%;
    }
    
    #extras .blogroll li:nth-child(2n) {
        margin-right: 3.33%;
    }
    
    #extras .blogroll li:nth-child(3n) {
        margin-right: 0;
    }
    
    #add-comment label {
        float: left;
        width: 150px;
        text-align: right;
        padding-right: 15px;
        margin-top: 8px;
    }
    
    #add-comment input[type='text'],
    #add-comment input[type='email'],
    #add-comment input[type='url'] {
        float: left;
        width: 300px;
    }
    
    #add-comment textarea {
        float: left;
        width: 460px;
        margin-left: 165px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding-top: 80px;
        font-size: 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.1rem; }
    
    #banner h1 {
        font-size: 2rem;
    }
    
    #banner nav ul {
        flex-direction: column;
        gap: 5px;
    }
    
    #banner nav a:link, #banner nav a:visited {
        display: block;
        padding: 10px;
    }
    
    .entry-title {
        font-size: 1.75rem;
    }
    
    #featured, #content, #about {
        padding: 15px;
    }
    
    img.right, figure.right,
    img.left, figure.left {
        float: none;
        margin: 1em auto;
        max-width: 100%;
        display: block;
    }
}

/* Print Styles */
@media print {
    body {
        font-size: 12pt;
        background: white;
        color: black;
        padding-top: 0;
    }
    
    a:link, a:visited {
        color: black;
        text-decoration: underline;
    }
    
    #banner nav, #extras, #about, #contentinfo,
    .readmore, .post-info {
        display: none;
    }
    
    #banner h1 {
        font-size: 24pt;
        text-align: left;
    }
    
    .body {
        width: 100%;
        max-width: none;
        padding: 0;
    }
    
    img {
        max-width: 100% !important;
    }
}