/* Simple, modern, vertical scroll layout */
:root {
	--primary: #0c2d57;
	--primary-dark: #005fa3;
	--bg: #efecec;
	--text: #181a1b;
	--section-bg: #fff;
	--border: #e0e0e0;
	--radius: 0.75em;
}

[data-theme="dark"] {
	--primary: #4a9eff;
	--primary-dark: #80c0ff;
	--bg: #1a1a1a;
	--text: #e4e4e4;
	--section-bg: #2a2a2a;
	--border: #404040;
}

html {
	scroll-behavior: smooth;
	color: var(--text);
	background: var(--bg);
}

body {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 1.2em;
	line-height: 1.7;
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	transition: background-color 0.3s ease, color 0.3s ease;
}

header {
	padding: 2em 0 1em 0;
	text-align: center;
	background: var(--section-bg);
	border-bottom: 1px solid var(--border);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

header h1 {
	margin: 0;
	font-size: 2em;
	letter-spacing: 0.01em;
}

header p {
	margin: 0.5em 0 0 0;
	font-size: 0.9em;
	color: var(--text);
	opacity: 0.8;
}

nav {
	background: var(--section-bg);
	border-bottom: 1px solid var(--border);
	padding: 0.5em 0;
	position: sticky;
	top: 0;
	z-index: 100;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

nav ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5em 1em;
	max-width: 600px;
	margin: 0 auto;
	padding: 0 1em;
}

nav li {
	margin: 0;
}

nav a {
	padding: 0.3em 0.6em;
	border-radius: 0.3em;
	font-size: 0.85em;
	display: inline-block;
}

nav a:hover,
nav a:focus-visible {
	background: var(--border);
	border-bottom: 1px solid transparent;
}

main {
	flex: 1 0 auto;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	padding: 2em 1em 1em 1em;
	display: flex;
	flex-direction: column;
	gap: 2em;
}

section {
	background: var(--section-bg);
	border-radius: var(--radius);
	border: 1px solid var(--border);
	padding: 1.5em 1.2em 1.2em 1.2em;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
	transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] section {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

section h2 {
	margin-top: 0;
	font-size: 1.2em;
	border-bottom: 1px solid var(--border);
	padding-bottom: 0.4em;
	margin-bottom: 1em;
}

ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

li {
	margin-bottom: 0.8em;
}

li:last-child {
	margin-bottom: 0;
}

a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 500;
	border-bottom: 1px solid transparent;
	transition: color 0.2s, border 0.2s;
}

a:focus-visible,
a:hover {
	color: var(--primary-dark);
	border-bottom: 1.5px solid var(--primary-dark);
	outline: none;
}

a:active {
	color: var(--primary-dark);
}

footer {
	width: 100%;
	background: var(--section-bg);
	border-top: 1px solid var(--border);
	text-align: center;
	padding: 1.2em 0 1.5em 0;
	font-size: 1em;
	position: relative;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

footer a {
	color: var(--primary);
	text-decoration: underline;
	transition: color 0.2s;
}

footer a:focus-visible,
footer a:hover {
	color: var(--primary-dark);
	outline: none;
}

#theme-toggle {
	position: absolute;
	right: 1em;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: 2px solid var(--border);
	border-radius: 50%;
	width: 2.5em;
	height: 2.5em;
	font-size: 1em;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

#theme-toggle:hover,
#theme-toggle:focus-visible {
	border-color: var(--primary);
	transform: translateY(-50%) scale(1.1);
	outline: none;
}

#theme-toggle:active {
	transform: translateY(-50%) scale(0.95);
}

@media (max-width: 700px) {
	main {
		padding: 1em 0.2em 0.5em 0.2em;
		max-width: 100%;
		gap: 1em;
	}
	section {
		padding: 1em 0.7em 0.7em 0.7em;
	}
	header h1 {
		font-size: 1.2em;
	}
	header p {
		font-size: 0.8em;
	}
	nav ul {
		gap: 0.3em 0.5em;
		padding: 0 0.5em;
	}
	nav a {
		font-size: 0.75em;
		padding: 0.2em 0.4em;
	}
	#theme-toggle {
		right: 0.5em;
		width: 2em;
		height: 2em;
		font-size: 0.9em;
	}
}
