/*
 * Layout styles
 * IE Zukuri Content Theme
 */

/* --------------------------------
 * Global layout
 * -------------------------------- */
.site-main {
	padding: clamp(24px, 4vw, 56px) 0;
}

.site-main__inner,
.site-header__inner,
.site-footer__inner {
	width: min(100% - 32px, 1200px);
	margin: 0 auto;
}

/* --------------------------------
 * Header layout
 * -------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 10px 0;
	border-bottom: 1px solid #e7ddd3;
	background-color: rgba(252, 250, 247, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.site-header--warm {
	background-color: rgba(252, 250, 247, 0.92);
}

.site-header__inner {
	width: calc(100% - 8%);
	max-width: none;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
}

.site-branding {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	min-width: 0;
}

.site-branding__top {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 4px;
	min-width: 0;
}

.site-branding__logo {
	flex: 0 0 auto;
}

.site-branding__logo-link {
	display: inline-block;
	line-height: 0;
}

.site-branding__logo img,
.custom-logo {
	display: block;
	width: 280px;
	max-width: 100%;
	height: auto;
	max-height: none;
}

.site-title {
	margin: 0;
	font-size: clamp(1.05rem, 1.8vw, 1.35rem);
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.site-title a {
	color: #2b2b2b;
}

.site-description {
	margin: 0;
	font-size: clamp(0.9375rem, 1.4vw, 1.125rem);
	line-height: 1.35;
	color: #6f6258;
}

.site-header__nav-wrap {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
	flex: 1 1 auto;
	min-width: 0;
	align-self: center;
}

.global-nav {
	flex: 0 0 auto;
	margin-left: auto;
}

.global-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu-toggle {
	display: none;
}

/* --------------------------------
 * Footer layout
 * -------------------------------- */
.site-footer {
	margin-top: clamp(48px, 7vw, 96px);
	padding: clamp(40px, 6vw, 72px) 0 24px;
	border-top: 1px solid #e7ddd3;
	background: linear-gradient(180deg, #f8f3ed 0%, #f4eee8 100%);
}

.site-footer--warm {
	background: linear-gradient(180deg, #f8f3ed 0%, #f4eee8 100%);
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.site-footer__top {
	display: grid;
	grid-template-columns: minmax(320px, 1fr) auto;
	gap: clamp(40px, 6vw, 120px);
	align-items: start;
}

.site-footer__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	min-height: 100%;
}

.site-footer__nav-area {
	width: max-content;
}

.site-footer__bottom {
	padding-top: 20px;
	border-top: 1px solid #e7ddd3;
}

/* --------------------------------
 * Archive / page headers
 * -------------------------------- */
.archive-header,
.error-404-header {
	margin-bottom: clamp(24px, 4vw, 40px);
}

.archive-title,
.error-404-title {
	margin-bottom: 12px;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.archive-description,
.error-404-text {
	max-width: 760px;
	color: #666666;
}

//* --------------------------------
 * Front page shared containers
 * -------------------------------- */
.front-topics__inner,
.front-featured-posts__inner,
.front-latest-posts__inner,
.front-brand-links__inner {
	width: min(100%, 1200px);
	margin: 0 auto;
}

/* --------------------------------
 * Front page
 * -------------------------------- */
.front-page-main {
	padding-top: 0;
}

.front-topics,
.front-featured-posts,
.front-latest-posts,
.front-brand-links {
	padding: clamp(28px, 5vw, 64px) 0;
}

.front-hero {
	position: relative;
	padding: 0;
	margin: 0 0 56px;
}

.front-hero--warm {
	position: relative;
	overflow: hidden;
	background: #ebe7e1;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.front-hero__inner {
	position: relative;
	width: min(100% - 32px, 1200px);
	margin: 0 auto;
	min-height: 650px;
}

.front-hero__visual {
	position: relative;
	width: 100%;
	min-height: 650px;
}

.front-hero__image-wrap,
.front-hero__placeholder {
	width: min(66.5vw, 798px);
	height: 590px;
	min-height: 590px;
	margin-top: 0;
	margin-left: auto;
	border-radius: 0;
}

.front-hero__image-wrap {
	overflow: hidden;
	background-color: #ffffff;
	box-shadow: none;
}

.front-hero__image {
	display: block;
	width: 100%;
	height: 590px;
	min-height: 590px;
	object-fit: cover;
	object-position: 50% center;
}

.front-hero__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	border: 0;
	background: #ffffff;
	text-align: center;
}

.front-hero__content {
	position: absolute;
	left: 52px;
	top: 184px;
	z-index: 2;
	width: 700px;
	max-width: none;
	transform: none;
}

.front-hero__placeholder-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 6px 12px;
	border-radius: 999px;
	background-color: #8c6a4a;
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.front-hero__placeholder-text {
	margin: 0;
	font-size: 0.95rem;
	color: #7a6c60;
}

.front-section-header {
	margin-bottom: 24px;
}

.front-section-header--inline {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
}

.front-section-header__main {
	min-width: 0;
}

.front-section-title {
	margin: 0 0 10px;
	font-size: clamp(1.5rem, 3vw, 2.3rem);
	line-height: 1.25;
	color: #2b2b2b;
}

.front-topics__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
}

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

.front-brand-links__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
}

/* --------------------------------
 * Lists / grids
 * -------------------------------- */
.post-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 32px);
}

/* --------------------------------
 * Single layout
 * -------------------------------- */
.single .single-post {
	max-width: 760px;
	margin-right: auto;
	margin-left: auto;
}

.single .single-post__header,
.single .single-page__header,
.single .single-post__thumbnail,
.single .single-page__thumbnail {
	margin-bottom: 28px;
}

.single .single-post__content,
.single .single-page__content {
	margin-bottom: 40px;
}

.single .post-navigation,
.single .related-posts,
.single .c-author-box,
.single .c-cta-bottom {
	max-width: 760px;
	margin-right: auto;
	margin-left: auto;
}

/* --------------------------------
 * 404 layout
 * -------------------------------- */
.error-404-search,
.error-404-links {
	margin-top: 32px;
}

/* --------------------------------
 * Responsive
 * -------------------------------- */
@media (max-width: 1024px) {
	.front-hero__inner {
		width: min(100% - 32px, 1200px);
		min-height: auto;
	}

	.front-hero__visual {
		min-height: auto;
	}

	.front-hero__image-wrap,
	.front-hero__placeholder {
		width: 100%;
		height: 460px;
		min-height: 460px;
		margin-top: 0;
		margin-left: 0;
	}

	.front-hero__image {
		height: 460px;
		min-height: 460px;
		object-position: center center;
	}

	.front-hero__content {
		position: static;
		transform: none;
		width: min(100%, 720px);
		max-width: none;
		margin: 0 auto;
		padding: 44px 0 32px;
	}

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

	.front-brand-links__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.site-main__inner,
	.site-header__inner,
	.site-footer__inner {
		width: min(100% - 24px, 1200px);
	}

	.site-header {
		padding: 12px 0;
	}

	.site-header__inner {
		width: min(100% - 24px, 1200px);
		flex-wrap: wrap;
		gap: 12px;
		min-height: auto;
	}

	.site-branding {
		flex: 1 1 auto;
		min-width: 0;
	}

	.site-branding__top {
		gap: 4px;
	}

	.site-branding__logo img,
	.custom-logo {
		width: min(280px, 100%);
	}

	.site-description {
		font-size: clamp(0.8125rem, 3.5vw, 0.9375rem);
		line-height: 1.4;
	}

	.site-header__nav-wrap {
		display: none;
		width: 100%;
		padding-top: 12px;
	}

	.site-header__nav-wrap.is-open {
		display: block;
	}

	.menu-toggle {
		display: inline-flex;
		margin-left: auto;
	}

	.site-footer {
		padding-top: 32px;
	}

	.site-footer__side {
		align-items: flex-start;
		gap: 24px;
	}

	.site-footer__top {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.post-list,
	.front-topics__grid,
	.front-featured-posts .post-list--featured {
		grid-template-columns: 1fr;
	}

	.front-section-header--inline {
		flex-direction: column;
		align-items: flex-start;
	}

	.front-hero--warm {
		border-radius: 0;
	}

	.front-hero__content {
		width: 100%;
		padding: 28px 0 24px;
	}

	.front-hero__image-wrap,
	.front-hero__placeholder {
		height: 300px;
		min-height: 300px;
	}

	.front-hero__image {
		height: 300px;
		min-height: 300px;
	}

	.front-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}
}