/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: normal;
    -webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	color: #333;
}

h3 {
	line-height: 0.9;
    font-size: 1.25rem;
    text-transform: uppercase;
    font-weight: normal;
	font-family: 'Oswald', sans-serif;
}

h4 {
	line-height: 0.9;
    font-size: 1.125rem;
    text-transform: uppercase;
    font-weight: lighter;
	font-family: 'Oswald', sans-serif;
}

p {
	font-size: 1.25rem;
    font-weight: lighter;
}

p em {
	font-weight: normal;
}

p.pullQuote {
	text-align: center;
    font-family: 'oswald';
    font-weight: bold;
    font-size: 40px;
    line-height: 1;
    margin: 30px auto 40px;
    color: #687468;
}

.author p.pullQuote {
	margin-top: 0;
}

.button:focus, .button:active {
	background: #000;
}

a {
	color: #333;
}

a:focus, a:active {
	color: #000;
	transition: all 0.3s;
}

.button:hover, .button:focus, .button:active {
    background-color: #000000;
    color: white;
}

.search-submit:hover .fas {
	color: white;
}

.top-bar {
	padding: 0;
    background: rgba(0,0,0,0.75);
	z-index: 5;
	position: relative;
}

.top-bar ul {
	background: none;
}

.menu a {
	color: #fff;
	font-family: 'Oswald', sans-serif;
	text-transform: uppercase;
	font-weight: lighter;
	position: relative;
}

.menu .button, .menu a {
    line-height: 1;
    text-decoration: none;
    display: block;
    padding: 1.5rem 0.8rem;
	margin: 0;
    background: none;
	font-weight: lighter;
	font-size: 1rem;
    border: none;
}

.menu .is-active > a {
    background: none;
    color: #F4F49B;
}

.menu .is-active > a:after {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	width: 80%;
	height: 4px;
	background: #F4F49B;
	left: 10%;
}

.menu li a i, button i {
    color: #F4F49B;
	vertical-align: bottom;
	padding-left: 5px;
}

.maxWidth {
	max-width: 1180px;
	margin: 0 auto;
}

.grayBlock {
	background: #e7efeb;
    margin-top: -40px;
    padding: 5% 40px 60px;
    position: relative;
}

#bookCover {
	position: absolute;
    left: calc(50% - 20%);
    right: 0;
    bottom: -10%;
    width: 40%
}

.borderBlock {
	padding: 40px 80px;
	border-left: solid #333 2px;
	border-right: solid #333 2px;
	margin: 80px auto 20px;
}

.fullImage {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
    min-height: calc(100vh + 20px);
	position: relative;
	align-content: flex-end;
	margin-top: -64px;
}

.fullImage h1 {
	/*position: absolute;
    bottom: 60px;
    right: 40px;*/
    max-width: 470px;
    color: #F4F49B;
    text-transform: uppercase;
    font-family: 'oswald';
    font-weight: lighter;
    letter-spacing: 0.5rem;
    font-size: 6.25rem;
    text-align: right;
    line-height: 0.88;
}

.fullImage h1 strong {
	color: white;
}

.fullImage h3 {
	color: white;
	margin: 10px auto;
	font-weight: lighter;
}

.fullImage .large-6, .prayer .fullImage > article {
	margin-bottom: 60px;
}

.prayer .fullImage {
	min-height: calc(60vh + 20px);
}

.prayer .fullImage > article {
	padding-right: .9375rem !important;
    padding-left: .9375rem !important;
}

.prayer form h3 {
	margin-bottom: 40px;
}

.byLine {
	position: relative;
	margin-top: 30px;
}

.byLine:before {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	width: 6px;
	height: 100%;
	background: #F4F49B;
	left: -16px;
}

.grayBlock .byLine:before {
	background: #fff;
}

.button {
	text-transform: uppercase;
    font-family: 'oswald';
    background: #333;
	margin-top: 40px;
}

.button.ghost {
	background: none;
	border: 2px solid #333;
	color: #333;
}

.button.ghost:active, .button.ghost:focus {
	background: #333;
	color: white;
}

footer p {
	font-size: 0.75rem;
	text-transform: uppercase;
	font-weight: normal;
	margin-bottom: 0;
	line-height: 1;
}

footer a {
	color: #333;
	font-size: 1.25rem;
    margin-right: 30px;
}

footer .text-right a {
	margin-right: 0;
    margin-left: 30px;
}

header.show-for-small-only {
	z-index: 5;
	position: relative;
}

header.show-for-small-only > button {
	margin: 0 auto;
    background: rgba(0,0,0,0.75);
}

.off-canvas {
	background: #333;
}

.off-canvas .menu li {
	width: 100%;
}

.off-canvas .menu li a {
	color: white;
	text-align: left;
}

.off-canvas .menu .is-active > a:after {
    width: calc(100% - 1.6rem);
    left: 0.8rem;
	background: none;
	color: white;
}

.off-canvas .menu a:focus:after, .off-canvas .menu a:active:after {
    width: calc(100% - 1.6rem);
    left: 0.8rem;
	background: none;
	color: white;
}

:focus {
	outline: none;
}

.js-off-canvas-overlay {
	background: rgba(0,0,0,.75);
}

.reveal h3 {
	margin-bottom: 40px;
}

form button.button, form [type=submit] {
	margin: 10px 0 0;
}

.contact .fullImage {
	align-content: center;
	min-height: 900px;
	height: 100vh;
}

.contact .fullImage h1 {
    max-width: 460px;
}

/*.contact form {
	background: rgba(231,239,235,0.8);
	padding: 80px;
	margin-top: 40px;
	padding-bottom: calc(80px - 1rem);
}*/

.contact form h3 {
	color: #333;
	font-weight: normal;
	margin: 0 auto 30px;
}

.contact form .help-text {
	text-align: right;
}

.contact main form button, .contact main form [type=submit] {
	background: #E7EFEB;
	color: #333;
	margin-bottom: 1rem;
}

.prayer main form [type=submit] {
	margin-bottom: 1rem;
}

.contact footer {
	margin-top: -30px;
    position: relative;
	color: white;
}

.contact footer a {
    color: #F4F49B;
}

.author main > section:first-of-type > article:nth-of-type(odd) {
	padding: 0;
}

.author main > section:first-of-type > article:nth-of-type(even) {
	padding: 0 40px;
}

.masonryGrid {
	margin: 80px auto;
}

.masonryGrid .cell {
	padding: 0;
	margin-bottom: 10px;
}

.masonryGrid .cell:nth-of-type(1) {
	width: 44.26%;
}

.masonryGrid .cell:nth-of-type(2) {
	width: 12.62%;
}

.masonryGrid .cell:nth-of-type(3) {
	width: 41.96%;
}

.masonryGrid .cell:nth-of-type(4) {
	width: 33.53%;
}

.masonryGrid .cell:nth-of-type(5) {
	width: 15.01%;
}

.masonryGrid .cell:nth-of-type(6) {
	width: 33.14%;
}

.masonryGrid .cell:nth-of-type(7) {
	width: 15.96%;
}

.nf-before-form-content, #nf-field-hp-3, #nf-field-hp-5 {
	display: none;
}

#nf-field-19 {
	width: 50%;
}

#nf-field-29 {
	width: 100%;
}

.nf-form-content {
    padding-right: .9375rem;
    padding-left: .9375rem;
}

#nf-form-1-cont {
	background: rgba(231,239,235,0.8);
    padding: 80px;
    padding-bottom: calc(80px - 1rem);
	max-width: 1180px;
    margin: 40px auto 0;
}

#nf-form-title-1, #nf-form-title-4 {
	width: calc(100% - 1.875rem);
	display: block;
    margin-left: .9375rem;
    margin-right: .9375rem;
}

#nf-form-title-1 h3, #nf-form-title-4 h3 {
	color: #333;
    font-weight: normal;
    margin: 0 auto 30px;
}

#nf-form-1-cont nf-field, #nf-form-4-cont nf-field {
	margin-left: .9375rem;
    margin-right: .9375rem;
	width: calc(33.33333% - 1.875rem);
	-ms-flex: 0 0 auto;
    flex: 0 0 auto;
    min-height: 0;
    min-width: 0;
	-ms-flex-preferred-size: auto;
    flex-basis: auto;
}

#nf-form-1-cont nf-field:nth-of-type(4), #nf-form-4-cont nf-field:nth-of-type(4) {
	width: calc(66.66667% - 1.875rem);
}

#nf-form-1-cont nf-fields-wrap, #nf-form-4-cont nf-fields-wrap {
	display: -ms-flexbox;
    display: flex;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
	margin-left: -.9375rem;
    margin-right: -.9375rem;
	align-items: flex-end;
}

#nf-form-1-cont #nf-field-16 {
	background: #E7EFEB;
    color: #333;
    margin-bottom: 0;
	display: block;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
}

#nf-form-4-cont #nf-field-23 {
	margin-bottom: 0;
	display: block;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
}

.featuredPosts {
	margin: 80px auto;
}

.postsList .blogPost {
	margin-bottom: 60px;
}

.postsList .blogPost .byLine {
	margin-top: 0;
	margin-bottom: 30px;
}

.postsList .blogPost p {
	margin-bottom: 30px;
}

.sideBar > div {
	background: #E7EFEB;
	padding: 20px 30px;
	margin-bottom: 2px;
}

.sideBar label > input {
	width: calc(100% - 50px);
    display: inline-block;
	margin-bottom: 0;
}

.sideBar label > button {
	margin: 0;
    background: none;
    color: #333;
    border: none;
    display: inline-block;
    padding: .725em 1em;
    vertical-align: top;
}

.sideBar label > button .fas {
	color: #333;
	font-size: 1.125rem;
	padding: 0;
}

.sideBar ul {
	margin: 0 auto;
	list-style: none;
	padding: 1px 0;
	border-right: 2px solid white;
}

.sideBar ul li {
	text-transform: uppercase;
	margin: 15px auto 0;
}

.sideBar .social a {
	font-size: 1.5rem;
	margin-right: 20px;
	display: inline-block;
	line-height: 0;
}

.blog article nav button {
	margin: 0 auto;
}

.blog article nav {
	margin-bottom: 60px;
}

.blog h3, .search h3, .archive h3 {
	line-height: 1;
}

.blog p {
	line-height: 1.2;
}

.single .fullImage, .search .fullImage {
	height: 500px;
    min-height: inherit;
}

.single article, .search article, .archive article {
	padding-top: 60px;
}

.singlePost p {
	margin-bottom: 30px;
	line-height: 1.4;
}

.singlePost hr {
	margin: 30px auto;
}

.singlePost h1, h5, h6 {
	font-family: 'Roboto Condensed', sans-serif;
}

.singlePost h2 {
	font-family: 'Oswald', sans-serif;
	text-transform: uppercase;
}

.singlePost h1, .singlePost h2, .singlePost h3 {
	margin: 0 auto 20px;
}

.singlePost h4, .singlePost h5, .singlePost h6 {
	margin: 0 auto 12px;
}

.single .fullImage h1, .search .fullImage h1 {
    max-width: inherit;
	text-align: center;
	font-weight: bold;
	color: white;
	font-size: 4rem;
	font-family: 'Oswald', sans-serif;
}

.singlePost ul, .singlePost ol {
	margin-bottom: 30px;
}

.singlePost img.full {
	display: block;
    margin: 30px 0;
    width: 100%;
}

.singlePost img.alignleft {
	float: left;
    margin: 0 30px 30px 0;
    top: 0.75rem;
	display: block;
}

.singlePost img.alignright {
	float: right;
    margin: 0 0 30px 30px;
    top: 0.75rem;
	display: block;
}

.menu li.social a {
	display: inline-block;
}

.menu li.social a i {
	padding-left: 0;
}



@media only screen and (max-width: 63.9375em) {
	#bookCover {
		position: relative;
		bottom: 0;
		margin: 20px auto;
		width: 100%;
		left: 0;
		max-width: 400px;
	}
	
	.borderBlock > article {
		margin-bottom: 40px;
	}
	
	.borderBlock > article:last-of-type {
		margin-bottom: 0;
	}
	
	.contact .fullImage {
		min-height: 1100px;
	}
	
	#nf-field-19 {
		width: 100%;
	}
	
	#nf-form-1-cont nf-field, #nf-form-1-cont nf-field:nth-of-type(4), #nf-form-4-cont nf-field, #nf-form-4-cont nf-field:nth-of-type(4) {
		width: calc(100% - 1.25rem);
		margin-left: .625rem;
		margin-right: .625rem;
	}
	
	.menu .button, .menu a {
    	padding: 1.5rem 0.6rem;
	}
}


@media only screen and (max-width: 39.9375em) {
	.fullImage h1 {
    	font-size: 3.75rem;
	}
	
	.fullImage .large-6, .prayer .fullImage > article {
		margin-bottom: 20px;
	}
	
	.fullImage h3 {
		margin: 5px auto;
	}
	
	.grayBlock {
		padding: 40px 20px;
		margin-top: 0;
	}
	
	.borderBlock {
		padding: 20px;
		margin: 60px auto 20px;
	}
	
	/*.contact form {
		padding: 40px 10px;
	}*/
	
	#nf-form-1-cont {
		padding: 40px 10px;
	}
	
	.contact .fullImage {
		min-height: 900px;
	}
	
	.fullImage {
		margin-top: -40.47px;
	}

	.masonryGrid {
		margin: 60px auto 40px;
	}

	.masonryGrid .cell:nth-of-type(n) {
		width: 100%;
	}
	
	.blog .byLine, .search .byLine, .archive .byLine {
		margin: 20px auto 30px !important;
	}
	
	.featuredPosts {
		margin: 40px auto 0;
	}
	
	.postsList .blogPost {
		margin-bottom: 40px;
	}
	
	.sideBar {
		margin-bottom: 60px;
	}
	
	.singlePost h1 {
		font-size: 2em;
	}

	.search article {
		padding-top: 40px;
	}

	.single article, .archive article {
		padding-top: 20px;
	}
	
	.singlePost img.alignleft, .singlePost img.alignright {
		width: 50%;
	}

	.single .fullImage h1 {
		font-size: 3rem;
	}
}

/* Large and up */
@media screen and (min-width: 64em) {
	
	.button:hover {
		background-color: #000000;
		color: white;
	}

	a:hover {
		color: #000;
		transition: all 0.3s;
	}
	
	.menu .button:hover {
		background: none;
	}
	
	.menu a:focus, .menu a:active {
		color: #F4F49B;
		transition: all 0.3s;
	}
	
	.menu a:hover:after, .menu a:focus:after, .menu a:active:after {
		content: '';
		display: block;
		position: absolute;
		bottom: 0;
		width: 80%;
		height: 4px;
		background: #F4F49B;
		left: 10%;
	}
	
	.menu .button:hover:after, .menu .button:focus:after, .menu .button:active:after {
		background: none;
	}

	.menu a:hover, .menu .button:hover {
		color: #F4F49B;
		transition: all 0.3s;
	}
	
	.button.ghost:hover {
		background: #333;
		color: white;
	}
	
	.off-canvas .menu a:hover:after {
		width: calc(100% - 1.6rem);
		left: 0.8rem;
	}
}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
