/*
 * Template-level styles (front page, author page, single/page, archives,
 * search, 404, shared post cards). Post-card styles are shared — archive,
 * search, 404 and the author page all reuse them.
 */

/* ---------- Front page ---------- */

.x121bec8e {
	padding-bottom: var(--sn-sp-16);
}

/* ---------- Author page (T5) ---------- */

/* E-E-A-T surface (§7): framed and solid, and deliberately calmer than the
   conversion blocks. Trust furniture that behaves like a promotion reads
   like a promotion. */
.x9916ce37 {
	display: flex;
	flex-direction: column;
	gap: var(--sn-sp-6);
	background: var(--sn-pat-dots-2), var(--sn-surface);
	border: var(--sn-rule) solid var(--sn-acc-2);
	border-radius: var(--sn-radius);
	box-shadow: var(--sn-shadow);
	padding: var(--sn-sp-8) var(--sn-sp-6);
	margin: var(--sn-sp-8) 0;
}

.x2f438767 {
	padding-bottom: var(--sn-sp-16);
}

.x8e5bd56e {
	flex: 0 0 auto;
	width: 108px;
	height: 108px;
	border-radius: 50%;
	border: var(--sn-rule) solid var(--sn-acc-1);
	box-shadow: 6px 6px 0 var(--sn-acc-3);
}

.xca5cd878 {
	margin: 0 0 var(--sn-sp-2);
	letter-spacing: 0;
}

.x9f8e5640 {
	margin: 0;
}

.x982cbd45 {
	margin: var(--sn-sp-2) 0 0;
	color: var(--sn-acc-2);
	font-weight: 600;
}

.x2c5a621b {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--sn-sp-3);
	margin: var(--sn-sp-4) 0 0;
	padding: 0;
}

/* Expertise chips take the rotation from base.css. */
.x0e96d5a9 {
	padding: var(--sn-sp-1) var(--sn-sp-4);
	background: color-mix(in srgb, var(--sn-acc) 14%, transparent);
	border: 2px solid var(--sn-acc);
	border-radius: var(--sn-radius-pill);
	font-size: var(--sn-fs-xs);
	font-weight: 600;
	color: var(--sn-heading);
}

.x91e5b076 {
	margin: var(--sn-sp-4) 0 0;
	max-width: 65ch;
}

.xb8680d27 {
	list-style: none;
	display: flex;
	gap: var(--sn-sp-4);
	margin: var(--sn-sp-4) 0 0;
	padding: 0;
	font-size: var(--sn-fs-sm);
}

.xc48cff0e {
	margin: 0 0 var(--sn-sp-8);
}

@media (min-width: 768px) {
	.x9916ce37 {
		flex-direction: row;
		padding: var(--sn-sp-8);
	}

	.x8e5bd56e {
		width: 140px;
		height: 140px;
	}
}

/* ---------- Single post / page (T4) ---------- */

.xed183089,
.x7904430b {
	padding-bottom: var(--sn-sp-16);
}

.xbdd536e0 {
	margin: var(--sn-sp-6) 0 0;
	font-size: var(--sn-fs-xs);
	color: var(--sn-text-muted);
}

.xbdd536e0 a {
	color: var(--sn-text-muted);
}

.xbdd536e0 a:hover,
.xbdd536e0 a:focus {
	color: var(--sn-acc-2);
}

.xddd8c233 {
	margin: 0 var(--sn-sp-2);
	color: var(--sn-acc-5);
}

.xeacd063b,
.xf08f849a {
	margin: var(--sn-sp-4) 0 var(--sn-sp-8);
}

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

/* ---------- Post cards (shared with archives, T6) ---------- */

.xcc5055e6 {
	display: grid;
	gap: var(--sn-sp-8);
	margin-bottom: var(--sn-sp-12);
}

/* Each card frames itself in its own rotated accent (base.css) and tilts the
   opposite way to its neighbour, so a listing reads as a pinned-up spread. */
.x0df54666 {
	display: flex;
	flex-direction: column;
	background: var(--sn-pat-dots-2), var(--sn-surface);
	border: var(--sn-rule) solid var(--sn-acc);
	border-radius: var(--sn-radius);
	box-shadow: var(--sn-shadow);
	overflow: hidden;
	transition: transform .3s ease-out, box-shadow .3s ease-out;
}

.xcc5055e6 > .x0df54666:nth-child(odd)  { transform: rotate(-.8deg); }
.xcc5055e6 > .x0df54666:nth-child(even) { transform: rotate(.8deg); }

.xcc5055e6 > .x0df54666:hover {
	transform: rotate(0deg) translateY(-5px) scale(1.02);
	box-shadow: var(--sn-shadow-lg);
	z-index: 2;
}

.x39da1237 img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-bottom: 3px dashed var(--sn-acc);
}

.xecf7af1c {
	padding: var(--sn-sp-6);
}

.x1e78c71c {
	margin: 0 0 var(--sn-sp-3);
	font-size: var(--sn-fs-lg);
	text-shadow: var(--sn-ts-1);
}

.x1e78c71c a {
	color: var(--sn-heading);
	text-decoration: none;
}

.x1e78c71c a:hover,
.x1e78c71c a:focus {
	color: var(--sn-acc-3);
	text-decoration: none;
}

.x5a2ef1d5 {
	margin: 0 0 var(--sn-sp-3);
}

.x159cb968 {
	font-size: var(--sn-fs-sm);
}

.x159cb968 > :last-child {
	margin-bottom: 0;
}

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

	/* Broken grid: the right-hand column rides lower than the left. */
	.xcc5055e6 > .x0df54666:nth-child(even) {
		margin-top: var(--sn-sp-8);
	}
}

@media (prefers-reduced-motion: reduce) {
	.x0df54666 {
		transition: none;
	}

	.xcc5055e6 > .x0df54666:nth-child(odd):hover  { transform: rotate(-.8deg); }
	.xcc5055e6 > .x0df54666:nth-child(even):hover { transform: rotate(.8deg); }
}

/* ---------- Archive / Search (T6) ---------- */

.x692c7035,
.xcb4070f6 {
	padding-bottom: var(--sn-sp-16);
}

.x03964d81 {
	margin: var(--sn-sp-12) 0;
}

.xed4525c8 {
	margin: 0;
}

.xed4525c8 span {
	color: var(--sn-acc-3);
}

.x7635d2ed {
	margin: var(--sn-sp-4) 0 0;
	max-width: 65ch;
	color: var(--sn-text-muted);
}

.x36c5b202 {
	margin-top: var(--sn-sp-6);
	max-width: 520px;
}

.x3b5a065c,
.xace0811b {
	margin: var(--sn-sp-12) 0;
}

/* ---------- Search form (used by search + 404) ---------- */

.search-form {
	display: flex;
	gap: var(--sn-sp-3);
}

.search-form label {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.search-form .search-field {
	width: 100%;
	padding: var(--sn-sp-3) var(--sn-sp-6);
	background: var(--sn-surface-2);
	border: 3px solid var(--sn-acc-5);
	border-radius: var(--sn-radius-pill);
	color: var(--sn-heading);
	font-family: var(--sn-font);
	font-size: var(--sn-fs-md);
	font-weight: 600;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.search-form .search-field::placeholder {
	color: var(--sn-text-muted);
	font-weight: 400;
}

.search-form .search-field:focus {
	border-color: var(--sn-acc-2);
	box-shadow: 0 0 18px rgba(0, 245, 212, .35);
}

/* The submit is ink-on-yellow, not white-on-anything: the yellow reads
   15.22:1 against the ink and it keeps the page's one gradient fill reserved
   for the money CTA. */
.search-form .search-submit {
	flex: 0 0 auto;
	padding: var(--sn-sp-3) var(--sn-sp-6);
	border: 3px solid var(--sn-acc-1);
	border-radius: var(--sn-radius-pill);
	background: var(--sn-acc-3);
	color: var(--sn-bg);
	font-family: var(--sn-font-display);
	font-weight: 700;
	cursor: pointer;
	box-shadow: 4px 4px 0 var(--sn-acc-1);
	transition: transform .2s ease, box-shadow .2s ease;
}

.search-form .search-submit:hover,
.search-form .search-submit:focus {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 var(--sn-acc-1);
}

/* ---------- Posts navigation (archive/search/author) ---------- */

.posts-navigation {
	margin-top: var(--sn-sp-12);
}

.posts-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--sn-sp-4);
}

.posts-navigation .nav-links a {
	display: inline-block;
	padding: var(--sn-sp-2) var(--sn-sp-6);
	background: transparent;
	border: 3px dashed var(--sn-acc-2);
	border-radius: var(--sn-radius-pill);
	color: var(--sn-heading);
	font-weight: 600;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-style .2s ease;
}

.posts-navigation .nav-links a:hover,
.posts-navigation .nav-links a:focus {
	border-style: solid;
	background: var(--sn-acc-2);
	color: var(--sn-bg);
	text-decoration: none;
}

/* ---------- 404 (T6) ---------- */

/* ::after on this element is the "888" background type (base.css). */
.x40aa384f {
	position: relative;
	overflow: hidden;
	padding: var(--sn-sp-16) 0;
	text-align: center;
}

/* The big code gets the full display treatment — the squared accent face, the
   action gradient painted through it, and the triple shadow stack. It is the
   one place a page with nothing on it can still feel like this site. */
.xe6b6f725 {
	position: relative;
	z-index: 1;
	margin: 0;
	font-family: var(--sn-font-accent);
	font-size: clamp(5rem, 18vw, 11rem);
	font-weight: 700;
	line-height: 1;
	color: var(--sn-acc-3);
	text-shadow: var(--sn-ts-3);
}

.x00f8792c,
.x2ce4b68a,
.x0a9feac3,
.x3d3f7f46,
.x2d82bb6c,
.x40aa384f .xcc5055e6 {
	position: relative;
	z-index: 1;
}

.x00f8792c {
	margin: var(--sn-sp-4) 0 0;
}

.x2ce4b68a {
	margin: var(--sn-sp-4) auto var(--sn-sp-8);
	max-width: 52ch;
	color: var(--sn-text-muted);
}

.x0a9feac3 {
	margin: 0 0 var(--sn-sp-8);
}

.x3d3f7f46 {
	max-width: 480px;
	margin: 0 auto var(--sn-sp-16);
}

.x2d82bb6c {
	margin: 0 0 var(--sn-sp-8);
	text-align: left;
}

/* Card text stays left-aligned inside the centred 404 column. */
.x40aa384f .x0df54666 {
	text-align: left;
}
