/*
Theme Name: GeneratePress Child - Oliver's Diary
Template: generatepress
Version: 1.2
*/

:root {
	--od-cream: #f0ebe4;
	--od-cream-card: #fffdf9;
	--od-espresso: #1c130c;
	--od-espresso-2: #663a1e;
	--od-rust: #c7500c;
	--od-rust-dark: #a4410a;
	--od-ink: #2f2419;
	--od-border: #e2d9c9;
}

body {
	background-color: var(--od-cream);
	background-image:
		radial-gradient(circle at 8% 12%, rgba(199, 80, 12, 0.05) 0, transparent 40%),
		radial-gradient(circle at 92% 88%, rgba(102, 58, 30, 0.06) 0, transparent 40%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg fill='none' stroke='%23663A1E' stroke-width='1.4' stroke-opacity='0.055'%3E%3Cpath d='M90 30c26 0 42 20 38 44c-3 20-22 34-42 30c-16-3-26-18-22-34c3-13 15-21 27-18c9 2 14 11 12 19c-2 6-8 9-13 8'/%3E%3Cpath d='M20 130c18 0 29 14 26 30c-2 14-15 23-29 21c-11-2-18-13-15-24c2-9 10-14 18-12'/%3E%3Cpath d='M140 150c14 0 22 11 20 23c-2 11-12 18-22 16c-9-2-14-10-12-19'/%3E%3C/g%3E%3C/svg%3E");
	background-attachment: fixed;
	color: var(--od-ink);
	font-family: 'Lora', Georgia, serif;
	font-size: 18px;
	line-height: 1.75;
}

/* ===== Header — dark, matching the real logo's white-text-on-black art ===== */

.site-header {
	position: relative;
	background: radial-gradient(ellipse at 50% -40%, rgba(199, 80, 12, 0.3) 0%, transparent 60%), var(--od-espresso);
	border-bottom: 3px solid var(--od-rust);
	overflow: hidden;
}

.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url('leaves.png');
	background-size: 260px;
	background-repeat: repeat;
	opacity: 0.14;
	mix-blend-mode: screen;
	pointer-events: none;
	z-index: 0;
}

.inside-header {
	position: relative;
	z-index: 1;
}

.inside-header {
	padding-top: 7px !important;
	padding-bottom: 0 !important;
	display: flex !important;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1em;
}

.site-branding-container {
	padding-bottom: 7px;
}

#site-navigation .inside-navigation {
	align-items: flex-end;
}

.site-branding-container {
	display: flex;
	align-items: center;
}

.site-logo img {
	max-height: 140px;
	width: auto;
}

/* The real logo image already contains the "Oliver's Diary" wordmark, so
   the separate text title underneath it would be a redundant duplicate.
   Keep it for accessibility/SEO, just don't show it visually. */
.site-branding {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	white-space: nowrap !important;
}

/* The mobile hamburger-toggle nav is a SEPARATE <nav> from the real menu
   in this GP layout — it was being painted the same dark color as the
   real nav below, showing up as a stray black dot/box above it. It should
   only ever appear at mobile widths (GP's own JS/CSS handles that), so
   just make sure nothing here gives it a visible background at any size. */
.mobile-menu-control-wrapper {
	background: none !important;
	box-shadow: none !important;
}

/* The hamburger icon inherits GP's default dark icon color, which is
   invisible against our near-black header — this made the mobile menu
   button effectively disappear (still tappable, just unseeable). */
.mobile-menu-control-wrapper .menu-toggle,
#site-navigation .menu-toggle {
	color: #fdf6ea !important;
}

@media (min-width: 769px) {
	.mobile-menu-control-wrapper,
	#site-navigation .menu-toggle {
		display: none !important;
	}
}

@media (max-width: 768px) {
	#site-navigation.toggled .main-nav ul li a {
		border-radius: 0;
	}

	/* Belt-and-suspenders: force the hamburger button visible regardless
	   of cascade order between GP's base/media-query rules and ours. */
	header.site-header .mobile-menu-control-wrapper {
		display: flex !important;
	}
	header.site-header .mobile-menu-control-wrapper .menu-toggle {
		display: block !important;
	}
}

.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	white-space: nowrap !important;
	border: 0 !important;
	padding: 0 !important;
	margin: -1px !important;
}


#site-navigation {
	background: none;
}

#site-navigation ul ul {
	background-color: var(--od-espresso);
	box-shadow: 0 8px 20px rgba(28, 19, 12, 0.3);
	border-radius: 6px;
	overflow: hidden;
}

#site-navigation .inside-navigation {
	padding: 0 !important;
}

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

.main-navigation .main-nav > ul {
	display: flex;
	align-items: center;
}

.main-navigation .main-nav ul li + li {
	position: relative;
}

.main-navigation .main-nav > ul {
	gap: 0.5em;
}

.main-navigation .main-nav ul li a {
	display: block;
	position: relative;
	box-sizing: border-box;
	font-family: 'Lora', Georgia, serif;
	font-weight: 700;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--od-espresso);
	background-color: #d8c6ab;
	border: 1px solid transparent;
	border-bottom: none;
	padding: 0.9em 1.75em;
	border-radius: 6px 6px 0 0;
	line-height: 1;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.main-navigation .main-nav ul li a:hover {
	background-color: #e8dcc8;
	color: var(--od-espresso);
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	background-color: #000;
	color: var(--od-rust);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-bottom: none;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a:hover {
	background-color: #000;
	color: var(--od-rust);
}

/* ===== Headings & body copy ===== */

h1, h2, h3, h4, .entry-title, .entry-title a {
	font-family: 'Lora', Georgia, serif;
	font-weight: 600;
	color: var(--od-espresso);
	line-height: 1.3;
}

.entry-title,
.entry-title a {
	font-size: 1.5em !important;
}

.page-header .entry-title {
	font-family: 'Cookie', cursive;
	font-weight: 400;
	font-size: 2.1em !important;
	text-align: center;
	color: var(--od-espresso);
}

a {
	color: var(--od-rust);
}

a:hover {
	color: var(--od-rust-dark);
}

.entry-content a {
	text-decoration-color: rgba(199, 80, 12, 0.4);
	text-underline-offset: 3px;
	transition: text-decoration-color 0.15s ease;
}

.entry-content a:hover {
	text-decoration-color: var(--od-rust-dark);
}

.entry-content p {
	margin-bottom: 1.4em;
}

.entry-content blockquote {
	position: relative;
	border-left: 3px solid var(--od-rust);
	margin: 1.5em 0;
	padding: 0.5em 0 0.5em 2em;
	font-style: italic;
	color: var(--od-espresso-2);
}

.entry-content blockquote::before {
	content: "\201C";
	position: absolute;
	left: 0.15em;
	top: -0.1em;
	font-family: Georgia, serif;
	font-size: 2.2em;
	font-style: normal;
	color: rgba(199, 80, 12, 0.35);
	line-height: 1;
}

/* ===== Blog / archive post cards ===== */

.site-main article.post {
	background: linear-gradient(165deg, var(--od-cream-card) 0%, #fbf5ea 100%);
	border: 1px solid var(--od-border);
	border-top: 3px solid var(--od-rust);
	border-radius: 6px;
	padding: 1.75em 2em;
	margin-bottom: 2em;
	box-shadow:
		0 1px 2px rgba(28, 19, 12, 0.04),
		0 8px 24px -6px rgba(28, 19, 12, 0.1);
	box-sizing: border-box;
	max-width: 100%;
}

@media (max-width: 480px) {
	.site-main article.post {
		padding: 1.25em 1.25em;
	}
}

.site-main .paging-navigation,
.site-main .comments-area {
	background: none;
	border: none;
	box-shadow: none;
	padding: 0;
}

article.post .entry-header {
	margin-bottom: 0.9em;
}

.featured-image img,
.post-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 3px;
	margin-bottom: 1.5em;
	object-fit: cover;
	max-height: 440px;
	border: 6px solid #fff;
	outline: 1px solid var(--od-border);
	box-shadow: 0 6px 20px rgba(28, 19, 12, 0.15);
}

.entry-meta {
	font-family: 'Lora', Georgia, serif;
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--od-espresso-2);
	font-weight: 600;
}

.entry-meta .cat-links a {
	color: var(--od-rust);
	text-decoration: none;
	border-bottom: 1px dotted var(--od-rust);
}

.entry-meta .cat-links a:hover {
	color: var(--od-rust-dark);
}

/* ===== Sidebar / widgets ===== */

.widget-area .widget {
	background: linear-gradient(165deg, var(--od-cream-card) 0%, #fbf5ea 100%);
	border: 1px solid var(--od-border);
	border-radius: 6px;
	padding: 1.75em;
	margin-bottom: 1.75em;
	box-shadow: 0 6px 18px -8px rgba(28, 19, 12, 0.1);
}

.widget-title {
	font-family: 'Lora', Georgia, serif;
	font-weight: 700;
	color: var(--od-rust);
	font-size: 1.1em;
	margin-bottom: 0.5em;
}

/* ===== Buttons / forms ===== */

.button, button, input[type="submit"] {
	background: linear-gradient(160deg, #d4611c 0%, var(--od-rust) 55%, var(--od-rust-dark) 100%);
	border-color: var(--od-rust-dark);
	border-radius: 3px;
	font-family: 'Lora', Georgia, serif;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.8em;
	letter-spacing: 0.08em;
	padding: 0.8em 2em;
	box-shadow: 0 3px 10px rgba(164, 65, 10, 0.3);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover, button:hover, input[type="submit"]:hover {
	background: linear-gradient(160deg, #de6c26 0%, var(--od-rust-dark) 55%, #8a3808 100%);
	border-color: var(--od-rust-dark);
	transform: translateY(-1px);
	box-shadow: 0 5px 14px rgba(164, 65, 10, 0.4);
}

input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
	border-radius: 3px;
	border-color: var(--od-border);
	background-color: #fff;
	font-family: 'Lora', Georgia, serif;
}

/* ===== Share row ===== */

.od-share-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75em;
	margin-top: 2em;
	padding-top: 1.5em;
	border-top: 1px solid var(--od-border);
}

.od-share-label {
	font-family: 'Lora', Georgia, serif;
	font-weight: 700;
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--od-espresso-2);
	margin-right: 0.25em;
}

.od-share-link {
	font-family: 'Lora', Georgia, serif;
	font-size: 0.85em;
	font-weight: 600;
	color: var(--od-rust);
	background: none;
	border: 1px solid var(--od-rust);
	border-radius: 4px;
	padding: 0.4em 1em;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.od-share-link:hover {
	background-color: var(--od-rust);
	color: #fff;
}

/* ===== Email signup widget ===== */

.od-signup-copy {
	font-size: 0.9em;
	color: var(--od-espresso-2);
	margin-bottom: 0.75em;
}

.od-signup-form {
	display: flex;
	flex-direction: column;
	gap: 0.6em;
}

.od-signup-form input[type="email"] {
	padding: 0.65em 0.85em;
}

.od-signup-form button {
	background: linear-gradient(160deg, #d4611c 0%, var(--od-rust) 55%, var(--od-rust-dark) 100%);
	color: #fff;
	border: none;
	border-radius: 3px;
	font-family: 'Lora', Georgia, serif;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.8em;
	letter-spacing: 0.08em;
	padding: 0.75em;
	cursor: pointer;
}

.od-signup-message {
	font-size: 0.85em;
	font-weight: 600;
	padding: 0.6em 0.85em;
	border-radius: 4px;
	margin-bottom: 0.75em;
}

.od-signup-success {
	background: rgba(107, 142, 94, 0.15);
	color: #3f5a34;
}

.od-signup-error {
	background: rgba(199, 80, 12, 0.12);
	color: var(--od-rust-dark);
}

/* ===== Footer social icons ===== */

.od-social-icons {
	display: flex;
	justify-content: center;
	gap: 1em;
	margin-top: 1em;
}

.od-social-icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.08);
	color: #fdf6ea;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.od-social-icons a:hover {
	background-color: var(--od-rust);
}

.od-social-icons svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* ===== Footer ===== */

.footer-widgets {
	position: relative;
	background:
		radial-gradient(ellipse at 50% 120%, rgba(199, 80, 12, 0.25) 0%, transparent 55%),
		linear-gradient(160deg, var(--od-espresso) 0%, var(--od-espresso-2) 100%);
	overflow: hidden;
}

.footer-widgets::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url('leaves.png');
	background-size: 260px;
	background-repeat: repeat;
	opacity: 0.14;
	mix-blend-mode: screen;
	pointer-events: none;
	z-index: 0;
}

.footer-widgets-container {
	position: relative;
	z-index: 1;
}

.footer-widgets .widget {
	background: none;
	border: none;
	padding: 2em 0 1.5em;
	text-align: center;
	color: #d8c6ab;
	font-size: 0.9em;
}

.footer-widgets .widget a {
	color: #fdf6ea;
}

/* Empty leftover GP footer bar (site-info) — unused now, was leaving a
   blank white strip below our own footer-widgets copyright. */
.site-info {
	display: none;
}

/* ===== Sidebar thumbnail+excerpt list styling - shared by the Recent
   Posts block and the Most Popular Posts widget ===== */

.od-post-list,
.od-latest-posts.wp-block-latest-posts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.od-post-list-item,
.od-latest-posts.wp-block-latest-posts li {
	margin: 0 0 1em;
	padding-bottom: 1em;
	border-bottom: 1px solid var(--od-border, #e2d9c9);
}

.od-post-list-item:last-child,
.od-latest-posts.wp-block-latest-posts li:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.od-post-list-link,
.od-latest-posts.wp-block-latest-posts li {
	display: flex;
	gap: 0.75em;
	align-items: flex-start;
	text-decoration: none;
}

.od-post-list-thumb,
.od-latest-posts.wp-block-latest-posts .wp-block-latest-posts__featured-image {
	flex: 0 0 auto;
	margin: 0;
}

.od-post-list-thumb img,
.od-latest-posts.wp-block-latest-posts .wp-block-latest-posts__featured-image img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.od-post-list-text {
	display: flex;
	flex-direction: column;
	gap: 0.2em;
}

.od-post-list-title {
	font-family: 'Lora', Georgia, serif;
	font-weight: 700;
	font-size: 13px !important;
	color: var(--od-espresso, #2f2115);
	line-height: 1.3;
}

.od-latest-posts.wp-block-latest-posts .wp-block-latest-posts__post-title {
	font-family: 'Lora', Georgia, serif;
	font-weight: 700;
	font-size: 13px !important;
	color: var(--od-espresso, #2f2115);
	line-height: 1.3;
}

.od-post-list-excerpt {
	font-size: 11.5px !important;
	color: var(--od-espresso-2, #5a4632);
	line-height: 1.4;
	margin: 0;
}

.od-latest-posts.wp-block-latest-posts .wp-block-latest-posts__post-excerpt {
	font-size: 11.5px !important;
	color: var(--od-espresso-2, #5a4632);
	line-height: 1.4;
	margin: 0;
	display: block;
	margin-top: 0.2em;
}


/* ===== Recent Posts block - force heading color + row layout to match
   Most Popular Posts exactly, with !important to guarantee it wins
   regardless of any other competing rule ===== */

#block-3 .wp-block-heading {
	color: var(--od-rust) !important;
	font-family: 'Lora', Georgia, serif !important;
	font-weight: 700 !important;
	font-size: 1.1em !important;
}

.od-latest-posts.wp-block-latest-posts {
	display: block !important;
}

.od-latest-posts.wp-block-latest-posts li {
	display: grid !important;
	grid-template-columns: 64px 1fr !important;
	grid-template-rows: auto auto !important;
	column-gap: 0.75em !important;
	row-gap: 0.2em !important;
	width: 100% !important;
	margin: 0 0 1em !important;
	padding-bottom: 1em !important;
	border-bottom: 1px solid var(--od-border, #e2d9c9) !important;
}

.od-latest-posts.wp-block-latest-posts .wp-block-latest-posts__featured-image {
	grid-column: 1 !important;
	grid-row: 1 / 3 !important;
	margin: 0 !important;
}

.od-latest-posts.wp-block-latest-posts .wp-block-latest-posts__featured-image img {
	width: 64px !important;
	height: 64px !important;
	object-fit: cover !important;
	border-radius: 4px !important;
}

.od-latest-posts.wp-block-latest-posts a.wp-block-latest-posts__post-title {
	grid-column: 2 !important;
	grid-row: 1 !important;
	display: block !important;
}

.od-latest-posts.wp-block-latest-posts .wp-block-latest-posts__post-excerpt {
	grid-column: 2 !important;
	grid-row: 2 !important;
	margin: 0 !important;
}
.od-latest-posts.wp-block-latest-posts .wp-block-latest-posts__post-content-read-more-link {
	display: none !important;
}

/* make the whole Recent Posts row clickable, not just the title text -
   the title link's hit area is expanded to cover the entire row via an
   absolutely positioned overlay, since the excerpt itself is plain text
   in the core block's markup, not a link */
.od-latest-posts.wp-block-latest-posts li {
	position: relative !important;
}

.od-latest-posts.wp-block-latest-posts a.wp-block-latest-posts__post-title::after {
	content: "";
	position: absolute;
	inset: 0;
}
#block-3 a.read-more {
	display: none !important;
}

.od-latest-posts.wp-block-latest-posts a.wp-block-latest-posts__post-title {
	text-decoration: none !important;
}

/* ===== Email-a-friend share form ===== */
.od-email-share-form[hidden] {
	display: none;
}
.od-email-share-form {
	margin-top: 0.75em;
	padding: 1em;
	background: #fffdf9;
	border: 1px solid var(--od-border, #e2d9c9);
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	gap: 0.6em;
	max-width: 360px;
}
.od-email-share-form label {
	font-size: 0.85em;
	display: flex;
	flex-direction: column;
	gap: 0.25em;
}
.od-personalize-toggle {
	flex-direction: row !important;
	align-items: center;
	gap: 0.4em !important;
}
.od-email-share-form input[type="email"],
.od-email-share-form input[type="text"] {
	padding: 0.4em 0.6em;
	border: 1px solid var(--od-border, #e2d9c9);
	border-radius: 4px;
	font-size: 1em;
}
.od-personalize-fields[hidden] {
	display: none;
}
.od-personalize-fields {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	padding-left: 0.2em;
	border-left: 2px solid var(--od-border, #e2d9c9);
	padding-left: 0.75em;
}
.od-email-share-status {
	font-size: 0.85em;
	color: var(--od-espresso-2, #5a4632);
}
.od-hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}
/* ===== Toggle switch for the "personalize" checkbox ===== */
.od-toggle-switch {
	position: relative;
	display: inline-block;
	width: 36px;
	height: 20px;
	flex-shrink: 0;
}
.od-toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}
.od-toggle-slider {
	position: absolute;
	inset: 0;
	background: #ccbfa8;
	border-radius: 20px;
	transition: background-color 0.15s ease;
	cursor: pointer;
}
.od-toggle-slider::before {
	content: "";
	position: absolute;
	width: 14px;
	height: 14px;
	left: 3px;
	top: 3px;
	background: #fffdf9;
	border-radius: 50%;
	transition: transform 0.15s ease;
}
.od-toggle-switch input:checked + .od-toggle-slider {
	background: var(--od-rust, #c7500c);
}
.od-toggle-switch input:checked + .od-toggle-slider::before {
	transform: translateX(16px);
}
.od-toggle-switch input:focus-visible + .od-toggle-slider {
	outline: 2px solid var(--od-rust, #c7500c);
	outline-offset: 2px;
}