/* Veluvo Studios */

:root {
	--frame: #16161a;
	--paper: #f3efe6;
	--ink: #16161a;
	--muted: #6b675f;
	--line: #d9d3c6;
	--mark: #f26b38;
	--frame-size: 22px;
	--mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html { background: var(--frame); }

body {
	margin: 0;
	padding: var(--frame-size);
	min-height: 100vh;
	font-family: var(--mono);
	font-size: 15px;
	line-height: 1.85;
	color: var(--ink);
	background: var(--frame);
	-webkit-font-smoothing: antialiased;
}

.page {
	background: var(--paper);
	min-height: calc(100vh - 2 * var(--frame-size));
	display: flex;
	flex-direction: column;
	/* a faint grid, like squared notebook paper */
	background-image:
		linear-gradient(rgba(22, 22, 26, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(22, 22, 26, 0.035) 1px, transparent 1px);
	background-size: 24px 24px;
}

a { color: inherit; }

/* ---- header ---- */

.top {
	position: sticky;
	top: var(--frame-size);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 40px;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.12em;
	font-size: 14px;
}

.brand img { height: 38px; width: auto; display: block; }

.nav { display: flex; gap: 32px; font-size: 13px; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ---- hero ---- */

.hero {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 18vh 40px 14vh;
	max-width: 1100px;
	margin: 0 auto;
	width: 100%;
}

.prompt { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.prompt b { color: var(--mark); font-weight: 700; }

.hero h1 {
	margin: 0;
	font-size: clamp(38px, 7.2vw, 92px);
	line-height: 1.02;
	letter-spacing: -0.02em;
	font-weight: 700;
	text-transform: uppercase;
}

.hero h1 .cursor {
	display: inline-block;
	width: 0.5em;
	height: 0.82em;
	margin-left: 0.08em;
	background: var(--mark);
	vertical-align: -0.04em;
	animation: blink 1.1s steps(1) infinite;
}

.typed { margin: 26px 0 0; font-size: 15px; min-height: 1.85em; }
.typed::after { content: "_"; color: var(--mark); animation: blink 1.1s steps(1) infinite; }

@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	.hero h1 .cursor, .typed::after { animation: none; }
}

/* ---- sections ---- */

.section {
	max-width: 1100px;
	margin: 0 auto;
	width: 100%;
	padding: 72px 40px;
}

.label {
	display: inline-block;
	margin: 0 0 36px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.label::before { content: "// "; color: var(--mark); }

.prose { max-width: 680px; }
.prose p { margin: 0 0 22px; }

.rule { border: 0; border-top: 1px dashed var(--line); margin: 0; }

/* ---- the three notes ---- */

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

.note { border-top: 3px solid var(--ink); padding-top: 16px; }
.note h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.note p { margin: 0; color: #3a3833; font-size: 14px; }
.note .num { color: var(--mark); font-weight: 700; }

/* ---- projects ---- */

.projects {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}

.card {
	display: block;
	text-decoration: none;
	background: var(--paper);
	border: 2px solid var(--ink);
	box-shadow: 6px 6px 0 var(--ink);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--mark); }

.card img {
	display: block;
	width: 100%;
	aspect-ratio: 344 / 192;
	object-fit: cover;
	image-rendering: pixelated;
	border-bottom: 2px solid var(--ink);
}

.card .body { padding: 18px 20px 20px; }
.card h3 { margin: 0 0 4px; font-size: 20px; text-transform: uppercase; letter-spacing: 0.02em; }
.card p { margin: 0 0 14px; font-size: 14px; color: #3a3833; }

.tag {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 2px 8px;
	border: 1px solid var(--ink);
	margin-right: 6px;
}
.tag.live { background: var(--mark); border-color: var(--mark); color: #fff; }

.card.empty {
	border-style: dashed;
	box-shadow: none;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	color: var(--muted);
	font-size: 14px;
	text-align: center;
	padding: 24px;
}
.card.empty:hover { transform: none; box-shadow: none; }

/* ---- project page ---- */

.crumb { font-size: 13px; color: var(--muted); margin: 0 0 28px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }

.project-head h1 {
	margin: 0 0 14px;
	font-size: clamp(36px, 6vw, 72px);
	line-height: 1.02;
	text-transform: uppercase;
	letter-spacing: -0.02em;
}
.project-head .lede { font-size: 17px; max-width: 720px; margin: 0; }

.keyart {
	display: block;
	width: 100%;
	margin: 44px 0 0;
	image-rendering: pixelated;
	border: 2px solid var(--ink);
}

.facts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border: 2px solid var(--ink);
	border-top: 0;
}
.facts div { padding: 14px 18px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0 12px 28px; border-bottom: 1px dashed var(--line); position: relative; font-size: 14px; }
.list li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 9px; height: 9px; background: var(--mark); }
.list li b { display: block; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.shots figure { margin: 0; }
.shots .wide { grid-column: 1 / -1; }
.shots img { display: block; width: 100%; border: 2px solid var(--ink); }
.shots figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }

.memo {
	border: 2px solid var(--ink);
	background: #fff;
	padding: 22px 26px;
	font-size: 14px;
	max-width: 680px;
	box-shadow: 6px 6px 0 var(--mark);
}
.memo .from { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.memo p { margin: 0; }

/* ---- footer ---- */

.foot {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 40px;
	border-top: 1px solid var(--line);
	font-size: 12px;
	color: var(--muted);
	margin-top: auto;
}
.foot .ok::before { content: "\25CF  "; color: #2bb673; }

/* ---- small screens ---- */

@media (max-width: 820px) {
	:root { --frame-size: 10px; }
	.top { padding: 16px 20px; }
	.nav { gap: 18px; }
	.hero, .section { padding-left: 20px; padding-right: 20px; }
	.hero { padding-top: 12vh; padding-bottom: 10vh; }
	.section { padding-top: 52px; padding-bottom: 52px; }
	.notes, .projects, .shots, .split { grid-template-columns: 1fr; }
	.facts { grid-template-columns: repeat(2, 1fr); }
	.facts div:nth-child(3) { border-left: 0; }
	.facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
	.foot { flex-direction: column; padding: 16px 20px; }
}
