/*
 Theme Name:   Chris Yeh
 Theme URI:    https://www.chrisyeh.com/
 Parent Theme URI: https://wordpress.com/themes/baskerville-2
 Description:  Business Child Theme for Chris Yeh
 Author:       WordPress.com Special Projects Team
 Author URI:   http://wpspecialprojects.wordpress.com/
 Template:     business
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, flexible-header, full-width-template, one-column, sticky-post, threaded-comments, translation-ready, two-columns
 Text Domain:  chrisyeh
 */

/* General Typography */
body:not(.gutenberg-editor-page),
button, input, select, optgroup, textarea,
.error404 .page-header .page-title,
.search-no-results .page-header .page-title,
.no-results .page-header .page-title {
	color: #454545;
}

body:not(.gutenberg-editor-page),
.site-identity .site-title,
.main-navigation > div > ul > li > a,
.main-navigation > div > ul > li > ul li a,
.front-menu li,
.site-identity .site-description,
h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.entry-title,
.error404 .page-header .page-title,
.search-no-results .page-header .page-title,
.no-results .page-header .page-title {
	font-family: "Rubik", "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

/* Links */
a,
a:visited,
a:active,
a:focus {
	color: #75362e;
}

.comment-navigation a:focus,
.comment-navigation a:hover,
.post-navigation a:focus,
.post-navigation a:hover,
.posts-navigation a:focus,
.posts-navigation a:hover,
.hentry .entry-title a:hover
a:hover {
	color: #888;
}

.blog .hentry .entry-meta a,
.archive .hentry .entry-meta a,
.search .hentry .entry-meta a,
.hentry .entry-meta a {
	font-weight: 500;
}

.post-navigation .nav-links a {
	font-weight: 500;
}

/* Structural */
#page {
	overflow-x: hidden;
}

/* Header area alignment adjustments */
.site-header {
	border: none;
}

.site-identity {
	order: 2;
	text-align: right;
}

.main-navigation {
	order: 1;
	text-align: left;
}

/* Site Title */
.site-identity .site-title,
.site-identity .site-description {
	text-transform: uppercase;
}

.site-identity .site-title {
	font-weight: 500;
	letter-spacing: 0.01em;
}

.site-identity .site-description {
	color: #888;
	letter-spacing: 0.04em;
}

/* Main Navigation */
.main-navigation > div > ul > li > a,
.main-navigation > div > ul > li > ul li a {
	border-bottom: 1px solid transparent;
	color: #888;
	font-size: 0.85rem;
	font-weight: 400;
	letter-spacing: 0.05em;
	padding: 0;
	text-transform: uppercase;
}

.main-navigation > div > ul > li,
.main-navigation > div > ul > li > ul li {
	margin-right: 1.2em;
}

.main-navigation > div > ul > li > a:hover,
.main-navigation > div > ul > li.current-menu-item > a,
.main-navigation > div > ul > li.current_page_item > a,
.main-navigation > div > ul > li > ul li a:hover {
	border-color: #75362e;
	color: #75362e;
	position: relative;
}

.main-navigation > div > ul .menu-item-has-children button.dropdown-toggle svg {
	fill: #75362e;
}

.menu-toggle {
	background: #75362e;
	color: #fff;
    position: relative;
    right: 0;
	text-align: center;
    transform: none;
}

.menu-toggle:hover,
.menu-toggle:focus,
.menu-toggle:active {
	background: #75362e;
	opacity: 0.75;
}

/* Content Tweaks */
.hentry .entry-title,
.error404 .page-header .page-title,
.search-no-results .page-header .page-title,
.no-results .page-header .page-title  {
	font-weight: 500;
	font-size: 1.5rem;
}

.error404 .page-header,
.search-no-results .page-header,
.no-results .page-header {
	margin-top: 2em;
	border-bottom: none;
}

blockquote,
blockquote.is-large {
	border-color: #75362e;
}

body #page .wp-block-quote {
	clear: both;
	margin-left: auto;
	margin-right: auto;
}

.entry-content .alignleft:after,
.entry-content .alignright:after {
	clear: both;
	content: "";
	display: block;
}

body:not(.home) .entry-content h1,
body:not(.home) .entry-content h2,
body:not(.home) .entry-content h3,
body:not(.home) .entry-content h4,
body:not(.home) .entry-content h5,
body:not(.home) .entry-content h6,
body:not(.home) .entry-summary h1,
body:not(.home) .entry-summary h2,
body:not(.home) .entry-summary h3,
body:not(.home) .entry-summary h4,
body:not(.home) .entry-summary h5,
body:not(.home) .entry-summary h6,
body:not(.home) .page-content h1,
body:not(.home) .page-content h2,
body:not(.home) .page-content h3,
body:not(.home) .page-content h4,
body:not(.home) .page-content h5,
body:not(.home) .page-content h6 {
	line-height: 1.5;
}

/* Front Page Styling Adjustments */
.home .entry-title {
	display: none;
}

.home .site-header,
.home .entry-footer {
	display: none;
}

.home .hentry {
	margin: 0;
}

.home .entry-content .alignfull,
.home .wp-block-text-columns.has-2-columns .wp-block-column,
.home .wp-block-columns.has-2-columns .wp-block-column {
	margin-bottom: 0;
	margin-top: 0;
}

.home .front-columns .wp-block-cover,
.home .front-columns .wp-block-cover-image {
	margin-bottom: 0;
	min-height: 100vh;
}

.home .front-columns .wp-block-column:nth-of-type(2n) {
	padding-right: 2.5rem;
}

.home .entry-content .alignfull {
    transform: translateX(-51%);
}

.home .entry-content p:not(.front-subheading) {
	line-height: 1.8;
}

.entry-content .front-heading {
	font-size: 4rem;
	letter-spacing: 0.05em;
	margin-bottom: 0 !important;
}

.entry-content .front-subheading {
	margin-top: 0.2rem;
	margin-bottom: 2.5rem;
}

.front-menu {
	list-style: none;
	padding-left: 0;
}

.front-menu li {
	display: inline-block;
	padding: 0.5rem 1.1rem 0 0;
}

.hentry .entry-content .front-menu li a {
	background-image: none;
	color: inherit;
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	text-decoration: none;
	text-transform: uppercase;
}

.hentry .entry-content .front-menu li a:hover {
	color: #75362e;
	text-decoration: underline;
}

body:not(.home) .hentry .entry-content,
body:not(.home) .hentry .entry-summary {
	font-size: 1rem;
}

.hentry .entry-content .more-link,
.hentry .entry-summary .more-link {
	color: #75362e;
	font-weight: 500;
}


/* Forms */
.button, button, #infinite-handle span button, #infinite-handle span button:focus, #infinite-handle span button:hover, input[type="button"], input[type="reset"], input[type="submit"],
.button:hover, button:hover, #infinite-handle span button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover {
	color: #fff;
	background: #75362e;
}

.button:hover, button:hover, #infinite-handle span button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover {
	opacity: 0.75;
}

.contact-form label {
	font-size: 0.95rem;
	font-weight: 500;
}
.contact-form input[type=email], .contact-form input[type=text], .contact-form input[type=url] {
	margin-bottom: 35px;
}

.site-info {
	font-size: 0.78rem;
	padding: 0.8rem 0.5rem 0.5rem;
	text-transform: uppercase;
}

.social-navigation ul.social-links-menu li a svg,
.social-navigation ul.social-links-menu li a svg:hover {
	height: 36px;
	width: 36px;
	fill: #75362e;
}

.social-navigation ul.social-links-menu li a svg:hover {
	opacity: 0.75;
}

@media screen and (max-width: 850px) {
	.home .front-columns .wp-block-spacer {
		display: none;
	}
	.home .front-columns {
		flex-wrap: wrap;
	}
	.home .front-columns .wp-block-column {
		flex-basis: 100%;
		width: 100%;
	}

	.home .entry-content .alignfull {
		left: 0;
	    max-width: calc( 8 * ( 80px + 25px ) - 25px);
		max-width: var(--grid-column-0);
		transform: none;
	}

	.home .hentry .entry-content,
	.home .hentry .entry-summary,
	.home .front-columns .wp-block-column:not(:last-child),
	.home .front-columns .wp-block-column:nth-of-type(2n) {
		margin: 0;
		padding: 0;
	}

	.home .front-columns .wp-block-column:nth-of-type(2n) {
		padding: 0 1rem;
	}
	.home .front-columns .wp-block-cover,
	.home .front-columns .wp-block-cover-image {
		background-position: 0 19%;
		min-height: 75vh;
	}
}

/* Entry Content */
@media only screen and (min-width: 815px) {

	.site-header .site-header-wrapper {
    	max-width: calc( 11 * ( 80px + 25px ) - 25px);
		max-width: var(--grid-column-11);
	}

	.site-identity {
    	max-width: var(--grid-column-3);
	}

	body:not(.home) .hentry .entry-header,
	body:not(.home) .hentry .entry-title:first-child:last-child,
	body:not(.home) .hentry .entry-content,
	body:not(.home) .hentry .entry-summary,
	body:not(.home)	.entry-content > *:not(.alignfull):first-child,
	body:not(.home) .entry-summary > *:not(.alignfull):first-child,
	body:not(.home) .page-content > *:not(.alignfull):first-child,
	body:not(.home)	.entry-content > *:not(.alignfull), body:not(.home) .entry-summary > *:not(.alignfull),
	body:not(.home) .page-content > *:not(.alignfull),
	.hentry .entry-footer,
	.hentry .entry-footer .entry-meta,
	.error404 .page-header .page-title,
	.search-no-results .page-header .page-title,
	.no-results .page-header .page-title {
		max-width: 100%;
		margin-left: 7%;
		margin-right: 0;
		width: 85%;
	}

	body:not(.home) .hentry .entry-content,
	body:not(.home) .hentry .entry-summary {
		padding-right: 2rem;
	}

	body.page .entry-title {
	    font-size: 2rem;
	}

	body:not(.home) .entry-content {
		font-size: 1rem;
		line-height: 1.6;
	}

	body:not(.home) .entry-content p {
		margin-bottom: 1.25em;
	}

	.main-navigation {
		margin-top: 0.5em;
	}

	.single .hentry .entry-meta,
	.archive .hentry .entry-meta,
	.blog .hentry .entry-meta,
	.blog .hentry .entry-title,
	.archive .hentry .entry-title,
	.single .hentry .entry-title {
		max-width: 100%;
	    margin-left: 7%;
	    margin-right: 0;
	    width: 85%;
	}

	.single .hentry {
		max-width: 80%;
		margin: 0 auto;
	}

	.blog .hentry .entry-footer,
	.archive .hentry .entry-footer,
	.search .hentry .entry-footer {
		margin-left: 7%;
	}
}

@media only screen and (max-width: 815px) {
	.site-identity {
		order: 1;
		text-align: center;
	}
	.main-navigation {
		order: 2;
		text-align: center;
	}
	.entry-content .front-heading {
	    font-size: 2rem;
	}
	.entry-content .front-subheading {
	    font-size: 1rem !important;
		margin-bottom: 2em;
	}

	.home .entry-content p {
		font-size: 0.9rem;
	}

	.hentry .entry-content .front-menu li {
		padding: 0 0.8em 0.2em 0;
	}

	.hentry .entry-content .front-menu li a {
		font-size: 0.78rem;
	}

	.entry-content .front-heading {
		margin-top: 1em;
	}

	.home .front-columns .wp-block-column:nth-of-type(2n) {
		padding: 0 0.9rem;
	}

	.social-navigation {
		padding: 0 0 1em;
	}
}

@media only screen and (max-width: 500px) {
	.home .front-columns .wp-block-cover,
	.home .front-columns .wp-block-cover-image {
		background-position: 0 19%;
		min-height: 55vh;
	}
}
