/*
Theme Name: LifeJournal
Theme URI: https://wordpress.org/themes/
Author: LifeJournal
Description: A clean, elegant editorial blogging theme for guest-post sites. A full-width featured story with the image on the left and a Read Full Article button, then a Latest Articles list beside a Recent Posts sidebar (shuffled every visit, or latest) with Categories and Pages. Self-hosted fonts, no theme JavaScript.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lifejournal
Update URI: false
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-options
*/

/* Fonts (self-hosted, no Google requests) */
@font-face {
	font-family: "Lora";
	src: url("assets/fonts/lora.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Nunito Sans";
	src: url("assets/fonts/nunito-sans.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Base (shared structure; the theme section below sets the look)
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--lj-bg);
	color: var(--lj-ink);
	font-family: var(--lj-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, video, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--lj-display);
	line-height: 1.15;
	text-wrap: balance;
}

:focus-visible { outline: 3px solid var(--lj-focus, currentColor); outline-offset: 3px; border-radius: 4px; }

.lj-wrap { width: min(100% - 32px, var(--lj-wrap)); margin-inline: auto; }

.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,
.skip-link:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	left: 12px;
	top: 12px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--lj-accent);
	color: var(--lj-on-accent);
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
}

/* Buttons */
.lj-btn,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.7em 1.25em;
	background: var(--lj-accent);
	color: var(--lj-on-accent);
	border: 0;
	border-radius: var(--lj-btn-radius, 8px);
	font-family: var(--lj-display);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.lj-btn:hover,
.comment-form .submit:hover { transform: translateY(-2px); }

/* Mobile menu toggle (pure CSS checkbox) */
.lj-nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lj-nav-button { display: none; }
.lj-burger { position: relative; width: 18px; height: 12px; }
.lj-burger::before,
.lj-burger::after,
.lj-burger span {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.lj-burger::before { top: 0; }
.lj-burger span { top: 5px; }
.lj-burger::after { top: 10px; }
.lj-nav-toggle:checked + .lj-nav-button .lj-burger::before { transform: translateY(5px) rotate(45deg); }
.lj-nav-toggle:checked + .lj-nav-button .lj-burger span { opacity: 0; }
.lj-nav-toggle:checked + .lj-nav-button .lj-burger::after { transform: translateY(-5px) rotate(-45deg); }
.lj-nav-toggle:focus-visible + .lj-nav-button { outline: 3px solid currentColor; outline-offset: 3px; }

.lj-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lj-menu li { position: relative; }
.lj-menu a { display: block; text-decoration: none; }
.lj-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	min-width: 210px;
	margin: 0;
	padding: 8px;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.lj-menu li:hover > .sub-menu,
.lj-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

/* Thumbnails */
.lj-thumb {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	text-decoration: none;
	background: var(--lj-soft);
}
.lj-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
a.lj-thumb:hover img { transform: scale(1.04); }
.lj-thumb__fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--lj-tone, var(--lj-soft));
	font-family: var(--lj-display);
	font-weight: 700;
	font-size: clamp(2.6rem, 7vw, 4.2rem);
	line-height: 1;
	color: var(--lj-tone-ink, var(--lj-ink));
}

/* Chips + meta */
.lj-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.lj-chip { text-decoration: none; }
.lj-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: var(--lj-muted); font-size: 0.88rem; }
.lj-meta__item + .lj-meta__item::before { content: "·"; margin: 0 8px; }
.lj-meta a { color: var(--lj-ink); font-weight: 700; text-decoration: none; }
.lj-meta a:hover { text-decoration: underline; }
.lj-meta__avatar { width: 40px; height: 40px; margin-right: 10px; border-radius: 50%; }

/* Lists in boxes */
.lj-catlist,
.lj-pagelist,
.lj-randlist { margin: 0; padding: 0; list-style: none; }
.lj-pagelist .children { display: none; }
.lj-cat,
.lj-pagelist a { text-decoration: none; }
.lj-randlist,
.lj-rand,
.lj-rand__media { position: relative; }
.lj-rand__title { margin: 0 0 6px; }
.lj-rand__title a,
.lj-card__title a,
.lj-full__title a { text-decoration: none; }
.lj-rand__text { margin: 0 0 8px; }
.lj-rand__more { font-weight: 700; }
.widget.lj-box > :not(.lj-box__title) { margin: 16px 18px; }
.widget.lj-box ul { padding-left: 1.1em; }

/* Article content */
.lj-entry { font-size: 1.075rem; line-height: 1.78; overflow-wrap: break-word; }
.lj-entry > * { margin-block: 0 1.15em; }
.lj-entry > *:last-child { margin-bottom: 0; }
.lj-entry h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 1.6em; }
.lj-entry h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-top: 1.5em; }
.lj-entry h4 { font-size: 1.15rem; margin-top: 1.4em; }
.lj-entry a { color: var(--lj-link, var(--lj-ink)); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lj-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lj-entry a:hover { text-decoration-thickness: 4px; }
.lj-entry ul,
.lj-entry ol { padding-left: 1.4em; }
.lj-entry li { margin-bottom: 0.4em; }
.lj-entry li::marker { color: var(--lj-accent); }
.lj-entry blockquote { margin-inline: 0; }
.lj-entry blockquote p:last-child { margin-bottom: 0; }
.lj-entry blockquote cite { display: block; margin-top: 10px; font-size: 0.9rem; font-style: normal; color: var(--lj-muted); }
.lj-entry img { border-radius: var(--lj-img-radius, 8px); }
.lj-entry figure { margin-inline: 0; }
.lj-entry figcaption,
.wp-caption-text,
.wp-element-caption { margin-top: 8px; color: var(--lj-muted); font-size: 0.88rem; text-align: center; }
.lj-entry code,
.lj-entry kbd { padding: 0.12em 0.4em; background: var(--lj-soft); border-radius: 6px; font-family: var(--lj-mono); font-size: 0.88em; }
.lj-entry pre { padding: 20px 22px; background: #15131c; color: #f3f0e8; border-radius: 10px; overflow-x: auto; font-family: var(--lj-mono); font-size: 0.9rem; line-height: 1.6; }
.lj-entry pre code { padding: 0; background: none; color: inherit; }
.lj-entry table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.lj-entry th,
.lj-entry td { padding: 10px 12px; border: 1px solid var(--lj-line); text-align: left; }
.lj-entry th { background: var(--lj-soft); }
.lj-entry .wp-block-table { overflow-x: auto; }
.lj-entry hr { border: 0; height: 1px; background: var(--lj-line); margin: 2.4em 0; }
.lj-entry .more-link { display: inline-block; margin-top: 4px; font-family: var(--lj-display); font-weight: 700; }
.lj-pagelinks { margin-top: 22px; font-weight: 700; }
.lj-pagelinks a,
.lj-pagelinks > span:not(:first-child) { margin-left: 6px; }

.lj-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.lj-tags a { padding: 0.3em 0.75em; border-radius: 6px; background: var(--lj-soft); font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.lj-tags a::before { content: "#"; color: var(--lj-accent); margin-right: 1px; }

/* WordPress core classes */
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide,
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-caption { font-size: 0.85rem; }
.sticky { position: relative; }
.bypostauthor > .comment-body { outline: 2px solid var(--lj-accent); }

/* Single post */
.lj-single__thumb { margin: 0; }
.lj-single__thumb img { display: block; width: 100%; height: auto; }
.lj-single .lj-tags { margin-top: 30px; }
.lj-author { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 32px; padding: 22px; }
.lj-author__avatar { width: 88px; height: 88px; border-radius: 50%; }
.lj-author__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lj-muted); }
.lj-author__name { margin: 2px 0 6px; font-size: 1.35rem; }
.lj-author__name a { text-decoration: none; }
.lj-author__bio { margin: 0 0 8px; font-size: 0.98rem; color: var(--lj-muted); }
.lj-author__site { font-weight: 700; font-size: 0.92rem; }
@media (max-width: 520px) {
	.lj-author { grid-template-columns: 1fr; }
	.lj-author__avatar { width: 64px; height: 64px; }
}

.lj-postnav { margin-top: 36px; }
.lj-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lj-postnav .nav-next { grid-column: 2; text-align: right; }
.lj-postnav a { display: block; height: 100%; padding: 18px 20px; text-decoration: none; }
.lj-postnav__label { display: block; margin-bottom: 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lj-muted); }
.lj-postnav__title { font-family: var(--lj-display); font-weight: 700; line-height: 1.3; }
@media (max-width: 640px) {
	.lj-postnav .nav-links { grid-template-columns: 1fr; }
	.lj-postnav .nav-next { grid-column: auto; }
}

/* Pagination */
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	font-family: var(--lj-display);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.page-numbers.dots { background: transparent !important; border-color: transparent !important; }

/* Archive header */
.lj-archive-head { margin-bottom: 32px; }
.lj-archive-head__title { margin: 10px 0 8px; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.lj-archive-head__desc { color: var(--lj-muted); max-width: 60ch; }
.lj-archive-head .lj-search { margin-top: 18px; max-width: 520px; }

/* Search + comments */
.lj-search { display: flex; gap: 8px; }
.lj-search__input,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--lj-paper);
	color: var(--lj-ink);
	border: 1px solid var(--lj-line);
	border-radius: var(--lj-input-radius, 8px);
	font: inherit;
	font-size: 1rem;
}
.lj-search__input:focus,
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--lj-accent); box-shadow: 0 0 0 3px var(--lj-ring, rgba(0, 0, 0, 0.12)); }
.lj-search__btn {
	flex: none;
	display: grid;
	place-items: center;
	width: 50px;
	background: var(--lj-accent);
	color: var(--lj-on-accent);
	border: 0;
	border-radius: var(--lj-input-radius, 8px);
	cursor: pointer;
}

.lj-comments { margin-top: 44px; }
.lj-comments__title { font-size: 1.6rem; margin-bottom: 20px; }
.lj-comment-list,
.lj-comment-list .children { margin: 0; padding: 0; list-style: none; }
.lj-comment-list .children { margin-left: clamp(14px, 4vw, 34px); }
.comment-body { margin-bottom: 16px; padding: 18px 20px; background: var(--lj-paper); border: 1px solid var(--lj-line); border-radius: var(--lj-radius); }
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--lj-display); font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 4px 0 10px; font-size: 0.82rem; }
.comment-metadata a { color: var(--lj-muted); text-decoration: none; }
.comment-content { font-size: 1rem; }
.reply a { font-size: 0.85rem; font-weight: 700; }
.comment-respond { padding: clamp(20px, 4vw, 30px); background: var(--lj-paper); border: 1px solid var(--lj-line); border-radius: var(--lj-radius); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 0.92rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-reply-title small { margin-left: 10px; font-size: 0.85rem; }

/* 404 + empty */
.lj-404,
.lj-empty { padding: clamp(28px, 5vw, 48px); text-align: center; background: var(--lj-paper); border-radius: var(--lj-radius); }
.lj-404__num { margin: 0; font-family: var(--lj-display); font-weight: 800; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--lj-accent); }
.lj-404 .lj-search,
.lj-empty .lj-search { max-width: 460px; margin: 18px auto 22px; }

/* Footer widgets */
.lj-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; padding-bottom: 32px; margin-bottom: 32px; }
.lj-footer-widget ul { padding-left: 1.1em; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { transition: none !important; animation: none !important; }
}


/* ==========================================================================
   News kit (shared structure for the news-style themes)
   ========================================================================== */
body { font-size: 1.02rem; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.012em; }
.lj-icon { flex: none; }

/* Badge / dot tones */
.lj-t0 { --lj-tone: #1f4fae; --lj-tone-bg: #e3ecfb; }
.lj-t1 { --lj-tone: #2b7a3d; --lj-tone-bg: #e2f3e6; }
.lj-t2 { --lj-tone: #b5591a; --lj-tone-bg: #fdeedd; }
.lj-t3 { --lj-tone: #b23a55; --lj-tone-bg: #fbe7ea; }
.lj-t4 { --lj-tone: #5b45a8; --lj-tone-bg: #ece8f8; }
.lj-thumb__fallback { background: var(--lj-tone-bg); color: var(--lj-tone); font-family: var(--lj-display); }

.lj-badge,
.lj-chip {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	background: var(--lj-tone-bg);
	color: var(--lj-tone);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
	text-decoration: none;
}
.lj-badge:hover,
.lj-chip:hover { background: var(--lj-tone); color: #ffffff; }

.lj-dateline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; color: var(--lj-muted); font-size: 0.85rem; }
.lj-dateline span,
.lj-dateline a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.lj-dateline a:hover { color: var(--lj-accent); }

.lj-btn { font-family: var(--lj-body); font-weight: 600; font-size: 0.95rem; padding: 0.75em 1.4em; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.lj-btn:hover { background: var(--lj-accent-dark, var(--lj-ink)); color: #ffffff; transform: none; }
.lj-btn .lj-icon { transition: transform 0.15s ease; }
.lj-btn:hover .lj-icon { transform: translateX(3px); }

/* Header */
.lj-header { background: var(--lj-paper); border-bottom: 1px solid var(--lj-line); position: relative; z-index: 50; }
.lj-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; min-height: 72px; padding-block: 10px; }
.lj-brand { flex: none; }
.lj-brand__title { margin: 0; font-family: var(--lj-display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.15rem); line-height: 1; letter-spacing: -0.03em; color: var(--lj-ink); }
.lj-brand__title a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lj-brand__mark { display: grid; flex: none; color: var(--lj-accent); }
.lj-brand__tagline { margin: 3px 0 0 var(--lj-logo-gap, 50px); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; color: var(--lj-muted); }
.custom-logo { max-height: 56px; width: auto; }

.lj-header__panel { flex: 1; display: flex; align-items: center; gap: 20px; }
.lj-nav { margin-inline: auto; }
.lj-menu { gap: 2px 6px; }
.lj-menu > li > a { position: relative; padding: 12px 13px; white-space: nowrap; font-weight: 500; font-size: 0.95rem; color: var(--lj-ink); }
.lj-menu > .current-menu-item > a,
.lj-menu > .current_page_item > a { color: var(--lj-accent); }
.lj-menu a { display: inline-flex; align-items: center; gap: 4px; }
.lj-menu > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--lj-accent); transform: scaleX(0); transition: transform 0.2s ease; }
.lj-menu > li > a:hover::after,
.lj-menu > .current-menu-item > a::after,
.lj-menu > .current_page_item > a::after,
.lj-menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
.lj-menu > .current-menu-item > a { color: var(--lj-ink); }
.lj-menu .sub-menu { background: var(--lj-paper); border: 1px solid var(--lj-line); border-radius: var(--lj-radius); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.lj-menu .sub-menu a { display: block; padding: 8px 12px; border-radius: 4px; font-size: 0.92rem; }
.lj-menu .sub-menu a:hover { background: var(--lj-soft); }
.lj-menu .sub-menu .sub-menu { top: 0; left: 100%; }

.lj-header__tools { display: flex; align-items: center; gap: 10px; }
.lj-cta { white-space: nowrap; background: transparent; color: var(--lj-accent); border: 1px solid var(--lj-accent); box-shadow: none; font-family: var(--lj-body); font-size: 0.85rem; padding: 0.55em 1em; }
.lj-cta:hover { background: var(--lj-accent); color: #ffffff; transform: none; }
.lj-searchbox { position: relative; }
.lj-searchbox summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--lj-ink); cursor: pointer; list-style: none; }
.lj-searchbox summary::-webkit-details-marker { display: none; }
.lj-searchbox summary:hover,
.lj-searchbox[open] summary { background: var(--lj-soft); }
.lj-searchbox summary svg { width: 22px; height: 22px; }
.lj-searchbox__panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, 88vw); padding: 12px; background: var(--lj-paper); border: 1px solid var(--lj-line); border-radius: var(--lj-radius); box-shadow: 0 16px 40px rgba(22, 32, 58, 0.12); }
.lj-mobile-search { display: none; }

@media (max-width: 1180px) {
	.lj-header__inner { justify-content: space-between; flex-wrap: wrap; }
	.lj-brand { flex: 1 1 0; min-width: 0; }
	.lj-nav-button { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid var(--lj-line); border-radius: 4px; font-weight: 600; cursor: pointer; }
	.lj-header__panel { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 8px; }
	.lj-nav-toggle:checked ~ .lj-header__panel { display: flex; }
	.lj-nav { margin: 0; }
	.lj-menu { flex-direction: column; align-items: stretch; }
	.lj-menu > li > a { display: flex; padding: 10px 4px; border-bottom: 1px solid var(--lj-line); }
	.lj-menu > li > a::after { display: none; }
	.lj-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 14px; }
	.lj-header__tools { flex-wrap: wrap; }
	.lj-searchbox { display: none; }
	.lj-mobile-search { display: block; flex: 1 1 240px; }
}

@media (min-width: 1181px) and (max-width: 1360px) {
	.lj-header__inner { gap: 12px 18px; }
	.lj-menu > li > a { padding-inline: 9px; font-size: 0.92rem; }
	.lj-menu > li > a::after { left: 9px; right: 9px; }
	.lj-brand__title { font-size: 1.8rem; }
}

/* Layout */
.lj-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 28px;
	align-items: start;
	padding-block: 26px 60px;
}
.lj-main,
.lj-box { background: var(--lj-paper); border: 1px solid var(--lj-line); border-radius: var(--lj-radius); box-shadow: var(--lj-panel-shadow); }
.lj-main { min-width: 0; padding: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px) 28px; }
.lj-sidebar { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

@media (max-width: 1080px) {
	.lj-layout { grid-template-columns: minmax(0, 1fr); padding-block: 18px 48px; }
}
@media (max-width: 560px) {
	.lj-sidebar__pair { grid-template-columns: minmax(0, 1fr); }
}

/* Post rows */
.lj-feed--cards { display: flex; flex-direction: column; }
.lj-card {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
	gap: 26px;
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--lj-line);
}
.lj-card:last-child { margin-bottom: 0; border-bottom: 0; }
.lj-card__thumb { aspect-ratio: 16 / 8.4; border-radius: var(--lj-radius); }
.lj-card__title { margin: 8px 0 6px; font-size: 1.32rem; font-weight: 600; line-height: 1.25; color: var(--lj-ink); }
.lj-card__title a:hover { color: var(--lj-accent); }
.lj-card__excerpt { margin: 0 0 10px; color: var(--lj-muted); font-size: 0.98rem; line-height: 1.5; }
@media (max-width: 640px) {
	.lj-card { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.lj-card__thumb { aspect-ratio: 16 / 9; }
}

/* Full posts (Customizer option) */
.lj-feed--full { display: flex; flex-direction: column; gap: 34px; }
.lj-full { padding-bottom: 30px; border-bottom: 1px solid var(--lj-line); }
.lj-full:last-child { border-bottom: 0; }
.lj-full__thumb { border-radius: var(--lj-radius); margin-bottom: 18px; }
.lj-full__title { margin: 6px 0 10px; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; }
.lj-full__title a:hover { color: var(--lj-accent); }
.lj-full .lj-meta { margin-bottom: 18px; }
.lj-full__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.lj-btn--ghost { background: transparent; color: var(--lj-accent); border: 1px solid var(--lj-accent); box-shadow: none; font-size: 0.85rem; }

/* Sidebar boxes */
.lj-box { padding: 20px 20px 18px; }
.lj-box__title { position: relative; display: block; margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--lj-line); font-size: 1.3rem; font-weight: 700; color: var(--lj-ink); }
.lj-box__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 40px; height: 3px; border-radius: 2px; background: var(--lj-accent); }
.lj-box--cats .lj-box__title,
.lj-box--pages .lj-box__title { margin-bottom: 12px; }
.lj-pagelist li:first-child,
.lj-catlist li:first-child { border-top: 0 !important; }
.lj-pagelist li,
.lj-catlist li { border-bottom: 1px solid var(--lj-line); }
.lj-pagelist li:first-child,
.lj-catlist li:first-child { border-top: 1px solid var(--lj-line); }
.lj-pagelist a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px; font-size: 0.94rem; color: var(--lj-ink); }
.lj-pagelist a::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.6px solid var(--lj-muted); border-top: 1.6px solid var(--lj-muted); transform: rotate(45deg); margin-right: 4px; transition: transform 0.15s ease; }
.lj-pagelist a:hover,
.lj-pagelist .current_page_item > a { color: var(--lj-accent); }
.lj-pagelist a:hover::after { transform: translateX(3px) rotate(45deg); border-color: var(--lj-accent); }

.lj-cat { display: flex; align-items: center; gap: 12px; padding: 7px 2px; font-size: 0.94rem; color: var(--lj-ink); }
.lj-cat::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--lj-tone); }
.lj-cat__name { flex: 1; }
.lj-cat:hover .lj-cat__name,
.lj-cat.is-current .lj-cat__name { color: var(--lj-accent); }
.lj-count { min-width: 30px; padding: 1px 7px; border-radius: 3px; background: var(--lj-soft); color: var(--lj-muted); font-size: 0.8rem; text-align: center; }

.lj-box__head { position: relative; margin-bottom: 4px; }
.lj-box__head .lj-box__link { position: absolute; right: 0; top: 6px; }
.lj-box__head .lj-box__title { margin: 0; }
.lj-box__link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--lj-ink); text-decoration: none; }
.lj-box__link:hover { color: var(--lj-accent); }
.lj-postlist { margin: 0; padding: 0; list-style: none; }
.lj-mini { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; padding-block: 10px; border-bottom: 1px solid var(--lj-line); }
.lj-mini:last-child { border-bottom: 0; padding-bottom: 0; }
.lj-mini__thumb { aspect-ratio: 16 / 10; border-radius: var(--lj-radius); }
.lj-mini__thumb .lj-thumb__fallback { font-size: 2rem; }
.lj-mini__title { margin: 0 0 6px; font-size: 0.98rem; font-weight: 500; line-height: 1.35; }
.lj-mini__title a { text-decoration: none; }
.lj-mini__title a:hover { color: var(--lj-accent); }
.lj-mini__text { margin: 0 0 6px; color: var(--lj-muted); font-size: 0.88rem; line-height: 1.5; }
.lj-mini__date { display: inline-flex; align-items: center; gap: 5px; color: var(--lj-muted); font-size: 0.8rem; }
.widget.lj-box > :not(.lj-box__title) { margin: 10px 0 0; }

/* Single + page */
.lj-single__head { margin-bottom: 20px; }
.lj-single__title { margin: 10px 0 14px; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--lj-ink); }
.lj-single__thumb { margin-bottom: 26px; }
.lj-single__thumb img { border-radius: var(--lj-radius); }
.lj-entry { font-size: 1.06rem; color: var(--lj-text, var(--lj-ink)); }
.lj-entry h2,
.lj-entry h3,
.lj-entry h4 { color: var(--lj-ink); }
.lj-entry blockquote,
.lj-entry .wp-block-quote { padding: 18px 22px; background: var(--lj-soft); border-radius: var(--lj-radius); font-size: 1.15rem; font-weight: 500; line-height: 1.55; }
.lj-author { background: var(--lj-soft); border-radius: var(--lj-radius); }
.lj-postnav a { background: var(--lj-paper); border: 1px solid var(--lj-line); border-radius: var(--lj-radius); transition: border-color 0.15s ease; }
.lj-postnav a:hover { border-color: var(--lj-accent); }
.lj-tags a:hover { background: var(--lj-accent); color: #ffffff; }
.lj-tags a:hover::before { color: #ffffff; }

.page-numbers { border: 1px solid var(--lj-line); border-radius: 4px; font-family: var(--lj-body); font-weight: 600; color: var(--lj-ink); }
a.page-numbers:hover { border-color: var(--lj-accent); color: var(--lj-accent); }
.page-numbers.current { background: var(--lj-accent); border-color: var(--lj-accent); color: #ffffff; }

.lj-kicker { display: inline-block; padding: 3px 8px; border-radius: 3px; background: var(--lj-soft); color: var(--lj-accent); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.lj-archive-head { padding-bottom: 18px; border-bottom: 1px solid var(--lj-line); margin-bottom: 22px; }
.lj-archive-head__title { color: var(--lj-ink); }
.lj-404,
.lj-empty { padding: 30px 10px; }

/* Footer */
.lj-footer { background: var(--lj-foot-bg, #121a2f); color: var(--lj-foot-ink, #e7ece9); padding-block: 40px 30px; }
.lj-footer a { color: inherit; text-decoration: none; }
.lj-footer__widgets { border-bottom: 1px solid rgba(231, 236, 233, 0.15); }
.lj-footer-widget__title { font-size: 1.15rem; color: #ffffff; }
.lj-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.lj-footer__brand { font-family: var(--lj-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.03em; }
.lj-footer__brand .lj-brand__hl { color: var(--lj-foot-hl, #9db8ff); }
.lj-footer__credit { margin: 8px 0 0; opacity: 0.78; font-size: 0.88rem; }
.lj-footer__menu { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.lj-footer__menu a:hover,
.lj-footer__top:hover { color: var(--lj-foot-hl, #9db8ff); }
.lj-footer__top { font-size: 0.88rem; font-weight: 600; }

@media (max-width: 560px) {
	.lj-brand__title { font-size: 1.55rem; }
	.lj-brand__tagline { display: none; }
}

.lj-featured__body > .lj-badge,
.lj-card__body > .lj-badge { align-self: flex-start; }


/* ==========================================================================
   LifeJournal look (Design 1: clean editorial)
   ========================================================================== */
:root {
	--lj-bg: #f6f7f4;
	--lj-paper: #ffffff;
	--lj-ink: #1e2a22;
	--lj-text: #2d3830;
	--lj-muted: #5a645c;
	--lj-soft: #eef3ec;
	--lj-line: #e5e9e2;
	--lj-accent: #2f6b3a;
	--lj-accent-dark: #22512b;
	--lj-on-accent: #ffffff;
	--lj-link: #2f6b3a;
	--lj-radius: 6px;
	--lj-btn-radius: 4px;
	--lj-input-radius: 4px;
	--lj-img-radius: 4px;
	--lj-focus: #2f6b3a;
	--lj-ring: rgba(47, 107, 58, 0.18);
	--lj-panel-shadow: 0 1px 3px rgba(30, 42, 34, 0.05);
	--lj-foot-bg: #18261c;
	--lj-foot-hl: #a7d9ae;
	--lj-logo-gap: 52px;
	--lj-display: "Lora", Georgia, "Times New Roman", serif;
	--lj-body: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--lj-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--lj-wrap: 1320px;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.01em; }
.lj-brand__title { font-family: var(--lj-display); font-weight: 700; letter-spacing: -0.02em; color: var(--lj-ink); }
.lj-brand__mark { color: #3f8f45; }
.lj-t0 { --lj-tone: #2f6b3a; --lj-tone-bg: #e2f1e2; }

/* Featured: full width above both columns */
.lj-hero-wrap { padding-top: 26px; }
.lj-featured {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	gap: 30px;
	align-items: stretch;
	padding: clamp(16px, 2vw, 22px);
	background: var(--lj-paper);
	border: 1px solid var(--lj-line);
	border-radius: var(--lj-radius);
	box-shadow: var(--lj-panel-shadow);
}
.lj-featured__thumb { aspect-ratio: auto; height: 100%; min-height: 320px; border-radius: var(--lj-radius); }
.lj-featured__body { display: flex; flex-direction: column; justify-content: center; padding-block: 8px; }
.lj-featured__title { margin: 10px 0 12px; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.15; }
.lj-featured__title a { text-decoration: none; }
.lj-featured__title a:hover { color: var(--lj-link); }
.lj-featured .lj-dateline { margin-bottom: 14px; }
.lj-featured__text { margin: 0 0 20px; color: var(--lj-muted); font-size: 0.98rem; line-height: 1.65; }
.lj-featured .lj-btn { align-self: flex-start; }
@media (max-width: 760px) {
	.lj-featured { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.lj-featured__thumb { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
}

/* Latest Articles */
.lj-layout { padding-top: 24px; }
@media (min-width: 1081px) {
	.lj-layout { grid-template-columns: minmax(0, 1fr) 360px; }
}
.lj-section-title { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--lj-line); font-size: 1.45rem; }
.lj-card { grid-template-columns: 210px minmax(0, 1fr); gap: 20px; }
.lj-card__thumb { aspect-ratio: 4 / 3; }
.lj-card__title { margin: 6px 0 6px; font-family: var(--lj-display); font-size: 1.28rem; font-weight: 600; }
.lj-card__excerpt { margin: 8px 0 0; font-size: 0.94rem; }
.lj-card .lj-dateline { font-size: 0.8rem; }
@media (max-width: 640px) {
	.lj-card { grid-template-columns: minmax(0, 1fr); }
	.lj-card__thumb { aspect-ratio: 16 / 9; }
}

.lj-box__title { font-family: var(--lj-display); font-size: 1.3rem; font-weight: 600; }
.lj-mini__title { font-family: var(--lj-body); font-size: 0.95rem; font-weight: 600; }
.lj-single__title { font-family: var(--lj-display); font-weight: 600; }
.lj-entry blockquote,
.lj-entry .wp-block-quote { font-family: var(--lj-display); font-style: italic; font-size: 1.25rem; font-weight: 400; border-left: 3px solid var(--lj-accent); border-radius: 0 var(--lj-radius) var(--lj-radius) 0; }
.lj-footer__brand { font-family: var(--lj-display); font-weight: 700; }
