/* === Tveit.net shared styles === */

* {
	box-sizing: border-box;
}

body {
	background: #333333;
	background-repeat: repeat;
	text-align: center;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	margin: 0;
	color: #e8e8e8;
}

/* === Nav === */
.site-nav {
	background: #2a2a2a;
	border-bottom: 2px solid #ff6600;
	padding: 14px 0;
	margin-bottom: 24px;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.site-nav .nav-inner {
	max-width: 830px;
	margin: 0 auto;
	padding: 0 20px;
	text-align: center;
}

.site-nav a {
	color: #ffffff;
	text-shadow: none;
	margin: 0 20px;
	padding: 4px 0;
	font-size: 16px;
	text-decoration: none;
	transition: color 0.15s ease;
}

.site-nav a:hover {
	color: #ff6600;
}

.site-nav a.active {
	color: #ff6600;
	font-weight: 500;
}

.site-nav a:focus-visible,
a:focus-visible {
	outline: 2px solid #ff6600;
	outline-offset: 2px;
}

/* === Page section (portfolio + support) === */
.page-section,
.portfolio-section {
	max-width: 830px;
	margin: 40px auto 60px;
	text-align: left;
	padding: 0 15px;
}

.page-section h1.page-title,
.page-section h3,
.portfolio-section h1.portfolio-title,
.portfolio-section h3 {
	color: #ffffff;
	font-size: 20px;
	font-weight: 400;
	margin: 0 0 15px 0;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* === Content card (support + generic) === */
.content-card {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: #f5f5f6;
	padding: 20px 25px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.content-card h1,
.content-card h2.card-title {
	font-size: 24px;
	font-weight: 400;
	color: #1a1a1a;
	margin: 0 0 15px 0;
}

.content-card p,
.content-card h2 {
	color: #2d2d2d;
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 12px 0;
}

.content-card a {
	text-decoration: none;
	color: #1a4d8c;
	font-weight: 500;
}

.content-card a:hover {
	color: #c75200;
}


.cryptedmail:after {
	content: attr(data-name) "@" attr(data-domain) "." attr(data-tld);
}

/* === Portfolio grid === */
.portfolio-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.portfolio-item {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: #f5f5f6;
	width: calc(50% - 6px);
	min-width: 260px;
	max-width: 400px;
	padding: 15px 20px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.portfolio-item:hover {
	background: #ebebec;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.portfolio-item a {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #1a1a1a;
	font-weight: 500;
	font-size: 16px;
	text-decoration: none;
}

.portfolio-item a:hover {
	color: #c75200;
}

.portfolio-item .favicon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	vertical-align: middle;
}

.portfolio-item .desc {
	font-size: 14px;
	color: #404040;
	margin-top: 4px;
	line-height: 1.4;
}

@media (max-width: 700px) {
	.portfolio-item {
		width: 100%;
		min-width: 0;
	}
}

/* === Mobile (small screens) === */
@media (max-width: 600px) {
	body {
		font-size: 17px;
	}
	.site-nav {
		padding: 12px 0;
		margin-bottom: 20px;
	}
	.site-nav .nav-inner {
		padding: 0 12px;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 4px 0;
	}
	.site-nav a {
		margin: 0 12px;
		padding: 10px 6px;
		font-size: 15px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
	.page-section,
	.portfolio-section {
		margin: 24px auto 40px;
		padding: 0 16px;
	}
	.page-section h1.page-title,
	.page-section h3,
	.portfolio-section h1.portfolio-title,
	.portfolio-section h3 {
		font-size: 18px;
		margin-bottom: 12px;
	}
	.content-card {
		padding: 16px 18px;
	}
	.content-card h1,
	.content-card h2.card-title {
		font-size: 20px;
	}
	.content-card p,
	.content-card h2 {
		font-size: 16px;
	}
	.portfolio-item {
		padding: 16px 18px;
	}
	.portfolio-item a {
		font-size: 16px;
		min-height: 44px;
		align-items: center;
	}
	.portfolio-item .desc {
		font-size: 14px;
	}
}
