/*
Theme Name: King of Interviews
Description: Editable WordPress recreation of the archived King of Interviews site.
Version: 1.1.2
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: king-of-interviews
*/

.koi-container { width: calc(100% - 30px); margin-inline: auto; }
@media (min-width: 576px) { .koi-container { max-width: 510px; } }
@media (min-width: 768px) { .koi-container { max-width: 690px; } }
@media (min-width: 992px) { .koi-container { max-width: 930px; } }
@media (min-width: 1200px) { .koi-container { max-width: 1110px; } }

.koi-site-header {
	min-height: 86px;
	box-sizing: border-box;
	border-bottom: 1px solid #ddd;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 16px 8px 40px;
}

.koi-site-header .wp-block-site-logo,
.koi-sidebar .wp-block-site-logo { line-height: 0; }
.koi-site-header .wp-block-site-logo img { width: 60px; height: 60px; object-fit: contain; }
.koi-site-header:has(.wp-block-site-logo img) .koi-header-title { display: none; }
.koi-header-tools { display: flex; align-items: center; gap: 16px; }
.koi-site-header .wp-block-navigation { color: var(--wp--preset--color--ink); }
.koi-site-header .wp-block-navigation__container { gap: 40px; }
.koi-site-header a:hover { color: var(--wp--preset--color--brand); }
.koi-cart { margin: 0; filter: grayscale(1); }
.koi-header-tools .wp-block-search__button {
	margin: 0;
	padding: 4px;
	border: 0;
	background: transparent;
}
.koi-header-tools .wp-block-search__input { min-width: 0; width: min(35vw, 230px); }

.koi-main { padding-top: 60px; }
.koi-columns { display: grid; grid-template-columns: minmax(0, 2.0857fr) minmax(0, 1fr); gap: 30px; }
.koi-columns > * { min-width: 0; }
.koi-archive-layout { row-gap: 0; }
.koi-archive-layout > aside { grid-column: 2; grid-row: 1; }
.koi-archive-layout > .wp-block-query-pagination { grid-column: 1 / -1; }
.koi-feed-main > .wp-block-query-title { margin-bottom: 24px; }
.koi-feed-main > .wp-block-search { margin-bottom: 30px; }
.koi-feed .wp-block-post-template.koi-card-grid { gap: 24px 30px; }
.koi-card { padding-bottom: 20px; overflow-wrap: anywhere; }
.koi-card .wp-block-post-featured-image { margin: 0 0 20px; }
.koi-card .wp-block-post-featured-image img { width: 100%; height: auto; border-radius: 0; }
.koi-card .wp-block-post-title { font-size: 18px; margin: 14px 0; }
.koi-card .wp-block-post-title a { color: inherit; }
.koi-card .wp-block-post-title a:hover { color: var(--wp--preset--color--brand); }
.koi-post-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; color: #444; }
.koi-post-meta .wp-block-post-author__name::before { content: "By "; }
.koi-post-meta .wp-block-post-author__name { margin: 0; }
.koi-post-meta .wp-block-post-date::before {
	content: "";
	display: inline-block;
	width: 16px;
	margin-right: 5px;
	vertical-align: -5px;
	border-bottom: 1px solid var(--wp--preset--color--brand);
}
.koi-card .wp-block-post-excerpt__excerpt,
.koi-widget p,
.koi-newsletter p,
.koi-article .wp-block-post-content {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--raleway);
	font-size: 15px;
	line-height: 1.7;
}
.koi-card .wp-block-post-excerpt__more-link {
	display: inline-block;
	border: 1px solid var(--wp--preset--color--brand);
	padding: 10px 15px;
	font: 500 14px/1.5 var(--wp--preset--font-family--raleway);
	color: var(--wp--preset--color--ink);
}
.koi-card .wp-block-post-excerpt__more-text { margin-top: 16px; }
.koi-card .wp-block-post-excerpt__more-link:hover,
.koi-widget .wp-block-button__link:hover { color: white; background: var(--wp--preset--color--brand); }
.koi-feed .wp-block-query-pagination { gap: 0; margin: 36px auto 0; }
.koi-feed .wp-block-query-pagination-numbers { display: flex; gap: 0; }
.koi-feed .page-numbers,
.koi-feed .wp-block-query-pagination-next,
.koi-feed .wp-block-query-pagination-previous {
	min-width: 40px;
	box-sizing: border-box;
	padding: 8px;
	text-align: center;
	border-inline: 1px solid #eee;
	margin: 0;
}
.koi-feed .page-numbers.current { border: 1px solid var(--wp--preset--color--brand); color: #666; }

.koi-sidebar { padding-left: 25px; border-left: 1px solid #eee; }
.koi-widget { text-align: center; margin-bottom: 50px; }
.koi-widget .koi-widget-title {
	display: inline-block;
	font-size: 22px;
	margin: 0 0 20px;
	padding: 10px 0;
	border-block: 1px solid var(--wp--preset--color--brand);
}
.koi-sidebar .wp-block-site-logo { margin: 0 auto 24px; }
.koi-sidebar .wp-block-site-logo img { width: 165px; height: auto; }
.koi-widget p { margin: 0 0 16px; }
.koi-widget .wp-block-buttons { justify-content: center; }
.koi-widget ul, .koi-footer-col ul { list-style: none; padding-left: 0; margin: 0; }
.koi-widget li { margin-bottom: 10px; }
.koi-widget ul a { color: var(--wp--preset--color--muted); }
.koi-widget ul a:hover { color: var(--wp--preset--color--brand); }
.koi-widget .wp-block-categories li:has(> a[href$="/uncategorized/"]),
.koi-footer-col .wp-block-categories li:has(> a[href$="/uncategorized/"]) { display: none; }
.koi-tags .wp-block-tag-cloud a {
	display: inline-block;
	margin: 0 3px 8px;
	padding: 8px;
	background: var(--wp--preset--color--brand);
	color: white;
	text-transform: lowercase;
}
.koi-tags .wp-block-tag-cloud a::first-letter { text-transform: uppercase; }

.koi-newsletter { padding: 60px 0; text-align: center; max-width: 730px; margin-inline: auto; }
.koi-newsletter h2 { font-size: 36px; margin: 0 0 12px; }
.koi-newsletter p { margin: 0; border-inline: 1px solid var(--wp--preset--color--brand); padding: 24px 36px; }
.koi-newsletter p a, .koi-footer-col a { color: var(--wp--preset--color--ink); }
.koi-footer-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 825px; margin-inline: auto; gap: 30px; }
.koi-footer-col h6 { font-size: 16px; margin: 0 0 24px; }
.koi-footer-col p, .koi-footer-col li { margin: 0 0 16px; }
.koi-footer-col .wp-block-categories a { text-transform: capitalize; }
.koi-copyright { margin: 36px 0 0; border-top: 1px solid #ddd; padding-block: 24px; text-align: center; }

.koi-article { max-width: 730px; margin-inline: auto; overflow-wrap: anywhere; }
.koi-columns .koi-article, .koi-wide .koi-article { max-width: none; margin: 0; }
.koi-article .wp-block-post-title { font-size: clamp(28px,4vw,36px); margin: 8px 0 16px; }
.koi-article .wp-block-post-content > * { margin: 0 0 16px; }
.koi-article .wp-block-post-featured-image { margin-bottom: 24px; }
.koi-about .wp-block-image { text-align: center; margin-bottom: 24px; }
.koi-store { max-width: 920px; }
.koi-store .wp-block-post-content h2 { font-size: 36px; margin: 0; }
.koi-store .koi-product {
	display: grid;
	grid-template-areas: "image name name" "image description description" "image controls controls" "image . .";
	grid-template-columns: 3fr 1fr 1fr;
	column-gap: 100px;
	margin-bottom: 100px;
}
.koi-store .koi-product-name { grid-area: name; }
.koi-store .koi-product-image {
	grid-area: image;
	border-radius: 4px;
	box-shadow: 0 18.025px 43.775px rgba(0,0,0,.25);
}
.koi-store .koi-product-description { grid-area: description; margin: 10px 0 16px; }
.koi-store .koi-product-controls { grid-area: controls; display: flex; align-items: stretch; }
.koi-store .koi-store-price { margin: 0; font: 700 28px/1.4 var(--wp--preset--font-family--open-sans); color: #404040; }
.koi-store .koi-buy-button {
	margin-left: 30px;
	border: 0;
	border-radius: 99px;
	padding: 10px 20px;
	color: white;
	background: #f85e5e;
	font: 700 16px/1.4 var(--wp--preset--font-family--open-sans);
	opacity: 1;
}
.koi-store .koi-review-section { padding-block: 120px 60px; }
.koi-store .koi-reviews-title { text-align: center; margin-bottom: 8px !important; }
.koi-store .koi-reviews { display: flex; flex-direction: column; }
.koi-store .koi-review {
	margin: 16px;
	padding: 2.5rem;
	border: 1px solid var(--wp--preset--color--brand);
	border-radius: 12px;
	box-shadow: 0 4px 8px rgba(0,0,0,.2), 0 6px 20px rgba(0,0,0,.19);
	letter-spacing: 1px;
	font: 400 16px/1.4 var(--wp--preset--font-family--open-sans);
	color: #474747;
}
.koi-article pre {
	overflow: auto;
	padding: 1rem;
	background: #f5f5f5;
	border: 1px solid #eee;
	white-space: pre;
	overflow-wrap: normal;
}
.koi-article table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.koi-article :is(th, td) { border: 1px solid #ddd; padding: .5rem .75rem; }
.koi-article img { max-width: 100%; height: auto; }
.koi-article:not(.koi-store) .wp-block-post-content { font: 400 16px/1.4 var(--wp--preset--font-family--open-sans); color: #404040; }
.koi-article:not(.koi-store) .wp-block-post-content p { font: 400 15px/1.7 var(--wp--preset--font-family--raleway); color: var(--wp--preset--color--muted); margin-bottom: 20px; }
.koi-article:not(.koi-store) .wp-block-post-content :is(h2,h3,h4,h5,h6) { margin-bottom: 10px; }
.koi-article:not(.koi-store) .wp-block-post-content ul { padding-left: 0; }
.koi-article:not(.koi-store) .wp-block-post-content ul li { position: relative; padding-left: 20px; margin-bottom: 15px; list-style: none; }
.koi-article:not(.koi-store) .wp-block-post-content ul li::before { content: "→"; position: absolute; left: 0; color: var(--wp--preset--color--brand); }
.koi-article:not(.koi-store) .wp-block-post-content ol { padding-left: 20px; }
.koi-article:not(.koi-store) .wp-block-post-content code { padding: 3px 5px; background: #f4fcff; border: 1px solid #acb9c4; border-radius: 3px; color: #222; }
.koi-article:not(.koi-store) .wp-block-post-content pre { padding: 10px 20px; }
.koi-article:not(.koi-store) .wp-block-post-content pre code { padding: 0; border: 0; border-radius: 0; }
.koi-article:not(.koi-store) .wp-block-post-content blockquote { margin-inline: 0; padding: 20px; background: #f4fcff; border-left: 3px solid var(--wp--preset--color--brand); }
.koi-article:not(.koi-store) .wp-block-post-content table :is(td,th) { padding: 12px; border-color: #dee2e6; }
.koi-article:not(.koi-store) .wp-block-post-content thead { background: #eaf9ff; }
.koi-article:not(.koi-store) .wp-block-post-content tbody { background: #f4fcff; }

.koi-cookie {
	position: fixed;
	z-index: 20;
	inset: auto 0 0;
	box-sizing: border-box;
	background: #474747;
	color: #fdfdfd;
	padding: 16px 32px;
	text-align: center;
}
.koi-cookie button {
	margin-left: 10px;
	border: 0;
	padding: 11px 15px;
	font: inherit;
	font-size: 14px;
	color: white;
	background: var(--wp--preset--color--brand);
	cursor: pointer;
}

@media (max-width: 991px) {
	.koi-site-header { padding-inline: 0; }
	.koi-site-header .wp-block-navigation__container { gap: 18px; }
	.koi-site-header .wp-block-navigation__responsive-container-open { display: flex; }
	.koi-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.koi-columns { grid-template-columns: minmax(0, 1fr); }
	.koi-archive-layout > aside { grid-column: 1; grid-row: auto; }
	.koi-sidebar { padding-left: 0; border-left: 0; }
	.koi-store .koi-product { grid-template-columns: 1fr 1fr; grid-template-areas: "image image" "name name" "description description" "controls controls"; }
	.koi-store .koi-product-image { height: 300px; margin-bottom: 30px; }
}
@media (max-width: 575px) {
	.koi-main { padding-top: 36px; }
	.koi-feed .wp-block-post-template.koi-card-grid.is-layout-grid { grid-template-columns: minmax(0,1fr); }
	.koi-footer-columns { grid-template-columns: minmax(0,1fr); }
	.koi-cookie { padding: 12px 16px; }
}
