/**
 * Mumssanak main stylesheet.
 */

:root {
	--color-bg: #ffffff;
	--color-text: #1a1a1a;
	--color-muted: #6b6b6b;
	--color-accent: #2563eb;
	--color-border: #e5e5e5;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-heading: var(--font-body);
	--container: 1140px;
	--space: 1.5rem;
}

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-bg);
}

a {
	color: var(--color-accent);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	line-height: 1.25;
	margin: 0 0 0.5em;
}

/* Layout ------------------------------------------------------------------- */

.site-header,
.site-content,
.site-footer {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--space);
}

.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space);
	padding-block: var(--space);
	border-bottom: 1px solid var(--color-border);
}

.site-content {
	display: flex;
	flex-wrap: wrap;
	gap: calc(var(--space) * 2);
	padding-block: calc(var(--space) * 2);
}

.site-main {
	flex: 1 1 640px;
	min-width: 0;
}

.widget-area {
	flex: 1 1 260px;
}

.no-sidebar .site-main {
	flex-basis: 100%;
}

.site-footer {
	border-top: 1px solid var(--color-border);
	padding-block: calc(var(--space) * 2);
	color: var(--color-muted);
}

/* Branding ----------------------------------------------------------------- */

.site-title {
	font-size: 1.5rem;
	margin: 0;
}

.site-title a {
	color: var(--color-text);
}

.site-description {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.9rem;
}

/* Navigation --------------------------------------------------------------- */

.main-navigation ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space);
	margin: 0;
	padding: 0;
}

.main-navigation a {
	color: var(--color-text);
	font-weight: 500;
}

.menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	padding: 0.5rem 0.75rem;
	cursor: pointer;
}

/* Posts -------------------------------------------------------------------- */

.entry-header {
	margin-bottom: var(--space);
}

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

.entry-title a {
	color: var(--color-text);
}

.entry-meta {
	color: var(--color-muted);
	font-size: 0.875rem;
}

.post-thumbnail {
	margin-bottom: var(--space);
}

.post-thumbnail img {
	border-radius: 6px;
}

article {
	margin-bottom: calc(var(--space) * 2.5);
	padding-bottom: var(--space);
	border-bottom: 1px solid var(--color-border);
}

.entry-content > * + * {
	margin-top: 1rem;
}

.entry-footer {
	margin-top: var(--space);
	font-size: 0.875rem;
	color: var(--color-muted);
}

.entry-footer span + span::before {
	content: " • ";
}

.read-more {
	font-weight: 600;
}

/* Widgets ------------------------------------------------------------------ */

.widget {
	margin-bottom: calc(var(--space) * 1.5);
}

.widget-title {
	font-size: 1.1rem;
	margin-bottom: 0.75rem;
}

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

.widget li {
	padding: 0.25rem 0;
}

/* Pagination --------------------------------------------------------------- */

.posts-navigation,
.post-navigation {
	margin-block: calc(var(--space) * 2);
	display: flex;
	justify-content: space-between;
	gap: var(--space);
}

/* Comments ----------------------------------------------------------------- */

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-list ol {
	list-style: none;
}

/* Forms -------------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	font: inherit;
}

button,
input[type="submit"] {
	background: var(--color-accent);
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 0.6rem 1.2rem;
	font: inherit;
	cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
	opacity: 0.9;
}

/* Accessibility ------------------------------------------------------------ */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #fff;
	padding: 0.75rem 1rem;
	z-index: 100;
}

.skip-link:focus {
	left: 0.5rem;
	top: 0.5rem;
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 768px) {
	.menu-toggle {
		display: block;
	}

	.main-navigation ul {
		display: none;
		flex-direction: column;
		width: 100%;
		margin-top: var(--space);
	}

	.main-navigation.toggled ul {
		display: flex;
	}

	.site-header {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Dark mode ---------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
	:root {
		--color-bg: #121212;
		--color-text: #e8e8e8;
		--color-muted: #9a9a9a;
		--color-border: #2a2a2a;
		--color-accent: #60a5fa;
	}

	.skip-link {
		background: #1a1a1a;
		color: #fff;
	}
}
