:root {
	--color-ink: oklch(22% 0.025 260);
	--color-muted: oklch(48% 0.035 260);
	--color-page: oklch(98% 0.012 86);
	--color-panel: oklch(100% 0 0);
	--color-line: oklch(88% 0.018 86);
	--color-girl: oklch(68% 0.17 18);
	--color-boy: oklch(62% 0.15 235);
	--color-accent: oklch(60% 0.16 145);
	--color-accent-dark: oklch(42% 0.13 145);
	--shadow-soft: 0 18px 40px oklch(22% 0.025 260 / 12%);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--color-ink);
	background: var(--color-page);
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.5;
}

a {
	color: inherit;
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px clamp(18px, 4vw, 56px);
	background: var(--color-panel);
	border-bottom: 1px solid var(--color-line);
}

.site-title {
	font-size: 20px;
	font-weight: 800;
	text-decoration: none;
}

.site-search,
.hero-search {
	display: flex;
	align-items: end;
	gap: 10px;
}

label {
	display: grid;
	gap: 4px;
	color: var(--color-muted);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

input {
	min-width: 180px;
	height: 42px;
	padding: 0 12px;
	color: var(--color-ink);
	background: var(--color-panel);
	border: 1px solid var(--color-line);
	border-radius: 6px;
	font: inherit;
}

button {
	height: 42px;
	padding: 0 18px;
	color: oklch(100% 0 0);
	background: var(--color-accent-dark);
	border: 0;
	border-radius: 6px;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

main {
	width: min(1120px, calc(100% - 36px));
	margin: 0 auto;
}

.hero,
.name-hero {
	padding: 64px 0 44px;
}

.hero-copy {
	max-width: 720px;
}

.eyebrow {
	margin: 0 0 8px;
	color: var(--color-accent-dark);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	margin-bottom: 16px;
	font-size: clamp(46px, 8vw, 92px);
	line-height: 0.95;
}

h2 {
	margin-bottom: 8px;
	font-size: 26px;
}

.lede {
	max-width: 760px;
	color: var(--color-muted);
	font-size: 20px;
}

.hero-search {
	margin-top: 28px;
	padding: 14px;
	background: var(--color-panel);
	border: 1px solid var(--color-line);
	border-radius: 8px;
	box-shadow: var(--shadow-soft);
}

.hero-search.compact {
	display: inline-flex;
	box-shadow: none;
}

.content-section {
	padding: 34px 0;
	border-top: 1px solid var(--color-line);
}

.content-section.narrow {
	max-width: 760px;
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 18px;
}

.section-heading p {
	max-width: 460px;
	margin-bottom: 0;
	color: var(--color-muted);
}

.name-grid,
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
}

.name-card,
.stat-card,
.empty-card,
.note-card {
	display: block;
	padding: 18px;
	background: var(--color-panel);
	border: 1px solid var(--color-line);
	border-radius: 8px;
	text-decoration: none;
}

.name-card strong,
.stat-card strong {
	display: block;
	font-size: 28px;
	line-height: 1.1;
}

.name-card span,
.stat-card span {
	color: var(--color-muted);
	font-size: 14px;
}

.name-card:hover {
	border-color: var(--color-accent);
	box-shadow: var(--shadow-soft);
}

.back-link {
	display: inline-block;
	margin-bottom: 20px;
	color: var(--color-muted);
	font-weight: 700;
	text-decoration: none;
}

.stats-grid {
	margin-bottom: 28px;
}

.split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.fact-list {
	display: grid;
	grid-template-columns: minmax(120px, 1fr) 1fr;
	gap: 10px 18px;
	margin: 0;
	padding: 18px;
	background: var(--color-panel);
	border: 1px solid var(--color-line);
	border-radius: 8px;
}

.fact-list dt {
	color: var(--color-muted);
	font-weight: 700;
}

.fact-list dd {
	margin: 0;
	font-weight: 800;
}

.table-wrap {
	overflow-x: auto;
	background: var(--color-panel);
	border: 1px solid var(--color-line);
	border-radius: 8px;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	padding: 11px 14px;
	text-align: left;
	border-bottom: 1px solid var(--color-line);
	white-space: nowrap;
}

th {
	color: var(--color-muted);
	font-size: 13px;
	text-transform: uppercase;
}

tr:last-child td {
	border-bottom: 0;
}

.note-list {
	display: grid;
	gap: 12px;
}

.note-card h3 {
	margin-bottom: 6px;
	font-size: 18px;
}

.note-card p {
	margin-bottom: 0;
	color: var(--color-muted);
}

.site-footer {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	margin-top: 48px;
	padding: 24px clamp(18px, 4vw, 56px);
	color: var(--color-muted);
	background: var(--color-panel);
	border-top: 1px solid var(--color-line);
}

@media (max-width: 720px) {
	.site-header,
	.site-search,
	.hero-search,
	.section-heading,
	.site-footer {
		align-items: stretch;
		flex-direction: column;
	}

	input,
	button {
		width: 100%;
	}

	.hero,
	.name-hero {
		padding-top: 42px;
	}

	.split {
		grid-template-columns: 1fr;
	}
}
