/* Shared by about.html (Koala) and koalafx-about.html (Koala FX) */

:root {
	--bg: #0b0b0f;
	--card: #15151c;
	--card-hover: #1d1d26;
	--line: rgba(255, 255, 255, 0.1);
	--text: #f2f2f5;
	--muted: rgba(242, 242, 245, 0.62);
	--pink: #fe2e5a;
	--blue: #01d1fd;
	--radius: 16px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "Inter", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--pink);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

.about {
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 16px 64px;
}

/* header */

header {
	text-align: center;
	margin-bottom: 32px;
}
h1,
h2 {
	font-family: "Dosis", sans-serif;
	font-weight: 600;
	letter-spacing: 0.08em;
	margin: 0;
}
h1 {
	font-size: clamp(2.2rem, 8vw, 3.4rem);
	line-height: 1.1;
	color: var(--pink);
	text-shadow: 0.035em 0.035em 0 rgba(254, 46, 90, 0.5);
}

/* link tiles */

.tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 32px;
}
.tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	aspect-ratio: 1;
	max-height: 140px;
	width: 100%;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
	transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.tile svg {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: var(--pink);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke 0.15s;
}
.tile span {
	font-family: "Dosis", sans-serif;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 0.8rem;
}
.tile:hover {
	text-decoration: none;
	background: var(--pink);
	border-color: var(--pink);
	color: #000;
	transform: translateY(-2px);
}
.tile:hover svg {
	stroke: #000;
}

/* sections */

section {
	margin-top: 40px;
}
section h2 {
	font-size: 1.5rem;
	text-transform: uppercase;
	margin-bottom: 8px;
}
section p {
	margin: 0 0 12px;
}
.intro {
	margin-top: 0;
	color: var(--muted);
}
.intro p:last-child {
	margin-bottom: 0;
}
.muted {
	color: var(--muted);
}
.note {
	color: var(--muted);
	font-size: 0.9rem;
	font-style: italic;
	margin-top: 12px;
}

/* credits */

.credits {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	columns: 3 180px;
	column-gap: 24px;
}
.credits li {
	padding: 3px 0;
	break-inside: avoid;
}

/* licenses */

.license {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 10px;
	margin-top: 8px;
	overflow: hidden;
}
.license summary {
	cursor: pointer;
	list-style: none;
	padding: 12px 16px;
	font-weight: 500;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.license summary::-webkit-details-marker {
	display: none;
}
.license summary::after {
	content: "+";
	color: var(--pink);
	font-size: 1.3rem;
	line-height: 1;
}
.license[open] summary::after {
	content: "\2212";
}
.license summary:hover {
	background: var(--card-hover);
}
.license pre {
	margin: 0;
	padding: 16px;
	border-top: 1px solid var(--line);
	white-space: pre-wrap;
	word-break: break-word;
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.78rem;
	line-height: 1.5;
	color: var(--muted);
	max-height: 420px;
	overflow: auto;
}

/* footer: the main site's footer tagline (see site/about-footer.php) */

footer {
	margin-top: 24px;
	padding: 40px 16px 48px;
	border-top: 1px solid var(--line);
	text-align: center;
	color: var(--muted);
	font-size: 0.8rem;
}
.elf-link {
	display: block;
	width: 4em;
	margin: 0 auto 1em;
}
.elf-link img {
	width: 100%;
	display: block;
}
.hoverSpin {
	transition: transform 0.4s ease-in-out;
}
.hoverSpin:hover {
	transform: rotate(360deg);
}
footer .legal-notice {
	max-width: 600px;
	margin: 1.5em auto 0;
	opacity: 0.6;
	line-height: 1.4;
}

@media (max-width: 520px) {
	.tiles {
		grid-template-columns: repeat(2, 1fr);
	}
	.tile {
		aspect-ratio: auto;
		padding: 18px 0;
	}
}
