/*
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.12
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__hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 78svh;
	max-height: 92svh;
	margin: 0 !important;
	overflow: hidden;
	background: var(--wp--preset--color--ink);
}

.tl-log-single__hero-media {
	position: absolute !important;
	inset: 0;
	margin: 0 !important;
}

.tl-log-single__hero-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
}

.tl-log-single__hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.32);
	pointer-events: none;
}

.tl-log-single__hero-content {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--40);
	text-align: center;
}

.tl-log-single__hero-title {
	max-width: 18ch;
	margin-inline: auto;
	margin-bottom: clamp(1.25rem, 3vh, 2rem);
	color: var(--wp--preset--color--inverse);
	text-wrap: balance;
}

.tl-log-single__meta {
	gap: 0.75rem 1.1rem;
	color: var(--wp--preset--color--inverse);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

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

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

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

.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__hero {
		min-height: 62svh;
	}

	.tl-log-single__hero-title {
		font-size: clamp(1.85rem, 9vw, 2.75rem) !important;
	}
}

@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;
	}
}
