/*
Theme Name: Jiu Jitsu Toes
Description: Photography-first block theme for Jiu Jitsu Toes.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: jiu-jitsu-toes
*/
:root {
	--ink: #11151a;
	--panel: #1b2229;
	--muted: #ced4da;
	--teal: #17b8ad;
	--line: #45545e;
	--frame: min(100% - 2rem, 76rem);
}
body { margin: 0; overflow-wrap: anywhere; }
a { text-underline-offset: .2em; }
:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 3px solid #78fff4;
	outline-offset: 4px;
}
header, footer { background: #151b20; }
.jjt-header, .jjt-footer, .jjt-section, .jjt-page-title {
	width: var(--frame);
	margin-inline: auto;
}
.jjt-header, .jjt-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1rem;
}
.jjt-header .wp-block-site-title {
	font-weight: 900;
	letter-spacing: -.045em;
	font-size: 1.4rem;
}
.jjt-header a, .jjt-footer a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}
.wp-block-navigation__responsive-container.is-menu-open {
	background: #151b20 !important;
	color: white !important;
}
.wp-block-navigation button { min-width: 44px; min-height: 44px; }
.jjt-main { margin-block: 0 !important; min-height: 60vh; }
.jjt-main > .wp-block-post-content { margin-block: 0; }
.jjt-page-title { padding-block: clamp(2rem, 7vw, 6rem) 1.25rem; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 5.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); }
p { color: var(--muted); max-width: 66ch; }
.jjt-hero {
	display: grid;
	width: var(--frame);
	margin: 0 auto;
	gap: 1.4rem;
	padding-block: clamp(2rem, 6vw, 6rem);
}
.jjt-hero-copy { align-self: center; }
.jjt-hero h1 {
	font-family: "Arial Black", system-ui, sans-serif;
	font-weight: 950;
	text-transform: uppercase;
	font-size: clamp(2.55rem, 6.3vw, 6.3rem);
	letter-spacing: -.075em;
	margin-block: .22em;
}
.jjt-kicker { color: var(--teal); font-size: .79rem; font-weight: 750; letter-spacing: .12em; }
.jjt-placeholder {
	background: repeating-linear-gradient(125deg, #26333b 0 1px, #1b252d 1px 20px);
	display: grid;
	place-items: end start;
	min-height: 9rem;
	aspect-ratio: 4 / 3;
	padding: 1rem;
	box-sizing: border-box;
	border: 1px solid var(--line);
}
.jjt-placeholder p { margin: 0; background: var(--ink); padding: .45rem .65rem; font-size: .85rem; }
.jjt-hero > .wp-block-image { margin: 0; align-self: center; }
.jjt-hero > .wp-block-image img, .jjt-grid .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.jjt-section { padding-block: clamp(1.8rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.jjt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 1rem;
}
.jjt-grid > * { margin: 0 !important; min-width: 0; }
.jjt-card, .is-style-jjt-card, .jjt-empty, .jjt-notice {
	padding: clamp(1rem, 3vw, 1.65rem);
	background: var(--panel);
	border: 1px solid var(--line);
}
.jjt-card h3, .jjt-card p:first-child { margin-top: 0; }
.jjt-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 1rem; }
.wp-block-button__link, .jjt-button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	box-sizing: border-box;
	padding: .65rem 1rem;
	border: 1px solid var(--teal);
	border-radius: .25rem;
	background: var(--teal);
	color: var(--ink);
	font: inherit;
	font-weight: 750;
	text-decoration: none;
	cursor: pointer;
}
.wp-block-button__link:hover, .jjt-button:hover { background: #83eee5; color: var(--ink); }
.jjt-hero .wp-block-button + .wp-block-button .wp-block-button__link {
	background: transparent;
	color: white;
	border-color: var(--line);
}
.jjt-form { max-width: 48rem; }
.jjt-form label, .jjt-filters label { display: block; font-weight: 650; }
.jjt-form input:not([type=hidden]), .jjt-form textarea, .jjt-form select, .jjt-filters select {
	display: block;
	width: 100%;
	min-height: 44px;
	box-sizing: border-box;
	margin: .35rem 0 1rem;
	padding: .55rem .65rem;
	background: var(--panel);
	color: white;
	border: 1px solid #7c8e99;
	border-radius: .25rem;
	font: inherit;
	color-scheme: dark;
}
.jjt-form textarea { min-height: 9rem; }
.jjt-filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: 1.4rem; }
.jjt-filters select { margin-bottom: 0; }
.jjt-pagination { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.2rem; }
.jjt-pagination > * { padding: .5rem; min-width: 2rem; text-align: center; }
.jjt-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 52rem) {
	.jjt-hero { grid-template-columns: 1fr 1.05fr; }
	.jjt-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

@media (min-width: 52rem) {
	.jjt-hero:has(> .jjt-hero-photo) {
		position: relative;
		isolation: isolate;
		grid-template-columns: 1fr;
		box-sizing: border-box;
		min-height: clamp(28rem, 47vw, 42rem);
		width: 100%;
		padding-inline: max(1.5rem, calc((100% - 76rem) / 2));
	}
	.jjt-hero > .jjt-hero-photo {
		position: absolute;
		inset: 0;
		z-index: -2;
		align-self: stretch;
		overflow: hidden;
	}
	.jjt-hero > .jjt-hero-photo img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	.jjt-hero:has(> .jjt-hero-photo)::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		background: linear-gradient(90deg, rgb(17 21 26 / .98), rgb(17 21 26 / .84) 43%, rgb(17 21 26 / .45));
	}
	.jjt-hero:has(> .jjt-hero-photo) .jjt-hero-copy { max-width: 44rem; }
}

@media (min-width: 600px) and (max-width: 65rem) {
	.jjt-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.jjt-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
}
