/*
Theme Name: Ollie Urban Fabric
Theme URI: https://ryanjrichter.com
Description: A child theme of Ollie for ryanjrichter.com. Urban fabric / GIS look: paper ground with a survey grid, street-grid map graphics, transit-line accents, and Space Grotesk, Inter and IBM Plex Mono type.
Author: Ryan Richter
Template: ollie
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ollie-urban-fabric
*/

/* Survey-grid ground */
body {
	background-image:
		linear-gradient(var(--wp--preset--color--border-light) 1px, transparent 1px),
		linear-gradient(90deg, var(--wp--preset--color--border-light) 1px, transparent 1px);
	background-size: 48px 48px;
}

/* Mono "map label" text */
.is-style-map-label,
.uf-label {
	font-family: var(--wp--preset--font-family--monospace);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
}

/* Legend cards: colored "line" across the top */
.uf-layer {
	border-top: 6px solid var(--wp--preset--color--primary);
	border-radius: 0 0 8px 8px;
}
.uf-layer.uf-transit { border-top-color: #3FA3AA; }
.uf-layer.uf-community { border-top-color: #9DC48A; }
.uf-dark .uf-label { color: #B9C2BF; }

/* Map panel */
.uf-map {
	background: #FBFAF6;
	border: 1px solid #D6D1C4;
	border-radius: 10px;
	overflow: hidden;
}
.uf-map img { display: block; width: 100%; height: auto; }
.uf-map figcaption {
	margin: 0;
	padding: 12px 16px;
	border-top: 1px solid #D6D1C4;
	font-family: var(--wp--preset--font-family--monospace);
	font-size: 12px;
	color: var(--wp--preset--color--secondary);
	text-align: left;
}

/* Post rows */
.uf-posts .wp-block-post {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 24px;
	padding: 22px 0;
	border-bottom: 1px solid #D6D1C4;
	margin: 0;
}
.uf-posts .wp-block-post-date {
	width: 130px;
	font-family: var(--wp--preset--font-family--monospace);
	font-size: 13px;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
}
.uf-posts .wp-block-post-title { flex: 1 1 360px; margin: 0; }
.uf-posts .wp-block-post-title a { text-decoration: none; color: inherit; }
.uf-posts .wp-block-post-terms a {
	font-family: var(--wp--preset--font-family--monospace);
	font-size: 12px;
	text-decoration: none;
	color: var(--wp--preset--color--primary-alt-accent);
	background: var(--wp--preset--color--primary-alt);
	padding: 4px 10px;
	border-radius: 4px;
}

/* Header active link underline */
.uf-header .wp-block-navigation-item.current-menu-item > a,
.uf-header .wp-block-navigation-item a[aria-current="page"] {
	box-shadow: inset 0 -3px 0 var(--wp--preset--color--primary);
}

/* Outline buttons: ink outline on paper */
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
	color: var(--wp--preset--color--main);
	background: transparent;
	border: 2px solid currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color):hover {
	color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--main);
	border-color: var(--wp--preset--color--main);
}
