/*
Theme Name: LGBTQ Press
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lgbtq-press
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts margin-block-start: var(--wp--style--block-gap) between the
   template's top-level sections (header part, main, footer part) — a gap that
   exists even when no markup asks for it. Zero it so sections butt edge-to-edge
   and own their vertical rhythm via padding; this does not affect block gaps
   inside nested layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Sticky footer: on short pages (e.g. Join Us), pin the footer to the bottom
   of the viewport instead of leaving blank background below it. */
html, body {
	min-height: 100%;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	width: 100%;
}

.wp-site-blocks main {
	flex-grow: 1;
}

/* Signature detail: a small rainbow-emoji cursor site-wide. Falls back to the
   default pointer automatically if the SVG cursor is unsupported. */
body {
	cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIj48dGV4dCB4PSIxNiIgeT0iMjMiIGZvbnQtc2l6ZT0iMjQiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGRvbWluYW50LWJhc2VsaW5lPSJjZW50cmFsIj7wn4yIPC90ZXh0Pjwvc3ZnPg==") 16 16, auto;
	position: relative;
	background-image:
		radial-gradient(rgba(43, 35, 32, 0.05) 1px, transparent 1.4px),
		radial-gradient(rgba(43, 35, 32, 0.035) 1px, transparent 1.4px);
	background-size: 7px 7px, 11px 11px;
	background-position: 0 0, 4px 5px;
}

/* === zine motifs: reusable tape + stamp details === */
.tape-corner {
	position: relative;
}

.tape-corner::before {
	content: "";
	position: absolute;
	top: -14px;
	left: 28px;
	width: 84px;
	height: 30px;
	background: var(--wp--preset--color--amber);
	opacity: 0.85;
	transform: rotate(-4deg);
	box-shadow: 0 2px 4px rgba(43, 35, 32, 0.2);
	z-index: 2;
}

.stamp-badge {
	display: inline-block;
	font-family: var(--wp--preset--font-family--body);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 800;
	color: var(--wp--preset--color--ink);
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: 5px;
	padding: 0.35rem 0.9rem;
	transform: rotate(-2deg);
	background: var(--wp--preset--color--paper);
}

a,
button,
.wp-block-button__link,
.wp-element-button {
	cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIj48dGV4dCB4PSIxNiIgeT0iMjMiIGZvbnQtc2l6ZT0iMjQiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGRvbWluYW50LWJhc2VsaW5lPSJjZW50cmFsIj7wn4yIPC90ZXh0Pjwvc3ZnPg==") 16 16, pointer;
}

/* === header === */
.site-stripe {
	height: 14px;
	background: repeating-linear-gradient(
		45deg,
		var(--wp--preset--color--rose) 0 24px,
		var(--wp--preset--color--amber) 24px 48px,
		var(--wp--preset--color--sage) 48px 72px,
		var(--wp--preset--color--teal) 72px 96px,
		var(--wp--preset--color--indigo) 96px 120px,
		var(--wp--preset--color--plum) 120px 144px
	);
	border-bottom: 3px solid var(--wp--preset--color--ink);
}

.site-header {
	border-bottom: 3px solid var(--wp--preset--color--ink);
}

.site-brand a,
.site-brand {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	letter-spacing: -0.01em;
	position: relative;
	display: inline-block;
}

.site-brand a::after {
	content: "";
	position: absolute;
	left: -0.1em;
	right: -0.1em;
	bottom: 0.05em;
	height: 0.32em;
	background: var(--wp--preset--color--rose);
	opacity: 0.55;
	z-index: -1;
	transform: rotate(-1deg);
}

.site-nav {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	gap: 1.75rem;
}

.site-nav a {
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	position: relative;
	padding-bottom: 0.2em;
}

.site-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--wp--preset--color--teal);
	transition: right 0.25s ease;
}

.site-nav a:hover::after {
	right: 0;
}
/* === footer === */
.site-footer .site-brand,
.site-footer .site-brand a {
	color: var(--wp--preset--color--paper);
}

.footer-nav a {
	color: var(--wp--preset--color--paper);
	text-decoration: none;
	opacity: 0.85;
}

.footer-nav a:hover {
	opacity: 1;
	color: var(--wp--preset--color--amber);
}

.footer-note {
	opacity: 0.65;
}
/* === content === */
.blog-heading {
	font-size: var(--wp--preset--font-size--xx-large);
	max-width: 700px;
}

.blog-subhead {
	font-size: var(--wp--preset--font-size--large);
	opacity: 0.7;
	max-width: 560px;
	margin-top: 0.5rem;
	margin-bottom: 2.5rem;
}

.blog-post-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.5rem 2rem;
}

.blog-post-list > li {
	margin-block-start: 0 !important;
}

.blog-card {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	border: 1.5px solid var(--wp--preset--color--ink);
	border-radius: 14px;
	overflow: hidden;
	background: var(--wp--preset--color--paper);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:nth-child(6n + 1) { box-shadow: 4px 4px 0 color-mix(in srgb, var(--wp--preset--color--rose) 55%, transparent); }
.blog-card:nth-child(6n + 2) { box-shadow: 4px 4px 0 color-mix(in srgb, var(--wp--preset--color--amber) 55%, transparent); }
.blog-card:nth-child(6n + 3) { box-shadow: 4px 4px 0 color-mix(in srgb, var(--wp--preset--color--sage) 55%, transparent); }
.blog-card:nth-child(6n + 4) { box-shadow: 4px 4px 0 color-mix(in srgb, var(--wp--preset--color--teal) 55%, transparent); }
.blog-card:nth-child(6n + 5) { box-shadow: 4px 4px 0 color-mix(in srgb, var(--wp--preset--color--indigo) 55%, transparent); }
.blog-card:nth-child(6n + 6) { box-shadow: 4px 4px 0 color-mix(in srgb, var(--wp--preset--color--plum) 55%, transparent); }

.blog-card:hover {
	transform: translate(-2px, -2px);
}

.blog-card:nth-child(6n + 1):hover { box-shadow: 6px 6px 0 color-mix(in srgb, var(--wp--preset--color--rose) 65%, transparent); }
.blog-card:nth-child(6n + 2):hover { box-shadow: 6px 6px 0 color-mix(in srgb, var(--wp--preset--color--amber) 65%, transparent); }
.blog-card:nth-child(6n + 3):hover { box-shadow: 6px 6px 0 color-mix(in srgb, var(--wp--preset--color--sage) 65%, transparent); }
.blog-card:nth-child(6n + 4):hover { box-shadow: 6px 6px 0 color-mix(in srgb, var(--wp--preset--color--teal) 65%, transparent); }
.blog-card:nth-child(6n + 5):hover { box-shadow: 6px 6px 0 color-mix(in srgb, var(--wp--preset--color--indigo) 65%, transparent); }
.blog-card:nth-child(6n + 6):hover { box-shadow: 6px 6px 0 color-mix(in srgb, var(--wp--preset--color--plum) 65%, transparent); }

.blog-card-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.blog-card-image:not(:has(img)) {
	height: 200px;
	background: linear-gradient(
		135deg,
		var(--wp--preset--color--rose) 0%,
		var(--wp--preset--color--amber) 25%,
		var(--wp--preset--color--sage) 50%,
		var(--wp--preset--color--teal) 75%,
		var(--wp--preset--color--indigo) 100%
	);
}

.blog-card-body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.blog-card-date {
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.55;
}

.blog-card-title {
	margin-top: 0.5rem;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.25;
}

.blog-card-title a {
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	display: -webkit-box;
	width: 100%;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	min-height: calc(1.25em * 2);
}

.blog-card-title a:hover {
	color: var(--wp--preset--color--ink);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.15em;
}

.blog-card:nth-child(6n + 1) .blog-card-title a:hover { text-decoration-color: var(--wp--preset--color--rose); }
.blog-card:nth-child(6n + 2) .blog-card-title a:hover { text-decoration-color: var(--wp--preset--color--amber); }
.blog-card:nth-child(6n + 3) .blog-card-title a:hover { text-decoration-color: var(--wp--preset--color--sage); }
.blog-card:nth-child(6n + 4) .blog-card-title a:hover { text-decoration-color: var(--wp--preset--color--teal); }
.blog-card:nth-child(6n + 5) .blog-card-title a:hover { text-decoration-color: var(--wp--preset--color--indigo); }
.blog-card:nth-child(6n + 6) .blog-card-title a:hover { text-decoration-color: var(--wp--preset--color--plum); }

.blog-card-excerpt {
	margin-top: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.75;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.blog-pagination {
	margin-top: 3rem;
	justify-content: center;
}

@media (max-width: 780px) {
	.blog-post-list {
		grid-template-columns: 1fr;
	}
}
/* === generic page === */
.page-title-wrap {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--50);
}

.page-content {
	padding-bottom: var(--wp--preset--spacing--80);
	min-height: 30vh;
}

.page-title {
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.05;
	display: table;
	position: relative;
}

.page-title::after {
	content: "";
	position: absolute;
	left: 0.1em;
	right: -0.3em;
	bottom: -0.12em;
	height: 0.16em;
	background: var(--wp--preset--color--sage);
	opacity: 0.65;
	z-index: -1;
	transform: rotate(-1deg);
}

/* === single post === */
.post-main {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--70);
}

.post-category {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	color: var(--wp--preset--color--teal);
}

.post-category a {
	color: inherit;
	text-decoration: none;
}

.post-title {
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.1;
	margin-top: 0.5rem;
	max-width: 780px;
	text-wrap: balance;
}

.post-date {
	display: block;
	opacity: 0.55;
	font-size: var(--wp--preset--font-size--small);
	margin-top: 0.75rem;
}

.post-hero-image {
	margin-top: 2.5rem;
	margin-bottom: 2.5rem;
}

.post-hero-image img {
	border-radius: 16px;
	max-height: 520px;
	object-fit: cover;
	width: 100%;
}

.post-body {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.75;
}

.post-body p {
	margin-bottom: 1.5rem;
}

.post-body h2 {
	margin-top: 2.5rem;
	font-size: var(--wp--preset--font-size--large);
}

.post-footer {
	margin-top: 2rem;
}

.post-tags a {
	display: inline-block;
	margin: 0 0.4rem 0.4rem 0;
	padding: 0.3rem 0.9rem;
	border-radius: 999px;
	background: var(--wp--preset--color--paper);
	border: 1px solid rgba(43, 35, 32, 0.15);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}

.post-tags a:hover {
	border-color: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--teal);
}

/* === home === */
.home-hero {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

.home-hero > .home-hero-grid,
.home-pillars > .home-pillar-grid {
	max-width: 1180px;
}

.home-hero-grid {
	gap: 3rem;
}

.home-eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 800;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--sage);
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: 5px;
	padding: 0.35rem 0.9rem;
	transform: rotate(-2deg);
	margin-bottom: 1.25rem;
}

.home-hero-title {
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.02;
	max-width: 620px;
	text-wrap: balance;
	position: relative;
}

.home-hero-title em {
	font-style: normal;
	position: relative;
	white-space: nowrap;
}

.home-hero-title em::after {
	content: "";
	position: absolute;
	left: -0.05em;
	right: -0.05em;
	bottom: 0.05em;
	height: 0.28em;
	background: var(--wp--preset--color--rose);
	opacity: 0.6;
	z-index: -1;
	transform: rotate(-1deg);
}

.home-hero-sub {
	margin-top: 1.25rem;
	max-width: 480px;
	opacity: 0.8;
}

.home-hero .wp-block-buttons {
	margin-top: 2rem;
}

.wp-element-button,
.wp-block-button__link {
	box-shadow: 4px 4px 0 var(--wp--preset--color--ink);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	position: relative;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 var(--wp--preset--color--ink);
}

.wp-element-button:active,
.wp-block-button__link:active {
	transform: translate(0, 0);
	box-shadow: 2px 2px 0 var(--wp--preset--color--ink);
}

.is-style-outline .wp-element-button {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	border: 2px solid var(--wp--preset--color--ink);
	box-shadow: 4px 4px 0 var(--wp--preset--color--plum);
}

.is-style-outline .wp-element-button:hover {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	box-shadow: 6px 6px 0 var(--wp--preset--color--plum);
}

@media (prefers-reduced-motion: reduce) {
	.wp-element-button,
	.wp-block-button__link {
		transition: none;
	}
	.wp-element-button:hover,
	.wp-block-button__link:hover,
	.wp-element-button:active,
	.wp-block-button__link:active {
		transform: none;
	}
}

.home-hero-media {
	position: relative;
	transform: rotate(1.5deg);
}

.home-hero-image {
	background: var(--wp--preset--color--paper);
	padding: 0.9rem 0.9rem 2.75rem;
	border: 3px solid var(--wp--preset--color--ink);
	box-shadow: 10px 10px 0 var(--wp--preset--color--amber);
	position: relative;
}

.home-hero-image img {
	border-radius: 2px;
	display: block;
}

.home-hero-media::before {
	content: "";
	position: absolute;
	top: -18px;
	left: 50%;
	width: 90px;
	height: 34px;
	background: var(--wp--preset--color--indigo);
	opacity: 0.85;
	transform: translateX(-50%) rotate(-3deg);
	box-shadow: 0 2px 4px rgba(43, 35, 32, 0.25);
	z-index: 2;
}

.home-mission {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
	position: relative;
	overflow: hidden;
}

.home-mission::before {
	content: "\201C";
	position: absolute;
	top: -0.35em;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--wp--preset--font-family--display);
	font-size: 14rem;
	line-height: 1;
	color: var(--wp--preset--color--paper);
	opacity: 0.08;
	pointer-events: none;
}

.home-mission-text {
	max-width: 680px;
	margin: 0 auto;
	text-align: left;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
	position: relative;
	z-index: 1;
}

.home-pillars {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--60);
}

.home-section-heading {
	text-align: center;
	font-size: var(--wp--preset--font-size--x-large);
	margin-bottom: 2.5rem;
	position: relative;
	display: table;
	margin-left: auto;
	margin-right: auto;
}

.home-section-heading::after {
	content: "";
	display: block;
	height: 8px;
	margin-top: 0.15em;
	background: var(--wp--preset--color--teal);
	width: 60%;
	margin-left: auto;
	margin-right: auto;
	transform: rotate(-1deg);
	opacity: 0.7;
}

.home-pillar-grid {
	gap: 2rem;
}

.home-pillar-card {
	padding: 2.25rem;
	border-radius: 10px;
	background: var(--wp--preset--color--paper);
	border: 3px solid var(--wp--preset--color--ink);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-pillar-card h3 {
	font-size: 1.35rem;
	margin-bottom: 0.5rem;
	text-wrap: balance;
}

.home-pillar-card p {
	opacity: 0.75;
	margin: 0;
}

.home-pillar-rose {
	box-shadow: 7px 7px 0 var(--wp--preset--color--rose);
	transform: rotate(-1.25deg);
}
.home-pillar-teal {
	box-shadow: 7px 7px 0 var(--wp--preset--color--teal);
	transform: rotate(0.75deg);
}
.home-pillar-plum {
	box-shadow: 7px 7px 0 var(--wp--preset--color--plum);
	transform: rotate(-0.5deg);
}

.home-pillar-card:hover {
	transform: rotate(0deg) translate(-2px, -2px);
	box-shadow: 10px 10px 0 currentColor;
}

.home-pillar-rose:hover { box-shadow: 10px 10px 0 var(--wp--preset--color--rose); }
.home-pillar-teal:hover { box-shadow: 10px 10px 0 var(--wp--preset--color--teal); }
.home-pillar-plum:hover { box-shadow: 10px 10px 0 var(--wp--preset--color--plum); }

@media (prefers-reduced-motion: reduce) {
	.home-pillar-card {
		transition: none;
	}
	.home-pillar-card:hover {
		transform: rotate(-1.25deg);
	}
	.home-pillar-teal:hover { transform: rotate(0.75deg); }
	.home-pillar-plum:hover { transform: rotate(-0.5deg); }
}

.home-cta {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--70);
}

.home-cta > .wp-block-group {
	max-width: 780px;
	margin: 0 auto;
	text-align: center;
	background: var(--wp--preset--color--paper);
	border: 3px dashed var(--wp--preset--color--ink);
	border-radius: 14px;
	padding: 3rem 2rem;
}

.home-cta-heading {
	font-size: var(--wp--preset--font-size--x-large);
}

.home-cta-sub {
	opacity: 0.7;
	max-width: 480px;
	margin: 0.75rem auto 0;
}

.home-cta .wp-block-buttons {
	margin-top: 1.75rem;
	justify-content: center;
}

@media (max-width: 780px) {
	.home-hero-grid {
		flex-wrap: wrap;
	}
	.home-hero-grid .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* === motion === */

@media (prefers-reduced-motion: reduce) {
	.blog-card,
	.blog-card:hover {
		transition: none;
		transform: none;
	}
}
