/*
Theme Name: FOK
Theme URI: https://fotografiaodkuchni.pl/
Description: Custom theme for Fotografia od Kuchni.
Version: 0.1.0
Author: The Theme Nook
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fok
Requires at least: 6.6
Requires PHP: 7.4
*/

:root {
	--fok-hairline: #dedbd4;
	--fok-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
	box-sizing: border-box;
}

body {
	-webkit-font-smoothing: antialiased;
}

a {
	text-underline-offset: .18em;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--terracotta);
	outline-offset: 3px;
}

.fok-shell {
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
}

.fok-kicker,
.fok-meta,
.fok-nav,
.fok-category-strip,
.fok-link,
.fok-category-label,
.wp-block-comment-date,
.wp-block-comment-edit-link,
.comment-reply-link,
.wp-block-query-pagination > a,
.fok-search input,
.fok-search button {
	font-family: var(--fok-mono);
	font-size: .7rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.fok-topbar {
	border-bottom: 1px solid var(--fok-hairline);
}

.wp-element-button {
	transition: opacity 180ms ease;
}

.wp-element-button:hover {
	opacity: .84;
}

/*
 * The local site has an existing Site Editor header saved under the `fok`
 * theme slug. Keep its utility row, but place the brand in the lower,
 * centred position used by this direction.
 */
.fok-header {
	padding-bottom: clamp(8rem, 14vw, 13rem) !important;
}

.fok-header > .wp-block-group {
	position: relative;
}


.fok-search .wp-block-search__inside-wrapper {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--ink);
	padding: 0;
}

.fok-search .wp-block-search__input,
.fok-search .wp-block-search__button {
	background: transparent;
	border: 0;
	color: inherit;
	padding: .55rem 0;
}

.fok-section-heading {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 1.25rem;
}

.fok-section-heading > * {
	margin: 0;
}

.fok-card {
	border: 1px solid var(--fok-hairline);
	height: 100%;
}

.fok-card .wp-block-post-featured-image {
	aspect-ratio: 2 / 3;
	margin: 0;
	overflow: hidden;
}

.fok-card .wp-block-post-featured-image img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.fok-card-copy {
	padding: 1rem 1.15rem 1.1rem;
}

.fok-card .wp-block-post-title {
	font-size: clamp(1.2rem, 1.6vw, 1.55rem);
	line-height: 1.05;
	margin: 0 0 1rem;
}

.fok-compact-card .wp-block-post-featured-image {
	aspect-ratio: 1 / 1;
}

.fok-compact-card .fok-card-copy {
	padding: .75rem .85rem .8rem;
}

.fok-compact-card .wp-block-post-title {
	font-size: 1rem;
}
.fok-category-strip > li > a {
	padding-top: var(--wp--preset--spacing--20);
  	padding-right: var(--wp--preset--spacing--40);
  	padding-bottom: var(--wp--preset--spacing--20);
  	padding-left: var(--wp--preset--spacing--40);
}
.fok-category-strip > li > a > span {
	color: #fff;
}
nav.fok-category-strip > ul > li:nth-child(1) > a { background: #f0ae27; }
nav.fok-category-strip > ul > li:nth-child(2) > a { background: #ee806e; }
nav.fok-category-strip > ul > li:nth-child(3) > a { background: #cc5639; }
nav.fok-category-strip > ul > li:nth-child(4) > a { background: #a19f52; }
nav.fok-category-strip > ul > li:nth-child(5) > a { background: #3f5651; }
nav.fok-category-strip > ul > li:nth-child(6) > a { background: #33373c; }

.fok-feature {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fok-feature-copy {
	align-content: center;
	padding: clamp(2rem, 5vw, 4rem);
}

.fok-feature-media {
	aspect-ratio: 1 / 1;
	min-height: 0;
	overflow: hidden;
}

.fok-feature-media .wp-block-post-featured-image,
.fok-feature-media .wp-block-post-featured-image a,
.fok-feature-media .wp-block-post-featured-image img {
	height: 100%;
	width: 100%;
}

.fok-feature-media img {
	object-fit: cover;
}

.fok-newsletter {
	align-items: center;
	background: var(--wp--preset--color--olive);
	color: var(--wp--preset--color--paper);
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr 1fr;
	padding: 1.5rem 2.25rem;
}

.fok-newsletter .wp-block-search__inside-wrapper {
	border: 0;
	gap: .75rem;
	padding: 0;
}

.fok-newsletter .wp-block-search__input {
	border: 0;
	padding: .85rem 1rem;
}

.fok-newsletter .wp-block-search__button {
	background: var(--wp--preset--color--ink);
	border: 0;
	border-radius: 0;
	color: #fff;
	margin: 0;
	padding-inline: 1.5rem;
}

.fok-book {
	background: var(--wp--preset--color--blush);
	padding: 2rem;
}

.fok-footer {
	border-top: 1px solid var(--fok-hairline);
}

@media (max-width: 820px) {
	.fok-header {
		padding-bottom: clamp(7rem, 25vw, 10rem) !important;
	}

	.fok-header .wp-block-site-title {
		top: 4.5rem;
		font-size: clamp(2.6rem, 11vw, 4.5rem) !important;
	}

	.fok-header-main {
		grid-template-columns: 1fr auto;
		padding-top: clamp(3rem, 12vw, 5rem);
	}

	.fok-header-main .fok-search {
		display: none;
	}

	.fok-feature,
	.fok-newsletter {
		grid-template-columns: 1fr;
	}

	.fok-feature-media {
		aspect-ratio: 1 / 1;
		min-height: 0;
		order: -1;
	}
}

@media (max-width: 520px) {
	.fok-brand .wp-block-site-title {
		font-size: 2.35rem;
	}

	.fok-header-main .fok-nav {
		display: none;
	}
}
