/*
Theme Name: Lohen Astra Child
Description: Accessible, responsive design refinements for lohen.kim.
Author: Lohen Kim
Template: astra
Version: 1.1.4
Text Domain: lohen-astra-child
*/

:root {
	--lohen-ink: #172033;
	--lohen-muted: #596579;
	--lohen-primary: #2563eb;
	--lohen-primary-dark: #1d4ed8;
	--lohen-surface: #ffffff;
	--lohen-canvas: #f6f8fc;
	--lohen-border: #dfe5ef;
	--lohen-radius: 18px;
	--lohen-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--lohen-canvas);
	color: var(--lohen-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
		"Segoe UI", "Noto Sans KR", sans-serif;
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--lohen-ink);
	font-family: inherit;
	letter-spacing: -0.025em;
}

a {
	text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	border-radius: 4px;
	outline: 3px solid rgba(37, 99, 235, 0.35);
	outline-offset: 3px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(223, 229, 239, 0.9);
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
	backdrop-filter: blur(14px);
}

.ast-primary-header-bar {
	min-height: 76px;
	background: transparent;
}

.site-header .custom-logo {
	max-height: 52px;
	width: auto;
}

.main-header-menu > .menu-item > .menu-link {
	color: #334155;
	font-size: 0.925rem;
	font-weight: 650;
	letter-spacing: -0.01em;
}

.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .current-menu-item > .menu-link {
	color: var(--lohen-primary);
}

.ast-header-button-1 .ast-custom-button,
.elementor-button {
	border-radius: 999px !important;
	font-weight: 700;
	letter-spacing: -0.01em;
	transition: box-shadow 180ms ease, transform 180ms ease,
		background-color 180ms ease;
}

.elementor-button:hover {
	box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
	transform: translateY(-2px);
}

/* Home hero */
.home .elementor-element-9c91930 {
	overflow: hidden;
	background:
		radial-gradient(circle at 88% 12%, rgba(96, 165, 250, 0.22), transparent 34%),
		linear-gradient(145deg, #f8fbff 0%, #eef4ff 52%, #f8fafc 100%);
}

.home .elementor-element-9c91930 > .e-con-inner {
	gap: clamp(2rem, 5vw, 5rem);
	padding-block: clamp(4rem, 8vw, 7rem);
}

.home .elementor-element-c8539a7 .elementor-heading-title {
	color: var(--lohen-primary);
	font-size: clamp(0.9rem, 1.2vw, 1.05rem);
	font-weight: 750;
	letter-spacing: 0.02em;
}

.home .elementor-element-6b0fc39 .elementor-image-box-title {
	margin-bottom: 0.7rem;
	font-size: clamp(2.65rem, 5.2vw, 4.6rem);
	line-height: 1.08;
}

.home .elementor-element-6b0fc39 .elementor-image-box-description {
	max-width: 38rem;
	color: var(--lohen-muted);
	font-size: clamp(1rem, 1.5vw, 1.15rem);
	line-height: 1.75;
}

.home .elementor-element-494e2d0 img,
.home .elementor-element-0b25819 img {
	border-radius: var(--lohen-radius);
	box-shadow: var(--lohen-shadow);
}

/* Home categories */
.home .elementor-element-594f359 {
	background: var(--lohen-surface);
}

.home .elementor-element-5887c42 .elementor-heading-title {
	font-size: clamp(2rem, 3.4vw, 3.3rem);
	line-height: 1.15;
}

.home .elementor-element-6c3d416,
.home .elementor-element-666bf63,
.home .elementor-element-730ae58,
.home .elementor-element-2c02336 {
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: var(--lohen-radius);
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
	transition: box-shadow 200ms ease, transform 200ms ease;
}

.home .elementor-element-6c3d416:hover,
.home .elementor-element-666bf63:hover,
.home .elementor-element-730ae58:hover,
.home .elementor-element-2c02336:hover {
	box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
	transform: translateY(-6px);
}

.home .elementor-element-8392b2e a {
	text-decoration: none;
}

/* Archive and article reading experience */
.archive .site-main,
.blog .site-main,
.search .site-main {
	display: grid;
	gap: 1.5rem;
}

.archive article,
.blog article,
.search article {
	overflow: hidden;
	border: 1px solid var(--lohen-border);
	border-radius: var(--lohen-radius);
	background: var(--lohen-surface);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.single-post .entry-content {
	color: #293549;
	font-size: 1.0625rem;
	line-height: 1.9;
}

.single-post .entry-content > * {
	max-width: 760px;
	margin-inline: auto;
}

.single-post .entry-content > .alignwide {
	max-width: 1080px;
}

.single-post .entry-content h2 {
	margin-top: 2.8em;
	font-size: clamp(1.65rem, 2.8vw, 2.2rem);
}

.single-post .entry-content h3 {
	margin-top: 2.2em;
	font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}

.single-post .entry-content pre {
	overflow-x: auto;
	border: 1px solid #273449;
	border-radius: 12px;
	background: #111827;
	color: #e5edf7;
	padding: 1.25rem;
}

.single-post .entry-content blockquote {
	border-left: 4px solid var(--lohen-primary);
	border-radius: 0 12px 12px 0;
	background: #eff6ff;
	color: #334155;
	padding: 1.25rem 1.5rem;
}

.site-footer {
	border-top: 1px solid var(--lohen-border);
	background: #f1f5f9;
}

.site-primary-footer-wrap,
.site-below-footer-wrap {
	padding-block: 1.5rem;
}

@media (max-width: 921px) {
	.ast-primary-header-bar {
		min-height: 68px;
	}

	.home .elementor-element-9c91930 > .e-con-inner {
		padding: 3.5rem 1.25rem;
	}

	.home .elementor-element-6b0fc39 .elementor-image-box-title {
		font-size: clamp(2.35rem, 10vw, 3.75rem);
	}

	.home .elementor-element-8392b2e {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
}

@media (max-width: 544px) {
	body {
		font-size: 15px;
	}

	.site-header .custom-logo {
		max-height: 42px;
	}

	.home .elementor-element-9c91930 > .e-con-inner {
		gap: 1.25rem !important;
		padding: 1.75rem 1.125rem 2.25rem !important;
	}

	.home .elementor-element-6b0fc39 .elementor-image-box-title {
		margin-bottom: 0.5rem !important;
		font-size: 2.05rem !important;
		line-height: 1.15 !important;
	}

	.home .elementor-element-6b0fc39 .elementor-image-box-description {
		font-size: 0.95rem;
		line-height: 1.65;
	}

	.home .elementor-element-c8539a7 .elementor-heading-title {
		font-size: 0.78rem;
	}

	.home .elementor-element-494e2d0 {
		display: none;
	}

	.home .elementor-element-0b25819 img {
		max-height: 220px;
		object-fit: cover;
	}

	.home .elementor-element-8fabdac {
		display: flex !important;
	}

	.home .elementor-element-8392b2e {
		grid-template-columns: 1fr;
	}

	.home .elementor-element-6c3d416,
	.home .elementor-element-666bf63,
	.home .elementor-element-730ae58,
	.home .elementor-element-2c02336 {
		aspect-ratio: 16 / 9;
		height: 186px !important;
		min-height: 0 !important;
		padding: 1.25rem !important;
	}

	.single-post .entry-content {
		font-size: 1rem;
		line-height: 1.82;
	}
}
