/* Reset and base styles */
/* Test comment to push upload. 2:40 pm.*/

* {
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	line-height: 1.6;
	margin: 0;
	padding: 0;
	color: #333;
	background-color: #fff;
}

/* Container wrapper */
.container {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto 1fr;
	grid-template-areas:
		"header"
		"main"
		"sidebar";
	min-height: 100vh;
	max-width: 1200px;
	margin: 0 auto;
}

/* Tablet and desktop layout */
@media (min-width: 768px) {
	.container {
		grid-template-columns: 1fr 300px;
		grid-template-rows: auto 1fr;
		grid-template-areas:
			"header header"
			"main sidebar";
		gap: 20px;
		padding: 0 20px;
	}
}

/* Large desktop layout */
@media (min-width: 1024px) {
	.container {
		grid-template-columns: 1fr 350px;
	}
}

/* Header styles */
.header {
	grid-area: header;
	text-align: center;
	background-color: #f8f9fa;
	padding: 2rem 1rem;
	border-bottom: 2px solid #e9ecef;
	margin-bottom: 20px;
}

@media (min-width: 768px) {
	.header {
		padding: 3rem 2rem;
		margin-bottom: 0;
	}
}

.header h1 {
	color: #2c3e50;
	margin: 0 0 0.5rem 0;
	font-size: 2rem;
	font-weight: 700;
}

@media (min-width: 768px) {
	.header h1 {
		font-size: 2.5rem;
	}
}

.header p {
	color: #6c757d;
	font-style: italic;
	margin: 0;
	font-size: 1.1rem;
}

/* Main content area */
.main-content {
	grid-area: main;
	padding: 0 1rem;
	margin-bottom: 2rem;
}

@media (min-width: 768px) {
	.main-content {
		padding: 0;
		margin-bottom: 0;
	}
}

/* Day section styles */
.day-section {
	margin-bottom: 3rem;
}

.day-header {
	font-size: 1.5rem;
	font-weight: 600;
	color: #2c3e50;
	margin: 0 0 1.5rem 0;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #e9ecef;
}

.day-permalink {
	font-size: 1.2rem;
	font-weight: normal;
	color: #adb5bd;
	margin-left: 0.5rem;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}

.day-permalink:hover {
	opacity: 1;
	text-decoration: none;
}

/* Post styles */
.post {
	margin-bottom: 2rem;
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: none;
}

/* Post time styles */
.post-time {
	font-size: 0.875rem;
	font-weight: 500;
	color: #6c757d;
	margin-bottom: 0.5rem;
}

.time-permalink {
	font-size: 0.875rem;
	color: #adb5bd;
	margin-left: 0.5rem;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}

.time-permalink:hover {
	opacity: 1;
	text-decoration: none;
}

/* Post content styles */
.post-content {
	color: #212529;
	font-size: 1rem;
	line-height: 1.7;
}

.post-content p {
	margin: 0.8rem 0;
}

.post-content p:first-child {
	margin-top: 0;
}

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

/* Legacy outline styles for backwards compatibility */
.post-content ul {
	padding-left: 0;
	margin: 0;
}

.post-content li {
	list-style: none;
	margin: 0.5rem 0;
	position: relative;
	padding-left: 1.5rem;
}

.post-content li:before {
	content: "•";
	color: #3498db;
	font-weight: bold;
	position: absolute;
	left: 0;
}

.post-content .level-1 {
	margin-left: 1.5rem;
}

.post-content .level-2 {
	margin-left: 3rem;
}

.post-content .level-3 {
	margin-left: 4.5rem;
}

/* Sidebar styles */
.sidebar {
	grid-area: sidebar;
	background: #f8f9fa;
	padding: 1.5rem;
	border-top: 2px solid #e9ecef;
}

@media (min-width: 768px) {
	.sidebar {
		border-top: none;
		border-left: 1px solid #e9ecef;
		position: sticky;
		top: 20px;
		height: fit-content;
	}
}

/* Calendar widget */
.calendar-widget {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1rem;
}

.calendar-widget th,
.calendar-widget td {
	text-align: center;
	padding: 0.5rem;
	border: 1px solid #e9ecef;
}

.calendar-widget th {
	background-color: #f1f3f5;
	font-weight: 600;
	font-size: 0.9rem;
}

.calendar-widget td {
	height: 2.5rem;
}

.calendar-widget .has-post {
	background-color: #e3f2fd;
	font-weight: 600;
}

.calendar-widget .has-post a {
	display: block;
	width: 100%;
	height: 100%;
	color: #1976d2;
}

/* RSS link */
.rss-link {
	border-top: 1px solid #e9ecef;
}

.rss-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #333;
	font-weight: 500;
	text-decoration: none;
}

.rss-link a:hover {
	text-decoration: underline;
}

.rss-link svg {
	width: 40px;
	height: 40px;
	display: inline-block;
	vertical-align: middle;
}

/* Link styles */
a {
	color: #3498db;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: #2c7fb8;
	text-decoration: underline;
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
	.post {
		padding: 1rem;
	}
	
	.post-content {
		font-size: 0.95rem;
	}
	
	.sidebar h3 {
		font-size: 1.2rem;
		margin-top: 0;
	}
}

/* Print styles */
@media print {
	.sidebar {
		display: none;
	}
	
	.container {
		display: block;
	}
	
	.post {
		break-inside: avoid;
		box-shadow: none;
		border: 1px solid #000;
	}
}