/*
Theme Name: Letters of Life
Theme URI: https://example.com/
Author: Letters of Life
Description: Letters of Life를 위한 편집 가능한 클래식 워드프레스 테마입니다.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: letters-of-life
*/

:root {
	--lol-ink: #1c2f29;
	--lol-muted: #68766c;
	--lol-paper: #f7f8f3;
	--lol-line: #dce3da;
	--lol-green: #244f3a;
	--lol-green-dark: #17382b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	background: var(--lol-paper);
	color: var(--lol-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.6;
	margin: 0;
}

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

a { color: var(--lol-green); }

.site-header,
.site-footer {
	margin: 0 auto;
	max-width: 1180px;
	padding: 1.25rem;
}

.site-header {
	align-items: center;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
}

.site-title {
	color: var(--lol-green-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.35rem;
	text-decoration: none;
}

.site-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-navigation a { text-decoration: none; }

.site-main,
.site-footer {
	margin-left: auto;
	margin-right: auto;
	max-width: 1180px;
}

.site-main { padding: 3rem 1.25rem 6rem; }

.site-home {
	background: #fffffc;
	margin: 0 auto;
	max-width: 1000px;
	padding: 0;
}

.home-hero {
	background: #e8ebe4;
	position: relative;
}

.home-hero__link {
	display: block;
	position: relative;
}

.home-hero__image {
	display: block;
	height: auto;
	max-width: none;
	object-fit: cover;
	width: 100%;
}

.home-hero__missing {
	align-items: center;
	color: var(--lol-muted);
	display: flex;
	font-family: Georgia, "Times New Roman", serif;
	height: clamp(20rem, 58vw, 36rem);
	justify-content: center;
	padding: 2rem;
	text-align: center;
}

.home-hero__panel {
	background: rgba(255, 255, 252, .04);
	border: 1px solid rgba(255, 255, 252, .9);
	bottom: 8%;
	color: #fff;
	display: flex;
	flex-direction: column;
	left: 4%;
	min-height: 62%;
	padding: clamp(1.5rem, 4vw, 3rem);
	position: absolute;
	width: min(29%, 290px);
}

.home-hero__panel::after {
	border: 1px solid rgba(255, 255, 252, .8);
	content: "";
	inset: 5px;
	pointer-events: none;
	position: absolute;
}

.home-hero__kicker,
.home-hero__action {
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .12em;
	position: relative;
	text-transform: uppercase;
	z-index: 1;
}

.home-hero__panel strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.65rem, 4vw, 3.2rem);
	font-weight: 400;
	line-height: 1.05;
	margin: auto 0;
	position: relative;
	z-index: 1;
}

.home-hero__action {
	border-top: 1px solid rgba(255, 255, 252, .65);
	padding-top: .75rem;
	position: relative;
	z-index: 1;
}

.home-hero__action span { font-size: 1rem; margin-left: .3rem; }

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

.home-image-grid__item {
	aspect-ratio: 1.1;
	background: #e5ebe3;
	overflow: hidden;
	position: relative;
}

.home-image-grid__item img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform .45s ease;
	width: 100%;
}

.home-image-grid__item:hover img,
.home-image-grid__item:focus-visible img,
.home-hero__link:hover .home-hero__image,
.home-hero__link:focus-visible .home-hero__image {
	transform: scale(1.04);
}

.home-image-grid__overlay {
	align-items: center;
	background: rgba(23, 56, 43, .82);
	bottom: 0;
	color: #fff;
	display: flex;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(.85rem, 1.8vw, 1.1rem);
	justify-content: space-between;
	left: 0;
	opacity: 0;
	padding: .8rem 1rem;
	position: absolute;
	right: 0;
	transform: translateY(100%);
	transition: opacity .2s ease, transform .2s ease;
}

.home-image-grid__item:hover .home-image-grid__overlay,
.home-image-grid__item:focus-visible .home-image-grid__overlay {
	opacity: 1;
	transform: translateY(0);
}

.home-image-grid__overlay b { color: #f0c96b; font-family: sans-serif; font-weight: 400; }

.home-image-grid__missing {
	align-items: center;
	color: var(--lol-muted);
	display: flex;
	height: 100%;
	justify-content: center;
	text-align: center;
	width: 100%;
}

.entry-title {
	color: var(--lol-green-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.2rem, 5vw, 4.5rem);
	font-weight: 400;
	line-height: 1.1;
}

.entry-content { max-width: 760px; }

.entry-content > * { margin-bottom: 1.25rem; }

.site-footer {
	border-top: 1px solid var(--lol-line);
	color: var(--lol-muted);
	font-size: .85rem;
	padding-bottom: 2rem;
	padding-top: 2rem;
}

.lol-printed-book {
	align-items: center;
	background: var(--lol-green-dark);
	border: 1px solid rgba(255, 255, 252, .16);
	color: #fff;
	display: grid;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
	margin-bottom: 2.5rem;
	max-width: 920px;
	padding: clamp(1.25rem, 4vw, 2.5rem);
}

.lol-printed-book__cover {
	filter: drop-shadow(0 1rem 1.5rem rgba(0, 0, 0, .28));
	transform: rotate(-3deg);
}

.lol-printed-book__cover img {
	display: block;
	width: 100%;
}

.lol-printed-book__copy { max-width: 560px; }

.lol-printed-book__eyebrow {
	color: #e7c879;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .14em;
	margin: 0 0 .75rem;
	text-transform: uppercase;
}

.lol-printed-book__copy h2 {
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.8rem, 4vw, 3.2rem);
	font-weight: 400;
	line-height: 1.05;
	margin: 0 0 .9rem;
}

.lol-printed-book__copy p:not(.lol-printed-book__eyebrow) {
	color: rgba(255, 255, 255, .78);
	font-size: .95rem;
	margin: 0 0 1.25rem;
	max-width: 42rem;
}

.lol-printed-book__link {
	color: #fff;
	display: inline-flex;
	font-size: .78rem;
	font-weight: 700;
	gap: .55rem;
	letter-spacing: .04em;
	text-decoration: none;
}

.lol-printed-book__link:hover,
.lol-printed-book__link:focus-visible { color: #e7c879; }

.custom-post-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 3rem;
}

.post-card a { color: inherit; text-decoration: none; }

.post-image {
	background: #e5ebe3;
	min-height: 260px;
	position: relative;
}

.post-image > img { display: block; height: 100%; object-fit: cover; width: 100%; }

.overlay {
	background: rgba(23, 56, 43, .88);
	bottom: 0;
	color: #fff;
	left: 0;
	opacity: 0;
	padding: 1.25rem;
	position: absolute;
	right: 0;
	top: 0;
	transition: opacity .2s ease;
}

.post-card:hover .overlay,
.post-card:focus-within .overlay { opacity: 1; }

.overlay .title { margin-top: 0; }

.pagination { margin-top: 2rem; }

@media (max-width: 760px) {
	.site-header { align-items: flex-start; flex-direction: column; }
	.custom-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.home-hero__panel { min-height: 70%; width: 36%; }
}

@media (max-width: 480px) {
	.custom-post-grid { grid-template-columns: 1fr; }
	.site-header { padding-bottom: .9rem; }
	.lol-printed-book { grid-template-columns: 92px minmax(0, 1fr); }
	.home-hero__panel { bottom: 5%; left: 5%; min-height: 78%; padding: 1rem; width: 42%; }
	.home-hero__kicker,
	.home-hero__action { font-size: .55rem; }
	.home-hero__panel strong { font-size: 1.35rem; }
	.home-image-grid__overlay { opacity: 1; transform: translateY(0); }
}
