/* NZFW Internal Tools — shared design system.
   Palette + card pattern loosely follows Opensource UI (opensourceui.in);
   the entrance transition follows the fade/slide pattern from transitions.dev. */

:root {
	color-scheme: light dark;
	--bg: #f7f8fa;
	--surface: #ffffff;
	--surface-border: #e5e7eb;
	--text: #1a1d23;
	--text-muted: #5b6270;
	--accent: #2563eb;
	--accent-hover: #1d4ed8;
	--accent-soft: #eef2ff;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.06);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0e1013;
		--surface: #16181d;
		--surface-border: #262a32;
		--text: #eceef1;
		--text-muted: #9aa2b1;
		--accent: #5b8cff;
		--accent-hover: #7ea0ff;
		--accent-soft: #182034;
		--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
	}
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 24px;
}

/* entrance transition — fade + slight rise, transitions.dev style */
@keyframes rise-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.rise-in {
	animation: rise-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.rise-in.delay-1 {
	animation-delay: 0.08s;
}

.rise-in.delay-2 {
	animation-delay: 0.16s;
}

header.site {
	padding: 48px 0 32px;
}

header.site .brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}

header.site .logo {
	height: 34px;
	width: auto;
	display: block;
}

header.site .tools-label {
	font-weight: 600;
	font-size: 14px;
	color: var(--text-muted);
	padding-left: 14px;
	border-left: 1px solid var(--surface-border);
}

main {
	padding-bottom: 64px;
}

h1 {
	font-size: 32px;
	letter-spacing: -0.02em;
	margin: 0 0 12px;
}

h2 {
	font-size: 20px;
	letter-spacing: -0.01em;
	margin: 40px 0 12px;
}

p {
	color: var(--text-muted);
	margin: 0 0 16px;
}

.lede {
	font-size: 17px;
	max-width: 58ch;
}

.card {
	background: var(--surface);
	border: 1px solid var(--surface-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px;
	margin-top: 28px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(16, 24, 40, 0.06), 0 12px 28px rgba(16, 24, 40, 0.09);
}

.card .row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.card h3 {
	margin: 0 0 6px;
	font-size: 17px;
}

.card p {
	margin: 0;
	font-size: 14.5px;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--accent);
	background: var(--accent-soft);
	border-radius: 999px;
	padding: 4px 10px;
	white-space: nowrap;
}

.badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	color: var(--accent-hover);
	text-decoration: underline;
}

article.legal h2 {
	font-size: 17px;
	margin: 32px 0 8px;
}

article.legal p,
article.legal li {
	font-size: 15px;
}

article.legal ul {
	color: var(--text-muted);
	padding-left: 20px;
}

.meta {
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 32px;
}

footer.site {
	border-top: 1px solid var(--surface-border);
	padding: 24px 0 48px;
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	align-items: center;
	font-size: 13.5px;
	color: var(--text-muted);
}

footer.site a {
	color: var(--text-muted);
}

footer.site a:hover {
	color: var(--accent);
}

footer.site .sep {
	color: var(--surface-border);
}
