@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 400;
	src: url('../fonts/roboto-v30-latin-regular.woff2') format('woff2'),
		url('../fonts/roboto-v30-latin-regular.woff') format('woff');
	font-display: swap;
}

@font-face {
	font-family: 'Roboto';
	font-style: italic;
	font-weight: 400;
	src: url('../fonts/roboto-v30-latin-italic.woff2') format('woff2'),
		url('../fonts/roboto-v30-latin-italic.woff') format('woff');
	font-display: swap;
}

:root {
	--bg: #f7f7f5;
	--surface: #ffffff;
	--text: #1a1a1a;
	--muted: #6b6b6b;
	--border: #e7e5e0;
	--accent: #2b2b2b;
	--positive: #1a7f4b;
	--negative: #c23b3b;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
	--max-width: 880px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #121212;
		--surface: #1b1b1b;
		--text: #f0f0f0;
		--muted: #9c9c9c;
		--border: #2c2c2c;
		--accent: #f0f0f0;
		--positive: #4fce8f;
		--negative: #ff6b6b;
		--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
	}
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-weight: 300;
	background: var(--bg);
	color: var(--text);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.wrap {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
}

a {
	color: inherit;
}

h1, h2, h3 {
	font-weight: 400;
	margin: 0;
}

.site-header {
	padding: 72px 0 48px;
	text-align: center;
}

.eyebrow {
	margin: 0 0 8px;
	font-style: italic;
	font-size: 15px;
	color: var(--muted);
	letter-spacing: 0.02em;
}

.site-header h1 {
	font-size: 56px;
	letter-spacing: -0.01em;
}

.section {
	padding: 48px 0;
}

.section.alt {
	background: var(--surface);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.section h2 {
	font-size: 22px;
	font-style: italic;
	font-weight: 400;
	margin-bottom: 24px;
	color: var(--muted);
}

/* Standings */

.standings-grid {
	display: grid;
	gap: 12px;
}

.standing-row {
	display: grid;
	grid-template-columns: 32px 1fr auto auto;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.standing-rank {
	font-size: 14px;
	color: var(--muted);
	text-align: center;
}

.standing-name {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
}

.color-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex: none;
}

.standing-total {
	font-size: 20px;
	font-variant-numeric: tabular-nums;
	text-align: right;
	min-width: 80px;
}

.standing-generals {
	font-size: 13px;
	color: var(--muted);
	text-align: right;
	min-width: 70px;
}

.standing-generals .value {
	display: block;
	font-size: 15px;
	color: var(--text);
}

/* Chart */

.chart-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px 20px 8px;
	position: relative;
	height: 360px;
}

.chart-card canvas {
	width: 100% !important;
	height: 100% !important;
}

/* Game days */

.gameday-list {
	display: grid;
	gap: 16px;
}

.gameday-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 20px 24px;
	scroll-margin-top: 20px;
}

.gameday-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.gameday-title {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.gameday-number {
	color: var(--muted);
	font-size: 14px;
}

.gameday-location {
	font-size: 19px;
}

.gameday-date {
	display: block;
	font-size: 13px;
	color: var(--muted);
	margin-top: 2px;
}

.gameday-links {
	display: flex;
	gap: 8px;
}

.gameday-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--bg);
	border: 1px solid var(--border);
}

.gameday-links img,
.gameday-links svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	opacity: 0.75;
	color: var(--muted);
}

.gameday-results {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.result-chip {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: 15px;
}

.result-chip .color-dot {
	width: 8px;
	height: 8px;
}

.result-amount {
	font-variant-numeric: tabular-nums;
}

.result-generals {
	color: var(--muted);
	font-size: 13px;
}

/* Footer */

.site-footer {
	padding: 40px 0 60px;
	text-align: center;
}

.footer-icons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
}

.footer-divider {
	width: 1px;
	height: 22px;
	background: var(--border);
}

.icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--muted);
	text-decoration: none;
	transition: color 0.15s, border-color 0.15s;
}

.icon-link:hover {
	color: var(--text);
	border-color: var(--text);
}

.icon-link svg {
	width: 16px;
	height: 16px;
}

@media (max-width: 560px) {
	.site-header h1 {
		font-size: 40px;
	}

	.standing-row {
		grid-template-columns: 24px 1fr auto;
		row-gap: 4px;
	}

	.standing-generals {
		grid-column: 2 / 4;
		text-align: left;
	}
}
