@charset "UTF-8";
/* Projects page. White die-cut stickers on the same shifting color field as the home page. */

:root {
	--ink: #1f2733;
	--ink-soft: #4b5563;
	--paper: #fffdf7;
	--edge: #ffffff;
	--chip: #2d4059;
	--display: "Bungee", "Impact", sans-serif;
	--text: "Atkinson Hyperlegible", "Helvetica Neue", sans-serif;
	--card-radius: 30px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background-color: #6dc0d9;
	color: var(--ink);
	font-family: var(--text);
	font-size: 17px;
	line-height: 1.5;
	min-height: 100vh;
	padding: 48px 16px 64px;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Masthead */

.masthead {
	max-width: 1040px;
	margin: 0 auto 44px;
	text-align: center;
	color: #fff;
}

.masthead .home {
	display: inline-block;
	width: 120px;
	transition: transform .3s cubic-bezier(.2,.8,.2,1.2);
}
.masthead .home:hover { transform: rotate(-4deg) scale(1.04); }
.masthead .home img { width: 100%; height: auto; display: block; }

.masthead h1 {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(44px, 8vw, 84px);
	line-height: 1;
	letter-spacing: .01em;
	margin: 20px 0 10px;
	text-shadow: 0 6px 0 rgba(0,0,0,.14);
}

.masthead .lede {
	max-width: 520px;
	margin: 0 auto;
	font-size: 18px;
	color: rgba(255,255,255,.92);
	text-wrap: balance;
}

/* Sticker sheet */

.sheet {
	max-width: 1040px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: 36px 32px;
}

.card {
	position: relative;
	background: var(--paper);
	border: 6px solid var(--edge);
	border-radius: var(--card-radius);
	padding: 26px;
	display: grid;
	grid-template-columns: 136px 1fr;
	gap: 22px;
	align-items: start;
	box-shadow:
		0 2px 0 rgba(0,0,0,.06),
		0 22px 40px -18px rgba(0,0,0,.35);
	transform: rotate(var(--tilt, 0deg));
	transition: transform .35s cubic-bezier(.2,.8,.2,1.1), box-shadow .35s ease;
	opacity: 0;
	animation: peel .7s cubic-bezier(.2,.8,.2,1) forwards;
	animation-delay: var(--delay, 0s);
}

/* Faint dashed inner ring, a nod to the badge on the home page */
.card::before {
	content: "";
	position: absolute;
	inset: 9px;
	border: 2px dashed rgba(31,39,51,.1);
	border-radius: calc(var(--card-radius) - 14px);
	pointer-events: none;
}

.card:nth-child(odd)  { --tilt: -1.1deg; }
.card:nth-child(even) { --tilt: 1deg; }
.card:nth-child(1) { --delay: .05s; }
.card:nth-child(2) { --delay: .15s; }
.card:nth-child(3) { --delay: .25s; }
.card:nth-child(4) { --delay: .35s; }
.card:nth-child(5) { --delay: .45s; }
.card:nth-child(6) { --delay: .55s; }
.card:nth-child(7) { --delay: .65s; }
.card:nth-child(8) { --delay: .75s; }

.card:hover {
	transform: rotate(0deg) translateY(-6px);
	box-shadow:
		0 2px 0 rgba(0,0,0,.06),
		0 32px 52px -18px rgba(0,0,0,.4);
}

@keyframes peel {
	from { opacity: 0; transform: rotate(var(--tilt, 0deg)) translateY(28px) scale(.97); }
	to   { opacity: 1; transform: rotate(var(--tilt, 0deg)) translateY(0) scale(1); }
}

/* Thumbnail */

.thumb {
	display: block;
	width: 136px;
	aspect-ratio: 1;
	border-radius: 30px;
	overflow: hidden;
	background: #e9e4d6;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 10px 20px -12px rgba(0,0,0,.5);
	transition: transform .35s cubic-bezier(.2,.8,.2,1.2);
}
.thumb img, .thumb svg { display: block; width: 100%; height: 100%; object-fit: cover; }
a.thumb:hover { transform: scale(1.05) rotate(2deg); }

/* Copy */

.body { min-width: 0; }

.card h2 {
	font-family: var(--display);
	font-weight: 400;
	font-size: 26px;
	line-height: 1.05;
	margin: 2px 0 10px;
	letter-spacing: .005em;
}

.card p { margin: 0 0 12px; }

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px !important;
}
.chips span {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--chip);
	border: 2px solid var(--chip);
	border-radius: 999px;
	padding: 2px 9px;
	line-height: 1.4;
}

.bits {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	color: var(--ink-soft);
	font-size: 15px;
}
.bits li {
	position: relative;
	padding-left: 18px;
	margin-bottom: 4px;
}
.bits li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--chip);
	transform: rotate(45deg);
	opacity: .7;
}

.go {
	display: inline-block;
	margin-right: 18px;
	font-weight: 700;
	text-decoration: none;
	color: var(--chip);
	border-bottom: 3px solid rgba(45,64,89,.25);
	padding-bottom: 1px;
	transition: border-color .2s ease;
}
.go::after { content: " \2197"; }
.go:hover { border-bottom-color: var(--chip); }

/* Footer */

.colophon {
	max-width: 1040px;
	margin: 56px auto 0;
	text-align: center;
	color: rgba(255,255,255,.9);
}
.colophon p { margin: 0 0 6px; }
.colophon .morse {
	font-family: var(--display);
	font-size: 18px;
	letter-spacing: .12em;
	opacity: .85;
}
.colophon a { color: #fff; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Small screens */

@media (max-width: 540px) {
	body { padding-top: 32px; }
	.card {
		grid-template-columns: 1fr;
		padding: 22px;
	}
	.thumb { width: 112px; }
	.card:nth-child(odd)  { --tilt: -.6deg; }
	.card:nth-child(even) { --tilt: .6deg; }
	.card h2 { font-size: 24px; }
}

/* Motion preferences */

@media (prefers-reduced-motion: reduce) {
	.card { animation: none; opacity: 1; transform: none; }
	.card:hover, a.thumb:hover, .masthead .home:hover { transform: none; }
	body { background-color: #2d4059; }
}
