* {
	box-sizing: border-box;
}

:root {
	--bg-1: #081120;
	--bg-2: #12213d;
	--card: rgba(11, 18, 35, 0.72);
	--card-border: rgba(255, 255, 255, 0.12);
	--text: #f4f7fb;
	--muted: #b8c4d9;
	--accent: #7dd3fc;
	--accent-2: #fbbf24;
}

html, body {
	min-height: 100%;
}

body {
	margin: 0;
	font-family: "Inter", sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at top left, rgba(125, 211, 252, 0.22), transparent 35%),
		radial-gradient(circle at bottom right, rgba(251, 191, 36, 0.18), transparent 30%),
		linear-gradient(135deg, var(--bg-1), var(--bg-2));
	display: grid;
	place-items: center;
	padding: 24px;
}

.app-shell {
	width: 100%;
	max-width: 680px;
}

.weather-card {
	background: var(--card);
	border: 1px solid var(--card-border);
	border-radius: 28px;
	padding: 32px;
	backdrop-filter: blur(18px);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.eyebrow {
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 700;
}

h1 {
	margin: 0;
	font-family: "Playfair Display", serif;
	font-size: clamp(2.2rem, 5vw, 4.2rem);
	line-height: 1;
}

.subtitle {
	margin: 14px 0 0;
	max-width: 46ch;
	color: var(--muted);
	line-height: 1.6;
}

.search-form {
	display: flex;
	gap: 12px;
	margin-top: 28px;
}

.search-form input {
	flex: 1;
	min-width: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
	padding: 16px 18px;
	font-size: 1rem;
	outline: none;
}

.search-form input::placeholder {
	color: #93a4c0;
}

.search-form input:focus {
	border-color: rgba(125, 211, 252, 0.9);
	box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.16);
}

.search-form button {
	border: none;
	border-radius: 16px;
	padding: 16px 22px;
	background: linear-gradient(135deg, #7dd3fc, #fbbf24);
	color: #081120;
	font-weight: 800;
	font-size: 0.98rem;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 14px 30px rgba(125, 211, 252, 0.18);
}

.search-form button:hover {
	transform: translateY(-1px);
}

.status-message {
	margin-top: 18px;
	min-height: 24px;
	color: var(--muted);
}

.result-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.result-card {
	padding: 22px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-card span {
	display: block;
	color: var(--muted);
	font-size: 0.9rem;
	margin-bottom: 10px;
}

.result-card strong {
	display: block;
	font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.result-card.accent {
	background: linear-gradient(135deg, rgba(125, 211, 252, 0.14), rgba(251, 191, 36, 0.12));
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 640px) {
	.weather-card {
		padding: 24px;
	}

	.search-form {
		flex-direction: column;
	}

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