/*
Theme Name: Robot Girl Gang
Theme URI: https://robotgirlgang.com/
Description: An equal-footing editorial child theme for the Robot Girl Gang collective.
Author: Robot Girl Gang
Version: 0.4.2
Template: twentytwentyfive
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: robot-girl-gang
*/

:root {
	--rgg-card-shadow: 0 14px 40px rgb(22 18 28 / 8%);
}

body {
	text-wrap: pretty;
}

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

:where(a, button, input, textarea, select):focus-visible {
	outline: 3px solid var(--wp--preset--color--purple);
	outline-offset: 3px;
}

.rgg-site-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.rgg-brand .wp-block-site-logo img {
	max-height: 52px;
	width: auto;
}

.rgg-site-title {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	letter-spacing: -0.035em;
}

.rgg-site-header .wp-block-navigation-item__content {
	text-underline-offset: 0.25em;
}

.rgg-site-header .current-menu-item > .wp-block-navigation-item__content,
.rgg-site-header .wp-block-navigation-item__content:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--teal);
	text-decoration-thickness: 3px;
}

.rgg-page-intro {
	max-width: 760px;
}

.rgg-author-profile {
	align-items: center;
	display: grid;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	grid-template-columns: minmax(112px, 160px) minmax(0, 1fr);
	max-width: 860px;
}

.rgg-author-profile .avatar {
	border: 5px solid var(--wp--preset--color--surface);
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--wp--preset--color--line);
	display: block;
	height: auto;
	width: 100%;
}

.rgg-author-profile__avatar {
	grid-row: 1 / span 3;
}

.rgg-author-profile__eyebrow {
	color: var(--wp--preset--color--purple);
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 0.35rem;
	text-transform: uppercase;
}

.rgg-author-profile__name {
	font-size: var(--wp--preset--font-size--display);
	margin: 0;
	text-wrap: balance;
}

.rgg-author-profile__bio {
	font-size: var(--wp--preset--font-size--large);
	grid-column: 2;
	margin-top: 1rem;
}

.rgg-author-profile__bio > :last-child {
	margin-bottom: 0;
}

.rgg-author-profile__website {
	font-weight: 700;
	grid-column: 2;
	margin-top: 1rem;
}

.rgg-author-directory {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rgg-author-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-top: 5px solid var(--wp--preset--color--teal);
	display: flex;
	flex-direction: column;
	padding: var(--wp--preset--spacing--40);
}

.rgg-author-card:nth-child(3n + 2) {
	border-top-color: var(--wp--preset--color--purple);
}

.rgg-author-card:nth-child(3n) {
	border-top-color: var(--wp--preset--color--gold);
}

.rgg-author-card__avatar {
	align-self: flex-start;
}

.rgg-author-card__avatar img {
	border: 3px solid var(--wp--preset--color--surface);
	border-radius: 50%;
	box-shadow: 0 0 0 3px var(--wp--preset--color--teal);
	display: block;
}

.rgg-author-card:nth-child(3n + 2) .rgg-author-card__avatar img {
	box-shadow: 0 0 0 3px var(--wp--preset--color--purple);
}

.rgg-author-card:nth-child(3n) .rgg-author-card__avatar img {
	box-shadow: 0 0 0 3px var(--wp--preset--color--gold);
}

.rgg-author-card__name {
	font-size: var(--wp--preset--font-size--large);
	margin: 1rem 0 0;
}

.rgg-author-card__name a {
	text-decoration: none;
}

.rgg-author-card__name a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--teal);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.16em;
}

.rgg-author-card__bio {
	color: var(--wp--preset--color--muted);
	flex: 1;
}

.rgg-author-card__link {
	font-weight: 700;
	margin-top: auto;
}

.rgg-post-grid .wp-block-post-template {
	align-items: stretch;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rgg-post-grid .wp-block-post-template > li {
	display: flex;
	min-width: 0;
}

.rgg-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-top: 5px solid var(--wp--preset--color--teal);
	box-shadow: none;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	transition: box-shadow 160ms ease, transform 160ms ease;
	width: 100%;
}

.rgg-post-grid .wp-block-post:nth-child(3n + 2) .rgg-card {
	border-top-color: var(--wp--preset--color--purple);
}

.rgg-post-grid .wp-block-post:nth-child(3n) .rgg-card {
	border-top-color: var(--wp--preset--color--gold);
}

.rgg-card:hover {
	box-shadow: var(--rgg-card-shadow);
	transform: translateY(-3px);
}

.rgg-card .wp-block-post-featured-image {
	margin: 0;
}

.rgg-card .wp-block-post-featured-image img {
	aspect-ratio: 3 / 2;
	display: block;
	object-fit: cover;
	width: 100%;
}

.rgg-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.rgg-card-title a,
.rgg-single-title {
	text-wrap: balance;
}

.rgg-external-badge {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.025em;
	margin: 0 0 0.65rem;
}

.rgg-external-badge a {
	color: var(--wp--preset--color--purple);
	text-decoration: none;
}

.rgg-external-badge a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

.rgg-card-title a {
	text-decoration: none;
}

.rgg-card-title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--teal);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.16em;
}

.rgg-byline {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: var(--wp--preset--font-size--small);
}

.rgg-byline a {
	color: inherit;
}

.rgg-card .wp-block-post-excerpt {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.rgg-card .wp-block-post-excerpt__more-text {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--30);
}

.rgg-card .wp-block-post-excerpt__more-link {
	font-weight: 700;
	text-underline-offset: 0.2em;
}

.rgg-kicker {
	color: var(--wp--preset--color--purple);
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rgg-editorial-labels {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0 0 0.85rem;
}

.rgg-editorial-label {
	background: var(--wp--preset--color--surface);
	border: 2px solid var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ink);
	display: inline-block;
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.075em;
	line-height: 1;
	padding: 0.48rem 0.62rem;
	text-decoration: none;
	text-transform: uppercase;
}

.rgg-editorial-label:hover {
	box-shadow: 3px 3px 0 var(--wp--preset--color--ink);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.16em;
}

.rgg-editorial-label.is-shouting {
	background: var(--wp--preset--color--gold);
	border-style: solid;
	clip-path: polygon(0.35rem 0, 100% 0, calc(100% - 0.35rem) 100%, 0 100%);
	padding-left: 0.85rem;
	padding-right: 0.85rem;
}

.rgg-editorial-label.is-hot-take {
	background: var(--wp--preset--color--purple);
	border-color: var(--wp--preset--color--purple);
	border-left: 7px solid var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
}

.rgg-editorial-label.is-deep-dive {
	background: var(--wp--preset--color--teal);
	border-bottom-style: double;
	border-bottom-width: 6px;
	padding-bottom: 0.34rem;
}

.rgg-editorial-label.is-field-notes {
	border-color: var(--wp--preset--color--teal);
	border-style: dashed;
}

.rgg-editorial-label.is-system-failure {
	background: var(--wp--preset--color--ink);
	border: 4px double var(--wp--preset--color--gold);
	color: var(--wp--preset--color--gold);
	padding: 0.35rem 0.52rem;
}

.rgg-tag-archive-title {
	border-left: 9px solid var(--wp--preset--color--purple);
	padding-left: clamp(1rem, 2vw, 1.5rem);
}

.rgg-single-meta {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-bottom: var(--wp--preset--spacing--30);
}

.rgg-single-featured img {
	max-height: 720px;
	object-fit: cover;
	width: 100%;
}

.rgg-post-content > p,
.rgg-post-content > ul,
.rgg-post-content > ol {
	font-size: clamp(1.06rem, 1.5vw, 1.18rem);
	line-height: 1.75;
}

.rgg-site-footer {
	border-top: 1px solid var(--wp--preset--color--line);
}

.rgg-site-footer .wp-block-site-title a {
	text-decoration: none;
}

@media (max-width: 900px) {
	.rgg-post-grid .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rgg-author-directory {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.rgg-post-grid .wp-block-post-template {
		grid-template-columns: 1fr;
	}

	.rgg-author-directory {
		grid-template-columns: 1fr;
	}

	.rgg-site-header .wp-block-group.rgg-header-inner {
		align-items: flex-start;
	}

	.rgg-author-profile {
		align-items: start;
		grid-template-columns: 88px minmax(0, 1fr);
	}

	.rgg-author-profile__bio,
	.rgg-author-profile__website {
		grid-column: 1 / -1;
	}

	.rgg-author-profile__avatar {
		grid-row: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rgg-card {
		transition: none;
	}

	.rgg-card:hover {
		transform: none;
	}
}
