/* Global brand tokens also mirror the block editor palette in theme.json. */
:root {
	--brand-graphite: var(--wp--preset--color--paper, #111315);
	--brand-charcoal: var(--wp--preset--color--surface, #1B1F22);
	--brand-green: var(--wp--preset--color--accent, #7ED957);
	--brand-lime: var(--wp--preset--color--accent-hover, #9BE870);
	--brand-platinum: var(--wp--preset--color--ink, #F5F7F7);
	--brand-grey: var(--wp--preset--color--muted, #A7B0B7);
	--brand-line: color-mix(in srgb, var(--brand-grey) 25%, var(--brand-charcoal));
	--brand-heading: var(--wp--preset--font-family--headings, 'General Sans', Inter, system-ui, sans-serif);
	--brand-body: var(--wp--preset--font-family--body, Inter, system-ui, sans-serif);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--brand-body);
	line-height: 1.6;
	color: var(--brand-platinum);
	background: var(--brand-graphite);
}

img,
video,
iframe {
	max-width: 100%;
}

img,
video {
	height: auto;
}

a {
	color: var(--brand-green);
	text-underline-offset: 0.2em;
}

:focus-visible {
	outline: 3px solid var(--brand-green);
	outline-offset: 4px;
}

.site-shell {
	width: min(calc(100% - 2rem), var(--wp--style--global--wide-size, 72rem));
	margin-inline: auto;
}

.site-header,
.site-footer {
	padding-block: 1.5rem;
}

.site-header {
	border-bottom: 1px solid var(--brand-line);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
}

.site-title {
	font-size: 1.25rem;
	font-weight: 700;
}

.site-description {
	margin-block: 0.25rem 0;
}

.custom-logo-link img {
	display: block;
	max-width: 12rem;
}

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-main {
	min-height: 55vh;
	padding-block: clamp(2rem, 6vw, 4rem);
}

.content-entry,
.archive-header,
.empty-state {
	max-width: var(--wp--style--global--content-size, 48rem);
	margin-inline: auto;
	overflow-wrap: anywhere;
}

.site-main > h1 {
	max-width: var(--wp--style--global--content-size, 48rem);
	margin-inline: auto;
}

h1,
h2,
h3 {
	font-family: var(--brand-heading);
	line-height: 1.2;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2rem, 5vw, 3rem);
}

.content-entry + .content-entry {
	margin-top: 3rem;
}

.entry-meta {
	font-size: 0.875rem;
}

.entry-content > .alignwide {
	width: 100%;
}

.entry-content pre,
.entry-content .wp-block-table {
	overflow-x: auto;
}

.navigation.pagination,
.page-links {
	margin-block: 2rem;
}

.site-footer {
	border-top: 1px solid var(--brand-line);
	color: var(--brand-grey);
}

.site-wordmark {
	display: block;
	width: 11.5rem;
	height: auto;
}

.site-footer .site-wordmark {
	width: 9.5rem;
}

.webtique-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.webtique-socials .webtique-socials__link {
	display: inline-flex;
	width: 2.75rem;
	height: 2.75rem;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--brand-line);
	border-radius: 0.45rem;
	color: var(--brand-platinum);
	background: transparent;
	text-decoration: none;
	touch-action: manipulation;
}

.webtique-socials__link svg {
	display: block;
	flex: none;
}

.webtique-socials .webtique-socials__link:focus-visible {
	border-color: var(--brand-green);
	color: var(--brand-green);
	outline: 2px solid var(--brand-green);
	outline-offset: 3px;
	text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
	.webtique-socials .webtique-socials__link:hover {
		border-color: var(--brand-green);
		color: var(--brand-green);
		background: var(--brand-charcoal);
		text-decoration: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.webtique-socials__link {
		transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
	}
}

.skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	z-index: 100000;
	top: 1rem;
	left: 1rem;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip-path: none;
	background: var(--brand-graphite);
}
