/* Lab Look: Dan Cottrell's coaching lab.
   Ink, RCW red and a touch of blue, Montserrat for headings, Arimo for reading.
   The one loud thing is the home page hero: a night pitch with chalk lines. */

:root {
	--lab-ink: #1f252c;
	--lab-red: #df0b15;
	--lab-blue: #0092d6;
	--lab-paper: #f3f5f7;
	--lab-slate: #5b6470;
	--lab-mist: #dfe4ea;
	--lab-chalk: rgba(255, 255, 255, 0.15);
}

/* Pages that stretch to the window edge should never cause a sideways scroll. */
body {
	overflow-x: clip;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--lab-blue);
	outline-offset: 3px;
}

/* Home page sections sit flush against each other. */
.lab-hero,
.lab-features,
.lab-squad,
.lab-hello {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

strong,
b {
	font-weight: 700;
}

/* ---------- Header ---------- */

.lab-header {
	background: var(--lab-ink);
	color: #fff;
	padding-block: 1.1rem;
	padding-inline: var(--wp--style--root--padding-left, 1.25rem);
}

.lab-header .lab-wordmark {
	margin: 0;
	font-family: Montserrat, Arial, sans-serif;
	font-weight: 900;
	font-size: 1.35rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1;
}

.lab-header .lab-wordmark a {
	color: #fff;
	text-decoration: none;
}

.lab-wordmark a::after,
.lab-dot {
	color: var(--lab-red);
}

.lab-wordmark a::after {
	content: ".";
}

.lab-header .wp-block-navigation {
	font-family: Montserrat, Arial, sans-serif;
	font-weight: 700;
	font-size: 0.98rem;
	gap: 0.4rem 1.6rem;
}

.lab-header .wp-block-navigation a {
	color: #fff;
	text-decoration: none;
	padding-block: 0.35rem;
	border-bottom: 3px solid transparent;
}

.lab-header .wp-block-navigation a:hover,
.lab-header .wp-block-navigation .current-menu-item > a,
.lab-header .wp-block-navigation [aria-current="page"] {
	color: #fff;
	border-bottom-color: var(--lab-red);
}

.lab-header .wp-block-navigation__responsive-container-open,
.lab-header .wp-block-navigation__responsive-container-close {
	color: #fff;
}

.lab-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--lab-ink) !important;
	color: #fff !important;
	padding: 1.5rem;
}

.lab-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1.1rem;
	font-size: 1.5rem;
}

/* ---------- Page titles ---------- */

.wp-block-post-title {
	margin-bottom: 0.4em;
}

/* The home page starts straight under the header. */
.home main.wp-block-group {
	margin-top: 0 !important;
}

.home main > .wp-block-group:first-child,
.home main .entry-content {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* ---------- Hero: a night pitch with chalk lines ---------- */

.lab-hero {
	position: relative;
	background-color: var(--lab-ink);
	color: #fff;
	margin-top: 0 !important;
	padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(4rem, 10vw, 8.5rem);
	padding-inline: var(--wp--style--root--padding-left, 1.25rem);
	background-image:
		/* try line */
		linear-gradient(to bottom, transparent calc(14% - 1px), var(--lab-chalk) calc(14% - 1px), var(--lab-chalk) calc(14% + 2px), transparent calc(14% + 2px)),
		/* 22 */
		linear-gradient(to bottom, transparent calc(88% - 1px), var(--lab-chalk) calc(88% - 1px), var(--lab-chalk) calc(88% + 2px), transparent calc(88% + 2px)),
		/* dashed 5 m line */
		repeating-linear-gradient(to right, var(--lab-chalk) 0 30px, transparent 30px 64px),
		/* touchline down the right-hand side */
		linear-gradient(to right, transparent calc(100% - 9vw - 1px), var(--lab-chalk) calc(100% - 9vw - 1px), var(--lab-chalk) calc(100% - 9vw + 2px), transparent calc(100% - 9vw + 2px));
	background-size: 100% 100%, 100% 100%, 100% 3px, 100% 100%;
	background-position: 0 0, 0 0, 0 30%, 0 0;
	background-repeat: no-repeat;
}

.lab-hero > * {
	position: relative;
}

.lab-hero .lab-stamp {
	display: inline-block;
	margin: 0 0 2.1rem;
	background: var(--lab-red);
	color: #fff;
	border: 3px solid #fff;
	padding: 0.45rem 0.75rem;
	font-family: Montserrat, Arial, sans-serif;
	font-weight: 900;
	font-size: 0.85rem;
	letter-spacing: 0.14em;
	line-height: 1;
	transform: rotate(-3deg);
	animation: lab-stamp 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.25s both;
}

@keyframes lab-stamp {
	0% { opacity: 0; transform: scale(1.8) rotate(-14deg); }
	65% { opacity: 1; transform: scale(0.94) rotate(-2deg); }
	100% { opacity: 1; transform: scale(1) rotate(-3deg); }
}

.lab-hero h1 {
	color: #fff;
	font-size: clamp(2.7rem, 11vw, 7rem);
	line-height: 0.92;
	letter-spacing: -0.02em;
	margin: 0 0 1.75rem;
}

.lab-hero p.lab-lede {
	color: var(--lab-mist);
	font-size: clamp(1.1rem, 1.8vw, 1.35rem);
	line-height: 1.55;
	max-width: 54ch;
	margin: 0 0 2.25rem;
}

.lab-hero .wp-block-buttons {
	gap: 0.9rem;
}

.lab-btn-ghost .wp-block-button__link {
	background: transparent !important;
	color: #fff !important;
	box-shadow: inset 0 0 0 2px #fff;
}

.lab-btn-ghost .wp-block-button__link:hover,
.lab-btn-ghost .wp-block-button__link:focus-visible {
	background: #fff !important;
	color: var(--lab-ink) !important;
}

/* ---------- What's in the lab ---------- */

.lab-features {
	padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.lab-features > .wp-block-heading {
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.lab-feature {
	gap: clamp(1.5rem, 4vw, 3.5rem);
	margin-top: 0;
}

.lab-feature + .lab-feature {
	margin-top: clamp(3rem, 7vw, 5.5rem) !important;
}

.lab-feature .wp-block-media-text__content {
	padding: 0 !important;
}

.lab-feature .wp-block-media-text__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-bottom: 6px solid var(--lab-red);
}

.lab-feature h2 {
	margin: 0 0 0.9rem;
}

.lab-feature p {
	color: var(--lab-slate);
	max-width: 46ch;
	margin: 0 0 1.6rem;
}

/* ---------- Test squad band ---------- */

.lab-squad {
	background: var(--lab-red);
	color: #fff;
	padding-block: clamp(3rem, 7vw, 5rem);
	padding-inline: var(--wp--style--root--padding-left, 1.25rem);
}

.lab-squad h2 {
	color: #fff;
	margin: 0 0 0.75rem;
}

.lab-squad p {
	font-size: 1.2rem;
	max-width: 48ch;
	margin: 0 0 1.75rem;
}

.lab-squad .wp-block-button__link {
	background: #fff !important;
	color: var(--lab-ink) !important;
}

.lab-squad .wp-block-button__link:hover,
.lab-squad .wp-block-button__link:focus-visible {
	background: var(--lab-ink) !important;
	color: #fff !important;
}

/* ---------- Hi, I'm Dan ---------- */

.lab-hello {
	padding-block: clamp(3.5rem, 8vw, 6rem);
	padding-inline: var(--wp--style--root--padding-left, 1.25rem);
	background: var(--lab-paper);
}

.lab-hello .wp-block-columns {
	gap: clamp(1rem, 4vw, 4rem);
	margin: 0;
}

.lab-hello h2 {
	font-size: clamp(2.6rem, 6vw, 4.5rem);
	line-height: 0.95;
	margin: 0;
}

.lab-hello p {
	font-size: 1.2rem;
	max-width: 52ch;
	margin: 0 0 1.75rem;
}

.lab-btn-ink .wp-block-button__link {
	background: var(--lab-ink) !important;
	color: #fff !important;
}

.lab-btn-ink .wp-block-button__link:hover,
.lab-btn-ink .wp-block-button__link:focus-visible {
	background: var(--lab-red) !important;
}

/* ---------- About page ---------- */

.lab-intro {
	font-size: clamp(1.25rem, 2.2vw, 1.55rem);
	line-height: 1.45;
}

.lab-facts {
	border-top: 6px solid var(--lab-ink);
	padding-top: 1.75rem;
	margin-top: 2.5rem !important;
}

.lab-facts h2 {
	font-size: 1.6rem;
	margin: 0 0 1rem;
}

.lab-facts ul {
	padding-left: 1.1em;
}

.lab-facts li {
	margin-bottom: 0.55em;
}

.lab-facts strong {
	font-family: Montserrat, Arial, sans-serif;
	font-weight: 800;
}

.lab-facts li::marker {
	color: var(--lab-red);
}

.lab-record {
	background: var(--lab-ink);
	color: #fff;
	padding: clamp(1.5rem, 4vw, 2.5rem) !important;
	margin-top: 2.5rem !important;
}

.lab-record p {
	margin: 0;
}

.lab-record .lab-record-figure {
	font-family: Montserrat, Arial, sans-serif;
	font-weight: 900;
	font-size: clamp(2.4rem, 6vw, 3.6rem);
	line-height: 1;
	text-transform: uppercase;
	margin-bottom: 0.6rem;
}

.lab-record .lab-record-text {
	color: var(--lab-mist);
	max-width: 46ch;
}

/* ---------- Footer ---------- */

.lab-footer {
	background: var(--lab-ink);
	color: var(--lab-mist);
	padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
	padding-inline: var(--wp--style--root--padding-left, 1.25rem);
	margin-top: 0 !important;
	font-size: 1rem;
}

.lab-footer a {
	color: #fff;
}

.lab-footer a:hover {
	color: #fff;
	text-decoration-color: var(--lab-red);
	text-decoration-thickness: 3px;
}

.lab-footer .lab-wordmark {
	margin: 0 0 0.75rem;
	font-family: Montserrat, Arial, sans-serif;
	font-weight: 900;
	font-size: 1.6rem;
	text-transform: uppercase;
	line-height: 1;
}

.lab-footer .lab-wordmark a {
	text-decoration: none;
}

.lab-footer h3 {
	color: #fff;
	font-size: 1rem;
	margin: 0 0 0.75rem;
}

.lab-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.lab-footer li {
	margin-bottom: 0.4rem;
}

.lab-footer .lab-small {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	font-size: 0.875rem;
	color: #9aa3ad;
}

/* No gap between the last section and the footer. */
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part:last-child {
	margin-top: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
	.lab-stamp {
		animation: none;
	}
}

@media (max-width: 600px) {
	.lab-hero {
		background-position: 0 0, 0 0, 0 24%, 0 0;
	}
	.lab-hero .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	.lab-hero .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}
