/*
Theme Name: TL Studio
Theme URI: https://togandlog.com/
Author: Tog & Log
Description: A photography-first block theme foundation with no Timber or page-builder dependency.
Version: 1.4.4
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: tl-studio
Tags: block-patterns, full-site-editing, photography, portfolio
*/

html {
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	overflow-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	text-underline-offset: 0.18em;
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--focus, #3b82f6);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 1rem;
	left: 1rem;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--wp--preset--color--canvas);
	color: var(--wp--preset--color--ink);
	font-size: 1rem;
	font-weight: 700;
}

.tl-site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.tl-site-header .wp-block-navigation-item__content {
	text-decoration: none;
}

.tl-site-header .current-menu-item > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.tl-site-main {
	min-height: 60vh;
}

.tl-kicker {
	font-size: var(--wp--preset--font-size--meta);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tl-project-grid .wp-block-post {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}

.tl-project-grid .wp-block-post-featured-image {
	margin: 0;
}

.tl-project-grid .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.tl-project-grid .wp-block-post-title a {
	text-decoration: none;
}

.tl-project-grid .wp-block-post-title a:hover {
	text-decoration: underline;
}

.tl-site-footer {
	border-top: 1px solid var(--wp--preset--color--rule);
}

.tl-log-single {
	margin-block-start: 0 !important;
}

.tl-log-single__masthead {
	box-sizing: border-box;
	padding: clamp(4rem, 9vh, 8.5rem) var(--wp--preset--spacing--40) clamp(3rem, 6vh, 5rem);
}

.tl-log-single__masthead .wp-block-post-title {
	max-width: 15ch;
	margin-inline: auto;
	margin-bottom: clamp(1.75rem, 4vh, 3.5rem);
	text-wrap: balance;
}

.tl-log-single__meta {
	gap: 0.75rem 1.1rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tl-log-single__meta a {
	text-decoration: none;
}

.tl-log-single__meta a:hover,
.tl-log-single__meta a:focus-visible {
	text-decoration: underline;
}

.tl-log-single__wave {
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1rem;
	letter-spacing: -0.12em;
}

.tl-log-single__featured {
	margin-block: 0 !important;
}

.tl-log-single__featured img {
	display: block;
	width: 100%;
	max-height: 82svh;
	object-fit: cover;
}

.tl-log-single__body {
	box-sizing: border-box;
	padding: clamp(3.5rem, 8vw, 8rem) var(--wp--preset--spacing--40);
}

.tl-log-single__body .wp-block-post-content > p:first-child {
	font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.6rem);
	line-height: 1.55;
}

.tl-log-single__body .wp-block-post-content :is(.alignwide, .alignfull) img {
	display: block;
	width: 100%;
}

.tl-log-single__navigation {
	gap: var(--wp--preset--spacing--40);
	padding-top: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

@media (max-width: 700px) {
	.tl-log-single__masthead {
		padding-top: var(--wp--preset--spacing--60);
	}

	.tl-log-single__masthead .wp-block-post-title {
		font-size: clamp(2.7rem, 15vw, 5rem) !important;
	}

	.tl-log-single__featured img {
		min-height: 52svh;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
