@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

@font-face {
	font-family: 'Brown';
	src: url('../fonts/brown-regular.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Rusch';
	src: url('../fonts/rusch-gotico-antiqua.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

body {
	background-color: #FFF;
	color: #000;
	font-family: 'Brown', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	margin: 0;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color .3s, color .3s;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a {
	color: #f00;
	text-decoration: none;
	transition: color .3s;
}

a:hover {
	color: #c00;
}

a:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	border-radius: 2px;
}

body.dark-mode {
	background-color: #000;
}

html.dark-mode-init body {
	background-color: #000;
}

html.dark-mode-init body p,
body.dark-mode p {
	color: #FFF;
}

h1 {
	font-family: 'Rusch', 'Times New Roman', Georgia, serif;
	color: #f00;
	font-size: clamp(1.2rem, 3vw, 2.3rem);
	margin: 80px 5vw 30px 8vw;
	font-weight: 400;
	cursor: pointer;
}

main {
	flex: 1;
}

p {
	font-weight: 500;
	line-height: 1.2;
	margin: 60px 5vw 0 8vw;
	font-size: clamp(1.2rem, 3vw, 2.3rem);
	max-width: 80%;
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

footer {
	padding: 60px 5vw 40px 8vw;
	padding-bottom: calc(40px + env(safe-area-inset-bottom));
	margin-top: 120px;
}

footer p {
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.4;
	margin: 0;
	color: #666;
}

body.dark-mode footer p {
	color: #999;
}

@media (min-width: 1440px) {
	p, h1 {
		font-size: 2.4rem;
	}
	
	h1 {
		margin-top: 80px;
	}
	
	p {
		max-width: 1400px;
	}
}

@media (max-width: 768px) {
	p, h1 {
		margin-left: 7vw;
		margin-right: 4vw;
		font-size: clamp(1.1rem, 3.4vw, 2.1rem);
	}
	
	p {
		max-width: 90%;
		margin-top: 60px;
	}
	
	h1 {
		margin-top: 64px;
	}
	
	footer {
		padding: 60px 4vw 40px 7vw;
		padding-bottom: calc(40px + env(safe-area-inset-bottom));
		margin-top: 114px;
	}
	
	footer p {
		font-size: 0.72rem;
	}
}

@media (max-width: 480px) {
	p, h1 {
		margin: 60px 3vw 0 6vw;
		font-size: clamp(1rem, 3.6vw, 1.8rem);
	}
	
	p {
		max-width: 95%;
	}
	
	h1 {
		margin-top: 48px;
	}
	
	footer {
		padding: 60px 3vw 40px 6vw;
		padding-bottom: calc(40px + env(safe-area-inset-bottom));
		margin-top: 108px;
	}
	
	footer p {
		font-size: 0.69rem;
	}
}
