/* aesica.net - main stylesheet */

html, body {
	font-family: "Segoe UI", Arial, sans-serif;
	background-color: #12111a;
	color: #aaa;
	background-attachment: fixed;
	margin: 0;
	min-height: 100vh;
}

/* ── Site header ───────────────────────────────────────────── */

.siteHeader {
	padding: 2.5rem 2rem 2rem;
	text-align: center;
	background-color: #0d0c14;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	margin-bottom: 2rem;
}

.siteTitle {
	font-size: 1.75rem;
	font-weight: 500;
	color: #e8e4f4;
	letter-spacing: 0.04em;
}

.siteTitle span {
	color: #9f8fe8;
}

.siteTitleRow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.siteTagline {
	margin-top: 6px;
	font-size: 0.8rem;
	color: rgba(220, 215, 240, 0.45);
	letter-spacing: 0.06em;
}

/* ── Back-link (subpages) ──────────────────────────────────── */

.mainPageLink {
	display: inline-block;
	background-color: #1c1a28;
	padding: 0.5rem 0.75rem;
	border: 1px solid #3a3850;
	border-radius: 6px;
	margin: 1rem 2rem;
	font-size: 0.85rem;
	color: #c0b8e8;
	text-decoration: none;
}

.mainPageLink:hover {
	filter: brightness(1.25);
	text-decoration: none;
}

/* ── Card grid ─────────────────────────────────────────────── */

.mainSection {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	padding: 0.5rem 2rem;
}

.section {
	display: block;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	background-color: #2a2838;
	overflow: hidden;
	text-align: left;
	transition: border-color 0.2s;
	box-shadow: 3px 3px 6px #000;
}

.section:hover {
	border-color: rgba(160, 140, 230, 0.9);
	box-shadow: 3px 3px 6px #000, 0 0 10px rgba(140, 120, 220, 0.35);
}

.section img {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	display: block;
	object-fit: cover;
	filter: brightness(0.92);
	transition: filter 0.25s;
}

.section:hover img {
	filter: brightness(1.3);
}

.sectionBody {
	padding: 14px 16px 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sectionHead {
	font-size: 1rem;
	font-weight: 500;
	color: #e0dbf5;
	padding: 0 0 0.3rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	margin-bottom: 0.5rem;
}

.sectionDesc {
	font-size: 0.8rem;
	color: rgba(200, 193, 235, 0.5);
	line-height: 1.55;
}

/* ── User-select off for interactive elements ──────────────── */

.mainSection, .mainPageLink, .section {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* ── Footer ────────────────────────────────────────────────── */

.footer {
	margin-top: 2.5rem;
	text-align: center;
	background-color: #060509;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	padding: 1rem 2rem;
	font-size: 0.75rem;
	color: rgba(200, 190, 240, 0.55);
	letter-spacing: 0.04em;
}

.footerIcons {
	margin-top: 0.6rem;
	display: flex;
	justify-content: center;
	gap: 16px;
}

.footerIcons a {
	font-size: 1.25rem;
	color: rgba(200, 190, 240, 0.55);
	transition: color 0.2s;
}

.footerIcons a:hover {
	color: #9f8fe8;
	filter: none;
	text-decoration: none;
}

/* ── Links ─────────────────────────────────────────────────── */

a, a:visited {
	color: #c0b8e8;
	text-decoration: none;
}

a:hover {
	filter: brightness(1.3);
	text-decoration: underline;
}

a.section:hover {
	filter: none;
	text-decoration: none;
}

a[href^="http://"]:after,
a[href^="https://"]:after {
	content: url(img/external-link.png);
}
