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

	Theme Name: Davis
    Text Domain: davis
	Version: 2.1.2
	Description: Davis is a teeny-tiny WordPress theme that can be used a starter theme or a really lightweight blog theme. It consists of three PHP files and weighs in at just 36 KB, excluding screenshot.png. It features the aside post format, Block Editor support, featured images, and a responsive design. Demo: https://andersnoren.se/themes/davis/
	Tags: blog, one-column, custom-menu, featured-images, post-formats, threaded-comments, translation-ready, block-styles, wide-blocks
	Author: Anders Norén
	Author URI: https://andersnoren.se
	License: GNU General Public License version 2.0
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
	Theme URI: https://andersnoren.se/themes/davis-wordpress-theme/
	Requires PHP: 5.4
	Tested up to: 6.3
	
	All files, unless otherwise stated, are released under the GNU General Public License
	version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)

-----------------------------------------------------------------------------------

*/

@font-face {
    font-family: 'Aeonik';
    src: url('assets/fonts/Aeonik-Bold.woff2') format('woff2'),
        url('assets/fonts/Aeonik-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik';
    src: url('assets/fonts/Aeonik-Regular.woff2') format('woff2'),
        url('assets/fonts/Aeonik-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik';
    src: url('assets/fonts/Aeonik-Medium.woff2') format('woff2'),
        url('assets/fonts/Aeonik-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}


html, body { 
    margin: 0; 
    padding: 0; 
    height: 100%; 
    min-height: 100%; 
}

h1, h2, h3, h4, h5, h6, p, blockquote, address, cite, img, li, ol, ul, fieldset, form, label, legend, button, table, caption, tr, th, td {
	margin:0;
	padding:0;
	border:0;
	font-weight:normal;
	font-style:normal;
	font-size:100%;
	line-height:1;
	text-align:left;
}

table {
	border-collapse:collapse;
	border-spacing:0;
}

ol, ul { list-style:none; }

blockquote:before, 
blockquote:after { content:""; }

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

/* Screen Reader Text */

.screen-reader-text {
	clip: rect( 1px, 1px, 1px, 1px );
	height: 1px;
	overflow: hidden;
    position: absolute !important;
    width: 1px;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}


/* -------------------------------------------------------------------------------- */
/*	1. Document Setup
/* -------------------------------------------------------------------------------- */


body {
    background-color: #fff;
	border: none;
    color: #000;
    font-size: 18px;
}


/* -------------------------------------------------------------------------------- */
/*	2.	Structure
/* -------------------------------------------------------------------------------- */


.wrapper {
    margin: 0 auto;
	width: 100%;
}

/* Inputs ----------------------------- */

fieldset {
    border: 1px solid #ddd;
	padding: 25px;
}

fieldset legend {
    font-size: 0.9em;
    font-style: italic;
	padding: 0 15px;
}

label {
	font-size: 0.9em;
    font-style: italic;
    margin-bottom: 10px;
}

textarea,
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="text"],
input[type="url"] {
    border: 1px solid #ddd;
    color: #000;
	display: block;
	font-size: 0.9em;
    margin: 0 0 15px 0;
    padding: 15px;
    width: 100%;
}

textarea {
    line-height: 1.5;
	height: 200px;
}

input.button,
input[type="button"],
input[type="submit"] {
	background: #000;
    border: none;
    color: #fff;
    display: inline-block;
	font-size: 14px;
    padding: 14px 24px;
	-moz-appearance: none;
	-webkit-appearance: none;
}

input[type="button"]:hover,
input.button:hover,
input[type="submit"]:hover {
	background: #767676;
	cursor: pointer;
}



/* Block: Pullquote --------------------------------------- */

.wp-block-pullquote {
	padding: 0;
}

/* Block: Gallery --------------------------------------- */

.wp-block-gallery .blocks-gallery-image figcaption, 
.wp-block-gallery .blocks-gallery-item figcaption {
	margin: 0;
	padding-bottom: 10px;
}

.wp-block-gallery.alignfull {
	padding: 0 8px;
}

ul.wp-block-gallery:not(.alignright) {
	margin-left: 0;
}

/* Block: Cover Image --------------------------------------- */

.wp-block-cover-image.alignfull {
	min-height: 75vh;
}

/* Block: Column --------------------------------------- */

.wp-block-column {
	padding: 0 5px;
}

/* Block: Audio --------------------------------------- */

.wp-block-audio audio {
	width: 100%;
}


/* -------------------------------------------------------------------------------- */
/*	6.	Comments
/* -------------------------------------------------------------------------------- */


.comments-closed { text-align: center; }

.comment { margin-top: 40px; }

.comment a { text-decoration: underline; }

.commentlist > .comment:first-child { margin-top: 0; }

.comment .comment { margin: 40px 0 0 30px; }

.comment-author a,
.comment-meta a,
.comment .reply a {
    text-decoration: none;
}

.comment-author {
    padding-left: 50px;
    position: relative;
}

.bypostauthor .comment-author cite { font-weight: 700; }

.comment-author .says { display: none; }

.comment-author .avatar {
    position: absolute;
        left: 0;
        top: 1px;
    width: 40px;
}

.comment-awaiting-moderation {
    font-size: 14px;
    font-style: italic;
    padding-left: 50px;
}

.comment-meta { 
    font-size: 14px;
    margin: 2px 0 20px 0;
    padding-left: 50px;
}

.comment-meta a,
.comment-meta a:hover { color: #767676; }

.comment .reply {
    font-size: 14px;
    font-style: italic;
    margin-top: 15px;
    text-align: right;
}

.comment .reply a { color: #767676; }
.comment .reply a:hover { text-decoration: underline; }

/* Respond ---------------------------- */

.comment-respond p + p { margin-top: 20px; }

.post .comment-reply-title { text-align: center; }

.logged-in-as { 
    margin: -10px 0 30px; 
    text-align: center;
}

.comment-respond label { display: block; }


/* -------------------------------------------------------------------------------- */
/*	7.	Pagination
/* -------------------------------------------------------------------------------- */


.pagination { text-align: center; }
.pagination * + * { margin-left: 30px; }


/* -------------------------------------------------------------------------------- */
/*	8.	Error 404
/* -------------------------------------------------------------------------------- */


.error404 .post p {
	text-align: center;
}


/* -------------------------------------------------------------------------------- */
/*	9.	Footer
/* -------------------------------------------------------------------------------- */


.site-footer { 
	padding: 0 0 80px;
	text-align: center;
}

.site-footer p { 
    line-height: 1;
	text-align: center; 
}

.site-footer p + p { 
    font-style: italic;
    margin-top: 15px; 
}


/* -------------------------------------------------------------------------------- */
/*	10.	Media Queries
/* -------------------------------------------------------------------------------- */


@media ( max-width: 620px ) {

    body { font-size: 16px; }
    
    .toggle-menu {
		display: block;
	}
    
    .site-nav { 
        display: none;
        margin: 20px 0 0;
    }
    
    .menu li {
        line-height: 1.5;
        text-align: center;
    }
    
    .menu li li { font-style: italic; }
    
    .show-menu .site-nav { display: block; }
    
    .site-header { margin-bottom: 40px; }
    
    .site-header .site-title { margin-top: 40px; }
    
    .post:before,
    .comments:before,
    .comment-respond:before,
    .comments .comment-respond:after,
    .pagination:before,
    .site-footer:before {
        margin: 50px auto;
    }
    
    .featured-image {
        margin-left: -50vw;
        position: relative;
            left: 50%;
        width: 100vw;
    }
    
    span.sep { margin: 0 10px; }
    
    .pagination a + a { margin-left: 20px; }
    
    .site-footer { padding-bottom: 50px; }

}

@media ( max-width: 500px ) {

    .post:before, 
    .comments:before, 
    .comment-respond:before, 
    .comments .comment-respond:after, 
    .pagination:before, 
    .site-footer:before {
        margin: 30px auto;
    }

}