/*
Theme Name: Tales of the Trap
Theme URI: https://talesofthetrap.com
Author: Tales of the Trap
Author URI: https://talesofthetrap.com
Description: The official Tales of the Trap WordPress theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: talesofthetrap
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Base Reset & Global Styles
   ========================================================================== */

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: #1a1a1a;
	background-color: #ffffff;
}

img, video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

ul, ol {
	list-style: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1;
}

/* ==========================================================================
   Site Header
   ========================================================================== */

.site-header {
	background-color: #0d0d0d;
	color: #ffffff;
	padding: 1rem 0;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.site-branding .site-title {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.site-branding .site-title a {
	color: #ffffff;
}

.site-branding .site-description {
	font-size: 0.8rem;
	color: #aaaaaa;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-navigation ul {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.main-navigation a {
	color: #ffffff;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: color 0.2s ease;
}

.main-navigation a:hover {
	color: #cccccc;
	text-decoration: none;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
	background-color: #0d0d0d;
	color: #aaaaaa;
	padding: 2rem 0;
	font-size: 0.875rem;
}

.site-footer .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.footer-credits a {
	color: #ffffff;
}

/* ==========================================================================
   Front Page
   ========================================================================== */

.front-page-hero {
	padding: 5rem 0;
	text-align: center;
}

.front-page-hero h1 {
	font-size: 3rem;
	font-weight: 800;
	margin-bottom: 1rem;
}

.front-page-hero p {
	font-size: 1.125rem;
	color: #555555;
	max-width: 600px;
	margin: 0 auto;
}

/* ==========================================================================
   Screen-Reader Text (Accessibility)
   ========================================================================== */

.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;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* ==========================================================================
   News Templates
   ========================================================================== */

.news-content {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	font-size: 1.125rem;
	line-height: 1.75;
	color: #ffffff;
}

/* ── Vertical rhythm ── */
.news-content > * + * {
	margin-top: 1.5rem;
}

.news-content > h2 + *,
.news-content > h3 + *,
.news-content > h4 + * {
	margin-top: 0.75rem;
}

/* ── Lead paragraph — first <p> is slightly larger and warmer ── */
.news-content > p:first-of-type {
	font-size: 1.25rem;
	line-height: 1.8;
	color: #e5bdb8; /* Rose Muted */
}

/* ── Drop cap on the opening letter ── */
.news-content > p:first-of-type::first-letter {
	float: left;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 4.5rem;
	line-height: 0.82;
	margin-right: 0.1em;
	margin-top: 0.08em;
	color: #b20d0d; /* Trap Red */
	text-transform: uppercase;
}

/* ── Headings ── */
.news-content h2,
.news-content h3,
.news-content h4 {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.1;
	color: #ffffff;
	margin-top: 3rem;
	margin-bottom: 0.75rem;
}

.news-content h2 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	letter-spacing: -0.05em;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(92, 64, 60, 0.2);
	position: relative;
}

.news-content h2::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 0;
	width: 2.5rem;
	height: 2px;
	background-color: #b20d0d; /* Trap Red */
}

.news-content h3 {
	font-size: clamp(1.4rem, 2.4vw, 2rem);
	letter-spacing: -0.03em;
}

.news-content h4 {
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	letter-spacing: 0.04em;
	color: #ffb4a9; /* Rose Accent */
}

/* ── Inline ── */
.news-content p,
.news-content li {
	color: #ffffff;
}

.news-content strong {
	color: #ffffff;
	font-weight: 700;
}

.news-content em {
	color: #e5bdb8; /* Rose Muted */
	font-style: italic;
}

.news-content a {
	color: #ffb4a9; /* Rose Accent */
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.news-content a:hover,
.news-content a:focus {
	color: #ffffff;
}

/* ── Lists with Trap Red accent markers ── */
.news-content ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.news-content ul > li {
	position: relative;
	padding-left: 1.5rem;
}

.news-content ul > li + li {
	margin-top: 0.625rem;
}

.news-content ul > li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.7em;
	width: 0.5rem;
	height: 2px;
	background-color: #b20d0d; /* Trap Red */
}

.news-content ol {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: trap-counter;
}

.news-content ol > li {
	counter-increment: trap-counter;
	position: relative;
	padding-left: 2.5rem;
}

.news-content ol > li + li {
	margin-top: 0.625rem;
}

.news-content ol > li::before {
	content: counter(trap-counter, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 0;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	color: #b20d0d; /* Trap Red */
	line-height: 1.85;
}

/* ── Pull-quote blockquote ── */
.news-content blockquote {
	position: relative;
	margin: 3rem 0;
	padding: 2rem 2.5rem 2rem 2.5rem;
	background: rgba(178, 13, 13, 0.05);
	border: 1px solid rgba(178, 13, 13, 0.2);
	border-left: 3px solid #b20d0d; /* Trap Red */
}

.news-content blockquote::before {
	content: '\201C';
	position: absolute;
	top: -0.5rem;
	left: 1.5rem;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 5rem;
	line-height: 1;
	color: #b20d0d; /* Trap Red */
	opacity: 0.35;
	pointer-events: none;
}

.news-content blockquote > p {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: clamp(1.15rem, 2.5vw, 1.5rem);
	line-height: 1.3;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: #ffffff;
	font-style: normal;
}

.news-content blockquote cite,
.news-content blockquote footer {
	display: block;
	margin-top: 0.75rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-style: normal;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #ffb4a9; /* Rose Accent */
}

/* ── HR — decorative section break ── */
.news-content hr {
	border: none;
	height: 1px;
	background: rgba(92, 64, 60, 0.25);
	margin: 3rem 0;
	position: relative;
}

.news-content hr::after {
	content: '\25A0';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: #131313; /* Section Dark */
	padding: 0 0.75rem;
	font-size: 0.45rem;
	color: #b20d0d; /* Trap Red */
	letter-spacing: 0;
}

/* ── Figures and images ── */
.news-content figure {
	margin: 2.5rem 0;
}

@media (min-width: 768px) {
	.news-content figure:not(.alignleft):not(.alignright) {
		margin-left: -3rem;
		margin-right: -3rem;
	}
}

.news-content img {
	display: block;
	max-width: 100%;
	height: auto;
}

.news-content figcaption,
.news-content .wp-element-caption {
	font-size: 0.8rem;
	font-family: 'Inter', sans-serif;
	color: rgba(229, 226, 225, 0.5); /* Warm Grey 40% */
	text-align: center;
	margin-top: 0.625rem;
	letter-spacing: 0.05em;
}

.news-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.news-pagination .page-numbers a,
.news-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border: 1px solid rgba(92, 64, 60, 0.4);
	background: #131313;
	color: #e5bdb8;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.news-pagination .page-numbers .current {
	background: #b20d0d;
	border-color: #b20d0d;
	color: #ffffff;
}

.news-pagination .page-numbers a:hover,
.news-pagination .page-numbers a:focus {
	border-color: #ffb4a9;
	color: #ffb4a9;
	text-decoration: none;
}
