*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	height: 100%;
}

body {
	background: #f0f0f0;
	color: #333;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

a {
	color: inherit;
	text-decoration: none;
}

/* ── Layout ──────────────────────────────────────────── */

#container {
	min-height: 100%;
}

.wrap {
	margin: 0 auto;
	max-width: 980px;
	padding: 0 16px;
	position: relative;
}

/* ── Footer ──────────────────────────────────────────── */

footer {
	background: #242424;
	color: #d0d0d0;
	padding: 20px 0;
}

footer a {
	color: #fff;
}

footer .copy {
	font-size: 0.75rem;
	text-align: right;
}

/* ── Shortener fallback ──────────────────────────────── */

#whitebox {
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
	margin: 120px auto 0;
	max-width: 500px;
	padding: 32px;
}

#whitebox h1 {
	color: #3a3a3a;
	font-size: 1.25rem;
	margin-bottom: 16px;
}

#whitebox p {
	color: #5a5a5a;
	font-size: 0.9rem;
	line-height: 1.6;
}

/* ── Linkinbio ───────────────────────────────────────── */

.linkinbio {
	max-width: 640px;
	margin: 0 auto;
	padding: 32px 16px 48px;
}

.profile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 28px;
	gap: 12px;
}

.profile__avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #dbdbdb;
}

.profile__name {
	font-size: 1rem;
	font-weight: 600;
}

.profile__bio {
	font-size: 0.875rem;
	color: #737373;
	line-height: 1.4;
}

.grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3px;
}

.grid__item {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	display: block;
	background: #efefef;
}

.grid__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.2s;
}

.grid__item:hover img {
	opacity: 0.85;
}

.grid__item__title {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 6px 8px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
	color: #fff;
	font-size: 0.7rem;
	line-height: 1.3;
	opacity: 0;
	transition: opacity 0.2s;
}

.grid__item:hover .grid__item__title {
	opacity: 1;
}
