/*
Theme Name: TLM
Theme URI: https://toolmarketer.webermelon.dev/
Author: Webermelon
Description: Lightweight Elementor-ready theme for The Tool Marketer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: tlm
*/

:root {
	--tlm-bg: #f7f8fa;
	--tlm-surface: #ffffff;
	--tlm-text: #121826;
	--tlm-muted: #5d6677;
	--tlm-border: #dfe3ea;
	--tlm-accent: #0e7c86;
	--tlm-accent-dark: #095b63;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--tlm-bg);
	color: var(--tlm-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
}

a {
	color: var(--tlm-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	color: var(--tlm-accent-dark);
}

img {
	max-width: 100%;
	height: auto;
}

.tlm-site-header,
.tlm-site-footer {
	background: var(--tlm-surface);
	border-color: var(--tlm-border);
}

.tlm-site-header {
	border-bottom: 1px solid var(--tlm-border);
}

.tlm-site-footer {
	border-top: 1px solid var(--tlm-border);
	color: var(--tlm-muted);
}

.tlm-header-inner,
.tlm-footer-inner,
.tlm-container {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
}

.tlm-header-inner,
.tlm-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 0;
}

.tlm-site-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

.tlm-site-title a {
	color: var(--tlm-text);
	text-decoration: none;
}

.tlm-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tlm-menu a {
	color: var(--tlm-text);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.tlm-main {
	min-height: 60vh;
}

.tlm-article {
	width: min(880px, calc(100% - 40px));
	margin: 48px auto;
	padding: 42px;
	background: var(--tlm-surface);
	border: 1px solid var(--tlm-border);
	border-radius: 8px;
}

.tlm-archive {
	width: min(1120px, calc(100% - 40px));
	margin: 48px auto;
}

.tlm-title {
	margin: 0 0 14px;
	font-size: clamp(32px, 5vw, 56px);
	line-height: 1.05;
	letter-spacing: 0;
}

.tlm-entry-title {
	margin: 0 0 12px;
	font-size: clamp(26px, 4vw, 42px);
	line-height: 1.15;
	letter-spacing: 0;
}

.tlm-meta,
.tlm-empty,
.tlm-post-nav,
.tlm-tags {
	color: var(--tlm-muted);
}

.tlm-featured-image {
	margin: 28px 0;
	overflow: hidden;
	border-radius: 8px;
}

.tlm-content {
	overflow-wrap: break-word;
}

.tlm-content > *:first-child {
	margin-top: 0;
}

.tlm-content > *:last-child {
	margin-bottom: 0;
}

.tlm-post-card {
	margin: 0 0 22px;
	padding: 28px;
	background: var(--tlm-surface);
	border: 1px solid var(--tlm-border);
	border-radius: 8px;
}

.tlm-post-card h2 {
	margin: 0 0 8px;
	font-size: 26px;
	line-height: 1.2;
}

.tlm-post-card h2 a {
	color: var(--tlm-text);
	text-decoration: none;
}

.tlm-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	margin-top: 36px;
}

.tlm-post-nav > div {
	max-width: 48%;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 720px) {
	.tlm-header-inner,
	.tlm-footer-inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.tlm-article {
		margin: 28px auto;
		padding: 26px;
	}

	.tlm-post-nav {
		flex-direction: column;
	}

	.tlm-post-nav > div {
		max-width: none;
	}
}
