/* 
CSS written by: Kayleigh van der Ham

Most selectors you’ll need are here. Feel free to add as many as you need.
*/
html {
	--bg: #20072f;
	--surface: #270946;
	--card: #1d0930;
	--text: #f9fafb;
	--accent: #38bdf8;
	--accent2: #bca8f7;
	--radius: 14px;
	--speed: 0.25s;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: system-ui, sans-serif;
	line-height: 1.6;
	background: radial-gradient(circle at 20% 20%, #301e3b, #1b0341);
	color: var(--text);
	max-width: 1200px;
	margin-inline: auto;
	padding: 1.5rem;
}

time {
	background: rgba(178, 133, 242, 0.234);
	padding: .2rem .5rem;
	border-radius: 6px;
}
a {
	color: var(--accent);
	text-decoration: none;
	position: relative;
}
a:hover {
	color: white;
}
a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}
a[href^="mailto:"] {
	color: #f472b6;
}

header {
	text-align: center;
	padding: 4rem 1rem;
	margin-bottom: 3rem;
	border-radius: var(--radius);
	background:
	linear-gradient(135deg, rgba(139, 56, 248, 0.15), rgba(235, 139, 250, 0.15));
}

h1 {
	font-size: clamp(2.8rem, 6vw, 4.5rem);
	letter-spacing: .08em;
	margin-bottom: 1rem;
}

h1 span {
	display: inline-block;
	transition: transform var(--speed), color var(--speed);
}

h1 span:hover {
	transform: translateY(-6px) rotate(-2deg);
	color: var(--accent);
}

h2 {
	margin-top: 3rem;
	font-size: 1.9rem;
	border-left: 4px solid var(--accent);
	padding-left: .6rem;
}

h3 {
	margin-top: 2rem;
	font-size: 1.4rem;
	color: var(--accent);
}

h4 {
	font-size: 1.1rem;
	color: var(--accent2);
}

main {
	display: grid;
	gap: 2.5rem;
}

section {
	background: rgba(255, 255, 255, 0.04);
	padding: 1.8rem;
	border-radius: var(--radius);
	backdrop-filter: blur(4px);
}

ul {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
	gap: 1.2rem;
}
li {
	background: var(--card);
	border-radius: var(--radius);
	padding: .8rem;
	text-align: center;
	transition: transform var(--speed), box-shadow var(--speed);
	position: relative;
	overflow: hidden;
}
li:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
li a {
	display: block;
	font-size: .85rem;
	margin-bottom: .6rem;
	font-weight: 500;
    color: var(--accent2);
}
li img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: 10px;
	transition: transform .4s;
}
li:hover img {
	transform: scale(1.1);
}

aside {
	margin-top: 3rem;
	background: var(--surface);
	padding: 1.6rem;
	border-radius: var(--radius);
}
aside:nth-of-type(2) {
	background: linear-gradient(
	135deg,
	rgba(56,189,248,.08),
	rgba(167,139,250,.08)
	);
}

details {
	margin: 1rem 0;
	border-radius: 10px;
	background: rgba(255,255,255,0.05);
	padding: .6rem .8rem;
	transition: background var(--speed);
}
details[open] {
	background: rgba(56,189,248,.1);
}
summary {
	cursor: pointer;
	font-weight: 600;
}
summary:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

footer {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255,255,255,.1);
}

footer section {
	margin-top: 1rem;
}
footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: .8rem 1.4rem;
}

[hidden] {
	display: none;
	opacity: 0.5;
	margin-top: 2rem;
	font-size: .8rem;
}
label {
	margin-right: .5rem;
}
input[type="checkbox"] {
	accent-color: var(--accent);
	margin-right: 1rem;
}
input[type="range"] {
	width: 150px;
	accent-color: var(--accent2);
}
