:root {
	--font_head: "Heebo", sans-serif;
	--font_body: "Rubik", sans-serif;
	--bg_base: #f4f6fb;
	--bg_soft: #ffffff;
	--ink: #161620;
	--ink_soft: #4d4f63;
	--line: #d9dfec;
	--brand_a: #005a7a;
	--brand_b: #eab676;
	--brand_c: #0c9b95;
	--card_shadow: 0 24px 44px rgba(15, 24, 44, 0.12);
}

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

[hidden] {
	display: none !important;
}

html,
body {
	margin: 0;
	padding: 0;
	overflow-x: clip;
}

body {
	font-family: var(--font_body);
	color: var(--ink);
	background:
		radial-gradient(circle at 10% -10%, rgba(0, 90, 122, 0.16), transparent 45%),
		radial-gradient(circle at 100% 20%, rgba(234, 182, 118, 0.2), transparent 32%),
		linear-gradient(180deg, #f9fbff 0%, var(--bg_base) 100%);
	min-height: 100vh;
	position: relative;
}

body::before {
	content: "";
	position: fixed;
	inset: auto -12vw 18% auto;
	width: 40vw;
	height: 40vw;
	background: radial-gradient(circle, rgba(12, 155, 149, 0.18), rgba(12, 155, 149, 0));
	pointer-events: none;
	filter: blur(2px);
}

body::after {
	content: "";
	position: fixed;
	inset: 18% auto auto -15vw;
	width: 34vw;
	height: 34vw;
	background: radial-gradient(circle, rgba(0, 90, 122, 0.12), rgba(0, 90, 122, 0));
	pointer-events: none;
}

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

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3 {
	font-family: var(--font_head);
	font-weight: 800;
	margin: 0;
	letter-spacing: 0.01em;
}

p {
	margin: 0;
}

.shell {
	width: min(1160px, calc(100% - 2.2rem));
	margin-inline: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	backdrop-filter: blur(8px);
	background: rgba(249, 251, 255, 0.88);
	border-bottom: 1px solid rgba(217, 223, 236, 0.7);
}

.site-header::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 2px;
	background: linear-gradient(90deg, var(--brand_a), var(--brand_b), var(--brand_c));
	opacity: 0.55;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.9rem;
	padding-block: 0.85rem;
}

.site-logo {
	font-family: var(--font_head);
	font-weight: 800;
	font-size: clamp(1.1rem, 2.7vw, 1.58rem);
	line-height: 1.05;
	max-inline-size: 16ch;
	overflow-wrap: anywhere;
	color: #0f1f35;
}

.site-nav {
	display: none;
}

.site-nav ul,
.site-footer__nav ul,
.mobile-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.site-nav a {
	display: inline-block;
	padding: 0.52rem 0.84rem;
	border-radius: 999px;
	font-size: 0.95rem;
	color: #23344d;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(168, 186, 214, 0.75);
	transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.site-nav a:hover {
	transform: translateY(-1px);
	border-color: rgba(0, 90, 122, 0.45);
	background: #ffffff;
}

.menu-toggle {
	width: 2.8rem;
	height: 2.8rem;
	border: 1px solid #c9d3e5;
	background: #ffffff;
	border-radius: 0.9rem;
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0.25rem;
	padding: 0;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(18, 33, 57, 0.12);
}

.menu-toggle span {
	display: block;
	width: 1.25rem;
	height: 2px;
	background: #1b324f;
	border-radius: 2px;
}

.menu-overlay {
	position: fixed;
	inset: 0;
	background: rgba(9, 14, 26, 0.56);
	opacity: 0;
	transition: opacity 0.28s ease;
	z-index: 70;
}

.menu-overlay.is-open {
	opacity: 1;
}

.mobile-menu {
	position: fixed;
	top: 0;
	right: 0;
	width: min(86vw, 350px);
	height: 100dvh;
	padding: 5.5rem 1.15rem 1.3rem;
	background:
		linear-gradient(150deg, rgba(0, 90, 122, 0.96), rgba(16, 32, 54, 0.96)),
		linear-gradient(20deg, rgba(234, 182, 118, 0.36), rgba(234, 182, 118, 0));
	border-left: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: -26px 0 60px rgba(8, 14, 26, 0.5);
	transform: translateX(104%);
	transition: transform 0.28s ease;
	z-index: 80;
}

.mobile-menu::before,
.mobile-menu::after {
	content: "";
	position: absolute;
	pointer-events: none;
}

.mobile-menu::before {
	inset: 1.4rem 1rem auto;
	height: 1px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}

.mobile-menu::after {
	inset: auto -22% -18%;
	width: 72%;
	aspect-ratio: 1;
	background: radial-gradient(circle, rgba(234, 182, 118, 0.33), rgba(234, 182, 118, 0));
}

.mobile-menu.is-open {
	transform: translateX(0);
}

.mobile-menu ul {
	display: grid;
	gap: 0.65rem;
}

.mobile-menu a {
	display: block;
	padding: 0.85rem 0.9rem;
	border-radius: 0.9rem;
	color: #f4f8ff;
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid rgba(255, 255, 255, 0.22);
}

body.menu-open {
	overflow: hidden;
}

.page-main {
	margin-block: clamp(1rem, 4vw, 2rem) clamp(2.4rem, 5vw, 3.4rem);
	padding: clamp(1.1rem, 2.6vw, 1.6rem);
	border-radius: clamp(1rem, 2.8vw, 1.6rem);
	background:
		linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 255, 0.82)),
		linear-gradient(25deg, rgba(234, 182, 118, 0.18), rgba(0, 90, 122, 0.06));
	border: 1px solid rgba(217, 223, 236, 0.9);
	box-shadow: 0 16px 40px rgba(16, 27, 45, 0.08);
	position: relative;
	overflow: clip;
}

.page-main::before {
	content: "";
	position: absolute;
	inset: -20% auto auto -10%;
	width: 36%;
	aspect-ratio: 1;
	background: radial-gradient(circle, rgba(0, 90, 122, 0.12), rgba(0, 90, 122, 0));
	pointer-events: none;
}

.page-main::after {
	content: "";
	position: absolute;
	inset: auto -15% -18% auto;
	width: 42%;
	aspect-ratio: 1;
	background: radial-gradient(circle, rgba(234, 182, 118, 0.2), rgba(234, 182, 118, 0));
	pointer-events: none;
}

.page-main h1 {
	font-size: clamp(1.5rem, 4.9vw, 2.45rem);
	line-height: 1.1;
	color: #10213a;
	max-inline-size: 28ch;
	position: relative;
	z-index: 2;
}

.page-note {
	margin-top: 0.9rem;
	font-size: clamp(0.98rem, 2.7vw, 1.15rem);
	line-height: 1.72;
	color: var(--ink_soft);
	max-inline-size: 70ch;
	position: relative;
	z-index: 2;
}

.posts-grid {
	margin-top: 1.25rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	position: relative;
	z-index: 2;
}

.post-card {
	border-radius: 1rem;
	background: linear-gradient(180deg, #ffffff, #f7f9ff);
	border: 1px solid #d8e0ee;
	box-shadow: var(--card_shadow);
	position: relative;
	overflow: hidden;
}

.post-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, var(--brand_a), var(--brand_b), var(--brand_c));
}

.post-card__link {
	display: grid;
	gap: 0.54rem;
	padding: 0.72rem;
}

.post-card img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 0.72rem;
	border: 1px solid #d1dbed;
}

.post-card h3 {
	font-size: 1.12rem;
	line-height: 1.28;
	color: #142946;
}

.post-card time {
	font-size: 0.86rem;
	color: #546480;
}

.post-card__link > p:not(.post-card__section) {
	font-size: 0.95rem;
	line-height: 1.58;
	color: #434e63;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card__section {
	justify-self: start;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0.3rem 0.62rem;
	border-radius: 999px;
	border: 1px solid rgba(0, 90, 122, 0.28);
	background: rgba(0, 90, 122, 0.07);
	color: #0f4966;
}

.post-date {
	display: block;
	margin-top: 0.7rem;
	font-size: 0.95rem;
	color: #55617a;
	position: relative;
	z-index: 2;
}

.post-cover {
	width: 100%;
	aspect-ratio: 16 / 8.5;
	object-fit: cover;
	margin-top: 1rem;
	border-radius: 0.95rem;
	border: 1px solid #d0daeb;
	box-shadow: 0 14px 30px rgba(15, 26, 44, 0.12);
	position: relative;
	z-index: 2;
}

.post-content {
	margin-top: 1rem;
	display: grid;
	gap: 0.85rem;
	position: relative;
	z-index: 2;
}

.post-content p {
	font-size: 1.02rem;
	line-height: 1.8;
	color: #36435b;
}

.related-posts {
	margin-top: 1.6rem;
	position: relative;
	z-index: 2;
}

.related-posts h2 {
	font-size: clamp(1.26rem, 3.6vw, 1.7rem);
	color: #132846;
}

.related-posts .posts-grid {
	margin-top: 0.95rem;
}

.page-main--404 {
	text-align: center;
	max-width: 760px;
}

.page-main--404 p {
	margin-top: 0.9rem;
	font-size: 1.08rem;
	line-height: 1.7;
	color: #4a5872;
}

.not-found-link {
	display: inline-block;
	margin-top: 1.25rem;
	padding: 0.72rem 1.12rem;
	font-family: var(--font_head);
	font-weight: 700;
	border-radius: 0.84rem;
	color: #ffffff;
	background: linear-gradient(115deg, #0f2f55, #0c5f7f);
	box-shadow: 0 12px 24px rgba(12, 47, 85, 0.28);
}

.site-footer {
	padding-block: 1.1rem 1.5rem;
	border-top: 1px solid rgba(204, 214, 232, 0.85);
	background: linear-gradient(180deg, rgba(251, 253, 255, 0.92), rgba(245, 248, 255, 0.95));
}

.site-footer__inner {
	display: grid;
	gap: 0.9rem;
}

.site-footer__home {
	font-family: var(--font_head);
	font-weight: 800;
	font-size: clamp(1.02rem, 2.6vw, 1.32rem);
	color: #10243d;
	overflow-wrap: anywhere;
}

.site-footer__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.site-footer__nav a {
	display: inline-block;
	padding: 0.46rem 0.78rem;
	border-radius: 999px;
	font-size: 0.92rem;
	color: #22374f;
	border: 1px solid #cfd9ea;
	background: #ffffff;
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid rgba(12, 155, 149, 0.8);
	outline-offset: 3px;
}

@media (min-width: 768px) {
	.posts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.1rem;
	}

	.post-card__link {
		padding: 0.78rem;
	}

	.site-footer__inner {
		grid-template-columns: auto 1fr;
		align-items: center;
	}

	.site-footer__nav ul {
		justify-content: flex-end;
	}
}

@media (min-width: 960px) {
	.site-nav {
		display: block;
	}

	.menu-toggle {
		display: none;
	}

	.mobile-menu,
	.menu-overlay {
		display: none !important;
	}

	body.menu-open {
		overflow: auto;
	}
}

@media (min-width: 1280px) {
	.posts-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.related-posts .posts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.post-tag {
  margin: 0;
  padding: 0;
  padding-bottom: 10px;
}

.post-tag a {
  text-decoration: none;
  color: var(--brand_a);
}
