/* Gabriella Coleman - Static Site CSS
   Based on the Golden Grid System (GGS) by Joni Korpi
   Matching the original WordPress theme styling */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: "HelveticaNeueLight", "HelveticaNeue-Light", "Helvetica Neue Light", "HelveticaNeue", "Helvetica Neue", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
    font-weight: 300;
    font-stretch: normal;
    font-size: 14px;
    color: #858585;
    background-color: #fffaf0;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 950px;
    width: 87%;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "HelveticaNeueLight", "HelveticaNeue-Light", "Helvetica Neue Light", "HelveticaNeue", "Helvetica Neue", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
    font-weight: 300;
    color: #1d6c70;
    margin-top: 0;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 26px;
    letter-spacing: 0.75px;
}

h2 {
    font-size: 1.4em;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

h3 {
    font-size: 1.2em;
    margin-top: 1em;
}

h4 {
    font-size: 1em;
    margin-bottom: 1px;
}

p {
    margin-bottom: 1em;
}

/* Links */
a {
    color: #1d6c70;
    text-decoration: none;
}

a:hover,
a:active,
a:focus {
    text-decoration: underline;
}

/* Header */
header {
    text-align: center;
    margin-top: 75px;
    max-width: 950px;
    width: 87%;
    margin-left: auto;
    margin-right: auto;
}

.site-title {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 0.75px;
    margin-bottom: 15px;
}

.site-title a {
    color: #0c4245;
    text-decoration: none;
    letter-spacing: 0.75px;
}

.site-title a:hover {
    color: #a75362;
    text-decoration: none;
}

/* Nyan Cat Animation */
.nyan-cat {
    position: fixed;
    top: 10px;
    left: 0;
    width: 30px;
    height: auto;
    z-index: 1000;
    animation: nyan-fly 10s linear infinite;
}

@keyframes nyan-fly {
    0% {
        left: -50px;
    }
    100% {
        left: 100vw;
    }
}

/* Navigation */
nav {
    padding-top: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #94948C;
    margin-bottom: 5px;
    position: relative;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

nav li {
    height: 0;
    padding-top: 12.1%;
    width: 12.1%;
    border-radius: 100%;
    box-sizing: border-box;
    border: 2px solid #CAA3A7;
    opacity: 1;
    vertical-align: bottom;
    position: relative;
    list-style-type: none;
    display: inline-block;
    margin: 0 0.5%;
    -webkit-transition: opacity 500ms ease-out, transform 500ms ease-out;
    transition: opacity 500ms ease-out, transform 500ms ease-out;
}

nav li:hover {
    opacity: 0.7;
    -webkit-transform: scale(0.97);
    transform: scale(0.97);
}

nav li .link-wrapper {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    border: 2px solid #90B0AC;
    border-radius: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav li a {
    color: #1d6c70;
    font-size: 11px;
    text-align: center;
    text-decoration: none;
    padding: 5px;
    display: block;
}

nav li a:hover {
    text-decoration: none;
}

/* Main Content */
main {
    max-width: 950px;
    width: 87%;
    margin: 0 auto;
    padding: 25px 0 30px;
}

/* Bio Section */
.bio-section {
    margin-bottom: 2em;
}

.bio-image {
    float: right;
    margin: 0 0 1em 1.5em;
    max-width: 200px;
}

.bio-image img {
    display: block;
    width: 100%;
    height: auto;
}

.short-bio, .long-bio {
    margin-bottom: 1.5em;
}

.bio-label {
    font-weight: bold;
    font-size: 0.9em;
    color: #1d6c70;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5em;
}

/* Writing and Books Lists */
.writing-list,
.books-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.writing-list li,
.books-list li {
    list-style: none;
    display: inline-block;
    width: 26%;
    vertical-align: top;
    text-align: center;
    padding: 1.5% 3.5%;
    -webkit-transition: opacity 200ms;
    transition: opacity 200ms;
}

.writing-list li:hover,
.books-list li:hover {
    opacity: 0.7;
}

.books-list li img {
    width: 95%;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.books-list li h4 {
    min-height: 2em;
    color: #1d6c70;
}

.writing-list .post-title,
.books-list .post-title {
    width: 100%;
    color: #1d6c70;
    font-size: 1em;
}

.writing-list .details {
    margin-bottom: 1em;
    color: #858585;
    font-size: 0.9em;
}

/* Entry Lists (for other pages) */
.entry-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.entry-list li {
    list-style: none;
    display: inline-block;
    width: 26%;
    vertical-align: top;
    text-align: center;
    padding: 1.5% 3.5%;
    -webkit-transition: opacity 200ms;
    transition: opacity 200ms;
}

.entry-list li:hover {
    opacity: 0.7;
}

.entry-title {
    color: #1d6c70;
    font-size: 1em;
    margin-bottom: 5px;
}

.entry-title a {
    color: #1d6c70;
}

.entry-meta {
    color: #858585;
    font-size: 0.85em;
    font-style: normal;
}

/* Teaching List */
.teaching-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.teaching-list li {
    list-style: none;
    display: inline-block;
    width: 26%;
    vertical-align: top;
    text-align: center;
    padding: 1.5% 3.5%;
    -webkit-transition: opacity 200ms;
    transition: opacity 200ms;
}

.teaching-list li:hover {
    opacity: 0.7;
}

/* Video List */
.video-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.video-list li {
    list-style: none;
    display: inline-block;
    width: 26%;
    vertical-align: top;
    text-align: center;
    padding: 1.5% 3.5%;
    -webkit-transition: opacity 200ms;
    transition: opacity 200ms;
}

.video-list li:hover {
    opacity: 0.7;
}

.video-venue {
    color: #858585;
    font-size: 0.9em;
}

/* Contact Section */
.contact-section {
    margin-bottom: 2em;
}

.contact-section p {
    margin-bottom: 0.75em;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px 0;
    background: #f9f7ea;
    font-size: 12px;
    color: #858585;
    max-width: 100%;
}

footer a {
    color: #1d6c70;
}

footer a:hover {
    color: #a75362;
}

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.clearfloat {
    clear: both;
    height: 0;
    font-size: 1px;
    line-height: 0px;
}

/* Float helpers */
.fltrt {
    float: right;
    margin-left: 8px;
}

.fltlft {
    float: left;
    margin-right: 8px;
}

/* Responsive - Tablet */
@media (max-width: 975px) {
    .container,
    header,
    main {
        width: 95%;
    }
}

@media (max-width: 820px) {
    .writing-list li,
    .books-list li,
    .entry-list li,
    .teaching-list li,
    .video-list li {
        width: 42.6%;
    }
}

@media (max-width: 700px) {
    nav li {
        width: 20%;
        padding-top: 20%;
        margin: 1% 2%;
    }

    nav li a {
        font-size: 10px;
    }
}

/* Responsive - Mobile */
@media (max-width: 550px) {
    header {
        margin-top: 50px;
    }

    .bio-image {
        float: none;
        margin: 0 auto 1em auto;
        display: block;
    }

    .writing-list li,
    .books-list li,
    .entry-list li,
    .teaching-list li,
    .video-list li {
        width: 80%;
        margin: 1.5% 8.5%;
    }

    nav li {
        width: 25%;
        padding-top: 25%;
        margin: 2% 3%;
    }

    h1 {
        font-size: 22px;
    }
}

/* Print Styles */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    header {
        margin-top: 0;
    }

    nav, .nyan-cat {
        display: none;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    footer {
        background: #fff;
    }
}
