@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
	--burgundy: #24545a;
	--burgundy-dark: #12333b;
	--burgundy-soft: #39727a;
	--mint: #6f9f8a;
	--mint-light: #b8d5c5;
	--cream: #f7f0e8;
	--paper: #fffaf4;
	--ink: #2f2020;
	--muted: #526b69;
	--line: rgba(47, 91, 72, 0.2);
}

* {
	box-sizing: border-box;
}

html {
	min-width: 320px;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: 'DM Sans', sans-serif;
	line-height: 1.6;
	overflow-x: hidden;
}

header {
	position: fixed;
	inset: 0 auto 0 0;
	width: 260px;
	padding: 36px 20px 16px;
	background: var(--mint);
	color: var(--cream);
	overflow: hidden;
	z-index: 2;
}

.header-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.brand h1 {
	margin: 8px 0 16px;
	color: var(--burgundy-dark);
	font-family: 'Fraunces', Georgia, serif;
	font-size: 1.5rem;
	letter-spacing: 0.08em;
}

.brand-logo {
	display: block;
	width: 60px;
	height: 60px;
	margin: 0 auto;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 5px 14px rgba(18, 51, 59, 0.2);
}

.login-form {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

.login-form label {
	margin-top: 3px;
	color: var(--mint-light);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.login-form input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid rgba(247, 240, 232, 0.28);
	border-radius: 3px;
	background: rgba(255, 250, 244, 0.28);
	color: var(--burgundy-dark);
	font: inherit;
	font-size: 0.9rem;
}

.login-form input::placeholder {
	color: #365451;
}

.login-form input:focus {
	outline: 2px solid var(--mint-light);
	outline-offset: 1px;
}

.login-form button,
.hero-actions .button {
	border: 0;
	border-radius: 3px;
	background: var(--burgundy);
	color: var(--cream);
	font-weight: 700;
	cursor: pointer;
}

header button,
nav.btn-group .btn {
	border-radius: 6px !important;
}

.login-form button {
	margin-top: 6px;
	padding: 8px;
}

.login-form button:hover,
.hero-actions .button:hover {
	background: var(--burgundy-soft);
}

nav.btn-group {
	display: flex;
	flex-direction: column;
	flex: 1;
	justify-content: center;
	gap: 18px;
	margin-top: 18px;
}

nav.btn-group .btn {
	width: 100%;
	flex: 0 0 auto;
	padding: 10px 11px;
	border: 1px solid var(--burgundy);
	border-radius: 3px;
	background: var(--burgundy);
	color: var(--cream);
	text-align: left;
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 160ms ease, color 160ms ease;
}

nav.btn-group .btn-primary,
	nav.btn-group .btn-outline-primary {
	background: var(--burgundy);
	border-color: var(--burgundy);
	color: var(--cream);
}

nav.btn-group .btn:hover {
	background: var(--burgundy-soft);
	border-color: var(--burgundy-soft);
	color: var(--cream);
}

main,
footer {
	margin-left: 260px;
}

main {
	max-width: 1200px;
	padding: 76px clamp(28px, 7vw, 100px) 70px;
}

main > section {
	padding: 36px 0;
	border-bottom: 1px solid var(--line);
}

main > section:first-child {
	padding-top: 0;
}

main > section:first-child h2 {
	margin: 0;
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(1.4rem, 2.6vw, 2rem);
}

main > section:first-child p {
	margin: 4px 0 0;
}

main a {
	color: var(--burgundy);
	font-weight: 700;
}

.hero {
	padding: clamp(58px, 10vw, 120px) 0 !important;
	background-image: linear-gradient(rgba(247, 240, 232, 0.65), rgba(247, 240, 232, 0.65)), url('images/cardsOnTable.png');
	background-position: center;
	background-size: cover;
}

.hero-copy {
	padding-left: clamp(12px, 3vw, 42px);
}

.kicker,
.tool-number {
	margin: 0 0 14px;
	color: var(--burgundy);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hero h2 {
	max-width: 720px;
	margin: 0;
	color: var(--burgundy);
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(3rem, 7vw, 6.5rem);
	line-height: 0.98;
}

#hero-title {
	text-wrap: balance;
}

.hero-copy > p:not(.kicker) {
	max-width: 600px;
	margin: 28px 0 0;
	color: var(--muted);
	font-size: 1.15rem;
}

.hero-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 22px;
	margin-top: 30px;
}

.hero-actions .button {
	display: inline-block;
	padding: 12px 18px;
	text-decoration: none;
}

.text-link {
	text-decoration: none;
}

.text-link:hover,
main > section:first-child a:hover {
	color: var(--mint);
}

.friend-list {
	margin-top: 10px;
	padding-top: 10px;
	padding-bottom: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.72);
	border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

.friend-list h2 {
	margin: 0 0 10px;
	color: var(--burgundy-dark);
	font-family: 'Fraunces', Georgia, serif;
	font-size: 1.15rem;
}

.friend-list ul {
	max-height: 150px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
}

.friend-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 0;
	color: var(--burgundy-dark);
	font-size: 0.86rem;
}

.status-dot {
	width: 8px;
	height: 8px;
	flex: 0 0 8px;
	border-radius: 50%;
}

.status-dot.online {
	background: #2d805d;
}

.status-dot.offline {
	background: #8b8f88;
}

.friend-login-note {
	margin: 6px 0 0;
	color: var(--burgundy-dark);
	font-size: 0.72rem;
	line-height: 1.35;
}

.friend-list + nav.btn-group {
	margin-top: 8px;
}

.section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.section-heading h3,
.news h3 {
	margin: 0;
	color: var(--burgundy);
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.section-heading p {
	margin: 0;
	color: var(--muted);
}

.tools {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--line);
}

.tool {
	min-height: 230px;
	padding: 26px;
	background: var(--paper);
}

.tool h4,
.news-item h4 {
	margin: 0 0 10px;
	color: var(--burgundy);
	font-family: 'Fraunces', Georgia, serif;
	font-size: 1.35rem;
}

.tool p,
.news-item p {
	margin: 0 0 22px;
	color: var(--muted);
}

.tool .text-link {
	font-size: 0.9rem;
}

.news {
	display: grid;
	grid-template-columns: minmax(200px, 0.7fr) 1.3fr;
	gap: 50px;
}

.news-list {
	border-top: 1px solid var(--line);
}

.news-item {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 24px;
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}

.news-date {
	color: var(--mint);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
}

.news-item h4 {
	font-size: 1.15rem;
}

footer {
	padding: 26px clamp(28px, 7vw, 100px);
	background: var(--burgundy);
	color: var(--mint-light);
}

footer p {
	margin: 0;
	font-size: 0.9rem;
	text-align: center;
}

@media (max-width: 800px) {
	header {
	position: static;
	width: auto;
	padding: 28px;
	}

	.header-inner {
		height: auto;
	}

	.brand h1 {
		margin-bottom: 26px;
	}

	nav.btn-group {
		flex-direction: row;
		flex-wrap: wrap;
		flex: 0 0 auto;
		justify-content: flex-start;
		gap: 5px;
	}

	nav.btn-group .btn {
		width: auto;
		flex: 1 1 120px;
	}

	main,
	footer {
		margin-left: 0;
	}

	main {
		padding-top: 42px;
	}

	.tools,
	.news {
		grid-template-columns: 1fr;
	}

	.section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}
}

@media (max-width: 520px) {
	main {
		padding-right: 22px;
		padding-left: 22px;
	}

	footer {
		padding-right: 22px;
		padding-left: 22px;
	}

	.news-item {
		grid-template-columns: 1fr;
		gap: 5px;
	}
}
