/*
 * Pages module styles: the CV page (ticket 15) and the per-Work page (ticket 10).
 * Loaded after crippen-site-base when that handle exists. Every token has a
 * fallback, so these pages look right even before base.css is in place.
 * No JS on either page.
 */

/* ---------- CV page ---------- */

.crippen-cv {
	max-width: 1240px;
	margin: 0 auto;
	padding: 32px 20px 56px;
	color: var(--ink, #1b1f1d);
	font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.crippen-cv__title {
	margin: 0 0 8px;
	font-family: "Newsreader", Georgia, "Times New Roman", serif;
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	font-weight: 500;
	line-height: 1.15;
	color: inherit;
}

.crippen-cv__meta {
	margin: 0 0 16px;
	font-size: 0.9rem;
	color: var(--muted, #5d655f);
}

.crippen-cv__meta a,
.crippen-cv__note a {
	color: var(--accent, #2f5d50);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.crippen-cv__frame {
	display: block;
	width: 100%;
	height: min(85vh, 1100px);
	border: 1px solid var(--line, #e2e4df);
	background: var(--wash, #f1f0ea);
}

.crippen-cv__note {
	margin: 14px 0 0;
	font-size: 0.9rem;
	color: var(--muted, #5d655f);
}

.crippen-cv__empty {
	margin: 0;
	font-size: 1.05rem;
	color: var(--muted, #5d655f);
}

/* ---------- Work page ---------- */

.crippen-work {
	max-width: 720px;
	margin: 0 auto;
	padding: 40px 20px 64px;
	color: var(--ink, #1b1f1d);
	font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.65;
}

.crippen-work__kicker {
	margin: 0 0 8px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent, #2f5d50);
}

.crippen-work__title {
	margin: 0 0 8px;
	font-family: "Newsreader", Georgia, "Times New Roman", serif;
	font-size: clamp(1.7rem, 4vw, 2.3rem);
	font-weight: 500;
	line-height: 1.2;
	color: inherit;
}

.crippen-work__byline {
	margin: 0 0 24px;
	color: var(--muted, #5d655f);
}

.crippen-work__layout {
	display: flex;
	flex-direction: row-reverse;
	align-items: flex-start;
	gap: 24px;
}

.crippen-work__main {
	flex: 1 1 auto;
	min-width: 0;
}

.crippen-work__cover {
	flex: 0 0 auto;
	width: 112px;
}

.crippen-work__cover a {
	display: block;
}

.crippen-work__cover-img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--line, #e2e4df);
}

.crippen-work__tile {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 2 / 3;
	background: var(--wash, #f1f0ea);
	border: 1px solid var(--line, #e2e4df);
	font-family: "Newsreader", Georgia, serif;
	font-size: 2.2rem;
	color: var(--muted, #5d655f);
}

.crippen-work__reference {
	margin: 0 0 20px;
	overflow-wrap: anywhere;
}

.crippen-work__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px;
}

.crippen-btn {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--accent, #2f5d50);
	border-radius: 4px;
	background: var(--accent, #2f5d50);
	color: var(--paper, #fbfaf7);
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
}

.crippen-work__actions .crippen-btn:nth-child(n+2) {
	background: transparent;
	color: var(--accent, #2f5d50);
}

.crippen-btn:hover,
.crippen-btn:focus-visible {
	text-decoration: underline;
}

.crippen-work__abstract h2 {
	margin: 0 0 8px;
	font-family: "Newsreader", Georgia, serif;
	font-size: 1.25rem;
	font-weight: 500;
	color: inherit;
}

.crippen-work__abstract-body > :first-child { margin-top: 0; }
.crippen-work__abstract-body > :last-child { margin-bottom: 0; }

.crippen-work__back {
	margin: 40px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--line, #e2e4df);
	font-size: 0.92rem;
}

.crippen-work__back a {
	color: var(--accent, #2f5d50);
}

@media (max-width: 560px) {
	.crippen-work__layout {
		flex-direction: column-reverse;
		align-items: stretch;
	}
	.crippen-work__cover {
		width: 96px;
	}
}
