/* Zruyc.am website: a playful poster look. Pale blue-grey paper, near-black ink, chunky display type,
   hand-drawn gadget mascots and ribbons that scroll across the title. The web chat uses styles.css. */

:root {
	color-scheme: light;
	--paper: #d6e0e3;
	--paper-deep: #c9d5d9;
	--ink: #1c1c1c;
	--ink-soft: #3b4246;
	--muted: #5d676c;
	--card: #ffffff;
	--blue: #16428c;
	--line: rgba(28, 28, 28, 0.14);
	--mascot-shadow: drop-shadow(16px 18px 0 rgba(28, 54, 70, 0.13));
	--font-poster: "Bowlby One SC", "Noto Sans Armenian", Impact, sans-serif;
	--font-fun: "Lilita One", "Noto Sans Armenian", "Arial Rounded MT Bold", sans-serif;
	--font-body: "Inter", "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	overflow-x: hidden;
	background: var(--paper);
	color: var(--ink);
	font: 400 15px/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 3px;
}

h1,
h2,
h3 {
	margin: 0;
	font-weight: 400;
	line-height: 1.05;
}

.wrap {
	width: min(100% - 40px, 980px);
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--ink);
	color: #fff;
}

.skip-link:focus {
	top: 16px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 18px;
	border: 2px solid var(--ink);
	background: var(--card);
	color: var(--ink);
	font: 400 14px/1 var(--font-fun);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
	transform: translate(-2px, -2px);
	box-shadow: 4px 4px 0 var(--ink);
}

.btn:active {
	transform: none;
	box-shadow: none;
}

.btn-dark {
	background: var(--ink);
	color: #fff;
}

.btn-block {
	width: 100%;
	min-height: 48px;
	font-size: 16px;
}

.btn-quiet {
	border-style: dashed;
	color: var(--muted);
	cursor: default;
}

.btn-quiet:hover {
	transform: none;
	box-shadow: none;
}

/* ---------- Top bar ---------- */

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: min(100% - 40px, 1180px);
	margin: 0 auto;
	padding: 22px 0;
}

.made-by {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	font-size: 12px;
	line-height: 1.25;
	text-decoration: none;
}

.made-by img {
	width: 34px;
	height: auto;
}

.made-by strong {
	display: block;
	font: 400 15px/1.1 var(--font-fun);
	letter-spacing: 0.01em;
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	overflow: hidden;
	padding: 10px 0 0;
}

.hero-meta {
	display: flex;
	justify-content: space-between;
	width: min(100% - 40px, 760px);
	margin: 0 auto 4px;
	font-size: 12px;
	font-weight: 500;
}

.title-wrap {
	position: relative;
}

.title {
	position: relative;
	z-index: 1;
	text-align: center;
	font-family: var(--font-poster);
	font-size: clamp(64px, 15.5vw, 188px);
	line-height: 0.86;
	letter-spacing: -0.025em;
	text-transform: uppercase;
}

.title span {
	display: block;
}

/* Two ribbons cross the title, scrolling in opposite directions. */
.ribbons {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.ribbon {
	position: absolute;
	left: -5%;
	width: 110%;
	overflow: hidden;
	padding: 7px 0;
	border-block: 2px solid var(--ink);
	background: var(--card);
	box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.5);
}

.ribbon:first-child {
	top: 40%;
	transform: rotate(-3.2deg);
}

.ribbon:last-child {
	top: 50%;
	transform: rotate(2.4deg);
}

.ribbon-track {
	display: flex;
	width: max-content;
	animation: ribbon 38s linear infinite;
}

.ribbon:last-child .ribbon-track {
	animation-direction: reverse;
}

.ribbon-track span {
	padding: 0 14px;
	font: 400 13px/1 var(--font-fun);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}

.ribbon-track span::after {
	content: "•";
	margin-left: 28px;
}

@keyframes ribbon {
	to {
		transform: translateX(-50%);
	}
}

.cast {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: clamp(8px, 3vw, 40px);
	width: min(100% - 24px, 640px);
	margin: clamp(-60px, -5vw, -20px) auto 0;
	z-index: 3;
}

.cast img {
	width: auto;
	height: clamp(130px, 24vw, 270px);
	filter: var(--mascot-shadow);
	animation: bob 5s ease-in-out infinite;
}

.cast .left {
	rotate: -8deg;
	animation-delay: -1.2s;
}

.cast .center {
	height: clamp(150px, 28vw, 320px);
	margin-bottom: -10px;
}

.cast .right {
	height: clamp(120px, 21vw, 240px);
	rotate: 6deg;
	animation-delay: -2.6s;
}

@keyframes bob {
	50% {
		translate: 0 -10px;
	}
}

/* ---------- Intro ---------- */

.intro {
	width: min(100% - 40px, 600px);
	margin: 56px auto 0;
	text-align: center;
}

.intro h2 {
	font: 400 clamp(26px, 4vw, 36px)/1.1 var(--font-fun);
}

.intro h2 + h2 {
	margin-top: 10px;
}

.intro h2 sup {
	font-size: 0.45em;
	vertical-align: 0.9em;
}

.footnote {
	display: block;
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 11px;
}

.intro p {
	margin: 18px 0 0;
	color: var(--ink-soft);
	font-size: 14.5px;
}

.crew {
	margin-top: 28px;
}

.crew > small {
	display: block;
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 500;
}

.crew ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.crew li {
	display: flex;
	align-items: center;
	gap: 8px;
	font: 400 15px/1 var(--font-fun);
}

.crew li + li::before {
	content: "+";
	margin-right: 4px;
	color: var(--muted);
	font-family: var(--font-body);
}

.crew .face {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	overflow: hidden;
	border: 2px solid var(--ink);
	border-radius: 50%;
	background: var(--card);
}

.crew .face img {
	width: 80%;
	height: 80%;
	object-fit: contain;
}

.crew .face.you {
	border-color: transparent;
	background: #aab6bb;
}

.rule {
	width: min(100% - 40px, 760px);
	height: 1px;
	margin: 56px auto;
	border: 0;
	background: var(--line);
}

/* ---------- What's included ---------- */

.included {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	width: min(100% - 40px, 980px);
	margin: 0 auto;
}

.included img {
	justify-self: end;
	width: min(100%, 240px);
	margin-right: 10px;
	filter: var(--mascot-shadow);
	rotate: -6deg;
}

.included-list {
	text-align: center;
}

.included-list > small {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 500;
}

.included-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.included-list li {
	font: 400 clamp(26px, 3.6vw, 36px)/1.32 var(--font-fun);
}

.included-list li small {
	display: block;
	margin: -4px 0 6px;
	color: var(--muted);
	font: 500 13px/1.4 var(--font-body);
}

/* ---------- House rules ---------- */

.rules {
	display: grid;
	grid-template-columns: 1fr 150px;
	align-items: center;
	gap: 30px;
	width: min(100% - 40px, 720px);
	margin: 0 auto;
}

.rules h2 {
	font: 400 clamp(28px, 4vw, 38px)/1.05 var(--font-fun);
}

.rules p {
	margin: 10px 0 14px;
	color: var(--ink-soft);
	font-size: 14.5px;
}

.rules ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: rule;
}

.rules li {
	position: relative;
	padding: 9px 0 9px 44px;
	border-top: 1px solid var(--line);
	font-size: 14.5px;
	counter-increment: rule;
}

.rules li::before {
	content: counter(rule);
	position: absolute;
	left: 0;
	top: 7px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 2px solid var(--ink);
	border-radius: 50%;
	background: var(--card);
	font: 400 14px/1 var(--font-fun);
}

.rules img {
	width: 100%;
	filter: var(--mascot-shadow);
	rotate: 5deg;
}

/* ---------- Call to action card ---------- */

.cta {
	position: relative;
	width: min(100% - 40px, 430px);
	margin: 0 auto;
}

.card {
	position: relative;
	z-index: 1;
	padding: 26px 28px 30px;
	border: 2px solid var(--ink);
	background: var(--card);
	text-align: center;
	box-shadow: 0 18px 40px -22px rgba(28, 54, 70, 0.55);
}

.card > small {
	display: block;
	font-size: 11px;
	color: var(--muted);
}

.card h2 {
	margin: 8px 0 10px;
	font-family: var(--font-poster);
	font-size: clamp(28px, 5vw, 36px);
	line-height: 0.95;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.card p {
	margin: 0 auto 18px;
	max-width: 300px;
	color: var(--ink-soft);
	font-size: 13px;
	line-height: 1.5;
}

.card .btn + .btn {
	margin-top: 10px;
}

.cta .peek {
	position: absolute;
	right: -76px;
	bottom: 26px;
	z-index: 2;
	width: 112px;
	filter: var(--mascot-shadow);
	rotate: 10deg;
}

/* ---------- Footer ---------- */

.footer {
	position: relative;
	overflow: hidden;
	margin-top: 70px;
	padding-top: 10px;
	text-align: center;
}

.footer-text {
	margin: 0 auto;
	max-width: 320px;
	font-size: 12px;
	line-height: 1.5;
}

.footer-text a {
	font-weight: 600;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 18px;
	margin: 14px 0 0;
	font-size: 12px;
}

.footer-links a {
	color: var(--ink-soft);
	text-underline-offset: 3px;
}

.footer-cast {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: clamp(0px, 1.5vw, 20px);
	height: clamp(110px, 17vw, 190px);
	margin-top: 46px;
	overflow: hidden;
}

.footer-cast img {
	width: clamp(80px, 13vw, 160px);
	filter: var(--mascot-shadow);
}

.footer-cast img:nth-child(odd) {
	margin-top: 24px;
}

/* ---------- Legal pages ---------- */

.legal {
	width: min(100% - 40px, 760px);
	margin: 10px auto 0;
	padding: 40px clamp(22px, 5vw, 56px) 48px;
	border: 2px solid var(--ink);
	background: var(--card);
	box-shadow: 0 18px 40px -22px rgba(28, 54, 70, 0.55);
}

.legal h1 {
	font-family: var(--font-poster);
	font-size: clamp(34px, 6vw, 52px);
	text-transform: uppercase;
	letter-spacing: -0.015em;
}

.legal .updated {
	margin: 6px 0 26px;
	color: var(--muted);
	font-size: 13px;
}

.legal h2 {
	margin: 30px 0 8px;
	font: 400 24px/1.15 var(--font-fun);
}

.legal p,
.legal li {
	color: var(--ink-soft);
	font-size: 15px;
}

.legal ul {
	padding-left: 20px;
}

.legal li {
	margin: 6px 0;
}

.legal a {
	color: var(--blue);
}

/* ---------- Not found ---------- */

.not-found {
	display: grid;
	place-items: center;
	min-height: 78vh;
	padding: 20px;
	text-align: center;
}

.not-found img {
	width: 200px;
	margin: 0 auto 10px;
	filter: var(--mascot-shadow);
	rotate: -8deg;
}

.not-found h1 {
	font-family: var(--font-poster);
	font-size: clamp(38px, 8vw, 64px);
	line-height: 0.95;
	text-transform: uppercase;
}

.not-found p {
	margin: 12px 0 22px;
	color: var(--ink-soft);
}

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
	.cta .peek {
		right: -14px;
		bottom: auto;
		top: -118px;
		width: 80px;
		z-index: 2;
	}
}

@media (max-width: 720px) {
	.hero-meta {
		font-size: 11px;
	}

	.title {
		font-size: 21vw;
	}

	.cast {
		margin-top: 6px;
	}

	.ribbon {
		padding: 4px 0;
	}

	.ribbon:first-child {
		top: 33%;
	}

	.ribbon:last-child {
		top: 56%;
	}

	.ribbon-track span {
		font-size: 10px;
	}

	.included {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 10px;
	}

	.included img {
		justify-self: center;
		width: 200px;
		margin: 0;
	}

	.rules {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.rules img {
		order: -1;
		width: 110px;
		justify-self: center;
	}

	.made-by span {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
