@import url(reset.css);

.roboto-mono-regular {
	font-family: "Roboto Mono", monospace;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
}

.pixel--heart-solid {
	display: inline-block;
	width: 24px;
	height: 24px;
	--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M23 6v5h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-2v-1h-1v-1H9v-1H8v-1H7v-1H6v-1H5v-1H4v-1H3v-1H2v-1H1V6h1V5h1V4h1V3h6v1h1v1h2V4h1V3h6v1h1v1h1v1z'/%3E%3C/svg%3E");
	background-color: currentColor;
	-webkit-mask-image: var(--svg);
	mask-image: var(--svg);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}

/* ── base ── */
html {
	font-family: "Roboto Mono", monospace;
	font-size: 16px;
	background-color: #ff0077;
}

body {
	font-family: "Roboto Mono", monospace;
}

/* ── flash overlay ── */
#flash-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #fff;
	opacity: 0;
	pointer-events: none;
	z-index: 9999;
	transition: opacity 0.05s;
}
#flash-overlay.flash {
	opacity: 0.9;
	transition: opacity 0s;
}

/* ── nav ── */
nav {
	display: flex;
	font-family: "Roboto Mono", monospace;
	font-size: 36px;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 2rem;
	background-color: #ff0077;
}

.home-link a {
	display: flex;
	align-items: center;
	justify-content: left;
	font-size: 16px;
	font-weight: 600;
	color: rgb(255, 255, 255);
	text-decoration: none;
	letter-spacing: 0.04em;
	transition: all 0.2s;
}

.home-link a:hover {
	backdrop-filter: blur(4px);
	text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h1 {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	font-size: 64px;
	font-weight: 400;
	color: rgb(255, 255, 255);
	margin-bottom: 20px;
	letter-spacing: 0.04em;
	transition: all 0.2s;
}

h1:hover {
	text-decoration: underline;
	text-decoration-color: whitesmoke;
}

.nav-links {
	color: rgb(255, 255, 255);
	font-weight: 300;
	display: flex;
	gap: 30px;
	list-style: none;
	justify-content: flex-end;
	text-decoration: none;
}

.nav-links a {
	display: flex;
	align-items: center;
	padding: 14px 28px;
	color: rgb(255, 255, 255);
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.04em;
	transition: all 0.2s;
}

.nav-links a:hover {
	text-decoration: underline;
	text-decoration-color: whitesmoke;
}

/* ── layout ── */
.content {
	color: white;
	display: flex;
	gap: 20px;
	padding: 1rem 2rem;
}

main {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0 2rem;
}

main p iframe {
	width: 100%;
	height: 500px;
}

/* ── aside ── */
aside {
	width: 25%;
	border-right: 2px solid rgb(255, 255, 255);
	font-family: "Roboto Mono", monospace;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 0 0.5rem;
}

aside h2,
.content aside h2 {
	font-size: 24px;
	color: rgb(255, 255, 255);
	font-weight: bold;
	letter-spacing: 0.04em;
}

aside h2:first-of-type {
	margin-top: 1.5em;
}

aside p,
.content aside p {
	font-size: 18px;
	color: rgb(255, 255, 255);
	font-weight: medium;
	letter-spacing: 0.04em;
}

aside ul li,
.content aside ul li {
	font-size: 18px;
	color: rgb(255, 255, 255);
	font-weight: medium;
	letter-spacing: 0.04em;
	transition: all 0.2s;
	text-decoration: none;
	margin-bottom: 1em;
	padding-left: 1em;
}

aside ul li a {
	color: rgb(255, 255, 255);
	text-decoration: none;
	transition: all 0.2s;
}

aside ul li:hover {
	text-decoration: underline;
	text-decoration-color: whitesmoke;
}

/* ── footer ── */
footer {
	color: white;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1rem 2rem;
	background-color: #ff0077;
}

/* ── lightbox — shared by work.html and play.html ── */
#lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.93);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	cursor: zoom-out;
}

#lightbox.open {
	display: flex;
}

#lightbox img,
#lightbox video {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 0 60px rgba(0, 0, 0, 0.7);
	cursor: default;
}

#lightbox-close {
	position: fixed;
	top: 20px;
	right: 28px;
	color: white;
	font-size: 28px;
	font-family: "Roboto Mono", monospace;
	background: none;
	border: none;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.15s;
	z-index: 10000;
	line-height: 1;
}

#lightbox-close:hover {
	opacity: 1;
}

/* prev / next arrows — used by play.html gallery */
.lightbox-arrow {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	color: white;
	font-size: 32px;
	font-family: "Roboto Mono", monospace;
	background: none;
	border: none;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.15s;
	z-index: 10000;
	padding: 10px;
	user-select: none;
}

.lightbox-arrow:hover {
	opacity: 1;
}
#lightbox-prev {
	left: 20px;
}
#lightbox-next {
	right: 20px;
}

/* ── camera (home.html) ── */
#camera-wrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
}

#p5-container canvas {
	display: block;
	max-width: 100%;
	border: 2px solid white;
}

#camera-controls {
	display: flex;
	gap: 10px;
	align-items: center;
}

.cam-btn {
	font-family: "Roboto Mono", monospace;
	font-size: 11px;
	color: white;
	background: transparent;
	border: 1px solid white;
	padding: 5px 14px;
	cursor: pointer;
	text-transform: lowercase;
	letter-spacing: 0.05em;
	transition:
		background 0.15s,
		color 0.15s;
}

.cam-btn:hover {
	background: white;
	color: #ff0077;
}

.cam-btn:disabled {
	opacity: 0.3;
	cursor: default;
	pointer-events: none;
}

#cam-status {
	font-family: "Roboto Mono", monospace;
	font-size: 10px;
	color: rgba(255, 255, 255, 0.6);
}

/* ── main inner: camera + polaroids side by side ── */
#main-inner {
	display: flex;
	align-items: flex-start;
	gap: 28px;
	flex-wrap: wrap;
}

/* ── draggable polaroids ── */
.polaroid-stack {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 4px;
	flex-shrink: 0;
}

.polaroid {
	background: white;
	padding: 10px 10px 36px 10px;
	box-shadow: 4px 5px 16px rgba(0, 0, 0, 0.35);
	cursor: grab;
	user-select: none;
	width: 150px;
	position: relative;
	transition: box-shadow 0.15s;
}

.polaroid:nth-child(1) {
	transform: rotate(-4deg);
}
.polaroid:nth-child(2) {
	transform: rotate(3deg);
}

.polaroid.dragging {
	cursor: grabbing;
	box-shadow: 8px 12px 32px rgba(0, 0, 0, 0.5);
	position: fixed;
	z-index: 999;
}

.polaroid img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

/* ── imprints page ── */
.imprints-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 2rem 0;
	flex-wrap: wrap;
	gap: 10px;
}

.imprints-title h2 {
	font-size: 24px;
	color: white;
	font-weight: bold;
	letter-spacing: 0.04em;
	margin: 0;
}

.imprints-title .count-label {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
	font-weight: 300;
}

.clear-btn {
	font-family: "Roboto Mono", monospace;
	font-size: 11px;
	color: white;
	background: transparent;
	border: 1px solid white;
	padding: 5px 14px;
	cursor: pointer;
	letter-spacing: 0.04em;
	transition:
		background 0.15s,
		color 0.15s;
}

.clear-btn:hover {
	background: white;
	color: #ff0077;
}

#imprints-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	padding: 1.5rem 2rem 4rem;
}

.imprint-card {
	background: white;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	animation: fadeUp 0.35s ease both;
	transition:
		transform 0.2s,
		box-shadow 0.2s;
}

.imprint-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.imprint-card img {
	width: 100%;
	height: auto;
	display: block;
	image-rendering: pixelated;
}

.imprint-meta {
	padding: 8px 10px;
	border-top: 1px solid rgba(255, 0, 119, 0.2);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 6px;
	background: white;
}

.imprint-meta .idx {
	font-family: "Roboto Mono", monospace;
	font-size: 10px;
	color: #ff0077;
	font-weight: bold;
}

.imprint-meta .ts {
	font-family: "Roboto Mono", monospace;
	font-size: 9px;
	color: #aaa;
	flex: 1;
	text-align: right;
}

.download-btn {
	background: none;
	border: none;
	color: #ccc;
	font-size: 13px;
	cursor: pointer;
	padding: 0 2px;
	text-decoration: none;
	transition: color 0.15s;
	line-height: 1;
}

.download-btn:hover {
	color: #ff0077;
}

.delete-btn {
	background: none;
	border: none;
	color: #ccc;
	font-size: 11px;
	cursor: pointer;
	padding: 0 2px;
	font-family: "Roboto Mono", monospace;
	transition: color 0.15s;
}

.delete-btn:hover {
	color: #ff0077;
}

#empty-state {
	padding: 60px 2rem;
	display: none;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

#empty-state p {
	font-size: 18px;
	color: white;
	margin: 0;
}

#empty-state a {
	font-family: "Roboto Mono", monospace;
	font-size: 14px;
	color: white;
	text-decoration: underline;
	text-underline-offset: 4px;
	transition: opacity 0.15s;
}

#empty-state a:hover {
	opacity: 0.7;
}

/* ── work / project cards ── */

.about-content {
	font-size: 16px;
	display: flex;
	align-items: flex-start;
}

.about-content img {
	transition: transform 0.5s ease-in-out;
}

.about-content img:hover {
	transform: scale(1.1);
}

.about-img-col {
	display: flex;
	flex-direction: column;
}

.about-text {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	color: white;
	font-size: 16px;
	line-height: 1.25;
}
.about-text h2 {
	font-size: 32px;
	font-weight: bold;
}
.about-text p {
	font-size: 18px;
}
.located {
	justify-content: center;
	align-items: center;
	font-size: 18px;
	color: rgba(255, 255, 255, 0.6);
	font-style: italic;
}

.project-card {
	background-color: rgb(255, 255, 255);
	padding: 2rem;
	display: flex;
	gap: 2rem;
	align-items: flex-start;
	margin-bottom: 20px;
	cursor: pointer;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.project-card:hover {
	transform: scale(1.02);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.card-tags {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.card-tag {
	border: 1.5px solid #ff0077;
	color: #ff0077;
	border-radius: 999px;
	padding: 4px 14px;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-family: "Roboto Mono", monospace;
}

.card-title {
	font-size: 48px;
	color: #ff0077;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.1;
}

.card-description {
	font-size: 16px;
	color: #ff0077;
	line-height: 1.7;
	font-family: "Roboto Mono", monospace;
}

.card-image {
	width: 300px;
	height: 250px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

video.card-image {
	display: block;
	background: #000;
}

img.card-image,
video.card-image {
	cursor: zoom-in;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

img.card-image:hover,
video.card-image:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.card-title a {
	color: inherit;
	text-decoration: none;
}

.card-title a:hover {
	text-decoration: underline;
	text-decoration-color: #ff0077;
}
/* ── play.html layout ── */
.play-page nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
}

.play-page footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 3;
}

/* ── play.html floating gallery ── */
#floating-gallery {
	min-height: 200vh;
	position: relative;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	overflow: visible;
}

.float-item {
	position: absolute;
	border: #ff0077 1px solid;
	overflow: visible;
	pointer-events: all;
	user-select: none;
	cursor: grab;
}

.float-item:active {
	cursor: grabbing;
}

.float-win-bar {
	height: 24px;
	background: #ff0077;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 7px;
	flex-shrink: 0;
	gap: 6px;
}

.float-win-title {
	color: white;
	font-family: "Roboto Mono", monospace;
	font-size: 9px;
	font-weight: 400;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
	min-width: 0;
}

.float-win-controls {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
	color: white;
	font-size: 11px;
	line-height: 1;
}

.float-win-x {
	cursor: pointer;
	opacity: 0.85;
	font-size: 13px;
	line-height: 1;
}

.float-win-x:hover {
	opacity: 1;
}

.float-item img,
.float-item video {
	display: block;
	width: 300px;
	height: auto;
	pointer-events: none;
}

/* ── background animation ── */
#ditherCanvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

#starfield {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
	opacity: 0.35;
}

/* nav, content, footer sit above both background canvases */
nav {
	position: relative;
	z-index: 2;
}

.content {
	position: relative;
	z-index: 2;
}

footer {
	position: relative;
	z-index: 2;
}
