:root {
	--ink: #f5f5f5;
	--paper: #0a0a0a;
	--paper-soft: #151515;
	--line: #2d2d2d;
	--overlay: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0) 100%);
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	min-height: 100%;
}

body {
	background:
		radial-gradient(circle at 20% 10%, #202020 0%, rgba(32, 32, 32, 0) 46%),
		radial-gradient(circle at 90% 80%, #1b1b1b 0%, rgba(27, 27, 27, 0) 40%),
		var(--paper);
	color: var(--ink);
	font-family: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
	letter-spacing: 0.01em;
}

a {
	color: inherit;
	text-decoration: none;
}

.site-header {
	padding: 2.2rem 5vw 1.2rem;
	border-bottom: 1px solid var(--line);
}

.logo {
	display: inline-block;
	font-family: "Bodoni Moda", Georgia, serif;
	font-size: clamp(2.2rem, 5vw, 4.6rem);
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1;
}

.tagline {
	margin: 0.5rem 0 0;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.78rem;
	color: #c7c7c7;
}

.home-main {
	padding: 1.2rem 5vw 3rem;
}

.masonry-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 1.25rem;
	row-gap: 2.25rem;
	align-items: start;
}

.image-card {
	display: block;
	width: 100%;
	margin: 0;
	transform: translateY(12px);
	opacity: 0;
	animation: reveal-card 560ms ease forwards;
}

.image-card:nth-child(2) {
	animation-delay: 90ms;
}

.image-card:nth-child(3) {
	animation-delay: 170ms;
}

.image-card:nth-child(4) {
	animation-delay: 250ms;
}

.image-card:nth-child(5) {
	animation-delay: 330ms;
}

.image-frame {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--paper-soft);
	aspect-ratio: 4 / 5;
}

.image-frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 420ms ease;
}

.image-frame::after {
	content: none;
	position: absolute;
	inset: 0;
	background: var(--overlay);
	pointer-events: none;
}

.card-title {
	position: absolute;
	left: 0.7rem;
	bottom: 0.75rem;
	display: inline-block;
	margin: 0;
	padding: 0.2rem 0.35rem;
	width: fit-content;
	max-width: calc(100% - 1.4rem);
	z-index: 1;
	font-family: "Bodoni Moda", Georgia, serif;
	font-size: clamp(0.95rem, 1.6vw, 1.15rem);
	line-height: 1.22;
	text-wrap: balance;
	background: rgba(0, 0, 0, 0.46);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.image-card:hover .image-frame img,
.image-card:focus-visible .image-frame img {
	transform: scale(1.03);
}

.story-page {
	max-width: 980px;
	margin: 0 auto;
	padding: 2.2rem 5vw 3rem;
}

.story-back {
	display: inline-block;
	margin-bottom: 1.2rem;
	font-size: 0.88rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #d3d3d3;
}

.story-title {
	margin: 0;
	font-family: "Bodoni Moda", Georgia, serif;
	font-size: clamp(1.85rem, 4.4vw, 3.2rem);
	line-height: 1.08;
}

.story-deck {
	margin: 0.85rem 0 1.5rem;
	color: #cfcfcf;
	font-size: clamp(1rem, 2vw, 1.25rem);
}

.story-hero {
	margin: 0 0 1.5rem;
	border: 1px solid var(--line);
	background: var(--paper-soft);
}

.story-hero img {
	display: block;
	width: 100%;
	max-height: 75vh;
	object-fit: cover;
}

.story-body {
	max-width: 70ch;
	font-size: 1.03rem;
	line-height: 1.72;
	color: #f0f0f0;
}

.story-body p {
	margin: 0 0 1rem;
}

.story-body figure {
	margin: 1.35rem 0 1.5rem;
	border: 1px solid var(--line);
	background: var(--paper-soft);
}

.story-body figure img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 72vh;
	object-fit: cover;
}

@keyframes reveal-card {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 980px) {
	.masonry-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 2rem;
	}
}

@media (max-width: 700px) {
	.site-header {
		padding-top: 1.6rem;
	}

	.masonry-grid {
		grid-template-columns: 1fr;
		row-gap: 1.4rem;
	}

	.image-frame {
		aspect-ratio: 4 / 5;
	}

	.home-main {
		padding-top: 0.9rem;
	}

	.card-title {
		font-size: 1rem;
	}
}
