/*!
 * Archives and the blog: linodash.com
 * Loaded only by archive.php / home.php (view "archive", see functions.php).
 *
 * The 2026-10 rebrand language, as on Contact and About: Ink Black #09090B
 * canvas with the needle texture behind the header and a centred hero, the
 * logo's dash after the title (no visible description: that is the meta
 * description only), then Blush White #FFF5F7 with lean cards in
 * the homepage topic-tile treatment (rounded, ink outline, offset ink shadow
 * on hover; rule 23).
 *
 * Contrast: Blush White on Ink 18.62:1, card title
 * ink on white 19.9:1, hover title #D62753 on white 4.91:1, muted #6B5E63 on
 * white 6.16:1. Raw #FF2E63 is a mark only (the dash, focus rings), never text.
 *
 * Every artwork here is a CSS gradient or the shared --ld-needle-tile token.
 * The needle tile is a data: URI, which WP Rocket's background lazy load does
 * not rewrite (rule 20 concerns url() files).
 * ================================================================== */

.ld-page--archive {
	--lda-ink: #09090B;
	--lda-text: #313539;
	--lda-muted: #6B5E63;
	--lda-accent: #FF2E63;
	--lda-accent-text: #D62753;
	--lda-blush: #FFF5F7;
	--lda-body: "IBM Plex Sans", -apple-system, system-ui, sans-serif;
	--lda-display: "Bricolage Grotesque", "Space Grotesk", var(--lda-body);

	font-family: var(--lda-body);
	color: var(--lda-text);
	background: transparent;   /* the canvas on #main-container shows through */
}

.ld-arch__container {
	width: 100%;
	max-width: 72rem;
	margin-inline: auto;
	padding-inline: clamp(1rem, 5vw, 2rem);
}

/* ---- page canvas: Ink with the needle texture (Contact pattern) --------
   #main-container carries it so the floating header pill sits ON the canvas
   (rule 13). The body band below paints Blush White over it. */
.ld-view-archive #main-container {
	position: relative;
	background: #fff;
	isolation: isolate;
}
.ld-view-archive #main-container::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: clamp(30rem, 42vw, 35rem);
	z-index: 0;
	pointer-events: none;
	background: var(--ld-peach-canvas);   /* shared token, see style.css */
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
	        mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
}
.ld-view-archive #main-container > * { position: relative; z-index: 1; }

/* ---- hero: centred title and the logo's dash ---------------------------- */
.ld-arch__hero {
	text-align: center;
	color: var(--lda-ink);
	padding-block: clamp(2.75rem, 6.5vw, 5rem) clamp(3rem, 7vw, 5.25rem);
}

.ld-arch__title {
	margin: 0;
	font-family: var(--lda-display);
	font-size: clamp(2.2rem, 5.6vw, 3.9rem);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -.025em;
	color: var(--lda-ink);
	text-wrap: balance;
}
.ld-arch__title::after {
	content: "";
	display: inline-block;
	width: .42em;
	height: .075em;
	margin-left: .1em;
	background: var(--lda-accent);
	vertical-align: baseline;
}

.ld-arch__page {
	margin: .9rem 0 0;
	font-size: .9rem;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--lda-muted);
}

/* ---- author bio: lead text under the title on author profiles --------
   The name is the only heading; the bio reads like the other heroes' leads. */
.ld-arch__bio {
	max-width: 42rem;
	margin: clamp(1.1rem, 2.5vw, 1.5rem) auto 0;
	color: #4A4246;
	text-wrap: pretty;
}
.ld-arch__bio p {
	margin: 0;
	font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
	line-height: 1.65;
}
.ld-arch__bio p + p { margin-top: .8rem; }

/* ---- body band and grid ------------------------------------------------ */
.ld-arch__body {
	/* Fades in from the light canvas above instead of starting on a hard edge. */
	background: linear-gradient(to bottom, color-mix(in srgb, var(--lda-blush) 0%, transparent) 0, var(--lda-blush) clamp(8rem, 14vw, 11rem));
	padding-block: clamp(2.25rem, 5vw, 3.75rem) clamp(3.5rem, 8vw, 6rem);
}

.ld-arch__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.25rem, 2.4vw, 1.75rem);
}
@media (min-width: 640px) {
	.ld-arch__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
	.ld-arch__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- the card ------------------------------------------------------------
   Thumbnail at its true 16:9 (every featured image is 1280x720, checked
   2026-10-19), so nothing is cropped; title; author and updated date pinned
   to the bottom so a row of cards lines up. */
.ld-acard {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	background: #fff;
	border: 1.5px solid var(--lda-ink);
	border-radius: 18px;
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}
.ld-acard:hover {
	transform: translate(-3px, -3px);
	box-shadow: 6px 6px 0 var(--lda-ink);
}
.ld-acard:focus-within {
	outline: 3px solid var(--lda-accent);
	outline-offset: 3px;
}
.ld-acard:has(.ld-acard__link:focus:not(:focus-visible)) { outline: none; }

.ld-acard__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-bottom: 1.5px solid var(--lda-ink);
	background: var(--lda-ink);
}
.ld-acard__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ld-acard__img--none {
	background:
		radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--lda-accent) 55%, transparent), transparent 60%),
		var(--lda-ink);
}

.ld-acard__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 1rem;
	padding: 1.15rem 1.25rem 1.2rem;
}

.ld-acard__title {
	margin: 0;
	font-family: var(--lda-display);
	font-size: clamp(1.08rem, 1.3vw, 1.2rem);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
	text-wrap: pretty;
}
.ld-acard__link,
.ld-acard__link:visited {
	color: var(--lda-ink);
	text-decoration: none;
	outline: none;
	transition: color .15s ease;
}
.ld-acard__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.ld-acard:hover .ld-acard__link { color: var(--lda-accent-text); }

.ld-acard__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem .5rem;
	margin: auto 0 0;
	font-size: .84rem;
	line-height: 1.3;
	color: var(--lda-muted);
}
.ld-acard__avatar {
	width: 28px;
	height: 28px;
	margin: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 1.5px var(--lda-ink);
}
.ld-acard__author {
	font-weight: 600;
	color: var(--lda-ink);
}
.ld-acard__sep {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--lda-accent);
}

/* ---- pagination: centred pills, current page solid ink ------------------ */
.ld-arch__pager {
	margin-top: clamp(2.25rem, 5vw, 3.25rem);
}
.ld-arch__pager .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: .5rem;
}
.ld-arch__pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4em;
	min-width: 44px;
	min-height: 44px;
	padding: 0 .9rem;
	border: 1.5px solid var(--lda-ink);
	border-radius: 999px;
	background: #fff;
	color: var(--lda-ink);
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ld-arch__pager a.page-numbers:hover {
	transform: translate(-2px, -2px);
	box-shadow: 3px 3px 0 var(--lda-ink);
}
.ld-arch__pager a.page-numbers:focus-visible {
	outline: 3px solid var(--lda-accent);
	outline-offset: 3px;
}
.ld-arch__pager .page-numbers.current {
	background: var(--lda-ink);
	color: var(--lda-blush);
}
.ld-arch__pager .page-numbers.dots {
	min-width: 0;
	padding: 0 .25rem;
	border: 0;
	background: none;
}

/* ---- empty archive -------------------------------------------------------- */
.ld-arch__empty {
	text-align: center;
	padding-block: 2rem;
}
.ld-arch__empty p {
	margin: 0 0 1.25rem;
	font-size: 1.1rem;
	color: var(--lda-text);
}
.ld-arch__empty-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 1.4rem;
	border-radius: 999px;
	background: var(--lda-accent-text);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.ld-arch__empty-link:hover { background: #B82147; color: #fff; }

@media (prefers-reduced-motion: reduce) {
	.ld-acard,
	.ld-acard__link,
	.ld-arch__pager .page-numbers { transition: none; }
	.ld-acard:hover,
	.ld-arch__pager a.page-numbers:hover { transform: none; }
}
