/* ==========================================================================
   Base — typography, links, buttons, utilities.
   ========================================================================== */

/* Tenon — brand nav/display font (not on Google Fonts; self-hosted).
   Drop the licensed woff2/woff files into assets/fonts/tenon/ with these names
   and the nav (--wf-font-nav) activates automatically. Until then it falls back
   to Roboto, so the 404s below are harmless. */
@font-face {
	font-family: 'Tenon';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url( '../fonts/tenon/tenon-regular.woff2' ) format( 'woff2' );
}
@font-face {
	font-family: 'Tenon';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url( '../fonts/tenon/tenon-medium.woff2' ) format( 'woff2' );
}
@font-face {
	font-family: 'Tenon';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url( '../fonts/tenon/tenon-bold.woff2' ) format( 'woff2' );
}

body {
	font-family: var(--wf-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--wf-secondary);
	background: var(--wf-white);
}

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

h1, h2, h3, h4, h5, h6 {
	line-height: 1.2;
	margin-top: 0;
	color: var(--wf-secondary);
}

a {
	color: var(--wf-primary);
	text-decoration: none;
	transition: opacity var(--wf-transition), color var(--wf-transition);
}

a:hover {
	opacity: .85;
}

/* --- Utilities --------------------------------------------------------- */

/* Coral uppercase eyebrow — Figma: Roboto Medium 24px, -2% tracking, 70px band. */
.wf-section-label,
.is-style-wf-section-label {
	display: inline-block;
	font-size: 24px;
	font-weight: 500;
	line-height: 70px;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--wf-primary);
	margin: 0 0 var(--wf-sm);
}

/* The 70px desktop band leaves a huge gap when the label wraps on mobile. */
@media (max-width: 991px) {
	.wf-section-label,
	.is-style-wf-section-label { line-height: 28px; }
}

/* Signature gradient display heading */
.wf-gradient-text,
.is-style-wf-gradient-text {
	background: var(--wf-gradient-head);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #e8706a; /* fallback if clip unsupported / bg image fails */
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
	.wf-gradient-text,
	.is-style-wf-gradient-text {
		color: var(--wf-secondary);
	}
	/* On dark grounds the gradient fallback must stay light, not slate. */
	.wf-defi-banner .wf-gradient-text,
	.wf-hero--dark .wf-gradient-text {
		color: var(--wf-white);
	}
}

/* --- Skip link (WCAG 2.4.1) ------------------------------------------- */
.wf-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	background: var(--wf-secondary);
	color: var(--wf-white);
	padding: 0.6rem 1rem;
	border-radius: 0 0 var(--wf-radius-input) 0;
}

.wf-skip-link:focus {
	left: 0;
}

/* --- Visible focus for interactive elements (WCAG 2.4.7 / 2.4.11) ----- */
.wf-btn:focus-visible,
a:focus-visible {
	outline: 3px solid var(--wf-primary);
	outline-offset: 3px;
}

.wf-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Buttons ----------------------------------------------------------- */

.wf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--wf-font);
	font-size: 15px;          /* CTA text */
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.02em;
	border-radius: var(--wf-radius-pill);
	padding: 0.65rem 1.75rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all var(--wf-transition);
	text-align: center;
}

/* Primary: white fill with gradient border */
.wf-btn--primary {
	color: var(--wf-secondary);
	background:
		linear-gradient(var(--wf-white), var(--wf-white)) padding-box,
		var(--wf-btn-border) border-box;
	border: 2px solid transparent;
}

.wf-btn--primary:hover {
	background:
		linear-gradient(var(--wf-light-bg), var(--wf-light-bg)) padding-box,
		var(--wf-btn-border) border-box;
	opacity: 1;
}

/* Coral: solid fill */
.wf-btn--coral {
	color: var(--wf-white);
	background: var(--wf-primary);
	border-color: var(--wf-primary);
}

.wf-btn--coral:hover {
	background: var(--wf-primary-hover);
	border-color: var(--wf-primary-hover);
	opacity: 1;
}

/* Outline */
.wf-btn--outline {
	color: var(--wf-secondary);
	background: transparent;
	border: 1.5px solid var(--wf-secondary);
}

.wf-btn--outline:hover {
	color: var(--wf-white);
	background: var(--wf-secondary);
	opacity: 1;
}

/* On dark backgrounds, outline flips to light */
.wf-text-content--bg-dark .wf-btn--outline,
.wf-platforms .wf-btn--outline,
.wf-defi-banner .wf-btn--outline,
.wf-brands .wf-btn--outline {
	color: var(--wf-white);
	border-color: rgba(255, 255, 255, .5);
}

.wf-text-content--bg-dark .wf-btn--outline:hover,
.wf-platforms .wf-btn--outline:hover,
.wf-defi-banner .wf-btn--outline:hover,
.wf-brands .wf-btn--outline:hover {
	background: var(--wf-white);
	color: var(--wf-secondary);
	border-color: var(--wf-white);
}

/* Map core button block styles onto wf buttons */
.wp-block-button.is-style-wf-coral .wp-block-button__link {
	background: var(--wf-primary);
	color: var(--wf-white);
	border-radius: var(--wf-radius-pill);
	padding: 0.65rem 1.75rem;
	font-weight: 500;
}

.wp-block-button.is-style-wf-coral .wp-block-button__link:hover {
	background: var(--wf-primary-hover);
}

.wp-block-button.is-style-wf-outline .wp-block-button__link {
	background: transparent;
	color: var(--wf-secondary);
	border: 1.5px solid var(--wf-secondary);
	border-radius: var(--wf-radius-pill);
	padding: 0.65rem 1.75rem;
	font-weight: 500;
}

.wp-block-button.is-style-wf-gradient-border .wp-block-button__link {
	color: var(--wf-secondary);
	background:
		linear-gradient(var(--wf-white), var(--wf-white)) padding-box,
		var(--wf-btn-border) border-box;
	border: 2px solid transparent;
	border-radius: var(--wf-radius-pill);
	padding: 0.65rem 1.75rem;
	font-weight: 500;
}
