/**
 *  Theme Name: Taste and Tell
 *  Theme URI: https://www.oncecoupled.com
 *
 *  Description: Custom Genesis child theme. Made with love!
 *  Tags: custom-made, genesis, child-theme
 *
 *  Author: Once Coupled
 *  Author URI: https://www.oncecoupled.com
 *
 *  Version: 1.0.0
 *  Template: genesis
 *  Template Version: 2.5.3
 *
 *  Text Domain: once-coupled-taste-and-tell
 *  License: All rights reserved.
 *
 *  Notes: this complements our `defaults` file and sets up
 *  a base for us by overwriting some fonts & colors #3
 */


/* ================================
[ Structure ]
================================ */

/* ---------- [ Table of Contents ] ---------- */

/**
 * Notes
 * - TOC (you are here)
 *
 * Elements
 * - Text
 * - Headings
 * - Links
 * - Forms
 *
 * Containers
 * - Content, Sidebar
 *
 * Navigation
 * - Toggles
 * - Generic Menu
 * - Pagination
 *
 * Sections
 * - Sidebar
 * - Footer
 *
 * Content
 * - Archive Description
 * - Comments
 * - Search
 */


/* ================================
[ Elements ]
================================ */

/* ---------- [ Text ] ---------- */

html {
	font-family: 'Raleway', sans-serif;
	font-size: 16px;
	line-height: 1.8;
	color: #3d3d3d;
}

@media screen and (min-width: 320px) {
	html { /* Fluid Typography @see https://css-tricks.com/snippets/css/fluid-typography/ */
		font-size: calc(16px + (18 - 16) * ((100vw - 320px) / (768 - 320)));
	}
}

@media screen and (min-width: 768px) {
	html {
		 font-size: 18px;
	}
}

body {
	font-weight: 500;
}

/* ---------- [ Headings ] ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 800;
	line-height: 1.2;
	margin: 12px 0 16px;
}

h1 {
	font-size: 30px;
}

h2 {
	font-size: 28px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 22px;
}

h5 {
	font-size: 20px;
}

h6 {
	font-size: 18px;
}

/* ---------- [ Links ] ---------- */

a {
	color: #3d3d3d;
	text-decoration: none;
}

@media screen and (min-width: 1024px) {
	a:hover {
		opacity: 0.6;
	}
}

/* [ In-content Links ] */

.author-box a,
.error404 .entry-content a,
.singular .entry-content a:not([class^="wp-block"]) {
	color: #6cb774;
}

@media screen and (min-width: 1024px) {
	.author-box a:hover,
	.error404 .entry-content a:hover,
	.singular .entry-content a:hover:not([class^="wp-block"]) {
		text-decoration: underline;
		opacity: 1;
	}
}

/* [ More Links ] */

.more-link-container {
	display: block;
	text-align: center;
	margin-top: 8px;
}

/* ---------- [ Forms ] ---------- */

input,
select,
textarea {
	color: #3d3d3d;
	font-size: 14px;
}

input,
textarea {
	background: #f8f6f5;
	border: 0;
}

a.button,
.button,
input[type="button"],
input[type="submit"],
a.more-link,
.comment-reply a {
	display: inline-block;
	line-height: 1;
	color: #fff;
	background: #69b2b2;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 12px;
	padding: 16px 20px;
}

@media screen and (min-width: 768px) {
	a.button,
	.button,
	input[type="button"],
	input[type="submit"],
	a.more-link,
	.comment-reply a {
		padding: 8px 16px;
	}
}

@media screen and (min-width: 1024px) {
	a.button:hover,
	.button:hover,
	input[type="button"]:hover,
	input[type="submit"]:hover,
	a.more-link:hover,
	.comment-reply a:hover {
		opacity: 1;
		background: #499393;
	}
}

.button a {
	color: #fff;
}

/* [ Placeholders ] */

::-webkit-input-placeholder {
	font-weight: 500;
}

::-moz-placeholder {
	font-weight: 500;
}

:-ms-input-placeholder {
	font-weight: 500;
}

:-moz-placeholder {
	font-weight: 500;
}


/* ================================
[ Containers ]
================================ */

/* ---------- [ Content, Sidebar ] ---------- */

.content-sidebar-wrap {
	margin: 16px auto;
}

@media screen and (min-width: 1024px) {
	.content-sidebar-wrap {
		margin-top: 32px;
	}
}

@media screen and (min-width: 768px) {
	.content {
		max-width: 650px;
	}

	.content.flexbox {
		max-width: 666px;
		margin-left: calc((100% - 666px) / 2);
		margin-right: calc((100% - 666px) / 2);
	}
}

@media screen and (min-width: 1024px) {
	.content.flexbox {
		max-width: 650px;
		margin-left: -8px;
		margin-right: -8px;
	}
}

.sidebar {
	max-width: 340px;
}


/* ================================
[ Navigation ]
================================ */

/* ---------- [ Toggles ] ---------- */

.generic-toggle,
.sub-menu-toggle {
	color: #000;
}

.sub-menu-toggle {
	font-size: 18px;
}

/* ---------- [ Generic Menu ] ---------- */

@media screen and (min-width: 1024px) {
	.menu .sub-menu {
		background: #000;
	}

	.menu .sub-menu .menu-item a {
		padding: 8px;
		color: #fff;
	}

	.menu .sub-menu .menu-item:hover > a {
		opacity: 1;
		background: #3d3d3d;
	}
}

/* [ First sub-menu @todo ] */

@media screen and (min-width: 1024px) {
	.menu > .menu-item > .sub-menu {
		top: 44px; /* height of menu item + any psuedo-elements */
	}
}

/* [ Sub-menu Arrows ] */

@media screen and (min-width: 1024px) {
	.genesis-nav-menu > .menu-item > .sub-menu > li:first-of-type::before,
	.genesis-nav-menu > .menu-item > .sub-menu > li:first-of-type::after {
		position: absolute;
		top: 0;
		left: 0;
		width: 50%;
		content: '';
		border-top: 8px solid #fff;
		-webkit-transition: 400ms;
		transition: 400ms;
		z-index: 9;
	}

	.genesis-nav-menu > .menu-item > .sub-menu > li:first-of-type::before {
		border-right: 8px solid transparent !important;
	}

	.genesis-nav-menu > .menu-item > .sub-menu > li:first-of-type::after {
		right: 0;
		left: auto;
		border-left: 8px solid transparent; /* @todo improve placement of second and third (on the first item of the second) level menus */
	}
}

/* ---------- [ Pagination ] ---------- */

.pagination {
	margin: 16px 0 0;
	font-weight: 800;
	font-size: 13px;
	line-height: 1;
}

.pagination .icon-font {
	font-size: 80%;
}

/* [ Adjacent Entry Pagination ] */

.adjacent-entry-pagination {
	margin: 32px 0 36px;
}

.adjacent-entry-pagination .pagination-previous,
.adjacent-entry-pagination .pagination-next {
	max-width: 40%;
	margin: 0;
}

@media screen and (min-width: 1024px) {
	.adjacent-entry-pagination .pagination-previous a,
	.adjacent-entry-pagination .pagination-next a {
		display: flex;
		align-items: center;
	}

	.adjacent-entry-pagination .pagination-next a {
		flex-direction: row-reverse;
	}

	.adjacent-entry-pagination .pagination-image {
		flex: 0 0 100px;
		margin-bottom: 0;
	}
}

@media screen and (min-width: 1024px) {
	.adjacent-entry-pagination .pagination-image img {
		border-radius: 100%;
	}
}

.adjacent-entry-pagination .pagination-label {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 12px;
	margin-bottom: 8px;
}

.adjacent-entry-pagination .pagination-title {
	font-weight: 500;
	text-transform: lowercase;
	font-size: 14px;
	line-height: 1.4;
}

/* [ Archive Pagination ] */

.archive-pagination {
	width: 100%; /* flexbox fix */
	margin: 0;
}

.archive-pagination a,
.archive-pagination .pagination-omission {
	color: #fff;
	background: #3d3d3d;
	width: 32px;
	height: 32px;
	line-height: 32px;
	border-radius: 16px;
}

.archive-pagination .active a {
	color: #3d3d3d;
	border: 1px solid #3d3d3d;
	background: #fff;
}

.archive-pagination .pagination-previous a,
.archive-pagination .pagination-next a {
	width: auto;
	padding: 0 12px;
}

/* Category Archive Pagination */
.category .archive-pagination a,
.category .archive-pagination .pagination-omission {
	background: #fff;
	border: 2px solid #fff;
	color: #000;
	line-height: 29px;
}

.category .archive-pagination .active a {
	background: transparent;
	border-color: #fff;
	color: #fff;
}

@media screen and (min-width: 768px) {
	.category .archive-pagination a,
	.category .archive-pagination .pagination-omission {
		background: #3d3d3d;
		border-color: #3d3d3d;
		color: #fff;
	}

	.category .archive-pagination .active a {
		background: #fff;
		border-color: #3d3d3d;
		color: #3d3d3d;
	}
}

@media screen and (min-width: 1024px) {
	.category .archive-pagination a:hover {
		background-color: transparent;
		color: #3d3d3d;
		opacity: 1;
	}
}

/* [ Comment Pagination ] */

.comments-pagination a {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 12px;
}

/* [ Entry Pagination ] */

.content .entry-pagination.pagination {
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.content .entry-pagination.pagination a {
	display: inline-block;
	color: #fff;
	background: #3d3d3d;
	width: 32px;
	height: 32px;
	line-height: 32px;
	border-radius: 16px;
	text-decoration: none;
}


/* ================================
[ Sections ]
================================ */

/* ---------- [ Sidebar ] ---------- */

.widget {
	text-align: center;
	margin-bottom: 36px;
}

/* ---------- [ Footer ] ---------- */

.site-credits-container {
	margin: 0;
	display: inline-block;
}

@media screen and (min-width: 1024px) {
	.site-credits-container {
		padding: 4px 0;
	}
}

.site-credits-box {
	color: #fff;
	background: #69b2b2;
	line-height: 1.2;
	text-align: center;
	left: 50%;
	bottom: 26px; /* @todo double-check */
	transform: translateX(-50%);
}

@media screen and (min-width: 1024px) {
	.site-credits-box {
		bottom: 24px;
	}
}


/* ================================
[ Content ]
================================ */


/* ---------- [ Archive Description ] ---------- */

.archive-description {
	width: 100%; /* flexbox fix */ /* technically not needed here, since we've moved this outside `content`, but better to keep around just in case */
}


/* ---------- [ Comments ] ---------- */

/* [ Comment Form ] */

.comment-respond {
	text-align: center;
	font-size: 15px;
	overflow: hidden;
	background: #f5f2f0;
	padding: 24px 12px;
	margin: 0 -10px; 20px; /* best spacing for replying to comments */
}

@media screen and (min-width: 768px) {
    .comment-respond {
        text-align: left;
		padding: 28px 24px;
		margin: 0 0 20px;
    }
}

.comment-respond .comment-reply-title {
    text-transform: lowercase;
	font-size: 32px;
	line-height: 1;
	margin-bottom: 12px;
}

.comment-reply-title a {
	display: inline-block;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 10px;
	padding: 8px 0;
}

@media screen and (min-width: 768px) {
	body:not(.logged-in) .comment-form-comment {
		width: 54%;
	}

	body:not(.logged-in) .comment-form-author,
	body:not(.logged-in) .comment-form-email,
	body:not(.logged-in) .comment-form-url {
		width: 44%;
	}

	body:not(.logged-in) .comment-form-comment {
		float: right;
	}

	body:not(.logged-in) .comment-form-author,
	body:not(.logged-in) .comment-form-email,
	body:not(.logged-in) .comment-form-url {
		float: left;
	}

	body:not(.logged-in) .comment-form-email + *:not(.comment-form-url),
	body:not(.logged-in) .comment-form-url + * {
		clear: both;
	} /* @todo add clearfix via HTML */
}

.comment-respond p {
	margin-bottom: 12px;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
	position: relative;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
	display: block;
	position: absolute;
	top: 17px;
	left: 16px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1;
	font-size: 13px;
}

.comment-form-comment label .required,
.comment-form-author label .required,
.comment-form-email label .required,
.comment-form-url label .required {
	display: none;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
	display: block;
	padding: 12px 16px 12px 76px;
	min-height: 48px;
	font-weight: 500;
	line-height: 1;
	background: #fff;
	border: 1px solid #eaeaea;
}

.comment-respond textarea {
	height: 108px;
	padding-top: 40px;
	padding-left: 16px;
}

.comment-respond .form-submit {
	padding-top: 0; /* can't use margin because of floats */
}

@media screen and (min-width: 768px) {
	.comment-respond .form-submit {
		clear: right;
	}
}

.comment-respond ::-webkit-input-placeholder {
	color: #666;
}

.comment-respond ::-moz-placeholder {
	color: #666;
}

.comment-respond :-ms-input-placeholder {
	color: #666;
}

.comment-respond :-moz-placeholder {
	color: #666;
}

.comment-respond .form-submit input {
	width: 100%;
	padding: 16px 28px;
	font-size: 16px;
	border-radius: 0;
    background: #44596b;
}

@media screen and (min-width: 768px) {
    .comment-respond .form-submit input {
        width: auto;
        padding: 12px 24px;
		font-size: 12px;
        border-radius: 40px;
        float: right;
    }
}

@media screen and (min-width: 1024px) {
    .comment-respond .form-submit input:hover {
        background: #30414e;
    }
}

/* @todo make sure comment ratings and comment types are styled in the appropriate CSS file */

.tasty-recipes-ratings label {
    font-weight: 800;
    margin-right: 4px;
}

.tasty-recipes-ratings-buttons {
	--tr-star-size: 180%;
  --tr-star-color: #6cb774;
	text-align: left;
	line-height: 1;
}

/* [ Discussion ] */

.entry-comments {
	margin: 32px 0 24px;
    font-size: 15px;
}

.comment-list-title {
    display: inline-block;
	font-weight: 800;
	letter-spacing: 0.05em;
	font-size: 30px;
    color: #44596b;
    border: 2px solid #44596b;
    padding: 4px 16px 3px;
}

.comment-list .comment {
	border-top: 1px solid #eaeaea;
}

.comment-list .comment.bypostauthor,
.comment-list > .comment:first-of-type {
	border-top: 0;
}

.comment.bypostauthor > article {
	background: #f4fafb;
}

.comment-author {
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 16px;
	margin: 4px 0 0;
}

.avatars-disabled .comment-header::before {
	content: none;
}

.avatars-disabled .bypostauthor > article .comment-header::before {
	content: '';
	background-image: url(/wp-content/themes/once-coupled-taste-and-tell/assets/images/avatar-author.jpg);
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
	.avatars-disabled .bypostauthor > article .comment-header::before {
		background-image: url(/wp-content/themes/once-coupled-taste-and-tell/assets/images/avatar-author@2x.jpg);
	}
}

.bypostauthor > article .comment-content,
.bypostauthor > article .comment-reply {
    padding-left: 62px;
}

.comment-time-link,
.comment-edit-link {
	color: #666;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 10px;
	position: relative;
	top: -2px;
}

.comment-reply .comment-reply-link {
	font-size: 12px;
	padding: 7px 12px 6px;
    border-radius: 40px;
    background: #000;
}

/* ---------- [ Search ] ---------- */

.search-form {
	border: 2px solid #000;
}

.search-form input {
	height: 48px;
	line-height: 1;
	font-size: 20px;
}

.search-form input,
.search-form input:hover {
	background: transparent;
}

.search-submit-icon {
	font-size: 20px;
	top: 4px;
}

/* [ Before Header Search ] */

.before-header .search-form {
	border-radius: 0;
	border: 0;
	border-left: 2px solid #3d3d3d;
	min-width: 188px;
}

.before-header .search-form input {
	height: 40px;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	padding-left: 20px;
}

.before-header .search-form ::-webkit-input-placeholder {
	color: #3d3d3d;
}

.before-header .search-form ::-moz-placeholder {
	color: #3d3d3d;
}

.before-header .search-form :-ms-input-placeholder {
	color: #3d3d3d;
}

.before-header .search-form :-moz-placeholder {
	color: #3d3d3d;
}

.before-header .search-submit-icon {
	top: 2px;
	right: 16px;
}

/* [ Site Header Search ] */

.site-header .search-form input {
	height: 36px;
	font-size: 16px;
}

.site-header .search-submit-icon {
	top: 0;
}