/*
Theme Name: Christ.ph Minimal
Theme URI: https://www.christ.ph/
Author: Christ.ph
Description: A clean, elegant, Minimalist Blogger-inspired WordPress theme for Christ.ph with an accessible, responsive editorial layout.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.9
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: christph-minimal
Tags: blog, news, right-sidebar, custom-logo, custom-menu, featured-images, accessibility-ready, translation-ready, editor-style

Christ.ph Minimal is a standalone theme and is not affiliated with or derived from any third-party theme.
*/

:root {
	--cpm-ink: #1c1b1d;
	--cpm-muted: #68636a;
	--cpm-line: #222;
	--cpm-soft-line: #ded9d4;
	--cpm-paper: #ffffff;
	--cpm-paper-soft: #faf9f7;
	--cpm-accent: #4a2d64;
	--cpm-accent-dark: #301d44;
	--cpm-gold: #a37528;
	--cpm-focus: #b45400;
	--cpm-shell: min(1160px, calc(100% - 3rem));
	--cpm-body: min(760px, 100%);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--cpm-paper);
	color: var(--cpm-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	line-height: 1.72;
	text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea { font-family: Arial, Helvetica, sans-serif; }

img,
svg,
iframe,
video,
embed,
object { max-width: 100%; height: auto; }

img { display: block; }

figure { margin: 1.7rem 0; }
figcaption { margin-top: .6rem; color: var(--cpm-muted); font-family: Arial, Helvetica, sans-serif; font-size: .86rem; }

p,
ul,
ol,
table,
blockquote,
pre { margin: 0 0 1.45em; }

ul,
ol { padding-left: 1.3em; }
li + li { margin-top: .34em; }

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 .6em;
	color: #111;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
	line-height: 1.18;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.75rem); }
h4 { font-size: 1.2rem; }

a { color: var(--cpm-accent); font-weight: 700; text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--cpm-accent-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline: 3px solid var(--cpm-focus); outline-offset: 3px; }

button,
[type="button"],
[type="submit"],
[type="reset"] { cursor: pointer; }

input,
textarea,
select {
	width: 100%;
	border: 1px solid #bbb6b0;
	border-radius: 0;
	background: #fff;
	color: var(--cpm-ink);
	font-size: 16px;
	padding: .72rem .78rem;
}

textarea { min-height: 150px; }

hr { border: 0; border-top: 1px solid var(--cpm-soft-line); margin: 2.3rem 0; }

blockquote {
	border-left: 4px solid var(--cpm-gold);
	background: #f7f3ed;
	padding: 1.1rem 1.2rem;
	font-size: 1.12em;
	font-style: italic;
	line-height: 1.56;
}
blockquote p:last-child { margin-bottom: 0; }

pre { overflow: auto; background: #27252a; color: #fff; padding: 1rem; font-size: .86rem; }
code, kbd, samp { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .9em; }

table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--cpm-soft-line); padding: .66rem; text-align: left; }
th { background: #f5f3ef; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	padding: 0;
}
.screen-reader-text:focus {
	z-index: 999999;
	width: auto;
	height: auto;
	clip: auto;
	left: .8rem;
	top: .8rem;
	background: #fff;
	color: #111;
	box-shadow: 0 8px 22px rgba(0,0,0,.2);
	padding: .65rem .85rem;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 700;
}

.site-container { width: var(--cpm-shell); margin-left: auto; margin-right: auto; }
.site-main { min-height: 55vh; }

.site-header { padding-top: clamp(2.5rem, 6vw, 5.5rem); background: #fff; }
.site-branding { text-align: center; padding-bottom: clamp(2rem, 4vw, 3.25rem); }
.custom-logo-link { display: inline-flex; justify-content: center; max-width: min(400px, 80vw); }
.custom-logo-link img { max-height: 112px; width: auto; }
.site-title { margin: 0; color: #111; font-size: clamp(2.3rem, 7vw, 5.7rem); font-style: italic; font-weight: 500; letter-spacing: -.055em; line-height: .9; }
.site-title a { color: #111; font-weight: 500; text-decoration: none; }
.site-description { margin: .8rem auto 0; max-width: 55ch; color: var(--cpm-muted); font-family: Arial, Helvetica, sans-serif; font-size: .77rem; font-weight: 700; letter-spacing: .14em; line-height: 1.45; text-transform: uppercase; }

.site-navigation { position: relative; border-top: 1px solid var(--cpm-line); border-bottom: 1px solid var(--cpm-line); }
.site-navigation__inside { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; }
.site-navigation__toggle { display: none; border: 0; background: transparent; color: #111; padding: .6rem; }
.site-navigation__toggle-bars,
.site-navigation__toggle-bars::before,
.site-navigation__toggle-bars::after { display: block; width: 21px; height: 2px; background: currentColor; content: ""; }
.site-navigation__toggle-bars { position: relative; }
.site-navigation__toggle-bars::before { position: absolute; left: 0; top: -7px; }
.site-navigation__toggle-bars::after { position: absolute; left: 0; top: 7px; }
.site-navigation__menu > ul,
.footer-menu > ul { display: flex; align-items: center; justify-content: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.site-navigation__menu li,
.footer-menu li { position: relative; list-style: none; }
.site-navigation__menu a,
.footer-menu a { display: inline-flex; align-items: center; min-height: 50px; padding: .55rem .9rem; color: #151316; font-family: Arial, Helvetica, sans-serif; font-size: .83rem; font-weight: 700; letter-spacing: .02em; line-height: 1.1; text-decoration: none; text-transform: uppercase; }
.site-navigation__menu a:hover,
.site-navigation__menu .current-menu-item > a,
.site-navigation__menu .current-menu-ancestor > a { color: var(--cpm-accent); }
.site-navigation__menu .sub-menu { position: absolute; z-index: 100; left: 0; top: calc(100% - .1rem); display: none; width: max-content; min-width: 190px; margin: 0; padding: .25rem; border: 1px solid #222; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.site-navigation__menu li:hover > .sub-menu,
.site-navigation__menu li:focus-within > .sub-menu,
.site-navigation__menu li.is-focus > .sub-menu { display: block; }
.site-navigation__menu .sub-menu a { display: block; min-height: 0; padding: .65rem .72rem; text-transform: none; }
.site-navigation__menu .sub-menu a:hover { background: #f5f1f7; }

.cpm-banner { position: relative; overflow: hidden; margin: clamp(2rem, 4vw, 3rem) auto 0; width: var(--cpm-shell); min-height: clamp(280px, 34vw, 420px); background: linear-gradient(135deg, #3d2853, #1c1922); background-position: center; background-size: cover; color: #fff; }
.cpm-banner::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,15,25,.58), rgba(20,15,25,.15)); content: ""; }
.cpm-banner__content { position: relative; z-index: 1; display: grid; place-content: center; min-height: inherit; padding: 2rem; text-align: center; }
.cpm-banner__eyebrow { margin: 0 0 .6rem; color: #f6dda6; font-family: Arial, Helvetica, sans-serif; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cpm-banner h1 { margin-bottom: .28em; color: #fff; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.cpm-banner__text { max-width: 52ch; margin: 0 auto 1.4rem; font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.55; }
.cpm-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border: 1px solid #fff; background: #fff; color: #21162f; padding: .65rem .95rem; font-family: Arial, Helvetica, sans-serif; font-size: .84rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.cpm-button:hover { border-color: #f6dda6; background: #f6dda6; color: #21162f; }

.cpm-home-content { padding: clamp(2.6rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem); }
.cpm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 332px; gap: clamp(2rem, 5vw, 4.2rem); align-items: start; }
.cpm-primary { min-width: 0; }
.cpm-section-title { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.45rem; color: #111; font-family: Arial, Helvetica, sans-serif; font-size: .9rem; font-weight: 800; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.cpm-section-title::before,
.cpm-section-title::after { flex: 1; height: 1px; background: #222; content: ""; }
.cpm-section-title::before { display: none; }

.cpm-post-list { display: grid; gap: 1.6rem; }
.cpm-post-card { border: 1px solid var(--cpm-line); background: #fff; }
.cpm-post-card__image { display: block; overflow: hidden; aspect-ratio: 16 / 8.2; background: #e6e0d8; }
.cpm-post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.cpm-post-card:hover .cpm-post-card__image img { transform: scale(1.025); }
.cpm-post-card__inside { padding: clamp(1.35rem, 3vw, 2.4rem); text-align: center; }
.cpm-post-meta { margin: 0 0 .9rem; color: var(--cpm-muted); font-family: Arial, Helvetica, sans-serif; font-size: .73rem; font-weight: 700; letter-spacing: .02em; line-height: 1.4; }
.cpm-post-meta::before,
.cpm-post-meta::after { display: inline-block; width: 48px; height: 1px; margin: 0 .7rem .25rem; background: #444; vertical-align: middle; content: ""; }
.cpm-post-card h2 { margin-bottom: .45em; font-size: clamp(1.7rem, 3vw, 2.45rem); }
.cpm-post-card h2 a { color: #111; font-weight: 500; text-decoration: none; }
.cpm-post-card h2 a:hover { color: var(--cpm-accent); }
.cpm-post-card__excerpt { max-width: 68ch; margin: 0 auto 1.1rem; color: #403d42; font-size: .98rem; line-height: 1.7; }
.cpm-read-more { color: var(--cpm-accent); font-family: Arial, Helvetica, sans-serif; font-size: .8rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }

.sidebar { min-width: 0; }
.sidebar .widget { border-top: 1px solid #222; padding: 1.15rem 0 1.45rem; }
.sidebar .widget + .widget { margin-top: 1.4rem; }
.sidebar .widget-title { display: flex; align-items: center; gap: .9rem; margin: -1.65rem 0 1rem; color: #151316; font-family: Arial, Helvetica, sans-serif; font-size: .82rem; font-weight: 800; letter-spacing: .09em; line-height: 1.2; text-transform: uppercase; }
.sidebar .widget-title::before,
.sidebar .widget-title::after { flex: 1; height: 1px; background: #222; content: ""; }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { border-bottom: 1px solid var(--cpm-soft-line); padding: .7rem 0; }
.sidebar .widget li + li { margin-top: 0; }
.sidebar .widget a { color: #222; font-family: Arial, Helvetica, sans-serif; font-size: .9rem; line-height: 1.35; }
.sidebar .widget a:hover { color: var(--cpm-accent); }
.sidebar .widget p,
.sidebar .widget { color: #504c52; font-family: Arial, Helvetica, sans-serif; font-size: .91rem; line-height: 1.65; }
.sidebar .widget .search-form { display: flex; gap: .45rem; }
.sidebar .widget .search-field { min-width: 0; }
.sidebar .widget .search-submit { width: auto; border: 0; background: var(--cpm-accent); color: #fff; padding: .66rem .75rem; font-weight: 700; }

.page-header { margin: clamp(2rem, 5vw, 4rem) 0 0; border-top: 1px solid #222; border-bottom: 1px solid #222; padding: clamp(2rem, 4vw, 3.4rem) 0; text-align: center; }
.page-header__eyebrow { margin: 0 0 .6rem; color: var(--cpm-muted); font-family: Arial, Helvetica, sans-serif; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.page-header h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.7rem); }
.archive-description { max-width: 65ch; margin: 1rem auto 0; color: var(--cpm-muted); }

.cpm-archive { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.cpm-single-layout { width: min(960px, calc(100% - 2rem)); margin: clamp(2.3rem, 5vw, 4rem) auto clamp(3rem, 6vw, 6rem); }
/* Single posts and pages deliberately use one stable reading column. The sidebar
 * remains available for homepage/archive layouts but is not placed beside an
 * article, preventing a post or its sharing panel from becoming narrow. */
.cpm-single-layout > .cpm-primary { width: 100%; min-width: 0; }
.cpm-article { width: 100%; max-width: 100%; min-width: 0; border: 1px solid var(--cpm-line); background: #fff; padding: clamp(1.25rem, 4vw, 3rem); }
.cpm-entry-header { max-width: var(--cpm-body); margin: 0 auto 1.55rem; text-align: center; }
.cpm-entry-title { margin-bottom: .46em; font-size: clamp(2.1rem, 4.2vw, 3.65rem); }
.cpm-entry-featured { margin: 0 0 2rem; }
.cpm-entry-featured img { width: 100%; }
.entry-content { max-width: var(--cpm-body); margin-left: auto; margin-right: auto; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 { margin-top: 1.65em; }
.entry-content .alignwide { width: min(1000px, 100%); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.cpm-entry-footer { max-width: var(--cpm-body); margin: 2.5rem auto 0; border-top: 1px solid var(--cpm-soft-line); padding-top: 1rem; color: var(--cpm-muted); font-family: Arial, Helvetica, sans-serif; font-size: .85rem; }
.cpm-entry-footer > * + * { margin-top: .6rem; }

.post-navigation,
.posts-navigation,
.comment-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: var(--cpm-body); margin: 2.4rem auto 0; border-top: 1px solid var(--cpm-soft-line); padding-top: 1rem; font-family: Arial, Helvetica, sans-serif; font-size: .9rem; }
.post-navigation .nav-next,
.posts-navigation .nav-next { text-align: right; }

.comments-area { max-width: var(--cpm-body); margin: 2.5rem auto 0; border-top: 1px solid var(--cpm-soft-line); padding-top: 1.7rem; font-family: Arial, Helvetica, sans-serif; }
.comments-title,
.comment-reply-title { font-family: Georgia, "Times New Roman", serif; }
.comment-list,
.children { list-style: none; margin-left: 0; padding-left: 0; }
.comment-list > li + li { margin-top: 1.1rem; }
.comment-body { border-bottom: 1px solid var(--cpm-soft-line); padding-bottom: 1rem; }
.comment-author .avatar { float: left; width: 42px; height: 42px; margin-right: .75rem; border-radius: 50%; }
.comment-metadata { font-size: .82rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-weight: 700; }
.comment-form .submit { width: auto; border: 0; background: var(--cpm-accent); color: #fff; padding: .75rem 1rem; font-weight: 800; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: .55rem; }
.comment-form-cookies-consent input { width: auto; margin-top: .4rem; }

.site-footer { border-top: 1px solid #222; background: #faf9f7; padding: 3rem 0 1.4rem; color: #565058; font-family: Arial, Helvetica, sans-serif; }
.site-footer__widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; padding-bottom: 2rem; }
.site-footer .widget-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }
.site-footer .widget ul { padding-left: 1.1rem; }
.site-footer__bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.4rem; border-top: 1px solid var(--cpm-soft-line); padding-top: 1rem; font-size: .8rem; }
.site-footer__bottom p { margin: 0; }
.footer-menu > ul { justify-content: flex-end; flex-wrap: wrap; }
.footer-menu a { min-height: auto; padding: .2rem .45rem; font-size: .72rem; }
.footer-menu .sub-menu { display: none; }

.alignleft { float: left; margin: .35rem 1.3rem .8rem 0; }
.alignright { float: right; margin: .35rem 0 .8rem 1.3rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text,
.wp-block-image figcaption { color: var(--cpm-muted); font-family: Arial, Helvetica, sans-serif; font-size: .85rem; }
.wp-block-button__link { border-radius: 0; background: var(--cpm-accent); font-family: Arial, Helvetica, sans-serif; font-weight: 800; }
.wp-block-button__link:hover { background: var(--cpm-accent-dark); }



@media (max-width: 900px) {
	.cpm-layout { grid-template-columns: 1fr; }
	.sidebar { width: min(100%, 680px); margin-left: auto; margin-right: auto; }
	.sidebar .widget { border-top: 1px solid #222; }
}

@media (max-width: 760px) {
	:root { --cpm-shell: min(100% - 1.5rem, 1160px); }
	body { font-size: 17px; }
	.site-header { padding-top: 2rem; }
	.site-branding { padding-bottom: 1.6rem; }
	.site-navigation__inside { min-height: 48px; justify-content: flex-end; }
	.site-navigation__toggle { display: inline-flex; }
	.site-navigation__menu { position: absolute; z-index: 101; top: calc(100% + 1px); left: 0; right: 0; display: none; border-bottom: 1px solid #222; background: #fff; box-shadow: 0 12px 26px rgba(0,0,0,.12); }
	.site-navigation.is-open .site-navigation__menu { display: block; }
	.site-navigation__menu > ul { display: block; width: var(--cpm-shell); margin: 0 auto; padding: .35rem 0 .7rem; }
	.site-navigation__menu a { width: 100%; min-height: 0; padding: .76rem 0; }
	.site-navigation__menu .sub-menu { position: static; display: block; width: auto; min-width: 0; margin: 0 0 0 .9rem; border: 0; border-left: 1px solid var(--cpm-soft-line); box-shadow: none; padding: 0 0 0 .7rem; }
	.cpm-banner { width: 100%; margin-top: 1.5rem; }
	.cpm-banner__content { padding: 1.4rem; }
	.cpm-layout { gap: 2.5rem; }
	.cpm-single-layout { width: min(100% - 1.5rem, 960px); }
	.entry-content .alignwide,
	.entry-content .alignfull { width: 100%; margin-left: 0; transform: none; }
	.site-footer__widgets { grid-template-columns: 1fr; }
	.site-footer__bottom { flex-direction: column; }
	.footer-menu > ul { justify-content: flex-start; }
}

@media (max-width: 520px) {
	.cpm-post-card__inside { padding: 1.15rem; }
	.cpm-post-meta::before,
	.cpm-post-meta::after { width: 24px; margin-left: .35rem; margin-right: .35rem; }
	.cpm-article { padding: 1rem; }
	.post-navigation,
	.posts-navigation { grid-template-columns: 1fr; }
	.post-navigation .nav-next,
	.posts-navigation .nav-next { text-align: left; }
	.alignleft,
	.alignright { float: none; margin: 1rem auto; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
