/*
Theme Name: W Sports Team Trips
Description: Block theme with the W Sports Team Trips visual system: blu notte, lime, Anton, Graduate, DM Sans.
Author: W Sports Team Trips
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: wstt
*/

/* Sections stack flush, alternating bianco caldo and blu notte. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

.wstt-section {
	margin-block-start: 0 !important;
	padding-block: clamp(3rem, 8vw, 5rem);
}

.wstt-section--tight {
	padding-block: 1.25rem;
}

.wstt-blu {
	background: var(--wp--preset--color--blu-notte);
	color: var(--wp--preset--color--bianco-caldo);
}

.wstt-blu .wstt-muted {
	color: rgba(250, 250, 247, 0.78);
}

.wstt-muted {
	color: var(--wp--preset--color--ardesia);
}

/* Eyebrow: numbered label in Graduate. */
.wstt-eyebrow {
	font-family: var(--wp--preset--font-family--graduate);
	font-size: 0.75rem;
	letter-spacing: 0.125em;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}

.wstt-blu .wstt-eyebrow {
	color: var(--wp--preset--color--lime);
}

.wstt-blu .wstt-eyebrow.wstt-terra {
	color: var(--wp--preset--color--terracotta);
}

.wstt-lede {
	font-size: 1.125rem;
	/* Keeps the line short without moving the block off the content edge. */
	padding-right: calc(100% - min(100%, 40rem));
}

/* Header and brand */
.wstt-header {
	background: var(--wp--preset--color--blu-notte);
	color: var(--wp--preset--color--bianco-caldo);
	padding-block: 1rem;
}

.wstt-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: inherit;
	text-decoration: none;
}

.wstt-brand svg {
	height: 1.875rem;
	width: auto;
	display: block;
	flex: none;
}

.wstt-brand span {
	font-family: var(--wp--preset--font-family--graduate);
	font-size: 0.75rem;
	letter-spacing: 0.125em;
	text-transform: uppercase;
	white-space: nowrap;
}

.wstt-header .wp-block-navigation a:hover,
.wstt-header .wp-block-navigation a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 6px;
}

/* Panels and cards built with blocks */
.wstt-panel {
	border: 2px solid var(--wp--preset--color--blu-notte);
	border-radius: 12px;
	padding: 1.75rem;
	height: 100%;
	box-sizing: border-box;
}

.wstt-panel h3 {
	font-size: 1.5rem;
}

.wstt-blu .wstt-panel {
	border-color: rgba(250, 250, 247, 0.35);
}

.wstt-panel--chiaro {
	background: var(--wp--preset--color--lime-chiaro);
	border-color: var(--wp--preset--color--lime-chiaro);
	color: var(--wp--preset--color--blu-notte);
}

.wstt-role {
	display: inline-block;
	font-family: var(--wp--preset--font-family--graduate);
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: var(--wp--preset--color--lime-chiaro);
	color: var(--wp--preset--color--blu-notte);
	border-radius: 24px;
	padding: 0.375rem 0.875rem;
}

.wstt-trust {
	font-family: var(--wp--preset--font-family--graduate);
	font-size: 0.75rem;
	letter-spacing: 0.125em;
	text-transform: uppercase;
	text-align: center;
}

.wstt-quote {
	font-size: 1.125rem;
	padding-right: calc(100% - min(100%, 52rem));
}

/* FAQ */
.wp-block-details {
	border-bottom: 1px solid rgba(250, 250, 247, 0.35);
}

.wp-block-details summary {
	font-weight: 600;
	font-size: 1.125rem;
	cursor: pointer;
}

/* Images and photos */
.wp-block-image img,
.wp-block-post-featured-image img {
	border-radius: 12px;
}

:where(a, button, summary, input, textarea):focus-visible {
	outline: 3px solid var(--wp--preset--color--lime);
	outline-offset: 2px;
}

.wstt-footer {
	background: var(--wp--preset--color--blu-notte);
	color: var(--wp--preset--color--bianco-caldo);
	border-top: 2px solid var(--wp--preset--color--bianco-caldo);
	padding-block: 1.5rem;
}

.wstt-footer p {
	font-family: var(--wp--preset--font-family--graduate);
	font-size: 0.75rem;
	letter-spacing: 0.125em;
	text-transform: uppercase;
	margin: 0;
}
