/*
Theme Name: The COA Catcher Evidence Directory
Theme URI: https://thecoacatcher.com/
Author: The COA Catcher
Description: A rugged, evidence-led block theme for investigating suspicious peptide Certificates of Analysis and publishing documented case files, responses, and corrections.
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.2.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fakepeptides-theme
Tags: full-site-editing, blog, news, one-column, two-columns, wide-blocks
*/

:root {
	--fp-navy: #071827;
	--fp-navy-soft: #102a3c;
	--fp-ink: #101922;
	--fp-canvas: #eee7d8;
	--fp-surface: #fffaf0;
	--fp-brass: #e7ad35;
	--fp-signal: #b33b16;
	--fp-teal: #1aa694;
	--fp-shadow: 0 18px 50px rgba(7, 24, 39, 0.16);
	--fp-border: #b9b3a8;
	--fp-focus: #f15a24;
	--fp-focus-inner: #fffaf0;
	--fp-transition: 160ms ease;
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	background-color: var(--fp-canvas);
	text-rendering: optimizeLegibility;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 0.08em;
}

a:hover {
	text-decoration-thickness: 0.14em;
}

:where(a, button, input, textarea, select, summary):focus-visible {
	box-shadow: 0 0 0 3px var(--fp-focus);
	outline: 3px solid var(--fp-focus-inner);
	outline-offset: 3px;
}

::selection {
	background: var(--fp-brass);
	color: var(--fp-navy);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--fp-surface);
	clip: auto !important;
	clip-path: none;
	color: var(--fp-navy);
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	height: auto;
	left: 1rem;
	padding: 0.85rem 1rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

.site-header {
	background: rgba(255, 250, 240, 0.97);
	border-bottom: 1px solid var(--fp-border);
	box-shadow: 0 7px 22px rgba(7, 24, 39, 0.08);
	position: relative;
	z-index: 20;
}

.site-header__inner {
	min-height: 5rem;
}

.site-brand .wp-block-site-title {
	font-size: clamp(1.25rem, 2vw, 1.65rem);
	letter-spacing: 0.025em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

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

.site-brand__badge {
	background: url("./assets/images/coa-catcher-badge.webp") center / contain no-repeat;
	display: block;
	flex: 0 0 auto;
	height: 3.55rem;
	transition: transform var(--fp-transition);
	width: 3.55rem;
}

.site-brand__badge:hover {
	transform: rotate(-2deg) scale(1.035);
}

.site-brand__wordmark {
	min-width: 0;
}

.site-brand__tagline {
	color: #59636b;
	font-size: 0.68rem !important;
	font-weight: 800;
	letter-spacing: 0.07em;
	line-height: 1.25;
	margin: 0;
	text-transform: uppercase;
}

.wp-block-navigation .wp-block-navigation-item__content {
	text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: #b33b16;
}

.header-standard {
	background: var(--fp-navy);
	border-bottom: 2px solid var(--fp-signal);
	color: var(--fp-surface);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.065em;
	text-transform: uppercase;
}

.hero-section {
	background:
		linear-gradient(120deg, transparent 0 72%, rgba(241, 90, 36, 0.1) 72% 73%, transparent 73%),
		radial-gradient(circle at 83% 42%, rgba(231, 173, 53, 0.18), transparent 25rem),
		linear-gradient(135deg, #071827 0%, #102a3c 65%, #15374a 100%);
	color: var(--fp-surface);
	overflow: hidden;
	position: relative;
}

.hero-section::after {
	background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 18px);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.hero-section > * {
	position: relative;
	z-index: 1;
}

.hero-layout {
	align-items: center;
}

.hero-copy {
	padding-block: clamp(1rem, 3vw, 3rem);
}

.eyebrow {
	align-items: center;
	display: flex;
	font-size: 0.78rem;
	font-weight: 850;
	gap: 0.7rem;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.eyebrow::before {
	background: var(--fp-signal);
	content: "";
	height: 0.26rem;
	width: 2.4rem;
}

.hero-section h1 {
	font-size: clamp(3.6rem, 7.8vw, 7.25rem);
	letter-spacing: -0.04em;
	line-height: 0.86;
	max-width: 10ch;
	text-transform: uppercase;
}

.hero-section :where(h1, h2, h3),
.case-header :where(h1, h2, h3),
.archive-intro :where(h1, h2, h3),
.page-intro :where(h1, h2, h3) {
	color: var(--fp-surface);
}

.hero-section .hero-intro {
	color: #dce7e8;
	font-size: clamp(1.08rem, 2vw, 1.35rem);
	line-height: 1.65;
	max-width: 44rem;
}

.hero-tagline {
	border-left: 0.3rem solid var(--fp-brass);
	color: var(--fp-brass);
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	font-weight: 850;
	letter-spacing: 0.025em;
	padding-left: 0.9rem;
	text-transform: uppercase;
}

.hero-showdown {
	margin: 0 auto;
	max-width: 46rem;
	width: 100%;
}

.hero-showdown__stage {
	aspect-ratio: 6 / 5;
	background: #071827 url("./assets/images/hero-showdown-backdrop.jpg") center / cover no-repeat;
	border: 2px solid var(--fp-brass);
	box-shadow: 12px 12px 0 rgba(241, 90, 36, 0.72), 0 28px 54px rgba(0, 0, 0, 0.42);
	isolation: isolate;
	overflow: hidden;
	position: relative;
}

.hero-showdown__stage::after {
	background: radial-gradient(circle, rgba(255, 250, 240, 0.28), transparent 42%);
	content: "";
	inset: 27% 36%;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.hero-report {
	background: #fff;
	border: 2px solid var(--fp-surface);
	box-shadow: 0 20px 30px rgba(0, 0, 0, 0.45);
	height: 76%;
	padding: 0.28rem;
	position: absolute;
	top: 11%;
	width: 41%;
	z-index: 2;
}

.hero-report img {
	background: #fff;
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.hero-report--real {
	border-color: #45d7b8;
	left: 3%;
	transform: rotate(-6deg);
}

.hero-report--fake {
	border-color: #ff7445;
	right: 3%;
	transform: rotate(6deg);
}

.hero-report__status,
.hero-report__vendor,
.hero-showdown__versus {
	font-weight: 950;
	letter-spacing: 0.055em;
	line-height: 1;
	position: absolute;
	text-transform: uppercase;
}

.hero-report__status {
	border: 2px solid currentColor;
	box-shadow: 5px 5px 0 rgba(7, 24, 39, 0.7);
	font-size: clamp(1.25rem, 3.1vw, 2.8rem);
	left: 50%;
	padding: 0.28em 0.42em 0.2em;
	top: -0.75em;
	transform: translateX(-50%) rotate(-2deg);
	white-space: nowrap;
	z-index: 4;
}

.hero-report--real .hero-report__status {
	background: #dcfff3;
	color: #126b4b;
}

.hero-report--fake .hero-report__status {
	background: #fff0e8;
	color: #a62e0d;
}

.hero-report__vendor {
	background: var(--fp-navy);
	border: 1px solid var(--fp-brass);
	bottom: -2.15rem;
	box-sizing: border-box;
	color: var(--fp-surface);
	font-size: clamp(0.52rem, 1.25vw, 0.78rem);
	left: 50%;
	max-width: 118%;
	padding: 0.52rem 0.65rem;
	text-align: center;
	text-transform: none;
	transform: translateX(-50%);
	white-space: nowrap;
}

.hero-showdown__versus {
	align-items: center;
	background: var(--fp-brass);
	border: 3px solid var(--fp-surface);
	border-radius: 50%;
	box-shadow: 0 0 0 8px rgba(7, 24, 39, 0.7), 0 0 28px rgba(231, 173, 53, 0.85);
	color: var(--fp-navy);
	display: flex;
	font-size: clamp(1rem, 2.5vw, 1.75rem);
	height: clamp(3.2rem, 7vw, 5.2rem);
	justify-content: center;
	left: 50%;
	top: 48%;
	transform: translate(-50%, -50%) rotate(-4deg);
	width: clamp(3.2rem, 7vw, 5.2rem);
	z-index: 5;
}

.hero-showdown figcaption {
	color: #c8d5d7;
	font-size: 0.72rem;
	font-weight: 650;
	line-height: 1.45;
	margin: 1rem 0 0;
	text-align: center;
}

.hero-note {
	color: #b7c7ca;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.035em;
}

.field-strip {
	background: var(--fp-brass);
	border-bottom: 4px solid var(--fp-navy);
	color: var(--fp-navy);
}

.field-strip__items {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-strip__item {
	border-right: 1px solid rgba(7, 24, 39, 0.3);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	padding: 0.95rem 1.2rem;
	text-align: center;
	text-transform: uppercase;
}

.field-strip__item:last-child {
	border-right: 0;
}

.hero-principles {
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	display: grid;
	gap: 0;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-principle {
	border-right: 1px solid rgba(255, 255, 255, 0.18);
	min-height: 10rem;
	padding: 1.5rem;
}

.hero-principle:last-child {
	border-right: 0;
}

.hero-principle strong {
	color: var(--fp-brass);
	display: block;
	font-size: 0.76rem;
	letter-spacing: 0.09em;
	margin-bottom: 0.7rem;
	text-transform: uppercase;
}

.hero-principle p {
	color: #dce5e8;
	margin: 0;
}

.caution-notice {
	background: #fff0c2;
	border: 1px solid #c89b38;
	border-left: 0.42rem solid var(--fp-signal);
	box-shadow: 8px 8px 0 rgba(7, 24, 39, 0.08);
}

.caution-notice strong {
	color: #8b2e11;
}

.section-heading {
	max-width: 48rem;
}

.section-heading h2 {
	letter-spacing: -0.035em;
}

.evidence-grid,
.action-grid,
.about-grid {
	align-items: stretch;
}

.evidence-step,
.action-card,
.method-card {
	background: var(--fp-surface);
	border: 1px solid var(--fp-border);
	box-shadow: 8px 8px 0 rgba(7, 24, 39, 0.07);
	height: 100%;
	padding: clamp(1.4rem, 3vw, 2.2rem);
}

.evidence-step {
	border-top: 0.35rem solid var(--fp-brass);
	position: relative;
}

.evidence-step .step-number {
	color: var(--fp-signal);
	font-family: "Arial Narrow", "Avenir Next Condensed", Impact, sans-serif;
	font-size: 2.4rem;
	font-weight: 900;
	line-height: 1;
	margin-bottom: 1.4rem;
}

.case-list .wp-block-post {
	background: var(--fp-surface);
	border: 1px solid var(--fp-border);
	border-top: 0.35rem solid var(--fp-brass);
	box-shadow: 8px 8px 0 rgba(7, 24, 39, 0.08);
	display: flex;
	flex-direction: column;
	padding: clamp(1.35rem, 3vw, 2rem);
}

.case-list .wp-block-post-title {
	font-size: clamp(1.45rem, 3vw, 2rem);
	line-height: 1.15;
}

.case-list .wp-block-post-title a {
	text-decoration: none;
}

.case-list .wp-block-post-excerpt {
	flex-grow: 1;
}

.case-list .wp-block-post-date {
	color: #4b5967;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.case-list .wp-block-post-excerpt__more-link {
	font-weight: 750;
}

.empty-state {
	background: #dfe4e1;
	border: 2px dashed #75828a;
	padding: clamp(1.5rem, 4vw, 3rem);
	text-align: center;
}

.case-board {
	background:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 30px),
		linear-gradient(145deg, #071827, #102a3c);
	color: #dce7e8;
}

.case-board :where(h2, h3) {
	color: var(--fp-surface);
}

.case-board .case-list .wp-block-post {
	color: var(--fp-ink);
}

.case-board__empty {
	background: rgba(255, 250, 240, 0.06);
	border-color: rgba(231, 173, 53, 0.68);
	box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.18);
	color: #dce7e8;
	margin-inline: auto;
	max-width: 58rem;
}

.case-board__empty h3 {
	font-size: clamp(2.1rem, 5vw, 3.8rem);
	margin-top: 0.35rem;
}

.case-counter {
	color: var(--fp-brass);
	font-size: 0.82rem;
	font-weight: 900;
	letter-spacing: 0.13em;
	margin-bottom: 0;
	text-transform: uppercase;
}

.watch-grid {
	align-items: stretch;
}

.watch-card {
	background: rgba(255, 250, 240, 0.82);
	border: 1px solid var(--fp-border);
	border-left: 0.35rem solid var(--fp-teal);
	height: 100%;
	padding: clamp(1.3rem, 3vw, 2rem);
}

.watch-card h3 {
	font-size: clamp(1.35rem, 2.8vw, 1.9rem);
}

.watch-card__icon {
	color: var(--fp-signal);
	font-size: 1.35rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	margin-bottom: 1.1rem;
}

.verdict-line {
	background: var(--fp-navy);
	border-left: 0.4rem solid var(--fp-signal);
	color: var(--fp-surface);
	font-size: clamp(1.1rem, 2vw, 1.35rem);
	font-weight: 800;
	padding: 1.2rem 1.4rem;
}

.action-card {
	border-top: 0.35rem solid var(--fp-signal);
}

.action-card--amber {
	border-top-color: var(--fp-brass);
}

.method-card {
	box-shadow: none;
}

.method-card__label {
	color: #b33b16;
	font-size: 0.76rem;
	font-weight: 750;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.transparency-section {
	background: #dfe4e1;
}

.case-header {
	background: var(--fp-navy);
	color: var(--fp-surface);
}

.case-header .wp-block-post-date {
	color: #dce5e8;
}

.case-content {
	font-size: 1.08rem;
}

.case-content > :where(h2, h3) {
	scroll-margin-top: 2rem;
}

.case-content blockquote {
	border-left-color: var(--fp-brass);
}

.case-meta-panel {
	background: #dfe4e1;
	border: 1px solid var(--fp-border);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.case-meta-panel h2 {
	font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.record-note {
	border-bottom: 1px solid var(--fp-border);
	border-top: 1px solid var(--fp-border);
}

.archive-intro,
.page-intro {
	background: var(--fp-navy);
	color: var(--fp-surface);
}

.wp-block-query-pagination {
	border-top: 1px solid var(--fp-border);
	padding-top: 1.5rem;
}

.site-footer {
	background: var(--fp-navy);
	border-top: 4px solid var(--fp-signal);
	color: #dce5e8;
}

.site-footer a {
	color: var(--fp-surface);
}

.site-footer .wp-block-site-title {
	color: var(--fp-surface);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.footer-disclosure {
	background: #183346;
	border: 1px solid rgba(231, 173, 53, 0.68);
	border-left: 0.35rem solid var(--fp-brass);
	color: var(--fp-surface);
	padding: clamp(1.2rem, 3vw, 1.8rem);
}

.footer-disclosure strong {
	color: var(--fp-brass);
}

.footer-meta {
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 0.84rem;
}

.wp-block-button .wp-block-button__link {
	transition: background-color var(--fp-transition), color var(--fp-transition), transform var(--fp-transition);
}

.wp-block-button .wp-block-button__link:hover {
	box-shadow: 4px 4px 0 rgba(7, 24, 39, 0.28);
	transform: translate(-1px, -1px);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--fp-surface);
	color: var(--fp-navy);
}

#method,
#case-board,
#submit,
#right-of-reply {
	scroll-margin-top: 2rem;
}

@media (max-width: 900px) {
	.hero-layout {
		flex-wrap: wrap !important;
		gap: 1.5rem;
	}

	.hero-copy,
	.hero-visual {
		flex-basis: 100% !important;
	}

	.hero-visual {
		margin-top: 1rem;
	}

	.hero-showdown {
		max-width: 42rem;
	}

	.hero-principles {
		grid-template-columns: 1fr;
	}

	.hero-principle {
		border-bottom: 1px solid rgba(255, 255, 255, 0.18);
		border-right: 0;
		min-height: auto;
	}

	.hero-principle:last-child {
		border-bottom: 0;
	}

	.site-brand__tagline {
		display: none;
	}
}

@media (max-width: 600px) {
	.site-header__inner {
		min-height: 4.35rem;
	}

	.header-standard {
		display: none;
	}

	.hero-section h1 {
		font-size: clamp(3rem, 16vw, 4.8rem);
	}

	.hero-showdown {
		max-width: 33rem;
	}

	.hero-showdown__stage {
		box-shadow: 7px 7px 0 rgba(241, 90, 36, 0.72), 0 20px 42px rgba(0, 0, 0, 0.42);
	}

	.hero-report {
		height: 72%;
		top: 13%;
	}

	.hero-report__vendor {
		bottom: -1.1rem;
		font-size: clamp(0.45rem, 2vw, 0.65rem);
		line-height: 1.08;
		max-width: 135%;
		overflow-wrap: anywhere;
		padding: 0.34rem 0.4rem;
		white-space: normal;
		width: 135%;
	}

	.hero-report--real .hero-report__vendor {
		transform: translateX(-42%);
	}

	.hero-report--fake .hero-report__vendor {
		transform: translateX(-58%);
	}

	.field-strip__items {
		grid-template-columns: 1fr;
	}

	.field-strip__item {
		border-bottom: 1px solid rgba(7, 24, 39, 0.3);
		border-right: 0;
	}

	.field-strip__item:last-child {
		border-bottom: 0;
	}

	.site-brand__badge {
		height: 3rem;
		width: 3rem;
	}

	.hero-principle {
		padding-inline: 0;
	}

	.wp-block-buttons > .wp-block-button {
		width: 100%;
	}

	.wp-block-buttons > .wp-block-button .wp-block-button__link {
		box-sizing: border-box;
		text-align: center;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
