/*
Theme Name: Turnt Up Trax 96
Description: One-page theme for turntuptrax.com, styled after a 1996 fan site. The front page's content (the link list) and featured image (the photo) are edited in WordPress.
Version: 1.1.1
Requires at least: 6.0
License: GPL-2.0-or-later
Text Domain: turntuptrax96
*/

@font-face {
	font-family: "Mali";
	src: url("assets/mali-600i.woff2") format("woff2");
	font-style: italic;
	font-weight: 600;
	font-display: swap;
}

:root {
	--link: #8fe0b0;
	--link-visited: #c0a0f0;
	--text: #e8e8e8;
	--title: #b8ecff;
}

html { background: #050506 url("assets/bg.png"); }
body {
	margin: 0;
	padding: 8px 16px 32px;
	color: var(--text);
	font: 16px/1.4 "Times New Roman", Times, serif;
}
a { color: var(--link); }
a:visited { color: var(--link-visited); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }

.page { max-width: 830px; }

.top { display: grid; grid-template-columns: 290px 1fr; column-gap: 8px; }
.photo { grid-row: span 2; }
.photo img, .photo .placeholder { display: block; width: 290px; height: 420px; object-fit: cover; }
/* cut-out portraits (transparent PNG) sit on a mottled studio backdrop like the reference photo */
.photo img {
	object-fit: contain; object-position: center bottom;
	background: radial-gradient(ellipse at 30% 20%, #4a4470 0, transparent 55%),
		radial-gradient(ellipse at 75% 60%, #2c2a4c 0, transparent 60%),
		linear-gradient(160deg, #3a3560, #14121f);
}
.photo .placeholder {
	box-sizing: border-box;
	display: flex; align-items: center; justify-content: center; text-align: center;
	background: linear-gradient(160deg, #2a2440, #0b0a14);
	border: 2px solid #3a3555;
	color: #8d87b0; font-size: 14px; padding: 20px;
}

/* the beveled title box */
.masthead {
	position: relative;
	margin: 0 0 14px;
	width: fit-content;
	max-width: 100%;
	box-sizing: border-box;
	padding: 12px 18px 16px;
	background: radial-gradient(circle at 48% 32%, rgba(255,255,255,.9) 0, rgba(180,220,255,.35) 3%, transparent 12%),
		linear-gradient(135deg, #10121c, #050608 60%, #12141f);
	border-right: 8px solid #6b74a8;
	border-bottom: 8px solid #3f4670;
	box-shadow: inset 0 0 0 1px #23263a;
}
.masthead h1 {
	margin: 0;
	font: italic 600 42px/1.06 "Mali", "Comic Sans MS", cursive;
	color: var(--title);
	text-shadow: 0 0 6px #4fb6ff, 0 0 14px #2a7fd0, 1px 1px 0 #0a3050;
	letter-spacing: .5px;
}
.masthead h1 span { display: block; white-space: nowrap; }
.masthead h1 .indent { padding-left: 1.2em; }
.masthead .byline { margin: 6px 0 0; font-size: 13px; color: #9ab; }

/* link lists from the page content get the glass-orb bullets */
.links ul { list-style: none; margin: 0; padding: 0; }
.links li {
	margin: 0 0 18px;
	padding-left: 18px;
	background: url("assets/orb.png") no-repeat 0 .3em / 14px 14px;
}
.links li:last-child { margin-bottom: 0; }
.links p { margin: 0 0 14px; }
.links .wp-block-group, .links .wp-block-list { margin: 0; }
.links-more { margin-top: 18px; }
.links-more li { margin-left: 2px; }

hr.rainbow {
	height: 4px; border: 0; margin: 64px 0 20px 85px; max-width: 640px;
	background: linear-gradient(90deg, #7fe08a, #2f8f6a 40%, #2f4fa8 75%, #7f9fe8);
}

/* footer row */
.foot { display: grid; grid-template-columns: 350px 1fr; gap: 8px; align-items: start; margin-left: 40px; }
.foot .revised { margin: 0 0 18px 85px; font-size: 15px; }
.foot .made { margin: 0 0 0 125px; }
.foot .home { display: flex; align-items: center; gap: 4px; margin: 14px 0 0 85px; font-size: 15px; }
.foot .home a:not(.arrow) { color: var(--text); text-decoration: none; white-space: nowrap; }
.foot .home .arrow {
	width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #e8eef2, #8f9aa3); border: 1px solid #555; color: #333; font-size: 13px; text-decoration: none;
}
.badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badges svg { display: block; }
.counter { text-align: center; margin: 26px 0 0 90px; font-weight: bold; font-size: 15px; }
.counter .hits { text-decoration: underline; color: var(--link); }
.viewed { text-align: center; margin: 10px 0 0 90px; font-size: 12px; color: #889; }

/* everything on the link list points here until the real pages exist; hidden until clicked */
.construction { display: none; }
.construction:target {
	display: block;
	margin: 56px 0 0 85px; max-width: 640px; padding: 14px 18px; text-align: center;
	border: 6px solid transparent;
	border-image: repeating-linear-gradient(45deg, #f5c400 0 12px, #111 12px 24px) 6;
	background: #0b0b0b;
}
.construction h2 { margin: 0 0 6px; font: bold 22px "Arial Black", Arial, sans-serif; color: #f5c400; letter-spacing: 1px; }
.construction p { margin: 0; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }

@media (max-width: 680px) {
	.top { grid-template-columns: 1fr; }
	.photo { grid-row: auto; margin-bottom: 14px; }
	.photo img, .photo .placeholder { width: 100%; max-width: 290px; height: auto; aspect-ratio: 29 / 42; }
	.masthead h1 { font-size: 36px; }
	.masthead h1 span { white-space: normal; }
	hr.rainbow, .construction:target, .foot .revised, .foot .made, .foot .home, .counter, .viewed { margin-left: 0; }
	.construction h2 { font-size: 17px; }
	.foot { grid-template-columns: 1fr; margin-left: 0; }
}
