*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background:
		radial-gradient(circle at 12% 0%, rgba(234, 31, 53, 0.12), transparent 22%),
		radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.05), transparent 18%),
		linear-gradient(180deg, var(--pk-black) 0%, var(--pk-graphite) 48%, #050608 100%);
	color: var(--pk-white);
	font-family: var(--pk-font-sans);
	font-size: var(--pk-text-body);
	line-height: 1.7;
	text-rendering: optimizeLegibility;
}

body::before {
	position: fixed;
	z-index: -1;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px) 0 0 / 120px 120px,
		linear-gradient(180deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px) 0 0 / 120px 120px;
	content: "";
	opacity: 0.22;
	pointer-events: none;
}

body.pk-menu-open {
	overflow: hidden;
}

img,
svg {
	display: block;
	max-width: 100%;
}

figure {
	margin: 0;
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--pk-white);
}

:focus-visible {
	outline: 2px solid var(--pk-red);
	outline-offset: 4px;
}

::selection {
	background: var(--pk-red);
	color: var(--pk-black);
}

h1,
h2,
h3,
h4,
p {
	margin-top: 0;
}

h1,
h2,
h3,
h4,
.pk-display,
.pk-heading-1,
.pk-heading-2,
.pk-heading-3 {
	color: #fafafa;
	font-family: var(--pk-font-serif);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 0.98;
	text-wrap: balance;
}

h1,
.pk-heading-1 {
	font-size: var(--pk-text-h1);
}

h2,
.pk-heading-2 {
	font-size: var(--pk-text-h2);
}

h3,
.pk-heading-3 {
	font-size: var(--pk-text-h3);
	line-height: 1.08;
}

.pk-display {
	font-size: var(--pk-text-display);
	letter-spacing: -0.06em;
}

.pk-lead {
	color: #c9ccd1;
	font-family: var(--pk-font-serif);
	font-size: var(--pk-text-lead);
	line-height: 1.6;
}

.pk-eyebrow {
	display: flex;
	gap: var(--pk-space-xs);
	align-items: center;
	margin-bottom: var(--pk-space-sm);
	color: var(--pk-white);
	font-size: var(--pk-text-label);
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
}

.pk-eyebrow::before {
	width: 1.5rem;
	height: 2px;
	background: var(--pk-red);
	content: "";
	flex: 0 0 auto;
}

.entry-categories,
.pk-blog-card__categories,
time {
	color: var(--pk-gray);
	font-size: var(--pk-text-meta);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pk-skip-link {
	position: fixed;
	z-index: 1000;
	top: var(--pk-space-sm);
	left: var(--pk-space-sm);
	transform: translateY(-200%);
	padding: 0.75rem 1rem;
	background: var(--pk-white);
	color: var(--pk-black);
	font-size: 0.875rem;
	font-weight: 700;
	transition: transform var(--pk-transition);
}

.pk-skip-link:focus {
	transform: translateY(0);
}

.pk-content-flow > * + * {
	margin-top: var(--pk-space-md);
}

.pk-content-flow > h2,
.pk-content-flow > h3 {
	margin-top: var(--pk-space-xl);
}

.pk-content-flow > :where(p, ul, ol, blockquote) {
	max-width: 48rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
	white-space: nowrap;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 0.5rem;
	left: 0.5rem;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1rem;
	overflow: visible;
	clip: auto;
	background: var(--pk-white);
	color: var(--pk-black);
	white-space: normal;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
