/*
Theme Name:  Through the Open Door
Theme URI:   https://throughtheopendoor.com
Description: Minimal image-first WordPress theme. 1024px centered container, full-width image, two columns below.
Author:      Neil Legault
Version:     1.4.0
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: totd
*/


/* =============================================================================
   RESET & BASE
   ============================================================================= */

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

body {
	margin: 0;
	padding: 0;
	background: #ffffff;
	color: #1e1e1e;
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 17px;
	line-height: 1.78;
}

a {
	color: #8c3a3a;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

p {
	margin: 0 0 1.25em;
}

h1, h2, h3, h4 {
	font-family: 'Open Sans', Arial, sans-serif;
	line-height: 1.22;
	color: #1e1e1e;
	margin: 0;
}


/* =============================================================================
   OUTER CONTAINER  —  1024px centered, white background
   ============================================================================= */

.site-outer {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	background: #ffffff;
	min-height: 100vh;
}


/* =============================================================================
   HEADER  —  site name top-left inside the container
   ============================================================================= */

.site-header {
	padding: 16px 6px 20px;
	border-bottom: 1px solid #e8e8e8;
}

.site-name {
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0;
	padding: 0;
}

.site-name a {
	color: #1e1e1e;
	text-decoration: none;
}

.site-name a:hover {
	color: #8c3a3a;
}

.site-tagline {
	font-family: system-ui, -apple-system, Arial, sans-serif;
	font-size: 0.75rem;
	color: #888888;
	font-style: italic;
	margin: 5px 0 0;
	padding: 0;
}


/* =============================================================================
   FEATURED IMAGE  —  full width of the 1280px container, no padding
   ============================================================================= */

.entry-image-full {
	display: block;
	width: 100%;
	line-height: 0;
	margin: 0;
	padding: 0;
}

.entry-image-full img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}


/* =============================================================================
   TWO COLUMNS  —  content left, sidebar right, below the image
   ============================================================================= */

.site-columns {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 40px;
	padding: 28px 10px 48px;
}

.main-content {
	flex: 1 1 auto;
	min-width: 0;
}

.site-sidebar {
	flex: 0 0 260px;
	width: 260px;
	min-width: 260px;
	min-height: 200px;   /* always occupies space even when no widgets are added */
}


/* =============================================================================
   POST CONTENT
   ============================================================================= */

.entry-title {
	font-size: 1.55rem;
	font-weight: 600;
	margin: 0 0 10px;
}

.entry-title a {
	color: #1e1e1e;
	text-decoration: none;
}

.entry-title a:hover {
	color: #8c3a3a;
}

.entry-meta {
	font-family: system-ui, -apple-system, Arial, sans-serif;
	font-size: 0.78rem;
	color: #888888;
	margin-bottom: 20px;
}

.entry-meta a {
	color: #888888;
	text-decoration: none;
}

.entry-meta a:hover {
	color: #8c3a3a;
}

.entry-meta .sep {
	margin: 0 5px;
}

.entry-content {
	font-size: 17px;
	line-height: 1.82;
}

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

.entry-content p:last-child {
	margin-bottom: 0;
}

.entry-content blockquote {
	margin: 2em 0;
	padding: 0 0 0 1.2em;
	border-left: 2px solid #8c3a3a;
	font-style: italic;
	color: #555555;
}

.entry-content blockquote p {
	margin: 0;
}

.entry-content iframe,
.entry-content embed,
.entry-content object {
	max-width: 100%;
}


/* =============================================================================
   PREV / NEXT NAV
   ============================================================================= */

.post-browse-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 40px;
	padding-top: 18px;
	border-top: 1px solid #e8e8e8;
}

.post-browse-nav a {
	font-family: system-ui, -apple-system, Arial, sans-serif;
	font-size: 0.82rem;
	font-style: italic;
	color: #888888;
	text-decoration: none;
}

.post-browse-nav a:hover {
	color: #8c3a3a;
}

.post-browse-nav .nav-next {
	text-align: right;
}


/* =============================================================================
   SIDEBAR
   ============================================================================= */

.sidebar-widget {
	margin-bottom: 28px;
}

.sidebar-widget .widget-title,
.sidebar-widget h3 {
	font-family: system-ui, -apple-system, Arial, sans-serif;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: #8c3a3a;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e8e8e8;
}

.sidebar-widget p {
	font-size: 0.85rem;
	line-height: 1.65;
	color: #1e1e1e;
	margin: 0 0 0.8em;
}

.sidebar-widget p a {
	color: #8c3a3a;
}

/* Tag cloud */
.widget_tag_cloud .tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.widget_tag_cloud .tagcloud a {
	display: inline-block;
	font-size: 0.72rem !important;
	font-family: system-ui, -apple-system, Arial, sans-serif;
	color: #1e1e1e;
	background: #ffffff;
	border: 1px solid #e8e8e8;
	padding: 2px 8px;
	border-radius: 2px;
	line-height: 1.7;
	text-decoration: none;
}

.widget_tag_cloud .tagcloud a:hover {
	border-color: #8c3a3a;
	color: #8c3a3a;
}

.sidebar-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar-widget ul li {
	font-size: 0.85rem;
	padding: 5px 0;
	border-bottom: 1px solid #e8e8e8;
}

.sidebar-widget ul li:last-child {
	border-bottom: none;
}

.sidebar-widget ul li a {
	color: #1e1e1e;
	text-decoration: none;
}

.sidebar-widget ul li a:hover {
	color: #8c3a3a;
}


/* =============================================================================
   STATIC PAGES
   ============================================================================= */

.page-title {
	font-size: 1.8rem;
	margin-bottom: 24px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e8e8e8;
}

.page-content {
	font-size: 17px;
	line-height: 1.82;
}

.page-content p {
	margin-bottom: 1.35em;
}


/* =============================================================================
   FOOTER
   ============================================================================= */

.site-footer {
	border-top: 1px solid #e8e8e8;
	padding: 20px 32px;
	text-align: center;
}

.site-footer p {
	font-family: system-ui, -apple-system, Arial, sans-serif;
	font-size: 0.74rem;
	color: #888888;
	margin: 0;
}

.site-footer a {
	color: #888888;
}

.site-footer a:hover {
	color: #8c3a3a;
}


/* =============================================================================
   HEADER NAV
   ============================================================================= */

.site-header-inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
}

.site-branding {
	flex: 1 1 auto;
}

.site-nav {
	flex: 0 0 auto;
	padding-bottom: 4px;
}

.site-nav .nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 24px;
}

.site-nav .nav-list li {
	margin: 0;
	padding: 0;
	border: none;
	font-size: 0.78rem;
}

.site-nav .nav-list a {
	font-family: system-ui, -apple-system, Arial, sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #888888;
	text-decoration: none;
	transition: color 0.15s;
}

.site-nav .nav-list a:hover {
	color: #8c3a3a;
}


/* =============================================================================
   ARCHIVES PAGE
   ============================================================================= */

.archive-post-list {
	margin-top: 8px;
}

.archive-year {
	font-size: 1.1rem;
	font-weight: 600;
	color: #1e1e1e;
	margin: 32px 0 4px;
	padding-bottom: 6px;
	border-bottom: 1px solid #e8e8e8;
}

.archive-month {
	font-family: system-ui, -apple-system, Arial, sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #8c3a3a;
	margin: 18px 0 6px;
}

.archive-posts {
	list-style: none;
	margin: 0 0 4px;
	padding: 0;
}

.archive-post-item {
	font-size: 0.9rem;
	padding: 4px 0;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	gap: 10px;
	align-items: baseline;
}

.archive-post-item:last-child {
	border-bottom: none;
}

.archive-post-date {
	font-family: system-ui, -apple-system, Arial, sans-serif;
	font-size: 0.72rem;
	color: #aaaaaa;
	min-width: 18px;
	text-align: right;
}

.archive-post-item a {
	color: #1e1e1e;
	text-decoration: none;
}

.archive-post-item a:hover {
	color: #8c3a3a;
}


/* =============================================================================
   PODCAST EPISODE LIST
   ============================================================================= */

.podcast-episode-list {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.podcast-episode {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding-bottom: 28px;
	border-bottom: 1px solid #e8e8e8;
}

.podcast-episode:last-child {
	border-bottom: none;
}

.episode-thumb-link {
	flex: 0 0 120px;
}

.episode-thumb {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.episode-info {
	flex: 1 1 auto;
	min-width: 0;
}

.episode-title {
	font-size: 1.05rem;
	font-weight: 600;
	margin: 0 0 4px;
	line-height: 1.3;
}

.episode-title a {
	color: #1e1e1e;
	text-decoration: none;
}

.episode-title a:hover {
	color: #8c3a3a;
}

.episode-meta {
	font-family: system-ui, -apple-system, Arial, sans-serif;
	font-size: 0.75rem;
	color: #aaaaaa;
	margin: 0 0 8px;
}

.episode-excerpt {
	font-size: 0.88rem;
	line-height: 1.6;
	color: #444444;
	margin: 0;
}


/* =============================================================================
   PLATFORM BADGES (podcast sidebar)
   ============================================================================= */

.platform-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.platform-item {
	border: none !important;
	padding: 0 !important;
}

.platform-badge {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 10px;
	border-radius: 6px;
	text-decoration: none;
	color: #ffffff;
	font-family: system-ui, -apple-system, Arial, sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
	transition: opacity 0.15s;
}

.platform-badge:hover {
	opacity: 0.85;
	text-decoration: none;
	color: #ffffff;
}

.platform-icon {
	font-size: 1.1rem;
	flex: 0 0 auto;
}

.platform-label small {
	display: block;
	font-size: 0.62rem;
	font-weight: 400;
	opacity: 0.85;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.platform-apple   .platform-badge { background: #9933cc; }
.platform-spotify .platform-badge { background: #1db954; }
.platform-youtube .platform-badge { background: #ff0000; }
.platform-amazon  .platform-badge { background: #00a8e1; }
.platform-iheart  .platform-badge { background: #c6002b; }
.platform-overcast .platform-badge { background: #fc7e0f; }
.platform-pocket  .platform-badge { background: #f43e37; }
.platform-pandora .platform-badge { background: #005483; }
.platform-rss     .platform-badge { background: #f26522; }


/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 720px) {
	.site-columns {
		flex-direction: column;
		padding: 20px 20px 36px;
		gap: 0;
	}

	.site-sidebar {
		flex: none;
		width: 100%;
		min-width: 0;
		border-top: 1px solid #e8e8e8;
		padding-top: 28px;
		margin-top: 28px;
	}

	.site-header {
		padding: 20px 20px 16px;
	}

	.site-name {
		font-size: 1.4rem;
	}

	.entry-title {
		font-size: 1.25rem;
	}

	.site-header-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.site-nav .nav-list {
		gap: 16px;
	}

	.podcast-episode {
		flex-direction: column;
	}

	.episode-thumb-link {
		flex: none;
	}

	.episode-thumb {
		width: 100%;
		height: auto;
	}
}
