/**
 * PIKK base — reset polish, typography scale, header/footer, breakpoints.
 */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--wp--preset--color--canvas, #faf8f3);
	color: var(--wp--preset--color--ink, #0d2b1d);
	font-family: var(--wp--preset--font-family--sans, "Space Grotesk", system-ui, sans-serif);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--wp--preset--color--accent, #02b666);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--wp--preset--color--accent-hover, #029954);
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent, #02b666);
	outline-offset: 3px;
}

/* Typography scale */
h1, .has-h-1-font-size, .wp-block-heading.is-style-pikk-h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 1.05; letter-spacing: -1px; }
h2, .has-h-2-font-size { font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.08; letter-spacing: -0.6px; }
h3, .has-h-3-font-size { font-size: clamp(22px, 3vw, 28px); font-weight: 700; line-height: 1.15; letter-spacing: -0.4px; }
h4, .has-h-4-font-size { font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -0.19px; }
h5, .has-h-5-font-size { font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -0.1px; }
h6, .has-h-6-font-size { font-size: 14px; font-weight: 700; line-height: 1.35; letter-spacing: 0; }

.has-lead-font-size { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; }
.has-body-font-size { font-size: 17px; line-height: 1.6; }
.has-small-font-size { font-size: 14.5px; line-height: 1.5; }
.has-caption-font-size { font-size: 13px; line-height: 1.45; }

.pikk-mono,
.has-ibm-plex-mono-font-family {
	font-family: var(--wp--preset--font-family--mono, "IBM Plex Mono", ui-monospace, monospace);
}

/* Layout shell */
.wp-site-blocks {
	padding: 0;
}

.pikk-container {
	width: min(100% - 2 * var(--wp--preset--spacing--gutter, 24px), 1344px);
	margin-inline: auto;
}

/* Header */
.pikk-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(250, 248, 243, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pikk-header.is-scrolled {
	border-bottom-color: var(--wp--preset--color--border, #e0dbcf);
	box-shadow: 0 4px 18px rgba(13, 43, 29, 0.04);
}

.pikk-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(100% - 2 * var(--wp--preset--spacing--gutter, 24px), 1344px);
	margin-inline: auto;
	min-height: 72px;
	padding-block: 12px;
}

.pikk-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--wp--preset--color--ink, #0d2b1d);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: -0.3px;
}

.pikk-header__brand:hover {
	color: var(--wp--preset--color--ink, #0d2b1d);
}

.pikk-header__brand img,
.pikk-header__logo {
	height: 36px;
	width: auto;
}

.pikk-header__nav {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	justify-content: center;
}

.pikk-header__nav .wp-block-navigation,
.pikk-header__nav .wp-block-navigation-item a {
	font-size: 15px;
	font-weight: 500;
	color: var(--wp--preset--color--ink, #0d2b1d);
	text-decoration: none;
}

.pikk-header__nav .wp-block-navigation-item a:hover {
	color: var(--wp--preset--color--accent, #02b666);
}

.pikk-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.pikk-header__lang {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	font-family: var(--wp--preset--font-family--mono, "IBM Plex Mono", ui-monospace, monospace);
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
}

.pikk-header__lang a {
	padding: 4px 6px;
	border-radius: 6px;
	color: var(--wp--preset--color--subtle, #5c6b61);
	text-decoration: none;
}

.pikk-header__lang a.is-active,
.pikk-header__lang a:hover {
	color: var(--wp--preset--color--ink, #0d2b1d);
	background: var(--wp--preset--color--canvas, #f4f1e8);
}

/* Footer */
.pikk-footer {
	background: var(--wp--preset--color--deep, #0d2b1d);
	color: rgba(255, 255, 255, 0.82);
	padding-block: 64px 32px;
	margin-top: 0;
}

.pikk-footer a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.pikk-footer a:hover {
	color: #fff;
}

.pikk-footer__inner {
	width: min(100% - 2 * var(--wp--preset--spacing--gutter, 24px), 1344px);
	margin-inline: auto;
	display: grid;
	gap: 40px;
	grid-template-columns: 1.4fr repeat(3, 1fr);
}

.pikk-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.pikk-footer__logo {
	height: 40px;
	width: auto;
	filter: brightness(0) invert(1);
}

.pikk-footer__tagline {
	margin: 0;
	max-width: 280px;
	font-size: 15px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.7);
}

.pikk-footer__col-title {
	margin: 0 0 14px;
	font-family: var(--wp--preset--font-family--mono, "IBM Plex Mono", ui-monospace, monospace);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--company, #e7bc22);
}

.pikk-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 15px;
}

.pikk-footer__bottom {
	width: min(100% - 2 * var(--wp--preset--spacing--gutter, 24px), 1344px);
	margin: 40px auto 0;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	align-items: center;
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.55);
}

.pikk-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

/* Breakpoints */
@media (max-width: 1024px) {
	.pikk-footer__inner {
		grid-template-columns: 1fr 1fr;
	}

	.pikk-header__nav {
		display: none;
	}
}

@media (max-width: 781px) {
	.pikk-header__inner {
		min-height: 64px;
	}

	.pikk-footer__inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.pikk-footer {
		padding-block: 48px 28px;
	}

	.pikk-header__actions .pikk-btn--company {
		display: none;
	}
}

@media (max-width: 480px) {
	:root {
		--wp--preset--spacing--gutter: 16px;
	}
}
