/* VK Webdesign — design system "Signaal". Tokens are documented in DESIGN.md. */

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-latin-ext.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin-ext.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--paper: #F7F5FA;
	--white: #FFFFFF;
	--ink: #1C0F33;
	--ink-2: #2E1A52;
	--muted: #5A5170;
	--accent: #7B2FE0;
	--accent-hover: #6420C2;
	--violet-soft: #F0E6FF;
	--lilac: #C9A6FF;
	--line: #E6E1EE;
	--error: #B3261E;

	--font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
	--font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	--r-sm: 10px;
	--r-md: 20px;
	--r-lg: 32px;
	--r-pill: 999px;

	--container: 1248px;
	--gutter: 24px;
	--section: clamp(64px, 9vw, 120px);
}

/* Base */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

@media (min-width: 860px) {
	body {
		font-size: 18px;
	}
}

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

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

p {
	margin: 0;
}

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--accent-hover);
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--lilac);
	color: var(--ink);
}

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

@media (max-width: 599px) {
	:root {
		--gutter: 16px;
	}
	.hide-sm {
		display: none;
	}
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100;
	padding: 12px 18px;
	background: var(--ink);
	color: #fff;
	border-radius: var(--r-sm);
}

.skip-link:focus {
	top: 16px;
}

.img-placeholder {
	width: 100%;
	height: 100%;
	min-height: 240px;
	background: var(--violet-soft);
}

.eyebrow {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--accent);
}

.eyebrow::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	margin-top: calc(.825em - 4px);
	border-radius: 50%;
	background: var(--lilac);
	box-shadow: 0 0 0 3px var(--ink);
}

/* Buttons and links */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: var(--r-pill);
	font: 600 16px/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.btn svg {
	width: 20px;
	height: 20px;
	transition: transform .15s ease;
}

.btn:hover svg {
	transform: translateX(3px);
}

.btn--primary {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
}

.btn--primary:hover {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
	color: #fff;
}

/* On the purple CTA band the primary button turns white. */
.cta-band .btn--primary {
	background: #fff;
	border-color: #fff;
	color: var(--ink);
}

.cta-band .btn--primary:hover {
	background: var(--lilac);
	border-color: var(--lilac);
	color: var(--ink);
}

.btn--ink {
	background: var(--ink);
	color: #fff;
}

.btn--ink:hover {
	background: var(--ink-2);
	color: #fff;
}

.btn--ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--ink);
}

.btn--ghost:hover {
	background: var(--ink);
	color: #fff;
}

.text-link {
	font-weight: 600;
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

.text-link:hover {
	color: var(--accent);
}

/* Brand */

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--ink);
	text-decoration: none;
}

.brand:hover {
	color: var(--ink);
}

.brand__mark {
	width: 40px;
	height: 40px;
	flex: none;
}

.brand__name {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
}

.brand__light {
	font-weight: 500;
}

.brand--light,
.brand--light:hover {
	color: #fff;
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(247, 245, 250, .9);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
}

.site-nav .menu {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav .menu a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--r-pill);
	color: var(--ink);
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
}

.site-nav .menu a:hover {
	background: var(--white);
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
	background: var(--ink);
	color: #fff;
}

.site-nav__cta {
	min-height: 44px;
	padding: 8px 20px;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border: 2px solid var(--ink);
	border-radius: var(--r-pill);
	background: transparent;
	color: var(--ink);
	font: 600 15px/1 var(--font-body);
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .2s ease;
}

.nav-toggle__bars {
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before {
	top: -6px;
}

.nav-toggle__bars::after {
	top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 1000px) {
	.site-nav {
		display: flex;
		align-items: center;
		gap: 16px;
	}
}

@media (max-width: 999px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		padding: 16px var(--gutter) 24px;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 40px -24px rgba(28, 15, 51, .25);
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav .menu {
		flex-direction: column;
		margin-bottom: 16px;
	}

	.site-nav .menu a {
		padding: 14px 16px;
		font-size: 18px;
	}

	.site-nav__cta {
		width: 100%;
	}
}

/* Sections */

.section {
	padding-block: var(--section) 0;
}

.section-head {
	display: grid;
	gap: 16px;
	margin-bottom: 40px;
	max-width: 760px;
}

.section-head--row {
	display: flex;
	align-items: end;
	justify-content: space-between;
	max-width: none;
}

.section-title {
	font-size: clamp(32px, 4.6vw, 56px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.035em;
}

.section-title--sm {
	margin-bottom: 32px;
	font-size: clamp(28px, 3.4vw, 40px);
}

.section-lead {
	color: var(--muted);
	font-size: clamp(18px, 1.6vw, 20px);
	max-width: 60ch;
}

/* Home hero */

.home-hero {
	padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 88px);
}

.home-hero__grid {
	display: grid;
	gap: 48px;
	align-items: center;
}

@media (min-width: 960px) {
	.home-hero__grid {
		grid-template-columns: 1.15fr 1fr;
		gap: 64px;
	}
}

.home-hero__title {
	font-size: clamp(44px, 7.4vw, 92px);
	font-weight: 800;
	line-height: .98;
	letter-spacing: -0.045em;
}

.mark {
	position: relative;
	white-space: nowrap;
	z-index: 0;
}

.mark::after {
	content: "";
	position: absolute;
	left: -4px;
	right: -6px;
	bottom: .06em;
	height: .36em;
	background: var(--lilac);
	border-radius: 6px;
	z-index: -1;
	transform: rotate(-1.5deg);
}

.home-hero__lead {
	margin-top: 28px;
	max-width: 34em;
	color: var(--muted);
	font-size: clamp(18px, 1.8vw, 21px);
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 36px;
}

.home-hero__media {
	position: relative;
	margin: 0;
}

.home-hero__media img,
.home-hero__media .img-placeholder {
	width: 100%;
	aspect-ratio: 4 / 4.3;
	object-fit: cover;
	border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 120px;
}

.home-hero__sticker {
	position: absolute;
	top: 24px;
	left: -20px;
	display: grid;
	place-items: center;
	width: 132px;
	height: 132px;
	padding: 12px;
	border: 2px solid var(--ink);
	border-radius: 50%;
	background: var(--lilac);
	color: var(--ink);
	font: 800 17px/1.15 var(--font-display);
	text-align: center;
	letter-spacing: -0.01em;
	transform: rotate(-10deg);
}

@media (max-width: 599px) {
	.home-hero__sticker {
		left: auto;
		right: 12px;
		top: -28px;
		width: 104px;
		height: 104px;
		font-size: 14px;
	}
}

/* Ticker */

.ticker {
	overflow: hidden;
	background: var(--accent);
	color: #fff;
	border-block: 2px solid var(--ink);
}

.ticker__track {
	display: flex;
	width: max-content;
	animation: ticker 40s linear infinite;
}

.ticker span {
	display: inline-flex;
	align-items: center;
	gap: 28px;
	padding: 18px 0 18px 28px;
	font: 700 clamp(20px, 2.4vw, 28px)/1 var(--font-display);
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.ticker span::after {
	content: "";
	width: 14px;
	height: 14px;
	background: #fff;
	clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

@keyframes ticker {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ticker__track {
		animation: none;
	}
}

/* Topic cards */

.topic-cards {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.topic-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1000px) {
	.topic-cards {
		grid-template-columns: repeat(3, 1fr);
	}
}

.topic-cards li {
	display: flex;
}

.topic-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 240px;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--white);
	color: var(--ink);
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.topic-card:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
	transform: translateY(-4px);
}

.topic-card__num {
	font: 700 15px/1 var(--font-display);
	color: var(--accent);
}

.topic-card:hover .topic-card__num {
	color: var(--lilac);
}

.topic-card__title {
	margin-top: auto;
	padding-top: 40px;
	font-size: clamp(24px, 2.4vw, 30px);
	font-weight: 700;
	letter-spacing: -0.03em;
}

.topic-card__desc {
	margin-top: 8px;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.5;
	padding-right: 48px;
}

.topic-card:hover .topic-card__desc {
	color: rgba(255, 255, 255, .78);
}

.topic-card__arrow {
	position: absolute;
	right: 24px;
	bottom: 24px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	transition: background-color .2s ease, transform .2s ease;
}

.topic-card__arrow svg {
	width: 20px;
	height: 20px;
}

/* Seven themes plus this card: spans two columns on the 3-column grid to close the last row. */
@media (min-width: 1000px) {
	.topic-cards__cta {
		grid-column: span 2;
	}
}

.topic-card--cta {
	background: var(--lilac);
	border: 2px solid var(--ink);
}

.topic-card--cta .topic-card__desc {
	color: var(--ink);
}

.topic-card--cta .topic-card__num {
	color: var(--ink);
	font-size: 22px;
}

.topic-card:hover .topic-card__arrow {
	background: var(--lilac);
	transform: rotate(-45deg);
}

/* Home intro */

.intro {
	margin-top: var(--section);
	padding-block: var(--section);
	background: var(--white);
	border-block: 1px solid var(--line);
}

.intro__grid {
	display: grid;
	gap: 48px;
	align-items: start;
}

@media (min-width: 960px) {
	.intro__grid {
		grid-template-columns: 1fr 1.1fr;
		gap: 80px;
	}

	.intro__media {
		position: sticky;
		top: 112px;
	}
}

.intro__media {
	margin: 0;
}

.intro__media img,
.intro__media .img-placeholder {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 120px var(--r-lg) var(--r-lg) var(--r-lg);
}

/* Steps */

.steps {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

@media (min-width: 640px) {
	.steps {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1000px) {
	.steps {
		grid-template-columns: repeat(4, 1fr);
	}
}

.step {
	padding: 28px;
	border-top: 3px solid var(--ink);
	background: var(--white);
	border-radius: 0 0 var(--r-md) var(--r-md);
}

.step__num {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 28px;
	border-radius: 50%;
	background: var(--violet-soft);
	color: var(--accent);
	font: 700 15px/1 var(--font-display);
}

.step__title {
	margin-bottom: 10px;
	font-size: 22px;
}

.step p {
	color: var(--muted);
	font-size: 16px;
	line-height: 1.55;
}

/* Page hero */

.page-hero {
	padding-top: clamp(48px, 7vw, 96px);
}

.page-hero__inner {
	max-width: calc(980px + 2 * var(--gutter));
	margin-inline: 0 auto;
}

@media (min-width: 1296px) {
	.page-hero__inner {
		margin-inline: auto;
		max-width: calc(var(--container) + 2 * var(--gutter));
	}
	.page-hero__inner > * {
		max-width: 980px;
	}
}

.page-hero__title {
	font-size: clamp(42px, 6.6vw, 84px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.045em;
}

.page-hero__title--post {
	font-size: clamp(36px, 5vw, 64px);
}

.page-hero__intro {
	margin-top: 24px;
	max-width: 44em;
	color: var(--muted);
	font-size: clamp(18px, 1.8vw, 22px);
	line-height: 1.55;
}

.page-hero__media {
	margin-top: clamp(40px, 5vw, 64px);
	margin-bottom: 0;
}

.page-hero__media img {
	width: 100%;
	aspect-ratio: 21 / 9;
	object-fit: cover;
	border-radius: var(--r-lg);
}

@media (max-width: 699px) {
	.page-hero__media img {
		aspect-ratio: 4 / 3;
	}
}

/* Page body */

.page-body {
	padding-top: clamp(48px, 6vw, 80px);
}

.page-body--aside {
	display: grid;
	gap: 48px;
}

@media (min-width: 1000px) {
	.page-body--aside {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 80px;
		align-items: start;
	}
}

.page-aside {
	display: grid;
	gap: 16px;
}

@media (min-width: 1000px) {
	.page-aside {
		position: sticky;
		top: 108px;
	}
}

.aside-box {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--white);
}

.aside-box__title {
	margin-bottom: 14px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted);
}

.toc,
.aside-links {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
	line-height: 1.4;
}

.toc {
	counter-reset: toc;
}

.toc a,
.aside-links a,
.aside-links span {
	display: flex;
	gap: 10px;
	padding: 8px 0;
	color: var(--ink);
	text-decoration: none;
}

.toc a::before {
	counter-increment: toc;
	content: counter(toc, decimal-leading-zero);
	flex: none;
	color: var(--accent);
	font: 700 13px/1.6 var(--font-display);
}

.toc a:hover,
.aside-links a:hover {
	color: var(--accent);
}

.aside-links li + li {
	border-top: 1px solid var(--line);
}

.aside-links span[aria-current] {
	font-weight: 700;
}

.aside-links span[aria-current]::after {
	content: "";
	width: 8px;
	height: 8px;
	margin: auto 0 auto auto;
	border-radius: 50%;
	background: var(--lilac);
	box-shadow: 0 0 0 2px var(--ink);
}

/* Prose */

.prose {
	max-width: 70ch;
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose h2 {
	margin-top: 2em;
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.prose h3 {
	margin-top: 1.6em;
	font-size: clamp(21px, 2vw, 25px);
}

.prose h2 + *,
.prose h3 + * {
	margin-top: .6em;
}

.prose > :first-child {
	margin-top: 0;
}

.prose ul,
.prose ol {
	padding-left: 0;
	list-style: none;
}

.prose li {
	position: relative;
	padding-left: 32px;
}

.prose li + li {
	margin-top: .5em;
}

.prose ul > li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: .55em;
	width: 12px;
	height: 12px;
	background: var(--lilac);
	border: 2px solid var(--ink);
	border-radius: 50%;
}

.prose ol {
	counter-reset: li;
}

.prose ol > li::before {
	counter-increment: li;
	content: counter(li);
	position: absolute;
	left: 0;
	top: .15em;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--ink);
	color: #fff;
	font: 700 12px/1 var(--font-display);
}

.prose strong {
	font-weight: 650;
}

.prose blockquote {
	margin-inline: 0;
	padding: 24px 28px;
	border-left: 4px solid var(--accent);
	background: var(--violet-soft);
	border-radius: 0 var(--r-md) var(--r-md) 0;
	font: 600 clamp(19px, 2vw, 22px)/1.45 var(--font-display);
}

.prose .lead {
	font-size: clamp(19px, 1.9vw, 22px);
	line-height: 1.55;
}

.prose img {
	border-radius: var(--r-md);
}

.prose .tip {
	padding: 24px 28px;
	border: 2px solid var(--ink);
	border-radius: var(--r-md);
	background: var(--white);
}

.prose .tip strong:first-child {
	display: block;
	margin-bottom: 4px;
	font-family: var(--font-display);
	font-size: 14px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--accent);
}

/* Related */

.related {
	padding-top: clamp(64px, 8vw, 104px);
}

/* Post cards */

.post-grid {
	display: grid;
	gap: 24px;
}

@media (min-width: 640px) {
	.post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1000px) {
	.post-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.post-card__link {
	display: block;
	height: 100%;
	color: var(--ink);
	text-decoration: none;
}

.post-card__media {
	overflow: hidden;
	border-radius: var(--r-md);
	aspect-ratio: 3 / 2;
	background: var(--violet-soft);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.post-card__link:hover .post-card__media img {
	transform: scale(1.04);
}

.post-card__placeholder {
	display: grid;
	place-items: center;
	min-height: 0;
}

.post-card__placeholder svg {
	width: 64px;
	height: 64px;
}

.post-card__body {
	padding-top: 18px;
}

.post-card__date {
	font-size: 14px;
	color: var(--muted);
}

.post-card__title {
	margin-top: 6px;
	font-size: 24px;
	letter-spacing: -0.025em;
}

.post-card__link:hover .post-card__title {
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.post-card__excerpt {
	margin-top: 8px;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.55;
}

.empty {
	color: var(--muted);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 48px;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	background: var(--white);
	color: var(--ink);
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
}

/* Contact */

.contact {
	display: grid;
	gap: 48px;
	padding-top: clamp(48px, 6vw, 80px);
}

@media (min-width: 1000px) {
	.contact {
		grid-template-columns: 1fr 1.05fr;
		gap: 80px;
		align-items: start;
	}

	.contact__form {
		position: sticky;
		top: 108px;
	}
}

.contact-form,
.form-success {
	padding: clamp(24px, 4vw, 40px);
	border: 2px solid var(--ink);
	border-radius: var(--r-lg);
	background: var(--white);
	box-shadow: 8px 8px 0 var(--ink);
}

.contact-form__title,
.form-success h2 {
	margin-bottom: 24px;
	font-size: clamp(26px, 2.6vw, 32px);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.form-success p {
	color: var(--muted);
}

.field {
	display: grid;
	gap: 8px;
	margin-bottom: 20px;
}

.field-row {
	display: grid;
	gap: 0 16px;
}

@media (min-width: 600px) {
	.field-row {
		grid-template-columns: 1fr 1fr;
	}
}

.field label {
	font-size: 15px;
	font-weight: 600;
}

.field__optional {
	font-weight: 400;
	color: var(--muted);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field select,
.field textarea {
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1.5px solid #CEC6DB;
	border-radius: var(--r-sm);
	background: var(--paper);
	color: var(--ink);
	font: 400 16px/1.4 var(--font-body);
	transition: border-color .15s ease, background-color .15s ease;
}

.field textarea {
	resize: vertical;
	min-height: 150px;
}

.field select {
	appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%231C0F33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 20px;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
	border-color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--accent);
	background: var(--white);
	box-shadow: 0 0 0 3px var(--violet-soft);
}

.field [aria-invalid="true"] {
	border-color: var(--error);
}

.field__error {
	color: var(--error);
	font-size: 15px;
	font-weight: 500;
}

.field--check {
	grid-template-columns: 22px 1fr;
	align-items: start;
	gap: 12px;
}

.field--check input {
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
	accent-color: var(--accent);
}

.field--check label {
	font-weight: 400;
	font-size: 15px;
	color: var(--muted);
	line-height: 1.5;
}

.field--check .field__error {
	grid-column: 2;
}

.form-alert {
	margin-bottom: 24px;
	padding: 14px 18px;
	border-radius: var(--r-sm);
	background: #FCEDEC;
	color: var(--error);
	font-weight: 500;
}

.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-form__submit {
	width: 100%;
	margin-top: 8px;
}

/* CTA band */

.cta-band {
	display: grid;
	gap: 28px;
	align-items: center;
	margin-top: var(--section);
	padding: clamp(32px, 5vw, 64px);
	border-radius: var(--r-lg);
	background: var(--accent);
	color: #fff;
	max-width: calc(var(--container));
	width: calc(100% - 2 * var(--gutter));
}

@media (min-width: 860px) {
	.cta-band {
		grid-template-columns: 1fr auto;
		gap: 48px;
	}
}

.cta-band__title {
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.04;
}

.cta-band p {
	margin-top: 14px;
	max-width: 44em;
	color: rgba(255, 255, 255, .86);
}

/* Footer */

.site-footer {
	margin-top: var(--section);
	padding-top: clamp(56px, 7vw, 88px);
	background: var(--ink);
	color: rgba(255, 255, 255, .78);
	font-size: 16px;
}

/* The CTA band overlaps the top of the footer. */
.cta-band {
	position: relative;
	z-index: 1;
	margin-bottom: -96px;
}

.cta-band + .site-footer {
	padding-top: calc(96px + clamp(56px, 7vw, 88px));
}

.site-footer__grid {
	display: grid;
	gap: 40px;
}

@media (min-width: 760px) {
	.site-footer__grid {
		grid-template-columns: 1.6fr 1fr 1fr;
		gap: 64px;
	}
}

.site-footer__brand p {
	margin-top: 20px;
	max-width: 36ch;
}

.site-footer__title {
	margin-bottom: 16px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--lilac);
}

.footer-menu {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--lilac);
	text-decoration: underline;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 56px;
	padding-block: 24px 32px;
	border-top: 1px solid rgba(255, 255, 255, .14);
	font-size: 14px;
	color: rgba(255, 255, 255, .6);
}
