/*
Theme Name: In Loving Memory
Theme URI: https://example.com
Author: Custom
Description: A simple, tasteful WordPress theme for hosting a single family member's obituary, with a photo hero, life dates, moderated guestbook comments with an optional "light a candle" feature, and a link out to a separate photo gallery (e.g. Piwigo).
Version: 1.3
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: in-loving-memory
*/

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #faf7f2;
	color: #3a352f;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 18px;
	line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #5b6b57; text-decoration: underline; text-decoration-color: rgba(91,107,87,0.35); }
a:hover { color: #3f4b3c; }

h1, h2, h3, h4 {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-weight: 400;
	color: #2f2b26;
	margin: 0 0 0.5em;
}

.container {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
	text-align: center;
	padding: 28px 20px 18px;
	border-bottom: 1px solid #e7e0d4;
	background: #fffdfa;
}
.site-header .site-title {
	font-size: 1.3rem;
	letter-spacing: 0.04em;
	margin: 0;
}
.site-header .site-title a {
	text-decoration: none;
	color: #2f2b26;
}
.site-nav {
	margin-top: 10px;
}
.site-nav ul {
	list-style: none;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 22px;
	margin: 0;
	padding: 0;
}
.site-nav a {
	text-decoration: none;
	font-size: 0.92rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #5b6b57;
}

/* ---------- Obituary hero ---------- */
.memorial-hero {
	text-align: center;
	padding: 48px 20px 16px;
}
.memorial-hero .hero-photo {
	width: 260px;
	height: 260px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 26px;
	border: 6px solid #fffdfa;
	box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}
.memorial-hero .hero-photo.shape-wide {
	width: 100%;
	max-width: 700px;
	height: 320px;
	border-radius: 14px;
	border-width: 0;
	box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.memorial-hero .full-name {
	font-size: 2.1rem;
	margin-bottom: 6px;
}
.memorial-hero .epitaph {
	font-style: italic;
	color: #6b6559;
	margin-bottom: 14px;
	font-size: 1.05rem;
}
.memorial-hero .life-dates {
	font-size: 1.15rem;
	color: #55504a;
	letter-spacing: 0.02em;
	margin-bottom: 6px;
}
.memorial-hero .life-dates .dash {
	display: inline-block;
	width: 28px;
	border-bottom: 1px solid #b8ae9c;
	margin: 0 8px;
	vertical-align: middle;
}

/* Extra photos strip (optional gallery images added to the obituary page) */
.hero-gallery-strip {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 24px auto 8px;
	max-width: 640px;
}
.hero-gallery-strip a {
	display: block;
	width: 96px;
	height: 96px;
	overflow: hidden;
	border-radius: 6px;
}
.hero-gallery-strip img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero-gallery-strip.size-medium a { width: 140px; height: 140px; }
.hero-gallery-strip.size-large a { width: 190px; height: 190px; }

/* ---------- Obituary text ---------- */
.obituary-content {
	padding: 30px 20px 10px;
	font-size: 1.08rem;
}
.obituary-content p { margin: 0 0 1.25em; }

/* ---------- Gallery callout ---------- */
.gallery-callout {
	text-align: center;
	margin: 10px 20px 40px;
	padding: 26px 20px;
	background: #f1ede3;
	border-radius: 10px;
}
.gallery-callout p { margin: 0 0 14px; color: #55504a; }
.btn {
	display: inline-block;
	padding: 12px 26px;
	background: #5b6b57;
	color: #fff;
	border-radius: 30px;
	text-decoration: none;
	font-size: 0.95rem;
	letter-spacing: 0.03em;
}
.btn:hover { background: #48553f; color: #fff; }

/* ---------- Candle summary ---------- */
.candle-summary {
	text-align: center;
	margin: 0 20px 8px;
	color: #8a6d3b;
	font-size: 1rem;
}
.candle-summary .flame { margin-right: 6px; }

/* ---------- Guestbook / comments ---------- */
#guestbook {
	padding: 10px 20px 60px;
	border-top: 1px solid #e7e0d4;
	margin-top: 20px;
}
#guestbook .guestbook-title {
	text-align: center;
	margin-top: 34px;
}
#guestbook .guestbook-intro {
	text-align: center;
	color: #6b6559;
	max-width: 520px;
	margin: 0 auto 30px;
	font-size: 0.98rem;
}
.comment-list {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
}
.comment-list .comment {
	background: #fffdfa;
	border: 1px solid #ece5d8;
	border-radius: 10px;
	padding: 18px 20px;
	margin-bottom: 14px;
}
.comment-list .comment.has-candle {
	border-left: 4px solid #d9a441;
}
.comment-author {
	font-weight: 600;
	color: #2f2b26;
	margin-right: 8px;
}
.comment-meta {
	font-size: 0.82rem;
	color: #948c7d;
}
.comment-body { margin-top: 8px; }
.pending-note {
	font-size: 0.82rem;
	color: #a67c00;
	font-style: italic;
	display: block;
	margin-top: 6px;
}

/* Comment form */
.comment-form { max-width: 560px; margin: 0 auto; }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 0.9rem; color: #55504a; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d9d1c1;
	border-radius: 6px;
	font-family: inherit;
	font-size: 1rem;
	background: #fffdfa;
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.candle-field {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f6f1e6;
	padding: 12px 14px;
	border-radius: 8px;
}
.candle-field input[type="checkbox"] { width: 18px; height: 18px; }
.candle-field label { margin: 0; color: #6b5a2c; font-size: 0.95rem; }
.comment-form .form-submit input {
	cursor: pointer;
	border: none;
}
.comment-notes {
	text-align: center;
	font-size: 0.85rem;
	color: #948c7d;
	margin-top: -6px;
	margin-bottom: 24px;
}

/* ---------- Generic pages / blog updates ---------- */
.page-content, .entry-content {
	padding: 40px 20px;
}
.entry-header { text-align: center; padding: 40px 20px 0; }
.entry-meta { color: #948c7d; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
	text-align: center;
	padding: 30px 20px 50px;
	color: #9a9285;
	font-size: 0.85rem;
	border-top: 1px solid #e7e0d4;
	margin-top: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	body { font-size: 16.5px; }
	.memorial-hero .hero-photo { width: 190px; height: 190px; }
	.memorial-hero .hero-photo.shape-wide { height: 200px; border-radius: 10px; }
	.memorial-hero .full-name { font-size: 1.6rem; }
	.hero-gallery-strip.size-medium a { width: 100px; height: 100px; }
	.hero-gallery-strip.size-large a { width: 120px; height: 120px; }
	.site-nav ul { gap: 14px; }
}
