/*
Theme Name: Malignancy Link Hub
Theme URI: https://malignancy.com/
Author: Malignancy
Description: A minimal, editable link-hub theme for the official Malignancy website.
Version: 1.2.0
Requires at least: 6.7
Requires PHP: 8.0
Text Domain: malignancy-link-hub
*/

:root {
	--background: #050505;
	--surface: #0d0d0d;
	--surface-hover: #f5f5f5;
	--text: #f5f5f5;
	--text-dark: #080808;
	--muted: #aaa;
	--border: #4b4b4b;
	--content-width: 44rem;
	color-scheme: dark;
	font-family:
		Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
		"Segoe UI", sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background: var(--background);
	scroll-behavior: smooth;
}

body {
	min-width: 20rem;
	min-height: 100vh;
	min-height: 100svh;
	margin: 0;
	background:
		radial-gradient(circle at 50% -20%, #202020 0, transparent 34rem),
		var(--background);
	color: var(--text);
	font-size: 1rem;
	line-height: 1.5;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

a:focus-visible {
	outline: 0.2rem solid var(--text);
	outline-offset: 0.25rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.site-shell {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
}

.site-main {
	flex: 1 0 auto;
}

.link-hub,
.content-page {
	width: min(calc(100% - 2rem), var(--content-width));
	margin: 0 auto;
	padding: clamp(2rem, 7vw, 5rem) 0 3rem;
}

.brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: clamp(2.25rem, 6vw, 3.75rem);
	text-align: center;
}

.brand__logo {
	width: min(100%, 42rem);
	margin: 0 auto;
	filter: drop-shadow(0 0.75rem 1.75rem rgb(0 0 0 / 70%));
}

.brand__description {
	max-width: 39rem;
	margin: clamp(1.25rem, 4vw, 2rem) auto 0;
	color: #d4d4d4;
	font-size: clamp(1rem, 2.8vw, 1.125rem);
	line-height: 1.65;
}

.link-section + .link-section {
	margin-top: 2.75rem;
}

.link-section__title {
	margin: 0 0 0.8rem;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.link-list {
	display: grid;
	gap: 0.75rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.link-card {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1rem;
	align-items: center;
	min-height: 3.75rem;
	padding: 0.95rem 1.15rem;
	border: 1px solid var(--border);
	border-radius: 0.18rem;
	background: var(--surface);
	box-shadow: 0 0.45rem 1.25rem rgb(0 0 0 / 28%);
	color: var(--text);
	font-size: 0.96rem;
	font-weight: 750;
	letter-spacing: 0.035em;
	text-decoration: none;
	text-transform: uppercase;
	transition:
		background-color 150ms ease,
		border-color 150ms ease,
		color 150ms ease,
		transform 150ms ease;
}

.link-card__arrow {
	font-size: 1.15rem;
	line-height: 1;
	transition: transform 150ms ease;
}

.link-card:hover {
	border-color: var(--surface-hover);
	background: var(--surface-hover);
	color: var(--text-dark);
	transform: translateY(-2px);
}

.link-card:hover .link-card__arrow {
	transform: translate(0.15rem, -0.15rem);
}

.site-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.25rem;
	justify-content: center;
	align-items: center;
	width: min(calc(100% - 2rem), var(--content-width));
	padding: 1.5rem 0 2.25rem;
	margin: 0 auto;
	border-top: 1px solid #242424;
	color: #777;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: #999;
	text-decoration: underline;
	text-decoration-color: #555;
	text-underline-offset: 0.2em;
}

.site-footer a:hover {
	color: var(--text);
}

.content-page {
	max-width: 50rem;
}

.content-page h1 {
	font-size: clamp(2rem, 8vw, 4rem);
	line-height: 1;
	text-transform: uppercase;
}

.content-page a {
	text-underline-offset: 0.2em;
}

@media (max-width: 34rem) {
	.link-hub {
		width: min(calc(100% - 1.25rem), var(--content-width));
		padding-top: 1.5rem;
	}

	.brand__description {
		max-width: 29rem;
	}

	.link-card {
		min-height: 3.5rem;
		padding: 0.85rem 1rem;
		font-size: 0.9rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.link-card,
	.link-card__arrow {
		transition: none;
	}
}
