/*
Theme Name: Kushal Atlas
Theme URI: https://meetkushal.wpcomstaging.com
Author: Kushal
Description: Paper-and-plate block theme for a GIS portfolio. Atlas sheet.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kushal-atlas
Tags: full-site-editing, block-themes, portfolio, one-column
*/

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap");

html {
	-webkit-font-smoothing: antialiased;
}

body {
	background-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

body::before {
	content: "";
	position: fixed;
	inset: -8%;
	z-index: 0;
	pointer-events: none;
	background-color: var(--wp--preset--color--paper);
	background-image: url("assets/paper.jpg");
	background-size: cover;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	opacity: 0.55;
	animation: atlas-drift 48s ease-in-out infinite alternate;
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		linear-gradient(var(--wp--preset--color--paper), var(--wp--preset--color--paper)),
		repeating-linear-gradient(
			0deg,
			transparent,
			transparent 47px,
			rgba(26, 25, 22, 0.035) 48px
		),
		repeating-linear-gradient(
			90deg,
			transparent,
			transparent 47px,
			rgba(26, 25, 22, 0.035) 48px
		);
	background-blend-mode: multiply, normal, normal;
	opacity: 0.35;
	animation: atlas-grid 64s linear infinite;
}

.wp-site-blocks,
.editor-styles-wrapper {
	position: relative;
	z-index: 1;
}

@keyframes atlas-drift {
	from { transform: scale(1.04) translate3d(-1.2%, -0.6%, 0); }
	to { transform: scale(1.12) translate3d(1.4%, 0.8%, 0); }
}

@keyframes atlas-grid {
	from { background-position: 0 0, 0 0, 0 0; }
	to { background-position: 0 0, 0 48px, 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
	body::before,
	body::after {
		animation: none;
	}
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

h1, h2, h3 {
	text-wrap: balance;
	letter-spacing: -0.03em;
}

.atlas-kicker {
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.atlas-plate {
	margin: 0;
	border: 1px solid var(--wp--preset--color--line);
}

.atlas-plate img {
	display: block;
	width: 100%;
	height: auto;
}

.atlas-plate figcaption {
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	padding: 0.7rem 0.9rem;
	border-top: 1px solid var(--wp--preset--color--line);
}

::selection {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}
