/* ============================================================
   Andalusite — extras.css
   Internal pages: hero header, blog archive cards, article body.
   Same design language as the homepage (home.css).
   ============================================================ */

:root {
	--and-ink: #1d1d1d;
	--and-navy: #0a0330;
	--and-muted: #5b5b66;
	--and-line: #ebe5e1;
	--and-paper: #f6f3ec;
	--and-accent: #b7410e;
	--and-display: "Perfectly Nineties Regular", "Perfectly Nineties", Georgia, serif;
	--and-body: "Neue Montreal Regular", "Neue Montreal", system-ui, -apple-system, sans-serif;
}

/* ---- Internal page hero ---------------------------------------------- */
.andl-page-hero {
	position: relative;
	overflow: hidden;
	padding: 72px 24px 56px;
	background: linear-gradient(180deg, var(--and-paper) 0%, #fff 100%);
	border-bottom: 1px solid var(--and-line);
	text-align: center;
}
.andl-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 16% 24%, rgba(183, 65, 14, .08) 0 16%, transparent 16%),
		radial-gradient(circle at 84% 72%, rgba(10, 3, 48, .07) 0 20%, transparent 20%),
		radial-gradient(circle at 50% 120%, rgba(183, 65, 14, .06) 0 28%, transparent 28%);
	pointer-events: none;
}
.andl-page-hero > * { position: relative; max-width: 900px; margin-inline: auto; }
.andl-page-hero .andl-kicker {
	display: block;
	font-family: var(--and-body);
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--and-accent);
	margin-bottom: 14px;
}
.andl-page-hero .wp-block-post-title,
.andl-page-hero h1 {
	font-family: var(--and-display);
	font-weight: 400;
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.06;
	letter-spacing: -.01em;
	margin: 0;
	color: var(--and-ink);
}
.andl-page-hero .wp-block-post-date,
.andl-page-hero .andl-meta { font-family: var(--and-body); font-size: 14px; color: var(--and-muted); margin-top: 14px; }

/* ---- Blog archive: compact overlay cards ----------------------------- */
.blog-grid-wrap { max-width: 1200px; margin: 48px auto 72px; padding: 0 24px; }
.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.blog-grid > li {
	position: relative;
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	isolation: isolate;
	background: var(--and-navy);
}
.blog-grid .wp-block-post-featured-image { position: absolute; inset: 0; margin: 0; }
.blog-grid .wp-block-post-featured-image a,
.blog-grid .wp-block-post-featured-image img { width: 100%; height: 100%; display: block; }
.blog-grid .wp-block-post-featured-image img { object-fit: cover; border-radius: 0; transition: transform .5s ease; }
.blog-grid > li:hover .wp-block-post-featured-image img { transform: scale(1.06); }
.blog-grid > li::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(10,3,48,.92) 6%, rgba(10,3,48,.3) 46%, rgba(10,3,48,0) 74%);
	pointer-events: none;
}
.blog-grid .wp-block-post-title {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 2;
	margin: 0;
	padding: 16px;
	font-family: var(--and-display);
	font-weight: 400;
	font-size: 18px;
	line-height: 1.14;
}
.blog-grid .wp-block-post-title a { color: #fff; text-decoration: none; }
/* Excerpts would make the cards tall — the overlay title carries the card. */
.blog-grid .wp-block-post-excerpt { display: none; }

@media (max-width: 760px) {
	.blog-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.blog-grid .wp-block-post-title { padding: 12px; font-size: 15px; }
	.blog-grid-wrap { margin: 32px auto 56px; padding: 0 16px; }
	.andl-page-hero { padding: 52px 20px 40px; }
	.entry-content { padding-block: 36px 56px; }
}

.wp-block-query-pagination { max-width: 1200px; margin: 8px auto 0; padding: 0 24px; font-family: var(--and-body); font-size: 14px; display: flex; gap: 12px; }
.wp-block-query-pagination a { color: var(--and-ink); text-decoration: none; }
.wp-block-query-pagination a:hover { color: var(--and-accent); }

/* ---- Article / page body --------------------------------------------- */
.entry-content { font-family: var(--and-body); font-size: 17px; line-height: 1.75; color: var(--and-ink); padding-block: 48px 72px; }
.entry-content > * { margin-block: 0 1.1em; }
.entry-content h2 { font-family: var(--and-display); font-weight: 400; font-size: 30px; line-height: 1.2; margin: 44px 0 14px; }
.entry-content h3 { font-family: var(--and-display); font-weight: 400; font-size: 23px; margin: 32px 0 10px; }
.entry-content a { color: var(--and-accent); }
.entry-content img { max-width: 100%; height: auto; border-radius: 14px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.2em; }
.entry-content li { margin-bottom: .5em; }

/* Featured image on single posts, under the hero. */
.andl-post-figure { max-width: 1100px; margin: 0 auto; padding: 32px 24px 0; }
.andl-post-figure img { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 18px; display: block; }
