/* --- Layout tokens --- */
:root{
	--maxw: 1040px;
	--pad: 1.25rem;
	--gap: 1.25rem;
	--border: #e5e7eb;
	--text: #111827;
	--muted: #4b5563;
	--bg: #ffffff;
	--soft: #f9fafb;
}

body {
	--pad_global: 1rem;
	max-width: 1200px;
	margin: 2rem auto;
	font-family: system-ui, sans-serif;
	line-height: 1.6;
	padding: var(--pad_global);
}

a {
	color: #0056b3;
	text-decoration: none;
}

.navbar {
	display: flex;
	border: 3px solid black;
	padding: 0rem 1rem;
	align-items: center;
	justify-content: center;
	margin: 2rem 0.5rem;

}

.navbar a {
	text-align: center;
	font-size: x-large;
	margin: 0.5rem;
	color: black;

}

/* --- Card --- */
.project-card{
	max-width: var(--maxw);
	margin: 1.5rem auto;
	padding: var(--pad);
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 14px;
}

.project-header h2{
	margin: 0 0 0.25rem 0;
	font-size: 1.35rem;
	line-height: 1.2;
	color: var(--text);
}

.project-subtitle{
	margin: 0;
	color: var(--muted);
	line-height: 1.5;
}

/* --- 2-column grid (collapses to 1-column) --- */
.project-grid{
	margin-top: 1rem;
	display: grid;
	grid-template-columns: 1.6fr 1.3fr;
	gap: var(--gap);
	align-items: start;
}

.project-block{
	padding: 0.9rem 1rem;
	background: var(--soft);
	border: 1px solid var(--border);
	border-radius: 12px;
	margin-bottom: 0.9rem;
}

.project-block h3,
.project-meta h3{
	margin: 0 0 0.4rem 0;
	font-size: 0.95rem;
	letter-spacing: 0.2px;
	color: var(--text);
}

.project-block p{
	margin: 0;
	color: var(--text);
	line-height: 1.6;
}

.project-block ul{
	margin: 0.35rem 0 0 1.15rem;
	color: var(--text);
	line-height: 1.6;
}

/* --- Meta column --- */
.project-meta{
	display: grid;
	gap: 0.9rem;
}

.meta-box{
	padding: 0.9rem 1rem;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: #fff;
}

.tag-list{
	list-style: none;
	padding: 0;
	margin: 0.5rem 0 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.tag{
	padding: 0.35rem 0.55rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 0.85rem;
	color: var(--text);
	background: var(--soft);
	white-space: nowrap;
}

.link-list{
	margin: 0.5rem 0 0 1.1rem;
	line-height: 1.7;
}

.link-list a{
	color: #1f2937;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --- Visual placeholder --- */
.project-figure{
	margin: 0;
	padding: 0.9rem 1rem;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: #fff;
}

/* Used only for the template view */
.figure-placeholder{
	height: 160px;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	display: grid;
	place-items: center;
	color: var(--muted);
	background: var(--soft);
	font-size: 0.9rem;
	text-align: center;
	padding: 0.5rem;
}

.figure_container {
	max-width: 100%;

}


figcaption{
	margin-top: 0.55rem;
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.4;
}

/* --- Mobile --- */
@media (max-width: 860px){
	.project-grid{
		grid-template-columns: 1fr;
	}
}


