@import url("layout.css");
@font-face {
	font-family: "Montagu";
	font-style: normal;
	font-weight: 800;
	src: url(../assets/fonts/MontaguSlab_120pt-Light.ttf);
}
:root {
	--black: #000;
	--white: #ffffff;
	--primary-red: #ff692d;
	--primary-red-text: #ff2600c9;
	--primary-blue: #7bbbff;
	--primary-green: #79eab9;
	--primary-yellow: #ffee00;
	--light-blue: #b3e1ff;
	--light-red: #ffb4b6;
	--violet: #b47bff;
	--fs-xxl: 6rem;
	--fs-xl: 2rem;
	--fs-l: 1.3rem;
	--fs-regular: 1rem;
	--fs-s: 0.75rem;
	--space-xxl: 120px;
	--space-xl: 100px;
	--space-l: 80px;
	--space-m: 40px;
	--space-s: 32px;
	--space-xs: 16px;
}

/* Text selection */
::selection {
	background-color: var(--primary-yellow);
	color: var(--black);
}

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

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
	margin: 0;
}

/* Set core body defaults */
body {
	min-height: 100vh;
	scroll-behavior: smooth;
	text-rendering: optimizeSpeed;
	line-height: 1.2;
	font-family: Montagu;
	word-spacing: -0.05em;
	padding-top: 40px;
}
@media (min-width: 680px) {
	body {
		padding-top: 44px;
	}
}
@media (min-width: 1080px) {
	body {
		padding-top: 56px;
	}
}

/* A elements that don't have a class get default styles */
a:not([class]) {
	text-decoration-skip-ink: auto;
}
a {
	text-decoration: none;
	color: inherit;
}

/* Make images easier to work with */
img {
	max-width: 100%;
	display: block;
}

/* Natural flow and rhythm in articles by default */
article > * + * {
	margin-top: 1em;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
	font: inherit;
}

/* Ticker */
.ticker-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	padding-block: 0.75em;
	background-color: var(--primary-red);
	overflow: hidden;
	z-index: 1000;
	display: flex;
	align-items: center;
	transition: background-color 0.3s ease;
}

.ticker-track {
	display: flex;
	flex-direction: row;
	align-items: center;
	white-space: nowrap;
	animation: ticker-scroll 20s linear infinite;
}

@keyframes ticker-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

.ticker-item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.5em;
	padding-right: 1em;
	font-family: Montagu;
	font-size: var(--fs-regular);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
}

@media (min-width: 680px) {
	.ticker-item {
		font-size: var(--fs-l);
	}
}

@media (min-width: 1080px) {
	.ticker-item {
		font-size: var(--fs-xl);
	}
}

.ticker-item__label {
	color: var(--black);
}

.ticker-item__time {
	color: var(--white);
}

/* Bubbles */
.bubbles-container {
	position: fixed;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 0;
}

.bubble {
	position: absolute;
	bottom: -60px;
	border-radius: 50%;
	border: 1px solid var(--black);
	opacity: 0;
	animation: bubble-rise linear forwards;
}

@keyframes bubble-rise {
	0% {
		opacity: 0;
		transform: translateY(0) scale(1);
	}
	10% {
		opacity: 0.85;
	}
	80% {
		opacity: 0.5;
	}
	100% {
		opacity: 0;
		transform: translateY(-110vh) scale(1.3);
	}
}

/* Info Badge */
.info-badge {
	position: fixed;
	right: 50%;
	top: 50%;
	transform: translate(50%, -50%);
	width: 220px;
	background-color: var(--primary-yellow);
	border-radius: 1.5em;
	border: 2px solid var(--primary-red);
	padding: 0.5em 0.5em 0.5em;
	cursor: grab;
	z-index: 500;
	user-select: none;
	font-size: var(--fs-regular);
}
.info-badge.is-dragging {
	opacity: 0.85;
	cursor: grabbing;
}
.info-badge__close {
	position: absolute;
	top: -0.75em;
	right: -0.5em;
	width: 1.6em;
	height: 1.6em;
	border-radius: 50%;
	background-color: var(--black);
	border: none;
	color: var(--white);
	font-size: inherit;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.info-badge__date {
	color: var(--primary-red);
	text-align: center;
	margin-bottom: 0.4em;
}
.info-badge__text {
	text-align: center;
}
@media (min-width: 680px) {
	.info-badge {
		width: 280px;
		right: 20%;
		top: 20%;
		font-size: var(--fs-regular);
	}
}
@media (min-width: 1080px) {
	.info-badge {
		right: 30%;
		top: 30%;
		width: 360px;
		font-size: var(--fs-l);
		padding: 1em 1em 1.5em;
	}
}

/* Instagram Footer Link */
.instagram-link {
	display: inline-block;
	margin-top: 8px;
}
.instagram-link svg {
	height: clamp(48px, 8vw, 80px);
	width: auto;
	transition:
		stroke 0.2s ease,
		fill 0.2s ease;
}
.instagram-link:hover .ig-stroke {
	stroke: var(--primary-blue);
}
.instagram-link:hover .ig-fill {
	fill: var(--primary-blue);
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
