/* ============================================================
   mel.pet
   font: KG Miss Kindy Chunky (Kimberly Geswein)
   palette: dark + red
   ============================================================ */

@font-face {
	font-family: kindy;
	src: url(assets/fonts/KGMissKindyChunky.ttf);
	font-display: swap;
}

:root {
	--bg: #130a0d;
	--bg-dots: #ff3b5222;
	--panel: #1e1015;
	--panel-2: #2a151c;
	--text: #f3e4e7;
	--text-soft: #b3868f;
	--red: #ff3b52;
	--red-deep: #8c1024;
	--line: #d31f38;
	--line-2: #6d1120;
	--link: #ff6b7d;
	--link-hover: #ffb3bd;
	--shadow: #d31f3844;
}

* { box-sizing: border-box; }

body {
	font-family: kindy, "Comic Sans MS", "Chalkboard SE", sans-serif;
	background-color: var(--bg);
	background-image: radial-gradient(var(--bg-dots) 1.5px, transparent 1.5px);
	background-size: 18px 18px;
	color: var(--text);
	margin: 0;
	padding: 1em 0.75em 3em;
	line-height: 1.6;
	font-size: 17px;
}

/* ---------- layout ---------- */

#wrapper { max-width: 900px; margin: 0 auto; }

header { text-align: center; margin-bottom: 1em; }

header h1 {
	font-size: 3.4em;
	margin: 0.1em 0 0;
	letter-spacing: 0.02em;
	color: var(--red);
	text-shadow: 3px 3px 0 var(--red-deep);
	line-height: 1;
}

header .tagline {
	margin: 0.4em 0 0;
	color: var(--text-soft);
	font-size: 1.05em;
	font-style: italic;
}

nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5em;
	margin: 1.2em 0;
}

nav a {
	padding: 0.25em 0.9em;
	text-decoration: none;
	color: var(--text);
	background: var(--panel);
	border: 2px solid var(--line);
	border-radius: 10px;
	box-shadow: 2px 2px 0 var(--shadow);
	transition: transform 0.12s, background 0.15s;
}

nav a:hover { background: var(--line); color: #fff; transform: translateY(-2px); }
nav a[aria-current="page"] { background: var(--red); color: #1a0a0e; border-color: var(--red); }

.layout { display: flex; gap: 1em; align-items: flex-start; }
.col-main { flex: 1 1 auto; min-width: 0; }
.col-side { flex: 0 0 240px; }

@media (max-width: 820px) {
	.layout { flex-direction: column; }
	.col-side { flex: 1 1 auto; width: 100%; }
	header h1 { font-size: 2.6em; }
	body { font-size: 16px; }
}

/* ---------- boxes ---------- */

.box {
	background: var(--panel);
	border: 2px solid var(--line);
	border-radius: 14px;
	padding: 0.9em 1.1em;
	margin-bottom: 1em;
	box-shadow: 3px 3px 0 var(--shadow);
}

.box.alt { border-color: var(--line-2); box-shadow: 3px 3px 0 #6d112044; background: var(--panel-2); }

.box h2, .box h3 {
	margin: 0 0 0.5em;
	color: var(--red);
	border-bottom: 2px dotted var(--line-2);
	padding-bottom: 0.2em;
	font-weight: normal;
	font-size: 1.35em;
}

.box h3 { font-size: 1.15em; }
.box > :last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration: underline dotted; }
a:hover { color: var(--link-hover); text-decoration: underline; }

p { margin: 0 0 0.7em; }
ul { padding-left: 1.2em; margin: 0 0 0.7em; }
li { margin-bottom: 0.2em; }
hr { border: none; border-top: 2px dotted var(--line-2); margin: 1em 0; }
small { color: var(--text-soft); }

/* ---------- avatar / sidebar ---------- */

.avatar {
	display: block;
	width: 100%;
	max-width: 190px;
	margin: 0 auto 0.6em;
	border: 3px solid var(--line);
	border-radius: 14px;
}

.stat-row {
	display: flex;
	justify-content: space-between;
	gap: 0.5em;
	font-size: 0.9em;
}

.stat-row span:last-child { color: var(--text-soft); text-align: right; }

/* ---------- diary ---------- */

.entry { margin-bottom: 1.4em; }
.entry:last-child { margin-bottom: 0; }

.entry-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.6em;
	flex-wrap: wrap;
	border-bottom: 2px dotted var(--line-2);
	padding-bottom: 0.15em;
	margin-bottom: 0.4em;
}

.entry-head h3 { border: none; margin: 0; padding: 0; }
.entry-date { color: var(--text-soft); font-size: 0.85em; white-space: nowrap; }

.tag {
	display: inline-block;
	font-size: 0.78em;
	background: var(--panel-2);
	border: 1.5px solid var(--line-2);
	border-radius: 20px;
	padding: 0 0.6em;
	margin-right: 0.25em;
	color: var(--text-soft);
}

/* ---------- spotify widget ---------- */

.np { display: flex; gap: 0.6em; align-items: center; font-size: 0.9em; }

.np img {
	width: 52px;
	height: 52px;
	border-radius: 8px;
	border: 2px solid var(--line);
	flex: 0 0 auto;
	object-fit: cover;
}

.np-text { min-width: 0; line-height: 1.25; }
.np-title { display: block; color: var(--text); overflow-wrap: anywhere; }
.np-artist { display: block; color: var(--text-soft); font-size: 0.9em; overflow-wrap: anywhere; }

.np-status { color: var(--red); font-size: 0.8em; display: block; }

.np-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--red);
	margin-right: 0.3em;
	vertical-align: middle;
	animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.25; } }

/* ---------- about ---------- */

.moodboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 0.5em; }

.mood-chip {
	background: var(--panel-2);
	border: 2px solid var(--line-2);
	border-radius: 10px;
	padding: 0.5em 0.3em;
	text-align: center;
	font-size: 0.85em;
	transition: transform 0.15s;
}

.mood-chip:hover { transform: rotate(-3deg) scale(1.05); }

.vibe-icon {
	display: block;
	width: 30px;
	height: 30px;
	margin: 0.1em auto 0.3em;
	fill: none;
	stroke: var(--red);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- donate ---------- */

.wallets { list-style: none; padding: 0; margin: 0 0 0.7em; }

.wallet {
	display: flex;
	align-items: center;
	gap: 0.5em;
	flex-wrap: wrap;
	padding: 0.45em 0;
	border-bottom: 1px dotted var(--line-2);
}

.wallet:last-child { border-bottom: none; }

.w-label {
	flex: 0 0 3.6em;
	color: var(--red);
	text-transform: uppercase;
	font-size: 0.9em;
	line-height: 1.1;
}

.w-label small { display: block; font-size: 0.7em; color: var(--text-soft); }

.w-addr {
	flex: 1 1 12em;
	min-width: 0;
	font-family: "Courier New", monospace;
	font-size: 0.78em;
	color: var(--text-soft);
	background: var(--bg);
	border-radius: 6px;
	padding: 0.25em 0.5em;
	overflow-wrap: anywhere;
}

.copy {
	font-family: inherit;
	font-size: 0.85em;
	cursor: pointer;
	background: var(--panel);
	color: var(--text);
	border: 2px solid var(--line);
	border-radius: 8px;
	padding: 0.1em 0.7em;
	box-shadow: 2px 2px 0 var(--shadow);
	flex: 0 0 auto;
}

.copy:hover { background: var(--line); color: #fff; }
.copy:active { transform: translate(2px, 2px); box-shadow: none; }
.copy.done { background: var(--red); color: #1a0a0e; border-color: var(--red); }

.art-full {
	width: 100%;
	border: 3px solid var(--line);
	border-radius: 14px;
	display: block;
}

footer {
	text-align: center;
	margin-top: 1.5em;
	color: var(--text-soft);
	font-size: 0.9em;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------- music page ---------- */

.sp-hero { display: flex; gap: 0.9em; align-items: center; }

.sp-hero-art {
	width: 108px;
	height: 108px;
	flex: 0 0 auto;
	border-radius: 10px;
	border: 3px solid var(--line);
	object-fit: cover;
	background: var(--panel-2);
}

.sp-hero-info { min-width: 0; flex: 1 1 auto; }
.sp-hero-title { font-size: 1.25em; line-height: 1.2; display: block; overflow-wrap: anywhere; }
.sp-hero-artist { color: var(--text-soft); display: block; overflow-wrap: anywhere; }

.sp-bar {
	height: 7px;
	background: var(--bg);
	border-radius: 6px;
	overflow: hidden;
	margin-top: 0.6em;
	border: 1px solid var(--line-2);
}

.sp-bar-fill { height: 100%; background: var(--red); border-radius: 6px; }

.sp-times { display: flex; justify-content: space-between; font-size: 0.75em; color: var(--text-soft); }

.range-tabs { display: flex; flex-wrap: wrap; gap: 0.4em; margin-bottom: 0.9em; }

.range-tab {
	font-family: inherit;
	font-size: 0.88em;
	cursor: pointer;
	background: var(--panel);
	color: var(--text);
	border: 2px solid var(--line-2);
	border-radius: 10px;
	padding: 0.15em 0.8em;
}

.range-tab:hover { border-color: var(--line); }
.range-tab.active { background: var(--red); color: #1a0a0e; border-color: var(--red); }

.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 0.8em; }

.artist { text-align: center; text-decoration: none; color: var(--text); display: block; }

.artist img {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 50%;
	border: 2px solid var(--line);
	object-fit: cover;
	display: block;
	transition: transform 0.15s;
	background: var(--panel-2);
}

.artist:hover img { transform: scale(1.06); border-color: var(--red); }
.artist-name { display: block; font-size: 0.85em; line-height: 1.2; margin-top: 0.3em; overflow-wrap: anywhere; }
.artist-rank { color: var(--red); font-size: 0.78em; }

.track-list { list-style: none; padding: 0; margin: 0; }

.track {
	display: flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.4em 0;
	border-bottom: 1px dotted var(--line-2);
}

.track:last-child { border-bottom: none; }

.track-rank { flex: 0 0 1.4em; text-align: right; color: var(--red); font-size: 0.9em; }

.track img {
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	border-radius: 6px;
	border: 1px solid var(--line-2);
	object-fit: cover;
	background: var(--panel-2);
}

.track-info { min-width: 0; line-height: 1.25; }
.track-name { display: block; font-size: 0.95em; overflow-wrap: anywhere; text-decoration: none; color: var(--text); }
.track-name:hover { color: var(--link-hover); }
.track-artist { display: block; font-size: 0.82em; color: var(--text-soft); overflow-wrap: anywhere; }
.track-when { display: block; font-size: 0.72em; color: var(--text-soft); }

.genre-chips { display: flex; flex-wrap: wrap; gap: 0.4em; }

.sp-msg { color: var(--text-soft); font-style: italic; }

@media (max-width: 480px) {
	.sp-hero-art { width: 84px; height: 84px; }
}

::selection { background: var(--red); color: #1a0a0e; }
