@import url('https://fonts.googleapis.com/css2?family=Gruppo&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
	--bg: #ffffff;
	--bg-soft: #f8fafc;
	--surface: #ffffff;
	--line: #e5e7eb;
	--line-strong: #d1d5db;
	--text: #111827;
	--muted: #6b7280;
	--muted-strong: #4b5563;
	--primary: #111827;
	--primary-hover: #1f2937;
	--max-width: 72rem;
	--read-width: 52rem;
	--radius: 0.75rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	background: linear-gradient(180deg, #ffffff 0%, #fafafa 60%, #ffffff 100%);
	color: var(--text);
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	line-height: 1.6;
}

body {
	min-height: 100vh;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover,
a:focus-visible {
	text-decoration: none;
}

h1,
h2,
h3,
p,
ul {
	margin-top: 0;
}

h1,
h2,
h3 {
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--text);
}

h1 {
	font-size: clamp(2rem, 4.8vw, 3rem);
	font-weight: 800;
	margin-bottom: 0.9rem;
}

h2 {
	font-size: clamp(1.25rem, 2.4vw, 1.7rem);
	font-weight: 700;
	margin-bottom: 0.7rem;
}

h3 {
	font-size: 1.08rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

p,
li {
	font-size: 1rem;
	color: var(--muted-strong);
}

ul {
	padding-left: 1.2rem;
	margin-bottom: 0;
}

.site-shell {
	display: flex;
	flex-direction: column;
	min-height: 100svh;
}

.container {
	width: min(var(--max-width), calc(100% - 2rem));
	margin: 0 auto;
}

.site-header {
	padding: 1rem 0 0.8rem;
}

.nav-shell {
	max-width: 76rem;
}

.nav-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1rem;
	border-bottom: 1px solid var(--line);
	padding-bottom: 0.85rem;
}

.site-brand {
	font-family: 'Gruppo', 'Manrope', sans-serif;
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: #1f2937;
}

.site-nav {
	justify-self: center;
	min-width: 0;
}

.nav-list {
	list-style: none;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.42rem;
	padding: 0;
	margin: 0;
}

.nav-list a {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.72rem;
	border-radius: 0.58rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--muted);
	transition: background-color 0.14s ease, color 0.14s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
	background: #f3f4f6;
	color: var(--text);
}

.nav-list a[aria-current='page'] {
	background: var(--primary);
	color: #ffffff;
}

.language-switcher {
	display: inline-flex;
	gap: 0.32rem;
	padding: 0.27rem;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--bg-soft);
	justify-self: end;
}

.lang-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.48rem;
	height: 1.9rem;
	padding: 0 0.58rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	border-radius: 999px;
	color: var(--muted);
	transition: background-color 0.14s ease, color 0.14s ease;
}

.lang-link:hover,
.lang-link:focus-visible {
	background: #e5e7eb;
	color: var(--text);
}

.lang-link[aria-current='page'] {
	background: var(--primary);
	color: #ffffff;
}

.site-main {
	flex: 1;
	padding: 2.35rem 0 3.2rem;
}

.home-page {
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	width: 100%;
}

.home-content {
	width: min(100%, 46rem);
	text-align: center;
}

.home-logo {
	font-family: 'Gruppo', 'Manrope', sans-serif;
	font-size: clamp(3rem, 11vw, 6rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	margin-bottom: 0.9rem;
}

.home-tagline {
	font-size: clamp(1rem, 2vw, 1.16rem);
	max-width: 38ch;
	margin: 0 auto 1.45rem;
	color: var(--muted);
}

.home-actions {
	display: flex;
	justify-content: center;
	gap: 0.72rem;
	flex-wrap: wrap;
	margin-bottom: 0.95rem;
}

.action-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.72rem 1.08rem;
	border-radius: 0.68rem;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1;
	border: 1px solid transparent;
	transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.action-link-primary {
	background: var(--primary);
	color: #ffffff;
}

.action-link-primary:hover,
.action-link-primary:focus-visible {
	background: var(--primary-hover);
}

.action-link-secondary {
	background: #ffffff;
	color: var(--text);
	border-color: var(--line-strong);
}

.action-link-secondary:hover,
.action-link-secondary:focus-visible {
	background: #f9fafb;
}

.home-support {
	font-size: 0.94rem;
	color: var(--muted);
	margin-bottom: 0.35rem;
}

.home-support strong {
	color: var(--text);
	font-weight: 700;
}

.home-support a {
	color: var(--text);
	font-weight: 700;
}

.home-legal-links {
	font-size: 0.9rem;
	color: var(--muted);
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	flex-wrap: wrap;
	justify-content: center;
}

.home-legal-links a {
	color: var(--muted-strong);
	font-weight: 600;
}

.home-legal-links a:hover,
.home-legal-links a:focus-visible {
	text-decoration: underline;
}

body[data-page='home'] .site-main {
	display: flex;
	align-items: center;
	padding: 1rem 0;
}

body[data-page='home'] .site-main .container {
	display: flex;
	flex: 1;
}

.legal-content,
.info-content {
	max-width: var(--read-width);
	margin: 0 auto;
	display: grid;
	gap: 1.35rem;
}

.legal-header {
	margin-bottom: 0.2rem;
}

.legal-title {
	font-size: clamp(2rem, 5vw, 3.1rem);
	margin-bottom: 0;
}

.todo-box,
.content-section {
	padding: 1.2rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.todo-box {
	background: var(--bg-soft);
}

.todo-box h2,
.content-section h2 {
	margin-bottom: 0.58rem;
}

.todo-box p,
.content-section p {
	margin-bottom: 0.75rem;
}

.todo-box ul,
.content-section ul {
	display: grid;
	gap: 0.48rem;
}

.privacy-content .content-section {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.privacy-content .content-section h2 {
	margin-bottom: 0.55rem;
}

.privacy-content .content-section p {
	margin-bottom: 0.68rem;
}

.privacy-subheading {
	font-size: 1.03rem;
	font-weight: 700;
	margin-top: 1rem;
	margin-bottom: 0.4rem;
}

.about-page {
	padding: 0.7rem 0;
}

.about-wrap {
	max-width: 48rem;
	margin: 0 auto;
}

.about-title {
	font-size: clamp(2.15rem, 5.2vw, 3.25rem);
	margin-bottom: 1.8rem;
}

.about-body h2 {
	font-size: clamp(1.35rem, 3vw, 1.65rem);
	font-weight: 700;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.about-body p {
	font-size: 1.1rem;
	color: var(--muted);
	margin-bottom: 1.2rem;
}

.inline-link {
	color: var(--text);
	font-weight: 700;
}

.inline-link:hover,
.inline-link:focus-visible {
	text-decoration: underline;
}

.projects-page {
	max-width: 66rem;
	margin: 0 auto;
}

.projects-header {
	max-width: 45rem;
	margin-bottom: 1.35rem;
}

.projects-header p {
	font-size: 1.04rem;
	color: var(--muted);
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1rem;
	margin-bottom: 1.4rem;
}

.project-card {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1rem;
}

.project-card h2 {
	font-size: 1.22rem;
	margin-bottom: 0.45rem;
}

.project-card p {
	margin-bottom: 0.7rem;
}

.project-status {
	display: inline-flex;
	align-items: center;
	padding: 0.24rem 0.5rem;
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 700;
	margin-bottom: 0.6rem;
}

.status-active {
	background: #dcfce7;
	color: #166534;
}

.status-inDevelopment {
	background: #dbeafe;
	color: #1d4ed8;
}

.status-planning {
	background: #f3f4f6;
	color: #374151;
}

.project-platform {
	font-size: 0.86rem;
	color: var(--muted);
	margin-bottom: 0;
}

.project-platform span {
	font-weight: 700;
	color: var(--muted-strong);
}

.projects-idea {
	padding: 1.2rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg-soft);
}

.projects-idea p {
	margin-bottom: 0;
}

.site-footer {
	padding: 1.2rem 0 1.8rem;
	border-top: 1px solid var(--line);
}

.footer-content {
	display: grid;
	justify-items: center;
	gap: 0.4rem;
}

.footer-links {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45rem;
	font-size: 0.88rem;
	color: var(--muted);
}

.footer-links a {
	color: var(--muted-strong);
	font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus-visible {
	text-decoration: underline;
}

.footer-copy {
	margin: 0;
	text-align: center;
	font-size: 0.84rem;
	color: var(--muted);
}

.language-selector-main {
	display: grid;
	place-items: center;
	min-height: 72vh;
}

.selector-card {
	width: min(39rem, 100%);
	padding: 1.5rem;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 1rem;
	text-align: center;
}

.selector-title {
	font-family: 'Gruppo', 'Manrope', sans-serif;
	font-size: clamp(2.4rem, 8vw, 4.4rem);
	letter-spacing: -0.03em;
	margin-bottom: 0.75rem;
}

.selector-card p {
	margin-left: auto;
	margin-right: auto;
	max-width: 42ch;
	margin-bottom: 1rem;
}

.selector-links {
	display: flex;
	justify-content: center;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin-bottom: 0.95rem;
}

.selector-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.64rem 1.02rem;
	border-radius: 0.66rem;
	background: var(--primary);
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 700;
	transition: background-color 0.14s ease;
}

.selector-links a:hover,
.selector-links a:focus-visible {
	background: var(--primary-hover);
}

.muted {
	color: var(--muted);
}

@media (max-width: 980px) {
	.nav-row {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.site-brand,
	.site-nav,
	.language-switcher {
		justify-self: center;
	}
}

@media (max-width: 740px) {
	.site-main {
		padding: 1.7rem 0 2.6rem;
	}

	.nav-list {
		gap: 0.34rem;
	}

	.nav-list a {
		font-size: 0.87rem;
		padding: 0.4rem 0.68rem;
	}

	.todo-box,
	.content-section,
	.projects-idea,
	.selector-card {
		padding: 1rem;
	}

	.about-title {
		margin-bottom: 1.2rem;
	}

	.about-body h2 {
		margin-top: 1.45rem;
	}
}
