:root {
	--color-text: #1d252c;
	--color-muted: #64717d;
	--color-border: #d8e0e6;
	--color-bg: #ffffff;
	--color-bg-soft: #f5f7f8;
	--color-accent: #176b87;
	--font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-base);
	font-size: 16px;
	line-height: 1.75;
}

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

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

a:hover,
a:focus {
	text-decoration-thickness: 0.14em;
}

.l-container {
	width: min(100% - 32px, 1120px);
	margin-inline: auto;
}

.l-container--narrow {
	width: min(100% - 32px, 800px);
}

.l-header {
	border-bottom: 1px solid var(--color-border);
	background: var(--color-bg);
}

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

.l-main {
	padding-block: 48px 64px;
}

.l-footer {
	border-top: 1px solid var(--color-border);
	background: var(--color-bg-soft);
}

.l-footer__inner {
	padding-block: 28px;
}

.l-footer__copyright {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.875rem;
}

.c-site-branding__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.c-site-branding__title a {
	color: var(--color-text);
	text-decoration: none;
}

.c-site-branding__description {
	margin: 4px 0 0;
	color: var(--color-muted);
	font-size: 0.875rem;
	line-height: 1.4;
}

.c-global-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.c-global-nav__list {
	display: none;
	position: absolute;
	top: 72px;
	right: 16px;
	left: 16px;
	z-index: 10;
	margin: 0;
	padding: 12px;
	border: 1px solid var(--color-border);
	background: var(--color-bg);
	box-shadow: 0 12px 28px rgba(29, 37, 44, 0.12);
	list-style: none;
}

.c-global-nav__list.is-active {
	display: block;
}

.c-global-nav__list a {
	display: block;
	padding: 10px 8px;
	color: var(--color-text);
	font-weight: 600;
	text-decoration: none;
}

.c-global-nav__list a:hover,
.c-global-nav__list a:focus {
	color: var(--color-accent);
}

.c-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	background: var(--color-bg);
	color: var(--color-text);
	cursor: pointer;
}

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

.c-menu-toggle__bar {
	position: relative;
}

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

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

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

.p-page-header {
	margin-bottom: 32px;
}

.p-page-header__title {
	margin: 0;
	font-size: clamp(2rem, 8vw, 3rem);
	line-height: 1.2;
}

.p-page-header__description {
	margin-top: 12px;
	color: var(--color-muted);
}

.p-post-list {
	display: grid;
	gap: 24px;
}

.c-entry {
	margin: 0;
}

.p-post-list .c-entry {
	padding: 24px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: var(--color-bg);
}

.c-entry__thumbnail {
	margin: 0 0 20px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--color-bg-soft);
}

.c-entry__thumbnail img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.c-entry__header {
	margin-bottom: 18px;
}

.c-entry__title {
	margin: 0;
	font-size: clamp(1.75rem, 7vw, 2.75rem);
	line-height: 1.25;
}

.p-post-list .c-entry__title {
	font-size: 1.375rem;
}

.c-entry__title a {
	color: var(--color-text);
	text-decoration: none;
}

.c-entry__title a:hover,
.c-entry__title a:focus {
	color: var(--color-accent);
}

.c-entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-top: 10px;
	color: var(--color-muted);
	font-size: 0.875rem;
}

.c-entry-meta a {
	color: inherit;
}

.c-entry__content > * {
	margin-top: 0;
	margin-bottom: 1.4em;
}

.c-entry__content > :last-child {
	margin-bottom: 0;
}

.c-entry__content h2,
.c-entry__content h3,
.c-entry__content h4 {
	margin-top: 1.8em;
	line-height: 1.35;
}

.c-entry__content .alignwide {
	margin-inline: calc((100% - min(100vw - 32px, 1120px)) / 2);
	max-width: none;
}

.c-page-links,
.c-pagination,
.post-navigation {
	margin-top: 40px;
}

.c-pagination .nav-links,
.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
}

.c-empty {
	padding-block: 48px;
}

.c-empty__title {
	margin: 0 0 12px;
	font-size: clamp(2rem, 8vw, 3rem);
	line-height: 1.2;
}

.u-text-center {
	text-align: center;
}

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

.u-screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 8px 12px;
	clip: auto;
	background: var(--color-bg);
	color: var(--color-text);
}

@media (min-width: 768px) {
	.l-main {
		padding-block: 72px 88px;
	}

	.c-menu-toggle {
		display: none;
	}

	.c-global-nav__list {
		display: flex;
		position: static;
		gap: 20px;
		padding: 0;
		border: 0;
		box-shadow: none;
	}

	.c-global-nav__list a {
		padding: 8px 0;
		font-size: 0.9375rem;
	}

	.p-post-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1040px) {
	.p-post-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
