/* ============================================================
   Base — reset + semantic element defaults.
   Tokens only. No literals.
   Aligned with the DiviPeople parent-brand voice.
   ============================================================ */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--ff-sans);
	font-size: var(--fs-base);
	font-weight: var(--fw-regular);
	line-height: var(--lh-relaxed);
	color: var(--dt-ink);
	background: var(--dt-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }

button, input, select, textarea {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

button { cursor: pointer; background: none; border: 0; padding: 0; }

ul, ol { padding-inline-start: 1.25em; }

hr {
	border: 0;
	border-top: var(--border-thin);
	margin-block: var(--space-8);
}

/* ---------- typography ---------- */

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--ff-sans);
	color: var(--dt-ink);
}

h1 {
	font-size: var(--fs-hero);
	font-weight: var(--fw-semibold);
	line-height: var(--lh-tight);
	letter-spacing: var(--ls-tight);
}
h2 {
	font-size: var(--fs-section);
	font-weight: var(--fw-semibold);
	line-height: var(--lh-tight);
	letter-spacing: var(--ls-snug);
}

/* Accent word inside a headline — brand violet. */
.dt-heading .dt-accent {
	color: var(--dt-primary);
}
h3 {
	font-size: var(--fs-subsection);
	font-weight: var(--fw-semibold);
	line-height: var(--lh-snug);
	letter-spacing: var(--ls-snug);
}
h4 {
	font-size: var(--fs-lg);
	font-weight: var(--fw-semibold);
	line-height: var(--lh-snug);
}
h5 {
	font-size: var(--fs-base);
	font-weight: var(--fw-semibold);
	line-height: var(--lh-snug);
}
h6 {
	font-size: var(--fs-xs);
	font-weight: var(--fw-semibold);
	line-height: var(--lh-normal);
	text-transform: uppercase;
	letter-spacing: var(--ls-eyebrow);
}

p {
	margin: 0;
	max-width: var(--container-prose);
}

small { font-size: var(--fs-sm); color: var(--dt-ink-soft); }

code, kbd, samp, pre {
	font-family: var(--ff-mono);
	font-size: var(--fs-sm);
}

/* ---------- tables ---------- */

table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-sm);
	line-height: var(--lh-normal);
}

th, td {
	padding: var(--space-4) var(--space-5);
	text-align: left;
	border-bottom: var(--border-thin);
	vertical-align: top;
}

thead th {
	font-weight: var(--fw-semibold);
	color: var(--dt-ink);
	background: var(--dt-bg-alt);
	border-bottom: var(--border-strong);
}

tbody th { font-weight: var(--fw-semibold); color: var(--dt-ink); }
tbody td { color: var(--dt-ink-soft); }

/* ---------- links ---------- */

a {
	color: var(--dt-primary);
	text-decoration: none;
	transition: color var(--duration-1) var(--ease-out);
}

a:hover { color: var(--dt-primary-hover); }

.dt-prose a { text-decoration: underline; text-underline-offset: 0.15em; }

/* ---------- focus ---------- */

:focus { outline: 0; }

:focus-visible {
	outline: 0;
	box-shadow: var(--shadow-focus);
	border-radius: var(--radius-sm);
}

::selection { background: var(--dt-primary); color: var(--dt-on-primary); }

/* ---------- scrollbar ---------- */

@supports selector(::-webkit-scrollbar) {
	::-webkit-scrollbar { width: 6px; height: 8px; }
	::-webkit-scrollbar-track { background: transparent; }
	::-webkit-scrollbar-thumb {
		background: color-mix(in srgb, var(--dt-ink) 14%, transparent);
		border-radius: var(--radius-pill);
	}
	::-webkit-scrollbar-thumb:hover {
		background: color-mix(in srgb, var(--dt-ink) 30%, transparent);
	}
}

/* ---------- scroll reveal (IntersectionObserver opt-in via .dt-reveal) ---------- */

.dt-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity var(--duration-4) var(--ease-out),
	            transform var(--duration-4) var(--ease-out);
	will-change: opacity, transform;
}

.dt-reveal.is-revealed {
	opacity: 1;
	transform: none;
}

/* ---------- reduced motion (documented !important exception) ---------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
