/*
Theme Name: The Life Theme
Theme URI: https://thlfe.com/
Description: A quiet GeneratePress child theme for writers and long-form reading.
Author: Doug Cockerill
Author URI: https://thlfe.com/
Template: generatepress
Version: 0.3.1
Text Domain: the-life-theme
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Production: thlfe.com
Workshop: studio.cockerill.ws
Release: Editable Publisher's Note
*/

:root {
	--life-paper: #faf9f6;
	--life-surface: #fdfcf9;
	--life-ink: #2f2f2f;
	--life-muted: #666666;
	--life-link: #245c87;
	--life-link-hover: #163d59;
	--life-border: #ebe9e3;
	--life-reading-width: 46rem;
	--life-sidebar-width: 19rem;
}

body {
	background: var(--life-paper);
	color: var(--life-ink);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, Helvetica, Arial, sans-serif;
	font-size: 18px;
	line-height: 1.75;
	text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
	color: var(--life-ink);
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title {
	color: var(--life-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.012em;
}

h1 { font-size: clamp(2rem, 4vw, 2.85rem); }
h2 { font-size: clamp(1.5rem, 2.7vw, 1.95rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.5rem); }

a {
	color: var(--life-link);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.14em;
}

a:hover,
a:focus {
	color: var(--life-link-hover);
}

.site-content {
	gap: clamp(2rem, 4vw, 4rem);
}

.content-area .site-main {
	max-width: var(--life-reading-width);
}

.inside-article,
.widget {
	background: var(--life-surface);
	border: 1px solid var(--life-border);
	box-shadow: none;
}

.inside-article {
	padding: clamp(1.5rem, 4vw, 3rem);
}

.entry-content {
	max-width: 70ch;
}

.entry-meta,
.entry-summary,
.wp-caption-text,
figcaption {
	color: var(--life-muted);
}

blockquote {
	border-left: 4px solid var(--life-border);
	color: #444;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.1em;
	font-style: italic;
	margin-left: 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
}

/* Header and navigation */
.site-header {
	background: var(--life-paper);
	border-bottom: 0;
}

.inside-header {
	display: block;
	padding-block: clamp(1.5rem, 4vw, 2.75rem);
	text-align: center;
}

.site-branding {
	text-align: center;
}

.site-title {
	font-size: clamp(2rem, 4.5vw, 3.15rem);
	margin: 0;
}

.site-description {
	color: var(--life-muted);
	font-size: 0.95rem;
	letter-spacing: 0.03em;
	margin-top: 0.35rem;
}

.main-navigation {
	background: var(--life-paper);
	border-top: 1px solid var(--life-border);
	border-bottom: 1px solid var(--life-border);
}

.main-navigation .inside-navigation,
.main-navigation .main-nav ul {
	justify-content: center;
}

.main-navigation .main-nav ul li a {
	letter-spacing: 0.02em;
	padding-inline: 1rem;
}

/* Sidebar */
.widget-area {
	width: min(100%, var(--life-sidebar-width));
}

.widget-title,
.sidebar .widget-title,
.widget-area .widget-title,
.widget h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.12rem !important;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 0.7rem;
	text-transform: none;
}

/* Native footer widgets */
.footer-widgets {
	background: #f2f1ed;
	color: var(--life-muted);
}

.footer-widgets .inside-footer-widgets {
	gap: clamp(1.25rem, 3vw, 2.5rem);
}

.footer-widgets .widget {
	background: transparent;
	border: 0;
	padding: 20px 30px;
}

/* Editable Publisher's Note */
.life-publisher-note {
	background: #f2f1ed;
	border-top: 1px solid var(--life-border);
	color: var(--life-muted);
	padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
	text-align: center;
}

.life-publisher-note__inner {
	margin: 0 auto;
	max-width: 52rem;
}

.life-publisher-note__title {
	color: var(--life-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.2rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
}

.life-publisher-note__text {
	margin: 0 auto 1rem;
	max-width: 46rem;
}

.life-publisher-note__links {
	font-size: 0.92rem;
	margin: 0;
}

.life-publisher-note__links a {
	margin-inline: 0.35rem;
}

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

.site-info {
	background: #eceae4;
	color: var(--life-muted);
}

@media (max-width: 768px) {
	body {
		font-size: 17px;
	}

	.inside-header {
		padding-block: 1.4rem;
	}

	.widget-area {
		width: 100%;
	}

	.footer-widgets .widget {
		padding: 16px 18px;
	}
}
