:root {
	--novalite-accent: #2563eb;
	--novalite-bg: #ffffff;
	--novalite-surface: #f8fafc;
	--novalite-text: #111827;
	--novalite-muted: #667085;
	--novalite-border: #e5e7eb;
	--novalite-container: 1180px;
	--novalite-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--novalite-bg);
	color: var(--novalite-text);
	font-family: var(--novalite-font);
	font-size: 16px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--novalite-accent);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	text-decoration-style: dashed;
}

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

button,
input,
select,
textarea {
	font: inherit;
}

button,
input[type="submit"],
.search-submit {
	border: 0;
	border-radius: 6px;
	background: var(--novalite-accent);
	color: #ffffff;
	cursor: pointer;
	padding: 0.72rem 1rem;
}

input,
textarea {
	width: 100%;
	border: 1px solid var(--novalite-border);
	border-radius: 6px;
	padding: 0.72rem 0.85rem;
}

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

.skip-link:focus {
	z-index: 999;
	top: 1rem;
	left: 1rem;
	clip: auto;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.7rem 1rem;
	border-radius: 6px;
	background: #ffffff;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.site-container {
	width: min(100% - 2rem, var(--novalite-container));
	margin-inline: auto;
}

.site-container--full {
	width: min(100% - 2rem, 100%);
}

.site-header {
	border-bottom: 1px solid var(--novalite-border);
	background: rgba(255, 255, 255, 0.92);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	gap: 1rem;
}

.site-branding {
	min-width: 0;
}

.site-title {
	color: var(--novalite-text);
	font-size: 1.15rem;
	font-weight: 700;
	text-decoration: none;
}

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

.main-navigation ul {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation a {
	color: var(--novalite-text);
	font-weight: 600;
	text-decoration: none;
}

.menu-toggle {
	display: none;
	width: 42px;
	height: 42px;
	padding: 0;
	align-items: center;
	justify-content: center;
	background: var(--novalite-surface);
	color: var(--novalite-text);
}

.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	content: "";
}

.menu-toggle__bar {
	position: relative;
}

.menu-toggle__bar::before,
.menu-toggle__bar::after {
	position: absolute;
	left: 0;
}

.menu-toggle__bar::before {
	top: -6px;
}

.menu-toggle__bar::after {
	top: 6px;
}

.site-main {
	min-height: 58vh;
}

.content-area {
	padding-block: clamp(2rem, 6vw, 4.5rem);
}

.content-area--narrow {
	max-width: 820px;
}

.page-header {
	margin-bottom: 2rem;
}

.page-title,
.entry-title {
	margin: 0 0 1rem;
	color: var(--novalite-text);
	font-size: clamp(2rem, 5vw, 3.6rem);
	line-height: 1.1;
}

.entry-title a {
	color: inherit;
	text-decoration: none;
}

.post-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 1.25rem;
}

.entry-card {
	border: 1px solid var(--novalite-border);
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff;
}

.entry-card .entry-header,
.entry-card .entry-summary {
	padding-inline: 1.2rem;
}

.entry-card .entry-header {
	padding-top: 1.2rem;
}

.entry-card .entry-summary {
	padding-bottom: 1.2rem;
}

.entry-card__image img,
.entry-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.75rem;
	margin-bottom: 0.5rem;
	color: var(--novalite-muted);
	font-size: 0.9rem;
}

.entry-content > * {
	margin-block: 0 1.25rem;
}

.entry-content > :where(h2, h3, h4) {
	margin-top: 2rem;
	line-height: 1.2;
}

.entry-content :where(.alignwide) {
	max-width: min(100vw - 2rem, var(--novalite-container));
	margin-inline: calc((100% - min(100vw - 2rem, var(--novalite-container))) / 2);
}

.entry-content :where(.alignfull) {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.navigation,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
	margin-top: 2rem;
}

.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--novalite-border);
}

.comment-list {
	padding-left: 1.25rem;
}

.search-form {
	display: flex;
	gap: 0.6rem;
	align-items: stretch;
}

.search-form label {
	flex: 1;
}

.site-footer {
	border-top: 1px solid var(--novalite-border);
	background: var(--novalite-surface);
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 1.25rem;
	padding-top: 2rem;
}

.site-footer__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.4rem;
	color: var(--novalite-muted);
	font-size: 0.95rem;
}

.site-footer__bar p {
	margin: 0;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a {
	color: var(--novalite-muted);
	text-decoration: none;
}

@media (max-width: 720px) {
	.site-header__inner {
		align-items: flex-start;
		padding-block: 0.9rem;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.main-navigation ul {
		display: none;
		position: absolute;
		left: 1rem;
		right: 1rem;
		top: 72px;
		z-index: 20;
		flex-direction: column;
		align-items: flex-start;
		padding: 1rem;
		border: 1px solid var(--novalite-border);
		border-radius: 8px;
		background: #ffffff;
		box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
	}

	.main-navigation.is-open ul {
		display: flex;
	}

	.search-form,
	.site-footer__bar {
		flex-direction: column;
		align-items: stretch;
	}
}
