/* Archive cards for template-parts/archive.php */
.hello-archive {
	width: min(1200px, calc(100% - 40px));
	margin-inline: auto;
	padding-block: 56px 72px;
}

.hello-archive .page-header {
	margin-bottom: 36px;
	text-align: center;
}

.hello-archive .page-header .entry-title {
	margin: 0;
	color: #0f172a;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.15;
}

.hello-archive .page-header .archive-description {
	max-width: 720px;
	margin: 14px auto 0;
	color: #64748b;
}

.hello-archive-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.hello-archive-card {
	display: flex;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.07);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hello-archive-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
}

.hello-archive-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e2e8f0;
}

.hello-archive-card__image,
.hello-archive-card__image img,
.hello-archive-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.hello-archive-card__image img {
	object-fit: cover;
	transition: transform 0.45s ease;
}

.hello-archive-card:hover .hello-archive-card__image img {
	transform: scale(1.055);
}

.hello-archive-card__placeholder {
	background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.hello-archive-card__category {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 6px 11px;
	background: #D9A441;
	border-radius: 999px;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.2;
	text-decoration: none !important;
	text-transform: uppercase;
}

.hello-archive-card__category:hover,
.hello-archive-card__category:focus-visible {
	background: #D9A441;
	color: #fff;
}

.hello-archive-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px;
}

.hello-archive-card__title {
	margin: 0 0 12px;
	color: #0f172a;
	font-size: 1.25rem;
	font-weight: 750;
	line-height: 1.35;
}

.hello-archive-card__title a {
	color: inherit;
	text-decoration: none;
}

.hello-archive-card__title a:hover,
.hello-archive-card__title a:focus-visible {
	color: #D9A441;
}

.hello-archive-card__excerpt {
	margin-bottom: 22px;
	color: #64748b;
	font-size: 0.95rem;
	line-height: 1.7;
}

.hello-archive-card__excerpt p {
	margin: 0;
}

.hello-archive-card__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	/* padding: 10px 16px;
	background: #D9A441;
	border-radius: 8px; */
	color: #000;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none !important;
	transition: background 0.2s ease, gap 0.2s ease;
}

.hello-archive-card__button:hover,
.hello-archive-card__button:focus-visible {
	gap: 12px;
	/* background: #4338ca; */
	color: #D9A441;
}

.hello-archive .pagination {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 44px;
}

.hello-archive .pagination a {
	display: inline-block;
	padding: 10px 16px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	color: #334155;
	text-decoration: none;
}

.hello-archive .pagination a:hover,
.hello-archive .pagination a:focus-visible {
	border-color: #D9A441;
	color: #D9A441;
}

@media (max-width: 900px) {
	.hello-archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.hello-archive {
		width: min(100% - 28px, 1200px);
		padding-block: 36px 52px;
	}

	.hello-archive-grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.hello-archive-card__content {
		padding: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hello-archive-card,
	.hello-archive-card__image img,
	.hello-archive-card__button {
		transition: none;
	}
}

/* Single blog post */
.hello-single {
	--hello-accent: #d9a441;
	--hello-ink: #0f172a;
	--hello-muted: #64748b;
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
	padding-block: 54px 80px;
}

.hello-single__article {
	overflow: hidden;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.09);
}

.hello-single__header {
	max-width: 1050px;
	margin-inline: auto;
	padding: 58px 44px 42px;
	text-align: center;
}

.hello-single__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 28px;
	color: var(--hello-muted);
	font-size: 0.875rem;
	font-weight: 650;
	text-decoration: none !important;
}

.hello-single__back:hover,
.hello-single__back:focus-visible {
	color: var(--hello-accent);
}

.hello-single__category {
	display: table;
	margin: 0 auto 18px;
	padding: 7px 13px;
	background: var(--hello-accent);
	border-radius: 999px;
	color: #fff !important;
	font-size: 0.7rem;
	font-weight: 750;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-decoration: none !important;
	text-transform: uppercase;
}

.hello-single__title {
	margin: 0;
	color: var(--hello-ink);
	font-size: clamp(2.15rem, 5vw, 3.35rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.hello-single__hero {
	position: relative;
	width: calc(100% - 64px);
	max-height: 660px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 15px;
	background: #e2e8f0;
}

.hello-single__hero img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 660px;
	object-fit: cover;
}

.hello-single__content {
	max-width: 1080px;
	margin-inline: auto;
	padding: 52px 32px 60px;
	color: #334155;
	font-size: clamp(1rem, 1.3vw, 1.125rem);
	line-height: 1.85;
}

.hello-single__content > :first-child {
	margin-top: 0;
}

.hello-single__content > :last-child {
	margin-bottom: 0;
}

.hello-single__content h2,
.hello-single__content h3,
.hello-single__content h4 {
	margin-top: 1.8em;
	color: var(--hello-ink);
	font-weight: 780;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.hello-single__content h2 {
	font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.hello-single__content h3 {
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.hello-single__content a {
	color: #a8761e;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.hello-single__content blockquote {
	margin: 2em 0;
	padding: 24px 28px;
	background: #fffbeb;
	border: 0;
	border-left: 4px solid var(--hello-accent);
	border-radius: 0 12px 12px 0;
	color: #713f12;
	font-size: 1.08em;
}

.hello-single__content img {
	border-radius: 12px;
}

.hello-single__content :is(ul, ol) {
	padding-left: 1.35em;
}

.hello-single__content :is(li, p) {
	margin-bottom: 1em;
}

.hello-single__content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.hello-single__content :is(th, td) {
	padding: 12px 14px;
	border: 1px solid #e2e8f0;
}

.hello-single__content th {
	background: #f8fafc;
	color: var(--hello-ink);
}

.hello-single__tags {
	display: flex;
	max-width: 780px;
	margin: 0 auto;
	padding: 0 32px 52px;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
}

.hello-single__tags-label {
	margin-right: 4px;
	color: var(--hello-ink);
	font-weight: 750;
}

.hello-single__tags a {
	padding: 6px 11px;
	background: #f1f5f9;
	border-radius: 999px;
	color: #475569;
	font-size: 0.8rem;
	font-weight: 650;
	text-decoration: none !important;
}

.hello-single__tags a:hover,
.hello-single__tags a:focus-visible {
	background: #fffbeb;
	color: #a8761e;
}

.hello-single__post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 28px;
}

.hello-single__post-nav-item a {
	display: flex;
	min-height: 124px;
	padding: 24px;
	flex-direction: column;
	justify-content: center;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	color: var(--hello-ink);
	text-decoration: none !important;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hello-single__post-nav-item a:hover,
.hello-single__post-nav-item a:focus-visible {
	transform: translateY(-3px);
	border-color: var(--hello-accent);
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.hello-single__post-nav-item--next {
	text-align: right;
}

.hello-single__post-nav-item--next a {
	align-items: flex-end;
}

.hello-single__nav-label {
	display: block;
	margin-bottom: 7px;
	color: #a8761e;
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.hello-single__post-nav-item strong {
	line-height: 1.35;
}

.hello-single .comments-area {
	max-width: 900px;
	margin: 28px auto 0;
	padding: 36px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
}

.hello-single .comments-area :is(.title-comments, .comment-reply-title) {
	margin-top: 0;
	color: var(--hello-ink);
}

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

.hello-single .comment-list .comment-body {
	margin-bottom: 18px;
	padding: 22px;
	background: #f8fafc;
	border-radius: 12px;
}

.hello-single :is(input:not([type="submit"]), textarea) {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 9px;
}

.hello-single :is(input:not([type="submit"]), textarea):focus {
	border-color: var(--hello-accent);
	box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.18);
	outline: none;
}

.hello-single input[type="submit"] {
	padding: 12px 20px;
	background: var(--hello-accent);
	border: 0;
	border-radius: 9px;
	color: #fff;
	font-weight: 750;
}

@media (max-width: 700px) {
	.hello-single {
		width: min(100% - 28px, 1180px);
		padding-block: 28px 52px;
	}

	.hello-single__article {
		border-radius: 14px;
	}

	.hello-single__header {
		padding: 36px 20px 30px;
	}

	.hello-single__back {
		margin-bottom: 22px;
	}

	.hello-single__title {
		font-size: clamp(2rem, 10vw, 3rem);
	}

	.hello-single__hero {
		width: calc(100% - 24px);
		border-radius: 10px;
	}

	.hello-single__content {
		padding: 36px 20px 44px;
	}

	.hello-single__tags {
		padding: 0 20px 38px;
	}

	.hello-single__post-nav {
		grid-template-columns: 1fr;
	}

	.hello-single__post-nav-item--next,
	.hello-single__post-nav-item--next a {
		align-items: flex-start;
		text-align: left;
	}

	.hello-single .comments-area {
		padding: 24px 20px;
	}
}

.hello-single__back,
.hello-single__category {
	display: none !important;
}