/*
Theme Name: Linkmix
Theme URI: https://github.com/linkmix
Author: Linkmix
Author URI: https://github.com/linkmix
Description: A neo-brutalist utility blog theme built with Tailwind CDN and Public Sans. Features bold borders, offset shadows, and a stark monochrome-with-accent palette.
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: linkmix
Tags: blog, custom-menu, featured-images, post-formats, threaded-comments, translation-ready
*/

/* =========================================================
   Design Tokens
   ========================================================= */
:root {
	color-scheme: light;
	--color-paper:   #f4f4f5;
	--color-alert:   #dc2626;
	--color-warn:    #facc15;
	--color-brand:   #2563eb;
	--color-dark:    #18181b;
	--neo-border:    2px solid #000000;
	--shadow-utility: 4px 4px 0px 0px #000000;
}

/* =========================================================
   Base
   ========================================================= */
body {
	background-color: #f4f4f5;
}

/* =========================================================
   Neo-border utility class
   ========================================================= */
.neo-border {
	border: 2px solid #000000;
}

/* =========================================================
   Scrollbar
   ========================================================= */
::-webkit-scrollbar {
	width: 12px;
}
::-webkit-scrollbar-track {
	background: #f4f4f5;
	border-left: 2px solid black;
}
::-webkit-scrollbar-thumb {
	background: #000;
	border: 2px solid #f4f4f5;
}

/* =========================================================
   WordPress alignment classes
   ========================================================= */
.alignleft {
	float: left;
	margin-right: 1.5rem;
	margin-bottom: 1rem;
}
.alignright {
	float: right;
	margin-left: 1.5rem;
	margin-bottom: 1rem;
}
.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1rem;
}
.alignwide {
	width: 100%;
}
.alignfull {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

/* =========================================================
   Screen reader text
   ========================================================= */
.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: #f4f4f5;
	border: 2px solid #000;
	clip: auto !important;
	clip-path: none;
	color: #18181b;
	display: block;
	font-size: 0.875rem;
	font-weight: 800;
	height: auto;
	left: 0.5rem;
	line-height: normal;
	padding: 0.75rem 1.5rem;
	text-decoration: none;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
}

/* =========================================================
   WP Caption
   ========================================================= */
.wp-caption {
	max-width: 100%;
	border: 2px solid #000;
	background: #fff;
	padding: 0.5rem;
	box-shadow: var(--shadow-utility);
}
.wp-caption img {
	display: block;
	width: 100%;
}
.wp-caption-text {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #52525b;
	margin: 0.5rem 0 0;
}

/* =========================================================
   Entry content typography (no Tailwind prose plugin on CDN)
   ========================================================= */
.entry-content {
	font-size: 0.9375rem;
	line-height: 1.75;
	color: #18181b;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	line-height: 1.2;
}
.entry-content h1 { font-size: 2rem; }
.entry-content h2 { font-size: 1.5rem; border-bottom: 2px solid #000; padding-bottom: 0.25rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content h4 { font-size: 1.125rem; }
.entry-content h5 { font-size: 1rem; }
.entry-content h6 { font-size: 0.875rem; }

.entry-content p {
	margin-bottom: 1.25rem;
}
.entry-content a {
	color: #2563eb;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.entry-content a:hover {
	color: #000;
}
.entry-content ul,
.entry-content ol {
	margin-bottom: 1.25rem;
	padding-left: 1.5rem;
}
.entry-content ul {
	list-style-type: square;
}
.entry-content ol {
	list-style-type: decimal;
}
.entry-content li {
	margin-bottom: 0.4rem;
}
.entry-content blockquote {
	border-left: 4px solid #000;
	background: #fff;
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	font-weight: 700;
	font-style: italic;
	box-shadow: var(--shadow-utility);
}
.entry-content blockquote p:last-child {
	margin-bottom: 0;
}
.entry-content pre {
	background: #18181b;
	color: #f4f4f5;
	border: 2px solid #000;
	padding: 1rem;
	overflow-x: auto;
	font-size: 0.8125rem;
	line-height: 1.6;
	margin-bottom: 1.25rem;
	box-shadow: var(--shadow-utility);
}
.entry-content code {
	background: #f4f4f5;
	border: 1px solid #000;
	padding: 0.1em 0.35em;
	font-size: 0.85em;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.entry-content pre code {
	background: transparent;
	border: none;
	padding: 0;
	font-size: inherit;
}
.entry-content img {
	max-width: 100%;
	height: auto;
	border: 2px solid #000;
}
.entry-content hr {
	border: none;
	border-top: 2px solid #000;
	margin: 2rem 0;
}
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.25rem;
	font-size: 0.875rem;
}
.entry-content th {
	background: #18181b;
	color: #fff;
	font-weight: 800;
	text-transform: uppercase;
	padding: 0.5rem 0.75rem;
	text-align: left;
	border: 2px solid #000;
}
.entry-content td {
	padding: 0.5rem 0.75rem;
	border: 2px solid #000;
}
.entry-content tr:nth-child(even) td {
	background: #f4f4f5;
}

/* =========================================================
   WordPress pagination nav (the_posts_pagination output)
   ========================================================= */
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	justify-content: center;
}
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 2px solid #000;
	font-weight: 800;
	background: #fff;
	box-shadow: var(--shadow-utility);
	transition: background 0.15s, color 0.15s;
}
.page-numbers:hover {
	background: #facc15;
}
.page-numbers.current {
	background: #000;
	color: #fff;
}
.page-numbers.dots {
	border: none;
	box-shadow: none;
	background: transparent;
	color: #71717a;
}
.prev.page-numbers,
.next.page-numbers {
	width: auto;
	padding: 0 1.25rem;
}

/* =========================================================
   Comments — list & form
   ========================================================= */

/* Reset the #respond wrapper WP outputs */
#respond {
	margin: 0;
	padding: 0;
}

/* h3#reply-title — inherits style from our span wrapper */
h3#reply-title,
.comment-reply-title {
	font: inherit;
	margin: 0;
	padding: 0;
	font-weight: 900;
	font-style: italic;
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	line-height: 1;
	color: inherit;
}

/* Cancel reply link inside the title */
#cancel-comment-reply-link {
	display: inline-block;
	margin-left: 0.75rem;
	font-size: 0.65rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #facc15;
	text-decoration: none;
}
#cancel-comment-reply-link:hover {
	color: #fff;
}

/* Comment list */
.comment-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Nested reply indentation */
.comment-list .children {
	list-style: none;
	padding: 0;
	margin: 0;
	border-top: 2px solid #e5e7eb;
	border-left: 4px solid #facc15;
	margin-left: 1rem;
}

/* Author link inside avatar block */
.comment-author-link,
.comment-author-link a {
	font-weight: 900;
	font-style: italic;
	font-size: 0.875rem;
	color: #18181b;
	text-decoration: none;
}
.comment-author-link a:hover {
	color: #2563eb;
}

/* Comment text paragraphs */
.comment-content p {
	font-size: 0.875rem;
	line-height: 1.625;
	margin-bottom: 0.75rem;
	color: #27272a;
}
.comment-content p:last-child {
	margin-bottom: 0;
}

/* Previous / next comments pagination links */
.comment-navigation a {
	font-weight: 800;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #18181b;
	text-decoration: none;
}
.comment-navigation a:hover {
	color: #2563eb;
}

/* Comment form spacing */
.linkmix-comment-form p {
	margin: 0;
}

/* Logged-in-as notice */
#respond .logged-in-as {
	font-size: 0.75rem;
	font-weight: 700;
	color: #71717a;
	margin-bottom: 0;
}
#respond .logged-in-as a {
	color: #2563eb;
	text-decoration: underline;
}

/* =========================================================
   Gutenberg block editor compatibility
   ========================================================= */
.wp-block-image img {
	max-width: 100%;
	height: auto;
}
.wp-block-quote {
	border-left: 4px solid #000;
	padding-left: 1rem;
	font-style: italic;
}
