:root {
	--navy: #2c3e8c;
	--yellow: #f4c400;
	--red: #e0262c;
	--green: #5cb246;
	--sky: #4a90d0;
	--purple: #a24ba0;
	--ink: #2a2a2a;
	--bg: #fbf9f2;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background-color: var(--bg);
	color: var(--ink);
	font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1,
h2,
h3 {
	font-family: "Baloo 2", "Nunito", sans-serif;
	color: var(--navy);
}

a {
	color: var(--sky);
}

.container {
	width: 100%;
	max-width: 580px;
	margin: 0 auto;
	padding: 0 20px;
}

.container-wide {
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 0 20px;
}

.topnav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1080px;
	margin: 0 auto;
	padding: 18px 20px;
}

.topnav img {
	height: 48px;
}

.topnav .links {
	display: flex;
	gap: 16px;
	align-items: center;
	font-weight: 700;
	font-size: 0.95em;
}

.topnav .links a {
	color: var(--navy);
	text-decoration: none;
}

.topnav .links a.btn {
	background: var(--red);
	color: #fff;
	padding: 8px 18px;
	border-radius: 50px;
}

.card {
	background: #fff;
	border-radius: 16px;
	padding: 32px 28px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	margin: 30px auto;
	border-top: 6px solid var(--navy);
}

.card h1 {
	text-align: center;
	font-size: 1.6em;
	margin-top: 0;
}

label {
	display: block;
	font-weight: 700;
	margin: 16px 0 6px;
	font-size: 0.92em;
	color: #555;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
input[type="file"] {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid #e6e2d6;
	border-radius: 10px;
	font-size: 1em;
	font-family: inherit;
	background: #fdfcf8;
}

input:focus,
textarea:focus {
	outline: none;
	border-color: var(--sky);
}

textarea {
	resize: vertical;
	min-height: 80px;
}

.hint {
	font-size: 0.8em;
	color: #999;
	margin-top: 4px;
}

.btn-primary {
	display: block;
	width: 100%;
	margin-top: 24px;
	padding: 13px;
	border: none;
	border-radius: 50px;
	background: var(--navy);
	color: #fff;
	font-weight: 700;
	font-size: 1em;
	cursor: pointer;
}

.btn-primary:hover {
	opacity: 0.92;
}

.alert {
	padding: 12px 16px;
	border-radius: 10px;
	margin: 16px 0;
	font-size: 0.92em;
}

.alert-error {
	background: #fdeaea;
	color: var(--red);
	border: 1px solid #f6c6c6;
}

.alert-success {
	background: #eaf6ea;
	color: #2e7d32;
	border: 1px solid #c6e6c6;
}

.form-footer {
	text-align: center;
	margin-top: 20px;
	font-size: 0.9em;
	color: #777;
}

.avatar {
	border-radius: 50%;
	object-fit: cover;
	background: #eee;
	display: block;
}

.profile-header {
	text-align: center;
}

.profile-header .avatar {
	width: 120px;
	height: 120px;
	margin: 0 auto 16px;
	border: 4px solid #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.profile-header h1 {
	margin-bottom: 2px;
}

.profile-header .username {
	color: #999;
	font-weight: 600;
	margin-bottom: 16px;
}

.profile-bio {
	color: #555;
	line-height: 1.5;
	text-align: center;
	max-width: 480px;
	margin: 0 auto;
}

footer.site-footer {
	text-align: center;
	padding: 28px 20px 36px;
	color: #999;
	font-size: 0.85em;
}
