/*
Theme Name: Mosaic
Theme URI: https://wordpress.org/themes/
Author: Mosaic
Description: An app-style blogging theme for guest-post sites. A dark left rail holds your logo, search, Pages and Categories; the homepage is a big hero story plus a Pinterest-style masonry wall of posts; 10 shuffled posts (image, title, 100-word preview) scroll sideways in a strip that changes on every visit. 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: mosaic
Update URI: false
Tags: blog, news, two-columns, left-sidebar, grid-layout, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-options
*/

/* Fonts (self-hosted, no Google requests) */
@font-face {
	font-family: "Young Serif";
	src: url("assets/fonts/young-serif.woff2") format("woff2");
	font-weight: 400 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("assets/fonts/plus-jakarta-sans.woff2") format("woff2");
	font-weight: 200 800;
	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(--mo-bg);
	color: var(--mo-ink);
	font-family: var(--mo-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(--mo-display);
	line-height: 1.15;
	text-wrap: balance;
}

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

.mo-wrap { width: min(100% - 32px, var(--mo-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(--mo-accent);
	color: var(--mo-on-accent);
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
}

/* Buttons */
.mo-btn,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.7em 1.25em;
	background: var(--mo-accent);
	color: var(--mo-on-accent);
	border: 0;
	border-radius: var(--mo-btn-radius, 8px);
	font-family: var(--mo-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;
}
.mo-btn:hover,
.comment-form .submit:hover { transform: translateY(-2px); }

/* Mobile menu toggle (pure CSS checkbox) */
.mo-nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mo-nav-button { display: none; }
.mo-burger { position: relative; width: 18px; height: 12px; }
.mo-burger::before,
.mo-burger::after,
.mo-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;
}
.mo-burger::before { top: 0; }
.mo-burger span { top: 5px; }
.mo-burger::after { top: 10px; }
.mo-nav-toggle:checked + .mo-nav-button .mo-burger::before { transform: translateY(5px) rotate(45deg); }
.mo-nav-toggle:checked + .mo-nav-button .mo-burger span { opacity: 0; }
.mo-nav-toggle:checked + .mo-nav-button .mo-burger::after { transform: translateY(-5px) rotate(-45deg); }
.mo-nav-toggle:focus-visible + .mo-nav-button { outline: 3px solid currentColor; outline-offset: 3px; }

.mo-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mo-menu li { position: relative; }
.mo-menu a { display: block; text-decoration: none; }
.mo-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;
}
.mo-menu li:hover > .sub-menu,
.mo-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

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

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

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

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

.mo-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mo-tags a { padding: 0.3em 0.75em; border-radius: 6px; background: var(--mo-soft); font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.mo-tags a::before { content: "#"; color: var(--mo-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(--mo-accent); }

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

.mo-postnav { margin-top: 36px; }
.mo-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mo-postnav .nav-next { grid-column: 2; text-align: right; }
.mo-postnav a { display: block; height: 100%; padding: 18px 20px; text-decoration: none; }
.mo-postnav__label { display: block; margin-bottom: 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mo-muted); }
.mo-postnav__title { font-family: var(--mo-display); font-weight: 700; line-height: 1.3; }
@media (max-width: 640px) {
	.mo-postnav .nav-links { grid-template-columns: 1fr; }
	.mo-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(--mo-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 */
.mo-archive-head { margin-bottom: 32px; }
.mo-archive-head__title { margin: 10px 0 8px; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.mo-archive-head__desc { color: var(--mo-muted); max-width: 60ch; }
.mo-archive-head .mo-search { margin-top: 18px; max-width: 520px; }

/* Search + comments */
.mo-search { display: flex; gap: 8px; }
.mo-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(--mo-paper);
	color: var(--mo-ink);
	border: 1px solid var(--mo-line);
	border-radius: var(--mo-input-radius, 8px);
	font: inherit;
	font-size: 1rem;
}
.mo-search__input:focus,
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--mo-accent); box-shadow: 0 0 0 3px var(--mo-ring, rgba(0, 0, 0, 0.12)); }
.mo-search__btn {
	flex: none;
	display: grid;
	place-items: center;
	width: 50px;
	background: var(--mo-accent);
	color: var(--mo-on-accent);
	border: 0;
	border-radius: var(--mo-input-radius, 8px);
	cursor: pointer;
}

.mo-comments { margin-top: 44px; }
.mo-comments__title { font-size: 1.6rem; margin-bottom: 20px; }
.mo-comment-list,
.mo-comment-list .children { margin: 0; padding: 0; list-style: none; }
.mo-comment-list .children { margin-left: clamp(14px, 4vw, 34px); }
.comment-body { margin-bottom: 16px; padding: 18px 20px; background: var(--mo-paper); border: 1px solid var(--mo-line); border-radius: var(--mo-radius); }
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--mo-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(--mo-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(--mo-paper); border: 1px solid var(--mo-line); border-radius: var(--mo-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 */
.mo-404,
.mo-empty { padding: clamp(28px, 5vw, 48px); text-align: center; background: var(--mo-paper); border-radius: var(--mo-radius); }
.mo-404__num { margin: 0; font-family: var(--mo-display); font-weight: 800; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--mo-accent); }
.mo-404 .mo-search,
.mo-empty .mo-search { max-width: 460px; margin: 18px auto 22px; }

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

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


/* ==========================================================================
   Mosaic look
   ========================================================================== */
:root {
	--mo-bg: #f3ece2;
	--mo-paper: #fffdf9;
	--mo-ink: #2b211c;
	--mo-muted: #6b5d52;
	--mo-soft: #efe5d8;
	--mo-line: #e3d8c9;
	--mo-rail: #2b211c;
	--mo-rail-2: #3a2d26;
	--mo-rail-text: #f3ece2;
	--mo-rail-muted: #cbbfb2;
	--mo-accent: #c8553d;
	--mo-on-accent: #ffffff;
	--mo-link: #a3412c;
	--mo-radius: 18px;
	--mo-btn-radius: 999px;
	--mo-input-radius: 12px;
	--mo-img-radius: 14px;
	--mo-focus: #c8553d;
	--mo-ring: rgba(200, 85, 61, 0.2);
	--mo-shadow: 0 1px 2px rgba(43, 33, 28, 0.06), 0 8px 24px rgba(43, 33, 28, 0.06);
	--mo-display: "Young Serif", Georgia, "Times New Roman", serif;
	--mo-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mo-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--mo-wrap: 1180px;
}

body { font-size: 1rem; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; letter-spacing: -0.01em; }

.mo-t0 { --mo-tone: #e8b4a0; }
.mo-t1 { --mo-tone: #b7c9a8; }
.mo-t2 { --mo-tone: #f0cf8a; }
.mo-t3 { --mo-tone: #b9c6d6; }
.mo-t4 { --mo-tone: #dcbccb; }
.mo-thumb__fallback { font-weight: 400; }

/* ---------- App shell ---------- */
.mo-shell { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 100vh; }
.mo-rail {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
	background: var(--mo-rail);
	color: var(--mo-rail-text);
	padding: 28px 22px 32px;
	scrollbar-width: thin;
	scrollbar-color: #5a4a40 transparent;
}
.admin-bar .mo-rail { top: 32px; height: calc(100vh - 32px); }
.mo-stage { min-width: 0; display: flex; flex-direction: column; }

.mo-rail__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mo-brand__title { margin: 0; font-family: var(--mo-display); font-size: 1.6rem; line-height: 1.15; }
.mo-brand__title a { display: flex; align-items: center; gap: 12px; color: var(--mo-rail-text); text-decoration: none; }
.mo-brand__tile { flex: none; display: grid; grid-template-columns: repeat(2, 12px); gap: 3px; }
.mo-brand__tile span { width: 12px; height: 12px; border-radius: 3px; background: var(--mo-accent); }
.mo-brand__tile span:nth-child(2) { background: #f0cf8a; border-radius: 50%; }
.mo-brand__tile span:nth-child(3) { background: #b7c9a8; border-radius: 50%; }
.mo-brand__tile span:nth-child(4) { background: var(--mo-rail-text); }
.mo-brand__tagline { margin: 10px 0 0; font-size: 0.85rem; color: var(--mo-rail-muted); line-height: 1.5; }
.custom-logo { max-height: 64px; width: auto; }

.mo-rail__panel { display: flex; flex-direction: column; gap: 26px; margin-top: 28px; }
.mo-rail .mo-search__input { background: var(--mo-rail-2); border-color: #4a3b33; color: var(--mo-rail-text); }
.mo-rail .mo-search__input::placeholder { color: var(--mo-rail-muted); }
.mo-rail .mo-search__btn { width: 46px; }

.mo-menu { flex-direction: column; align-items: stretch; gap: 2px; }
.mo-menu a { padding: 9px 12px; border-radius: 10px; color: var(--mo-rail-text); font-weight: 600; }
.mo-menu a:hover { background: var(--mo-rail-2); }
.mo-menu .current-menu-item > a,
.mo-menu .current_page_item > a { background: var(--mo-accent); color: var(--mo-on-accent); }
.mo-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; padding: 2px 0 0 14px; background: none; }
.mo-menu .sub-menu a { font-weight: 500; color: var(--mo-rail-muted); }

.mo-rail .mo-box__title {
	margin: 0 0 10px;
	font-family: var(--mo-body);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mo-rail-muted);
}
.mo-rail .mo-catlist { display: flex; flex-wrap: wrap; gap: 8px; }
.mo-rail .mo-cat {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 6px 6px 12px;
	border-radius: 999px;
	background: var(--mo-rail-2);
	color: var(--mo-rail-text);
	font-size: 0.86rem;
	font-weight: 600;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.mo-rail .mo-cat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mo-tone); }
.mo-rail .mo-cat:hover,
.mo-rail .mo-cat.is-current { background: var(--mo-tone); color: var(--mo-ink); }
.mo-rail .mo-cat:hover::before,
.mo-rail .mo-cat.is-current::before { background: var(--mo-ink); }
.mo-rail .mo-count { min-width: 22px; padding: 1px 6px; border-radius: 999px; background: rgba(243, 236, 226, 0.12); font-size: 0.72rem; text-align: center; }
.mo-rail .mo-pagelist a { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 10px; color: var(--mo-rail-text); font-size: 0.94rem; }
.mo-rail .mo-pagelist a::after { content: "\2192"; color: var(--mo-rail-muted); transition: transform 0.15s ease; }
.mo-rail .mo-pagelist a:hover { background: var(--mo-rail-2); }
.mo-rail .mo-pagelist a:hover::after { transform: translateX(3px); color: var(--mo-accent); }
.mo-rail .mo-pagelist .current_page_item > a { background: var(--mo-rail-2); }
.mo-cta { align-self: flex-start; }

@media (max-width: 1024px) {
	.mo-shell { grid-template-columns: minmax(0, 1fr); }
	.mo-rail { position: relative; height: auto; overflow: visible; padding: 16px 18px; z-index: 50; }
	.admin-bar .mo-rail { top: 0; height: auto; }
	.mo-rail__top { align-items: center; }
	.mo-brand__tagline { display: none; }
	.mo-nav-button {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		padding: 9px 16px;
		border: 1px solid #4a3b33;
		border-radius: 999px;
		color: var(--mo-rail-text);
		font-weight: 600;
		cursor: pointer;
	}
	.mo-rail__panel { display: none; margin-top: 18px; }
	.mo-nav-toggle:checked ~ .mo-rail__panel { display: flex; }
}

/* ---------- Content stage ---------- */
.mo-layout { flex: 1; padding-block: 40px 30px; }
.mo-main { min-width: 0; }

.mo-btn { font-family: var(--mo-body); font-weight: 700; }
.mo-btn:hover { background: #b0472f; color: #ffffff; }

.mo-chip { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--mo-tone); color: var(--mo-ink); font-size: 0.76rem; font-weight: 700; }
.mo-chip:hover { filter: brightness(0.95); }
.mo-meta a { color: var(--mo-ink); }

/* Hero */
.mo-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	background: var(--mo-paper);
	border-radius: 26px;
	box-shadow: var(--mo-shadow);
	overflow: hidden;
}
.mo-hero__thumb { aspect-ratio: auto; height: 100%; min-height: 380px; }
.mo-hero__body { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 44px); }
.mo-hero__flag { align-self: flex-start; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--mo-ink); color: var(--mo-paper); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.mo-hero__title { margin: 4px 0 14px; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; }
.mo-hero__title a { text-decoration: none; }
.mo-hero__title a:hover { color: var(--mo-link); }
.mo-hero__deck { margin: 0 0 18px; color: var(--mo-muted); font-size: 1.02rem; line-height: 1.65; }
.mo-hero .mo-meta { margin-bottom: 22px; }
.mo-hero .mo-btn { align-self: flex-start; }
@media (max-width: 860px) {
	.mo-hero { grid-template-columns: minmax(0, 1fr); }
	.mo-hero__thumb { aspect-ratio: 16 / 10; min-height: 0; height: auto; }
}

.mo-section-head { display: flex; align-items: center; gap: 14px; margin: 46px 0 22px; }
.mo-section-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2rem); }
.mo-section-head::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--mo-line) 0 10px, transparent 10px 16px); }

/* Masonry wall (homepage, archives, search) */
.mo-feed--cards { columns: 3 260px; column-gap: 22px; }
.mo-card {
	display: block;
	break-inside: avoid;
	margin-bottom: 22px;
	background: var(--mo-paper);
	border-radius: var(--mo-radius);
	box-shadow: var(--mo-shadow);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mo-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(43, 33, 28, 0.06), 0 16px 34px rgba(43, 33, 28, 0.12); }
.mo-card__thumb { aspect-ratio: 4 / 3; }
.mo-card:nth-child(3n + 1) .mo-card__thumb { aspect-ratio: 4 / 5; }
.mo-card:nth-child(3n + 2) .mo-card__thumb { aspect-ratio: 1 / 1; }
.mo-card:nth-child(5n) .mo-card__thumb { aspect-ratio: 16 / 9; }
.mo-card__body { padding: 18px 20px 20px; }
.mo-card__title { margin: 0 0 8px; font-size: 1.32rem; line-height: 1.2; }
.mo-card__title a:hover { color: var(--mo-link); }
.mo-card__excerpt { color: var(--mo-muted); font-size: 0.93rem; line-height: 1.6; }
.mo-card__excerpt p { margin: 0 0 10px; }
.mo-card .mo-meta { font-size: 0.8rem; }
.mo-card .mo-meta__item:last-child { display: none; }

/* Full posts (Customizer option) */
.mo-feed--full { display: flex; flex-direction: column; gap: 28px; max-width: 820px; }
.mo-full { background: var(--mo-paper); border-radius: var(--mo-radius); box-shadow: var(--mo-shadow); overflow: hidden; }
.mo-full__body { padding: clamp(22px, 4vw, 36px); }
.mo-full__title { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.12; }
.mo-full__title a:hover { color: var(--mo-link); }
.mo-full .mo-meta { margin-bottom: 20px; }
.mo-full__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.mo-btn--ghost { background: transparent; color: var(--mo-ink); border: 1.5px solid var(--mo-ink); font-size: 0.85rem; }
.mo-btn--ghost:hover { background: var(--mo-ink); color: var(--mo-paper); }

/* Shuffle strip */
.mo-shuffle { margin-top: 56px; }
.mo-box--random .mo-box__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.mo-box__heading { margin: 0; font-size: clamp(1.6rem, 3vw, 2rem); }
.mo-box__hint { font-size: 0.82rem; font-weight: 600; color: var(--mo-muted); }
.mo-randlist {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 2px;
	padding: 4px 2px 18px;
	scrollbar-width: thin;
	scrollbar-color: var(--mo-accent) var(--mo-line);
}
.mo-rand {
	flex: 0 0 min(300px, 82vw);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	background: var(--mo-paper);
	border-radius: var(--mo-radius);
	box-shadow: var(--mo-shadow);
	overflow: hidden;
}
.mo-rand__thumb { aspect-ratio: 16 / 10; }
.mo-rand__num { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--mo-paper); font-size: 0.72rem; font-weight: 800; }
.mo-rand__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.mo-rand__title { font-size: 1.12rem; line-height: 1.25; }
.mo-rand__title a:hover { color: var(--mo-link); }
.mo-rand__text { flex: 1; font-size: 0.88rem; line-height: 1.6; color: var(--mo-muted); }
.mo-rand__more { color: var(--mo-link); font-size: 0.88rem; text-decoration: none; }
.mo-rand__more:hover { text-decoration: underline; }
.mo-shuffle__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 30px; }
.mo-shuffle__widgets .mo-box { padding: 6px 4px; background: var(--mo-paper); border-radius: var(--mo-radius); box-shadow: var(--mo-shadow); }
.widget.mo-box > .mo-box__title { margin: 16px 18px 0; font-size: 1.2rem; }

/* Single + page */
.mo-single { max-width: 820px; background: var(--mo-paper); border-radius: 26px; box-shadow: var(--mo-shadow); overflow: hidden; }
.mo-single__head { padding: clamp(24px, 5vw, 46px) clamp(22px, 5vw, 46px) 20px; }
.mo-single__title { margin: 6px 0 16px; font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.08; }
.mo-single__thumb { margin: 0 clamp(12px, 3vw, 22px); }
.mo-single__thumb img { border-radius: 18px; }
.mo-single__body { padding: 30px clamp(22px, 5vw, 46px) clamp(24px, 5vw, 46px); }
.mo-entry a { color: var(--mo-link); }
.mo-entry blockquote,
.mo-entry .wp-block-quote { position: relative; padding: 24px 26px 22px 30px; background: var(--mo-soft); border-radius: 18px; font-family: var(--mo-display); font-size: 1.3rem; line-height: 1.45; }
.mo-entry blockquote::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 0 4px 4px 0; background: var(--mo-accent); }
.mo-author { background: var(--mo-soft); border-radius: 18px; }
.mo-postnav { max-width: 820px; }
.mo-postnav a { background: var(--mo-paper); border-radius: 18px; box-shadow: var(--mo-shadow); transition: transform 0.2s ease; }
.mo-postnav a:hover { transform: translateY(-3px); }
.mo-comments { max-width: 820px; }
.comment-body,
.comment-respond { border: 0; box-shadow: var(--mo-shadow); }

.page-numbers { border-radius: 12px; background: var(--mo-paper); box-shadow: var(--mo-shadow); color: var(--mo-ink); }
a.page-numbers:hover { background: var(--mo-ink); color: var(--mo-paper); }
.page-numbers.current { background: var(--mo-accent); color: var(--mo-on-accent); }

.mo-kicker { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--mo-ink); color: var(--mo-paper); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.mo-404,
.mo-empty { max-width: 820px; box-shadow: var(--mo-shadow); }
.mo-404__num { font-weight: 400; }

/* Footer */
.mo-footer { margin-top: 40px; padding-block: 26px 30px; border-top: 1px solid var(--mo-line); color: var(--mo-muted); font-size: 0.9rem; }
.mo-footer a { color: var(--mo-ink); text-decoration: none; }
.mo-footer a:hover { color: var(--mo-link); }
.mo-footer__widgets { border-bottom: 1px solid var(--mo-line); }
.mo-footer-widget__title { font-size: 1.15rem; }
.mo-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; }
.mo-footer__credit { margin: 0; }
.mo-footer__menu { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; font-weight: 600; }
.mo-footer__top { font-weight: 700; }

/* Centre single-column content inside the stage */
.mo-single,
.mo-postnav,
.mo-comments,
.mo-404,
.mo-empty,
.mo-feed--full { margin-inline: auto; max-width: 820px; }
.mo-feed--full + .pagination { max-width: 820px; margin-inline: auto; }
