:root {
	--font_head: "Heebo", sans-serif;
	--font_body: "Assistant", sans-serif;
	--bg_main: #fcfaf7;
	--bg_panel: #fffdf9;
	--ink: #221d1a;
	--ink_soft: #665f5a;
	--line: #e8ddd3;
	--accent_a: #ed6d5f;
	--accent_b: #ffb266;
	--accent_c: #f3d3a8;
	--shadow_soft: 0 18px 48px rgba(66, 40, 23, 0.12);
	--shadow_card: 0 14px 30px rgba(38, 21, 9, 0.12);
	--radius_l: 24px;
	--radius_m: 16px;
}

* {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

html,
body {
	margin: 0;
	padding: 0;
	max-width: 100%;
	overflow-x: hidden;
}

body,
body.site-body {
	font-family: var(--font_body);
	color: var(--ink);
	background: radial-gradient(circle at 10% 10%, rgba(237, 109, 95, 0.18), transparent 35%),
		radial-gradient(circle at 90% 15%, rgba(255, 178, 102, 0.22), transparent 34%),
		linear-gradient(165deg, #fff8ef 0%, #fffefb 48%, #fff7ed 100%);
	line-height: 1.65;
	min-height: 100vh;
}

body.menu-open {
	overflow: hidden;
}

.site-bg {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -1;
}

.site-bg::before,
.site-bg::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(0.5px);
}

.site-bg::before {
	width: 420px;
	height: 420px;
	top: -130px;
	right: -80px;
	background: radial-gradient(circle at 30% 30%, rgba(237, 109, 95, 0.5), rgba(237, 109, 95, 0));
}

.site-bg::after {
	width: 340px;
	height: 340px;
	bottom: -120px;
	left: -90px;
	background: radial-gradient(circle at 60% 60%, rgba(255, 178, 102, 0.5), rgba(255, 178, 102, 0));
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	backdrop-filter: blur(12px);
	background: linear-gradient(120deg, rgba(255, 252, 246, 0.92), rgba(255, 247, 238, 0.94));
	border-bottom: 1px solid rgba(232, 221, 211, 0.85);
}

.header-shell {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.95rem 0;
}

.site-logo {
	font-family: var(--font_head);
	font-weight: 800;
	font-size: clamp(1.05rem, 4.8vw, 1.55rem);
	color: var(--ink);
	text-decoration: none;
	max-inline-size: 15ch;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.desktop-nav {
	display: none;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
	color: var(--ink);
	text-decoration: none;
}

.menu-button {
	position: relative;
	z-index: 32;
	width: 46px;
	height: 46px;
	border: 1px solid var(--line);
	background: var(--bg_panel);
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(45, 25, 12, 0.12);
}

.menu-button span {
	width: 20px;
	height: 2px;
	background: var(--ink);
	border-radius: 999px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.menu-overlay {
	position: fixed;
	inset: 0;
	background: rgba(34, 29, 26, 0.38);
	backdrop-filter: blur(2px);
	z-index: 24;
}

.mobile-nav {
	position: fixed;
	top: 0;
	right: 0;
	left: auto;
	width: min(310px, 84vw);
	height: 100dvh;
	background: linear-gradient(180deg, #fffefb 0%, #fff4e6 100%);
	border-left: 1px solid var(--line);
	border-right: 0;
	padding: 6rem 1.2rem 1.2rem;
	z-index: 26;
	box-shadow: var(--shadow_soft);
	display: grid;
	align-content: start;
	gap: 0.55rem;
}

.menu-overlay[hidden],
.mobile-nav[hidden] {
	display: none;
}

.mobile-nav a {
	display: block;
	padding: 0.8rem 0.95rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.65);
	border: 1px solid rgba(232, 221, 211, 0.8);
	font-weight: 600;
}

main {
	padding: 1.6rem 0 2.5rem;
}

.page-intro {
	position: relative;
	padding: 1.3rem 1.1rem;
	background: linear-gradient(135deg, rgba(255, 246, 234, 0.95), rgba(255, 255, 255, 0.92));
	border: 1px solid rgba(232, 221, 211, 0.92);
	border-radius: var(--radius_l);
	box-shadow: var(--shadow_soft);
	overflow: hidden;
	margin-bottom: 1.2rem;
}

.page-intro::after {
	content: "";
	position: absolute;
	inset-inline-end: -80px;
	inset-block-end: -85px;
	width: 220px;
	height: 220px;
	border-radius: 38% 62% 57% 43% / 43% 48% 52% 57%;
	background: linear-gradient(120deg, rgba(237, 109, 95, 0.35), rgba(255, 178, 102, 0.1));
}

h1,
h2,
h3 {
	font-family: var(--font_head);
	margin: 0;
	line-height: 1.25;
}

h1 {
	font-size: clamp(1.45rem, 5.5vw, 2.35rem);
	margin-bottom: 0.7rem;
}

h2 {
	font-size: clamp(1.28rem, 4.4vw, 1.85rem);
	margin-bottom: 0.95rem;
}

h3 {
	font-size: clamp(1.06rem, 3.8vw, 1.35rem);
}

p {
	margin: 0;
}

.page-intro p {
	color: var(--ink_soft);
	max-inline-size: 70ch;
}

.posts-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.post-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.post-card {
	position: relative;
	display: grid;
	gap: 0.7rem;
	background: var(--bg_panel);
	border: 1px solid var(--line);
	border-radius: var(--radius_m);
	padding: 0.7rem;
	box-shadow: var(--shadow_card);
	overflow: hidden;
}

.post-card::before {
	content: "";
	position: absolute;
	inset-inline-start: -15%;
	inset-block-start: -40px;
	width: 130px;
	height: 130px;
	background: radial-gradient(circle, rgba(243, 211, 168, 0.4), rgba(243, 211, 168, 0));
	pointer-events: none;
}

.post-card img {
	width: 100%;
	border-radius: 12px;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border: 1px solid rgba(232, 221, 211, 0.8);
}

.post-card time {
	font-size: 0.92rem;
	color: #7c6f67;
}

.post-card p:nth-of-type(1) {
	color: #5b534f;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.post-card p:nth-of-type(2) {
	justify-self: start;
	font-weight: 700;
	font-size: 0.92rem;
	color: #843931;
	background: rgba(237, 109, 95, 0.12);
	border: 1px solid rgba(237, 109, 95, 0.25);
	border-radius: 999px;
	padding: 0.2rem 0.7rem;
}

.post-layout {
	display: grid;
	gap: 0.9rem;
	padding: 1rem;
	border-radius: var(--radius_l);
	border: 1px solid var(--line);
	background: linear-gradient(160deg, rgba(255, 250, 244, 0.95), rgba(255, 255, 255, 0.95));
	box-shadow: var(--shadow_soft);
	margin-bottom: 1.2rem;
}

.post-layout > img {
	width: 100%;
	border-radius: 16px;
	border: 1px solid rgba(232, 221, 211, 0.8);
	max-height: 420px;
	object-fit: cover;
}

.post-layout > time {
	font-size: 0.95rem;
	color: #7c6f67;
}

.post-layout > p {
	color: #4f4742;
}

.post-content {
	display: grid;
	gap: 0.9rem;
	color: #4f4742;
}

.post-content > * {
	margin: 0;
}

.post-content p,
.post-content li {
	line-height: 1.8;
}

.post-content ul,
.post-content ol {
	padding-inline-start: 1.2rem;
	display: grid;
	gap: 0.4rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
	margin-top: 0.2rem;
	margin-bottom: 0.2rem;
}

.post-content img,
.post-content iframe,
.post-content table {
	max-width: 100%;
}

.post-content blockquote {
	margin: 0;
	padding: 0.75rem 0.95rem;
	border-right: 4px solid rgba(237, 109, 95, 0.45);
	background: rgba(237, 109, 95, 0.1);
	border-radius: 12px;
}

.post-content a {
	color: #843931;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.related-posts {
	padding: 1rem;
	border-radius: var(--radius_l);
	border: 1px solid var(--line);
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 243, 230, 0.9));
	box-shadow: var(--shadow_soft);
}

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

.error-main {
	display: grid;
	align-items: center;
	min-height: calc(100vh - 220px);
}

.error-main section {
	background: linear-gradient(150deg, rgba(255, 248, 238, 0.96), rgba(255, 255, 255, 0.95));
	border: 1px solid var(--line);
	border-radius: var(--radius_l);
	box-shadow: var(--shadow_soft);
	padding: 1.3rem;
}

.error-main article {
	display: grid;
	gap: 0.8rem;
}

.error-main a {
	font-family: var(--font_head);
	color: #703027;
	font-weight: 700;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	justify-self: start;
}

.site-footer {
	border-top: 1px solid rgba(232, 221, 211, 0.9);
	background: linear-gradient(100deg, rgba(255, 248, 238, 0.92), rgba(255, 255, 255, 0.94));
}

.footer-shell {
	display: grid;
	gap: 0.9rem;
	padding: 1.05rem 0 1.3rem;
}

.footer-shell > a {
	font-family: var(--font_head);
	font-size: 1.05rem;
	font-weight: 800;
	overflow-wrap: anywhere;
}

.footer-shell nav {
	display: grid;
	gap: 0.45rem;
}

.footer-shell nav a {
	color: #4b433f;
	font-weight: 600;
}

.post-link:focus-visible {
	outline: none;
}

.post-link:focus-visible .post-card {
	outline: 3px solid #d75749;
	outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid #d75749;
	outline-offset: 2px;
}

@media (min-width: 768px) {
	.layout-shell {
		width: min(1160px, calc(100% - 3rem));
	}

	.menu-button {
		display: none;
	}

	.desktop-nav {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		align-items: center;
		gap: 0.45rem;
		max-inline-size: 72%;
	}

	.desktop-nav a {
		padding: 0.55rem 0.8rem;
		border-radius: 999px;
		border: 1px solid rgba(232, 221, 211, 0.9);
		background: rgba(255, 255, 255, 0.7);
		font-weight: 600;
	}

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

	.footer-shell {
		grid-template-columns: auto 1fr;
		align-items: start;
	}

	.footer-shell nav {
		display: flex;
		flex-wrap: wrap;
		gap: 0.6rem;
		justify-content: flex-end;
	}
}

@media (min-width: 1024px) {
	.page-intro {
		padding: 1.6rem;
	}

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

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

	.post-layout {
		padding: 1.35rem;
	}
}

.post-tag {
  margin: 0;
  padding: 0;
}

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