/*
 Theme Name:   Sam Bull
 Theme URI:    http://sambull.org
 Description:  Theme for sambull.org
 Author:       Sam Bull
 Author URI:   http://sambull.org
 Template:     penscratch
 Version:      1.0.0
 License:      GPL v3 or later
 License URI:  http://www.gnu.org/licenses/gpl-3.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  penscratch
*/

.menu-main-menu-container {
    display: flex;
    align-items: center;
}

nav > .menu-toggle {
    margin: 0
}

nav > .search-form {
    text-align: right;
    position: absolute;
    top: 20px;
    right: 0;
}

nav > .search-form > .search-submit {
	display: none;
}

.widget {
    padding-bottom: 0;
}

/** Add fade in animation for menu and categories. */
@keyframes fadeIn {
    from { opacity: 0; }
      to { opacity: 1; }
}

.main-navigation ul {
    animation: fadeIn 1s;
}

/** Remove padding at smaller sizes. */
.site, .no-sidebar .site {
	max-width: 1400px;
	margin: 0 auto;
}

@media screen and (min-width: 50em) {
    .main-navigation {
        display: flex;
        justify-content: space-between;
    }
	.entry-summary.not-search {  /* Copied from .entry-content parent rule. */
		font-size: 1.2em;
		line-height: 1.7em;
	}
    .main-navigation ul span {
        padding: 7px 9px;
        border-bottom: 0;
    }
}

@media screen and (max-width: 25em) {
    nav > .search-form {
        position: static;
        padding-top: 10px;
    }
    nav > .search-form .search-field {
        width: 100%;
    }
}

@media screen and (max-width: 49.999em) {
    /* Move categories to top. */
    header.site-header {
        margin-bottom: 0;
    }

    .site-content {
        display: flex;
        flex-direction: column;
    }

    .site-content .widget-area {
        order: -1;
        border-top: 0 none;
        margin-top: 0;
        padding-top: 0;
    }

    .widget_categories {
        padding-bottom: 14px;
        border-bottom-width: 3px;
    }

    .widget_categories h2 {
        transition: all .3s ease-in-out;
        display: inline-block;
        margin-bottom: 0;
        padding: 5px 14px;
        border: 1px solid #eee;
        border-radius: 3px;
        color: #999;
        cursor: pointer;
    }

    .widget_categories h2:hover {
		transition: all .3s ease-in-out;
		color: #1c7c7c;
	    border-color: #1c7c7c;
    }

    .widget_categories.toggled h2 {
        color: #1c7c7c;
        border-color: #1c7c7c;
    }

    .widget_categories ul {
        display: none;
        padding-bottom: 7px;
    }

    .widget_categories.toggled ul {
        display: block;
        animation: fadeIn 1s;
    }

    .widget_categories .cat-item {
        padding: 14px 0 14px;
    }

    .widget_categories .cat-item:first-child {
        border-top: 0 none;
    }

    .widget_categories .cat-item:last-child, .nav-menu > .menu-item:last-child a {
        padding-bottom: 0;
    }

    .widget_categories .cat-item a {
	    color: #999;
        font-weight: 400;
    }

    .widget_categories .cat-item:hover > a {
	    color: #1c7c7c;
    }
}

/* License in footer. */
.site-footer {
    text-align: left;
}
.site-footer img {
    margin: 2px;
}

.site-footer a span {
    margin-left: 10px;
}

/* Fix non-h1 site-title getting styling. */
.site-title {
    font-weight: normal;
}

/* Fix h3 comment authors (though core use b tag instead of h3). */
.comment-meta .comment-author h3.fn {
    display: inline;
    font-size: 15px;
    margin-left: 14px;
}

/* Fix span element being in menu (instead of a). */
.main-navigation li:hover > span {
	color: #1c7c7c;
}
.main-navigation span {
	display: block;
	padding: 14px 0 14px;
	text-decoration: none;
	border-bottom: 1px solid #eee;
}


/* == Contrast == */
.main-navigation a, .main-navigation a:visited,
.main-navigation span {
    color: #595959;
}

.site-title a {
    color: #555;
}

.entry-title a, .entry-title a:visited {
    color: #555;
}

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

h1, h2, h3, h4, h5, h6 {
    color: #555;
}

.entry-footer a, .entry-meta a, .entry-footer a:visited, .entry-meta a:visited {
    color: #6e6e6e;
}

.entry-footer, .entry-meta {
    color: #6e6e6e;
}

body {
    color: #555;
}

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], textarea {
    color: #555;
}

.site-footer a {
    color: #595959;
    align-items: center;
    display: flex;
}

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"] {
    border-color: #ddd;
}

.menu-toggle {
    border-color: #ddd;
}

.widget_categories h2 {
    color: #6e6e6e;
    border-color: #ddd;
}

button, input[type="button"], input[type="reset"], input[type="submit"] {
    color: #6e6e6e;
    border-color: #ddd;
}

.site-main .post-navigation .nav-previous a, .site-main .paging-navigation .nav-previous a {
    color: #595959;
}

.comments-title, #respond h3 {
    color: #595959;
}

textarea {
    border-color: #ddd;
}

textarea:active, textarea:focus {
    border-color: #c3c3c3;
}

.site-footer {
    color: #595959;
}

/* == Fonts == */
/* Latin */
@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 300;
    src: local('Roboto Slab Light'), local('RobotoSlab-Light'), url(/wp-content/themes/penscratch-child/fonts/robotoslab-latin-300.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 400;
    src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(/wp-content/themes/penscratch-child/fonts/robotoslab-latin-400.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 700;
    src: local('Roboto Slab Bold'), local('RobotoSlab-Bold'), url(/wp-content/themes/penscratch-child/fonts/robotoslab-latin-700.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
/* Latin-ext */
@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 300;
    src: local('Roboto Slab Light'), local('RobotoSlab-Light'), url(/wp-content/themes/penscratch-child/fonts/robotoslab-latinext-300.woff2) format('woff2');
    unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 400;
    src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(/wp-content/themes/penscratch-child/fonts/robotoslab-latinext-400.woff2) format('woff2');
    unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 700;
    src: local('Roboto Slab Bold'), local('RobotoSlab-Bold'), url(/wp-content/themes/penscratch-child/fonts/robotoslab-latinext-700.woff2) format('woff2');
    unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
