/* ============================================================
   CertREV, Base element defaults & editorial helpers
   ------------------------------------------------------------
   Light-touch resets + a handful of utility classes that encode
   the editorial voice (eyebrow, wordmark, prose). Optional for
   consumers, but every specimen card relies on them.
   ============================================================ */

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--text-body);
	line-height: var(--leading-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* ---- Headings default to the serif voice ---- */
h1, h2, h3, h4 {
	font-family: var(--font-serif);
	font-weight: var(--weight-bold);
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-heading);
	color: var(--navy);
	margin: 0;
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

a {
	color: var(--navy);
	text-decoration: underline;
	text-decoration-color: var(--coral-soft);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	transition: text-decoration-color var(--dur-fast) var(--ease-out);
}
a:hover {
	text-decoration-color: var(--coral);
}

/* ---- The mono eyebrow, the system's signature label ---- */
.cr-eyebrow {
	font-family: var(--font-mono);
	font-size: var(--text-eyebrow);
	font-weight: var(--weight-regular);
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
	color: var(--navy-55);
}

/* ---- The CertREV wordmark ---- */
.cr-wordmark {
	font-family: var(--font-wordmark);
	font-weight: var(--weight-wordmark);
	letter-spacing: var(--tracking-wordmark);
	color: var(--navy);
}

/* ---- Signature flourish ---- */
.cr-signature {
	font-family: var(--font-script);
	color: var(--navy);
}

/* ---- Serif italic, the "Owen & Kim" sign-off voice ---- */
.cr-serif-italic {
	font-family: var(--font-serif);
	font-style: italic;
	color: var(--navy);
}

/* ---- Lime chip ---- */
.cr-chip {
	display: inline-block;
	padding: 3px 9px;
	border-radius: var(--radius-xs);
	background: var(--lime);
	color: var(--navy);
	font-family: var(--font-mono);
	font-size: var(--text-eyebrow);
	font-weight: var(--weight-bold);
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
	line-height: 1.2;
}

/* ---- Hairline rule ---- */
.cr-rule {
	border: 0;
	border-top: 1px solid var(--navy-10);
	margin: 0;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
