:root {
	--text: #29272b;
	--muted: #6d6f74;
	--border: #aaa7a5;
	--silver: #d8d8d5;
	--accent: #685b5f;
	--accent-dark: #3c3e44;
	--pink: #b2a9a6;
	--ghost: #c1ccbb;
	--bg: #171a21;
	--panel: #efedeb;
	--panel2: #d8d8d5;
	--ink: #171a21;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	padding: 10px;
	margin: 0;
	font-family: "MS PGothic", "Trebuchet MS", sans-serif;
	color: var(--text);

	background-color: #e7e6e3;
	background-image: url("images/blaire-gif-bg.gif");
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(
			90deg,
			transparent 0 49.8%,
			rgba(255, 255, 255, 0.025) 50%,
			transparent 50.2%
		),
		radial-gradient(
			ellipse at center,
			transparent 28%,
			rgba(6, 7, 9, 0.28) 100%
		);
	mix-blend-mode: screen;
}

.site-warning {
	max-width: 55rem;
	margin: 12px auto -2px auto;
	text-align: right;
	color: #e8e6e3;
	font-size: 0.72rem;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.container {
	max-width: 55rem;
	margin: 2vw auto 12px auto;
	border: 6px ridge var(--silver);
	outline: 2px solid #0d0e10;
	outline-offset: 4px;
	border-radius: 8px;
	display: flex;
	flex-wrap: wrap;
	padding: 6px;
	gap: 6px;
	background-color: rgba(27, 29, 34, 0.95);
	background-image:
		repeating-linear-gradient(
			135deg,
			rgba(255, 255, 255, 0.022) 0 1px,
			transparent 1px 7px
		),
		radial-gradient(
			circle at 50% 0%,
			rgba(193, 204, 187, 0.05),
			transparent 38%
		);
	box-shadow:
		0 0 0 1px #6d6f74,
		0 14px 38px rgba(0, 0, 0, 0.52);
}

.small {
	flex: 1 1 17%;
}

.large {
	flex: 1 1 78%;
	min-width: 0;
}

.full {
	width: 100%;
}

.half {
	flex: 1 1 47%;
	min-width: 0;
}

header {
	background-color: #222326;
	background-image:
		linear-gradient(
			to right,
			rgba(17, 18, 22, 0.94),
			rgba(64, 56, 61, 0.48),
			rgba(17, 18, 22, 0.9)
		),
		url("images/blaire-banner.svg");
	background-size: cover;
	background-position: center;
	width: 100%;
	height: 150px;
	border: 2px ridge var(--silver);
	border-radius: 4px;
	position: relative;
	overflow: hidden;
}

header::after {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		to bottom,
		transparent 0 3px,
		rgba(255, 255, 255, 0.025) 3px 4px
	);
	pointer-events: none;
}

header span {
	font-family: Georgia, serif;
	font-size: clamp(1.8rem, 5vw, 3.1rem);
	position: absolute;
	bottom: 10px;
	right: 14px;
	margin: 0;
	font-weight: bold;
	letter-spacing: 2px;
	text-align: right;
	text-shadow:
		2px 2px #121316,
		-1px 1px #121316,
		1px -1px var(--accent),
		-2px -2px #121316;
	color: #f7f5f1;
	z-index: 1;
}

.header-scribble {
	position: absolute;
	left: 14px;
	top: 13px;
	color: #d9dbdd;
	font-size: 0.75rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	z-index: 1;
}

.sidebar {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

nav,
.sidebar-box,
.tiny-note,
section {
	border: 2px ridge var(--border);
	border-radius: 4px;
	background: linear-gradient(
		150deg,
		rgba(250, 248, 244, 0.98),
		rgba(239, 237, 235, 0.96)
	);
}

nav {
	padding: 5px;
}

nav div {
	text-align: center;
	font-family: Georgia, serif;
	font-size: 1.15rem;
	margin: 4px 4px 9px 4px;
	padding-bottom: 4px;
	border-bottom: 1px dashed var(--accent);
	color: var(--accent-dark);
}

nav a {
	display: block;
	margin: 5px 2px;
	background: linear-gradient(to right, #d8d8d5, #f4f2ef);
	border: 1px solid #aaa7a5;
	border-radius: 2px;
	padding: 4px 7px;
	text-decoration: none;
	font-size: 0.86rem;
	text-transform: lowercase;
	color: var(--text);
}

nav a:hover,
nav a:focus {
	background: linear-gradient(to right, #4b4d53, #8c8482);
	color: white;
	font-style: italic;
}

.sidebar-box {
	padding: 5px;
	text-align: center;
	background: #171a21;
}

.blinkie {
	display: block;
	width: 100%;
	max-width: 150px;
	margin: 4px auto;
	image-rendering: pixelated;
	border: 1px solid #bdbcbc;
}

.tiny-note {
	padding: 8px;
	text-align: center;
	font-size: 0.75rem;
}

.counter {
	display: inline-block;
	margin: 4px 0;
	padding: 2px 5px;
	background: #171a21;
	color: #d9dbdd;
	font-family: monospace;
	letter-spacing: 2px;
	border: 2px inset #74787c;
}

main {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

section {
	padding: 8px;
	position: relative;
}

section::before {
	content: "✦";
	position: absolute;
	top: 4px;
	right: 7px;
	color: #958786;
	font-size: 0.75rem;
}

h1,
h2,
h3,
h4,
p {
	margin: 5px;
	line-height: 1.3;
}

h1 {
	font-family: Georgia, serif;
	font-size: 1.55rem;
	letter-spacing: 1px;
	font-weight: normal;
	text-align: center;
	border-bottom: 2px ridge var(--border);
	padding-bottom: 6px;
	color: var(--accent-dark);
}

h2 {
	font-family: Georgia, serif;
	font-size: 1.18rem;
	font-weight: normal;
	text-align: center;
	color: var(--accent-dark);
	border-bottom: 1px dashed #a1a1a3;
	padding-bottom: 4px;
}

h3 {
	font-size: 0.98rem;
	color: var(--accent);
}

.intro {
	background: linear-gradient(135deg, #faf9f7 0%, #e5e3e1 100%);
}

.social-intro {
	padding: 12px;
}

.social-intro::before {
	content: "✧";
	color: #aaa6ae;
}

.social-profile {
	display: grid;
	grid-template-columns: minmax(155px, 210px) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.social-avatar-column {
	min-width: 0;
}

.social-avatar {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: center top;
	border: 1px solid #aaa8ad;
	border-radius: 7px;
	background: #d9d8d7;
	box-shadow: none;
	transform: none;
}

.username-plate {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 7px;
	padding: 5px 8px;
	border: 1px solid #aaa8ad;
	border-radius: 999px;
	background: linear-gradient(to bottom, #f8f8f7, #d8d8d9);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
	color: #55545a;
	font-family: "Trebuchet MS", sans-serif;
	font-size: 0.82rem;
	letter-spacing: 0.5px;
}

.info-dot {
	display: inline-grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border: 1px solid #959399;
	border-radius: 50%;
	background: #efefee;
	font-family: Georgia, serif;
	font-style: italic;
	font-size: 0.76rem;
}

.presence {
	margin: 6px 0 0;
	text-align: center;
	font-size: 0.7rem;
	color: #77757b;
	letter-spacing: 0.4px;
}

.presence span {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 4px;
	border-radius: 50%;
	background: #b8c1b1;
	box-shadow: 0 0 0 1px #8d9489;
}

.social-profile-copy {
	min-width: 0;
}

.social-heading {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 7px;
	border-bottom: 2px solid #b8b6bd;
}

.social-heading h1 {
	margin: 0;
	padding: 0;
	border: 0;
	text-align: left;
	font-family: "Trebuchet MS", sans-serif;
	font-size: 1.75;
	font-weight: normal;
	letter-spacing: 0.5px;
	color: #4d4b52;
}

.handle {
	margin: 2px 0 0;
	color: #8a878e;
	font-size: 0.76rem;
	letter-spacing: 0.5px;
}

.status-chip {
	flex: 0 0 auto;
	padding: 4px 8px;
	border: 1px solid #b3b0b6;
	border-radius: 999px;
	background: linear-gradient(to bottom, #fafafa, #dddde0);
	color: #6a676e;
	font-size: 0.68rem;
	text-transform: lowercase;
}

.social-profile-copy .tagline {
	margin: 10px 0 6px;
	padding: 0;
	text-align: left;
	font-family: Georgia, serif;
	font-style: italic;
	font-size: 1rem;
	color: #68656c;
}

.profile-blurb {
	margin: 0 0 9px;
	color: #747178;
	font-size: 0.82rem;
	line-height: 1.45;
}

.social-facts {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #d1cfd2;
}

.social-facts li {
	position: relative;
	padding: 5px 6px 5px 18px;
	border-bottom: 1px solid #d1cfd2;
	font-size: 0.81rem;
	color: #4f4d53;
}

.social-facts li::before {
	content: "○";
	position: absolute;
	left: 2px;
	top: 4px;
	color: #a29fa6;
}

.social-facts span {
	display: inline-block;
	min-width: 78px;
	margin-right: 5px;
	color: #77747b;
	font-size: 0.72rem;
	text-transform: lowercase;
}

.profile-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 11px;
}

.profile-actions a {
	display: grid;
	justify-items: center;
	gap: 3px;
	min-width: 52px;
	color: #5d5a61;
	text-decoration: none;
	font-size: 0.68rem;
}

.profile-actions a > span {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid #aaa8ae;
	border-radius: 50%;
	background:
		linear-gradient(
			145deg,
			rgba(255, 255, 255, 0.9),
			rgba(210, 210, 214, 0.8)
		);
	box-shadow: inset 0 1px 0 #fff;
	font-family: Georgia, serif;
	font-size: 1rem;
}

.profile-actions a:hover,
.profile-actions a:focus {
	font-style: normal;
	color: #2f2d33;
}

.profile-actions a:hover > span,
.profile-actions a:focus > span {
	background: linear-gradient(145deg, #ecebed, #bebcc2);
}

.profile-actions small {
	font-size: 0.64rem;
}

.status-card {
	background: #e3e1df;
	border-left: 5px solid var(--accent);
	padding: 5px;
	font-size: 0.88rem;
}

.split-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
}

.split-list > div {
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid #bdbcbc;
	padding: 4px;
}

.split-list ul,
.mini-playlist {
	margin: 5px 0 5px 20px;
	padding: 0;
	font-size: 0.86rem;
}

.quote-box {
	background: linear-gradient(to right, #202126, #4a464b, #202126);
	color: #f7f5f1;
	border-color: #bdbcbc;
	text-align: center;
	font-family: Georgia, serif;
	font-style: italic;
	font-size: 1.06rem;
	letter-spacing: 0.5px;
}

.quote-box::before {
	color: #c3c4c7;
}

.music-player {
	display: grid;
	grid-template-columns: 66px 1fr;
	gap: 8px;
	align-items: center;
	padding: 7px;
	background: #171a21;
	color: #eeedea;
	border: 2px inset #74787c;
}

.album-art {
	width: 66px;
	height: 66px;
	display: grid;
	place-items: center;
	font-family: Georgia, serif;
	font-size: 2rem;
	background: radial-gradient(
		circle,
		#685b5f 0 7%,
		#292b31 8% 25%,
		#b5b7b9 26% 29%,
		#101216 30% 100%
	);
	border: 1px solid #74787c;
}

.track-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 0.78rem;
}

.track-info strong {
	color: #d9dbdd;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.progress {
	height: 7px;
	background: #36383e;
	border: 1px inset #6d6f74;
}

.progress span {
	display: block;
	width: 63%;
	height: 100%;
	background: linear-gradient(to right, #685b5f, #b5b7b9);
}

.relationship-list {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.relationship-list div {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 5px;
	padding: 5px;
	background: #e7e5e2;
	border: 1px solid #bdbcbc;
	font-size: 0.82rem;
}

.relationship-list strong {
	color: var(--accent-dark);
}

.parker-row span {
	filter: blur(1.4px);
	transition: filter 0.2s ease;
}

.parker-row:hover span {
	filter: none;
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
}

.archive-grid a {
	text-decoration: none;
	text-align: center;
	padding: 9px 5px;
	color: #f7f5f1;
	background: linear-gradient(145deg, #1c1e23, #49454a);
	border: 2px ridge #aaa7a5;
	font-family: Georgia, serif;
	font-size: 0.9rem;
}

.archive-grid a:hover,
.archive-grid a:focus {
	background: linear-gradient(145deg, #49454a, #74787c);
	font-style: italic;
}

.archive-grid small {
	font-family: "MS PGothic", sans-serif;
	font-size: 0.68rem;
	color: #d1d2d5;
}

.note-paper {
	background-color: #f7f5f1;
	background-image: repeating-linear-gradient(
		to bottom,
		transparent 0 21px,
		#d8d8d5 21px 22px
	);
	border: 1px solid #bdbcbc;
	padding: 8px 10px 9px 28px;
	min-height: 155px;
	font-family: "Courier New", monospace;
	font-size: 0.83rem;
	position: relative;
}

.note-paper::before {
	content: "";
	position: absolute;
	left: 19px;
	top: 0;
	bottom: 0;
	width: 1px;
	background: #958786;
}

.note-paper h3 {
	font-family: "Courier New", monospace;
	margin-left: 0;
}

.inventory {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
	font-size: 0.87rem;
}

.inventory span {
	padding: 6px;
	background: linear-gradient(to right, #e5e3e0, #f7f5f1);
	border: 1px dotted #9c9592;
}

.secret-box {
	background: #111318;
	color: #ececed;
	border-color: #74787c;
}

.secret-box summary {
	cursor: pointer;
	text-align: center;
	font-family: monospace;
	letter-spacing: 3px;
	color: #d9dbdd;
	padding: 5px;
}

.secret-box p {
	text-align: center;
	font-family: Georgia, serif;
	font-style: italic;
	padding: 10px;
}

footer {
	text-align: center;
	margin: 12px 0 5vw;
	font-size: 0.74rem;
	color: #c3c4c7;
}

footer a {
	color: #d9dbdd;
	text-decoration: none;
}

img {
	max-width: 100%;
}

pre {
	overflow-x: auto;
}

@media (max-width: 700px) {
	body {
		padding: 6px;
	}

	.container {
		margin-top: 10px;
	}

	.small,
	.large,
	.half {
		flex: 1 1 100%;
	}

	.sidebar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}

	.sidebar nav {
		grid-row: span 2;
	}

	.social-profile {
		grid-template-columns: 1fr;
	}

	.social-avatar-column {
		max-width: 230px;
		margin: 0 auto;
	}

	.social-heading {
		align-items: center;
	}

	.archive-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 430px) {
	header {
		height: 135px;
	}

	header span {
		font-size: 1.7rem;
	}

	.sidebar {
		display: flex;
	}

	.split-list,
	.archive-grid {
		grid-template-columns: 1fr;
	}

	.social-heading {
		align-items: flex-start;
	}

	.status-chip {
		display: none;
	}

	.profile-actions {
		justify-content: center;
	}
}

/* -------------------------------------------------
   PERMANENT LIGHT MODE OVERRIDES
   These rules intentionally come last so they win.
-------------------------------------------------- */

html {
	color-scheme: light;
	background: #e7e6e3;
}

body {
	color: #29272b;
	background-color: #e7e6e3;
	background-image: url("images/blaire-gif-bg.gif");
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

body::before {
	background:
		linear-gradient(
			90deg,
			transparent 0 49.8%,
			rgba(255, 255, 255, 0.32) 50%,
			transparent 50.2%
		),
		radial-gradient(
			ellipse at center,
			transparent 45%,
			rgba(90, 88, 94, 0.08) 100%
		);
	mix-blend-mode: normal;
}

.site-warning {
	color: #66636a;
}

.container {
	background-color: rgba(245, 244, 241, 0.97);
	background-image:
		repeating-linear-gradient(
			135deg,
			rgba(70, 68, 74, 0.02) 0 1px,
			transparent 1px 8px
		),
		radial-gradient(
			circle at 50% 0%,
			rgba(193, 204, 187, 0.22),
			transparent 42%
		);
	outline-color: #b8b5b4;
	box-shadow:
		0 0 0 1px #d2cfcd,
		0 12px 30px rgba(55, 52, 58, 0.16);
}

header {
	background-color: #d8d8d5;
	background-image:
		linear-gradient(
			to right,
			rgba(249, 248, 245, 0.88),
			rgba(215, 214, 212, 0.40),
			rgba(249, 248, 245, 0.82)
		),
		url("images/blaire-banner.svg");
}

header::after {
	background: repeating-linear-gradient(
		to bottom,
		transparent 0 3px,
		rgba(70, 68, 74, 0.035) 3px 4px
	);
}

header span {
	color: #4d4b52;
	text-shadow:
		1px 1px #ffffff,
		-1px 1px #ffffff,
		1px -1px #d4d1d0,
		-1px -1px #d4d1d0;
}

.header-scribble {
	color: #656269;
}

.sidebar-box {
	background: #ecebe8;
}

.counter {
	background: #f8f7f4;
	color: #4d4b52;
	border-color: #aaa7a5;
}

.quote-box {
	background: linear-gradient(to right, #deddda, #f8f7f4, #deddda);
	color: #4d4b52;
	border-color: #aaa7a5;
}

.quote-box::before {
	color: #8b888f;
}

.music-player {
	background: #ecebe8;
	color: #343238;
	border-color: #aaa7a5;
}

.album-art {
	background: radial-gradient(
		circle,
		#f8f7f4 0 7%,
		#c9c8c6 8% 25%,
		#8c898f 26% 29%,
		#ecebe8 30% 100%
	);
	border-color: #aaa7a5;
	color: #4d4b52;
}

.track-info strong {
	color: #4d4b52;
}

.progress {
	background: #d5d3d1;
	border-color: #aaa7a5;
}

.archive-grid a {
	color: #4d4b52;
	background: linear-gradient(145deg, #f8f7f4, #d9d7d5);
	border-color: #aaa7a5;
}

.archive-grid a:hover,
.archive-grid a:focus {
	background: linear-gradient(145deg, #d9d7d5, #bbb8bc);
	color: #29272b;
}

.archive-grid small {
	color: #69666d;
}

.secret-box {
	background: #e7e5e2;
	color: #343238;
	border-color: #aaa7a5;
}

.secret-box summary {
	color: #4d4b52;
}

footer {
	color: #66636a;
}

footer a {
	color: #4d4b52;
}