/*
Theme Name: 집안해결노트 v2
Theme URI: https://homecarenote.kr
Author: 집안해결노트 운영팀
Description: 집 전체의 청소·세탁·생활가전·집수리 문제를 해결하는 생활 정보 테마
Version: 2.0.1
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: home-care-note-v2
*/

:root {
	--ink: #18211c;
	--paper: #f4f1e9;
	--paper-deep: #ece8dd;
	--sage: #78917e;
	--sage-dark: #526b59;
	--sage-pale: #dfe5d9;
	--blue-pale: #d9e2e2;
	--clay-pale: #e7ddd1;
	--line: rgba(24, 33, 28, .18);
	--muted: #5d6961;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.site-header {
	width: min(1380px, calc(100% - 48px));
	height: 88px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 850; letter-spacing: -.04em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 900; }
.desktop-nav { display: flex; gap: 38px; font-size: 14px; font-weight: 700; }
.desktop-nav a, .footer-links a { transition: opacity 160ms ease; }
.desktop-nav a:hover, .footer-links a:hover { opacity: .55; }
.header-search { justify-self: end; display: flex; gap: 22px; border-bottom: 1px solid var(--ink); padding: 10px 0; font-size: 13px; font-weight: 800; }

.hero {
	width: min(1380px, calc(100% - 48px));
	min-height: 700px;
	margin: 0 auto;
	padding: 72px 0 92px;
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	align-items: center;
	gap: 6vw;
}
.eyebrow { margin: 0 0 20px; color: var(--sage-dark); font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.hero h1 { margin: 0; font-size: clamp(52px, 5.2vw, 84px); line-height: 1.08; letter-spacing: -.075em; font-weight: 780; word-break: keep-all; }
.hero h1 em { position: relative; color: var(--sage-dark); font-style: normal; z-index: 0; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px; background: #c9d2be; z-index: -1; }
.hero-description { max-width: 590px; margin: 32px 0 0; color: #536058; font-size: 17px; line-height: 1.8; letter-spacing: -.025em; word-break: keep-all; }
.hero-actions { margin-top: 40px; display: flex; align-items: center; gap: 22px; }
.primary-button { padding: 16px 22px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; transition: transform 160ms ease, background 160ms ease; }
.primary-button:hover { transform: translateY(-2px); background: var(--sage-dark); }
.update-note { color: #657069; font-size: 12px; }

.home-map { position: relative; min-height: 555px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px auto; gap: 2px; background: rgba(24, 33, 28, .1); overflow: hidden; }
.home-zone { position: relative; min-height: 220px; padding: 27px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.home-zone::after { content: ""; position: absolute; width: 190px; height: 190px; right: -52px; top: -55px; border: 1px solid rgba(24, 33, 28, .15); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.13), 0 0 0 68px rgba(255,255,255,.08); }
.zone-clean { background: #cdd8ca; }
.zone-laundry { background: var(--blue-pale); }
.zone-appliance { background: var(--clay-pale); }
.zone-repair { background: #c9d1c9; }
.zone-number { position: relative; z-index: 1; color: rgba(24, 33, 28, .55); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.home-zone div { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 7px; }
.home-zone strong { font-size: 25px; letter-spacing: -.05em; }
.home-zone small { color: #57635b; font-size: 12px; }
.latest-note { position: static; z-index: 2; grid-column: 1 / -1; width: 100%; min-height: 112px; padding: 20px 22px; transform: none; display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; align-items: center; background: rgba(248, 246, 239, .96); }
.latest-note span { grid-column: 1 / -1; color: var(--sage-dark); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.latest-note strong { font-size: 16px; line-height: 1.45; letter-spacing: -.035em; }
.latest-note b { font-size: 17px; }

.area-section, .notes-section, .principle-section { width: min(1380px, calc(100% - 48px)); margin: 0 auto; }
.area-section { padding: 98px 0 112px; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 48px; display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.section-heading h2 { margin: 0; font-size: clamp(35px, 3.3vw, 52px); line-height: 1.15; letter-spacing: -.065em; }
.section-note { max-width: 360px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; word-break: keep-all; }
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.area-card { min-height: 250px; padding: 24px 22px 26px; border-right: 1px solid var(--line); transition: background 180ms ease; }
.area-card:last-child { border-right: 0; }
.area-card:hover { background: var(--sage-pale); }
.area-card > span { color: #788078; font-size: 11px; }
.area-card h3 { margin: 54px 0 13px; font-size: 25px; letter-spacing: -.05em; }
.area-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; word-break: keep-all; }

.notes-section { padding: 110px 0 125px; }
.notes-heading { padding-bottom: 28px; margin-bottom: 0; border-bottom: 1px solid var(--ink); }
.note-list { margin: 0; padding: 0; list-style: none; }
.note-list li { border-bottom: 1px solid var(--line); }
.note-list li a { min-height: 94px; padding: 14px 4px; display: grid; grid-template-columns: 130px minmax(0, 1fr) 140px 28px; gap: 22px; align-items: center; transition: padding 180ms ease, background 180ms ease; }
.note-list li a:hover { padding-left: 18px; padding-right: 18px; background: var(--sage-pale); }
.note-list time { color: #667169; font-size: 12px; font-variant-numeric: tabular-nums; }
.note-list strong { font-size: 19px; line-height: 1.45; letter-spacing: -.035em; }
.note-category { justify-self: start; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: #657069; font-size: 10px; white-space: nowrap; }
.note-list b { justify-self: end; font-size: 17px; }
.empty-notes { min-height: 170px; padding: 46px 4px; border-bottom: 1px solid var(--line); }
.empty-notes strong { font-size: 19px; }
.empty-notes p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.principle-section { margin-bottom: 120px; padding: 92px 7vw; display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; background: var(--sage-pale); }
.principle-copy h2 { margin: 0; font-size: clamp(38px, 4vw, 60px); line-height: 1.13; letter-spacing: -.065em; }
.principle-copy > p:last-child { max-width: 520px; margin: 28px 0 0; color: #546159; font-size: 15px; line-height: 1.85; word-break: keep-all; }
.check-list { margin: 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.check-list li { padding: 23px 0; display: grid; grid-template-columns: 42px 1fr; align-items: start; border-bottom: 1px solid var(--line); }
.check-list span { color: #6c776f; font-size: 11px; }
.check-list p { margin: 0; font-size: 16px; line-height: 1.55; font-weight: 750; letter-spacing: -.02em; }

.site-footer { padding: 70px max(24px, calc((100vw - 1380px) / 2)); display: grid; grid-template-columns: 1fr auto; gap: 55px; background: var(--ink); color: #f2efe6; }
.footer-brand { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 12px; }
.brand-mark.light { grid-row: 1 / 3; background: #f2efe6; color: var(--ink); }
.footer-brand strong { font-size: 18px; }
.footer-brand p { margin: 5px 0 0; color: #aab1ab; font-size: 12px; }
.footer-links { display: flex; align-items: center; gap: 26px; color: #c5cbc6; font-size: 12px; }
.copyright { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); color: #8e9890; font-size: 10px; }

.listing-page { width: min(1180px, calc(100% - 48px)); min-height: 65vh; margin: 0 auto; padding: 100px 0 130px; }
.listing-header { margin-bottom: 55px; padding-bottom: 50px; border-bottom: 1px solid var(--ink); }
.listing-header h1 { margin: 0; font-size: clamp(48px, 6vw, 76px); line-height: 1.08; letter-spacing: -.07em; }
.listing-header > p:last-child { margin: 25px 0 0; color: var(--muted); font-size: 15px; }
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; gap: 12px; }
.pagination .page-numbers { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 12px; }
.pagination .current { background: var(--ink); color: #fff; }

.article-page { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 96px 0 130px; }
.article-lead { max-width: 920px; margin: 0 auto 56px; text-align: center; }
.article-lead h1 { margin: 0; font-size: clamp(48px, 6vw, 82px); line-height: 1.09; letter-spacing: -.075em; word-break: keep-all; }
.article-description { max-width: 760px; margin: 28px auto 0; color: #59655d; font-size: 17px; line-height: 1.8; word-break: keep-all; }
.article-info { margin-top: 26px; display: flex; justify-content: center; gap: 22px; color: #727b75; font-size: 11px; }
.article-featured { max-height: 590px; margin: 0; overflow: hidden; background: var(--paper-deep); }
.article-featured img { width: 100%; max-height: 590px; object-fit: cover; }
.article-layout { margin-top: 78px; display: grid; grid-template-columns: 210px minmax(0, 720px); justify-content: space-between; gap: 70px; align-items: start; }
.article-guide { position: sticky; top: 35px; padding: 16px 0 18px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.article-guide span { color: var(--sage-dark); font-size: 11px; font-weight: 850; }
.article-guide p { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.article-body { color: #3f4a43; font-family: ui-serif, "Noto Serif KR", serif; font-size: 17px; line-height: 2.02; word-break: keep-all; }
.article-body > p:first-child { margin-top: 0; padding-left: 24px; border-left: 4px solid var(--sage); font-size: 20px; font-weight: 650; line-height: 1.9; }
.article-body h2 { margin: 68px 0 24px; color: var(--ink); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; font-size: 31px; line-height: 1.32; letter-spacing: -.055em; }
.article-body h3 { margin: 42px 0 16px; color: var(--ink); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; font-size: 22px; letter-spacing: -.04em; }
.article-body p { margin: 0 0 25px; }
.article-body ul, .article-body ol { margin: 0 0 30px; padding-left: 24px; }
.article-body blockquote { margin: 35px 0; padding: 25px 28px; background: var(--paper-deep); }
.article-summary { margin-top: 75px; padding: 32px; background: var(--ink); color: #f1eee6; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
.article-summary span { color: #adb8af; font-size: 11px; font-weight: 850; }
.article-summary p { margin: 15px 0 0; font-size: 15px; line-height: 1.85; }
.article-pager { margin-top: 55px; padding-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); }
.article-pager a { display: flex; flex-direction: column; gap: 8px; }
.article-pager .next { text-align: right; }
.article-pager span { color: #788078; font-size: 10px; }
.article-pager strong { font-size: 13px; line-height: 1.55; }

.info-page { width: min(900px, calc(100% - 48px)); min-height: 65vh; margin: 0 auto; padding: 105px 0 135px; }
.info-page article > header { padding-bottom: 55px; border-bottom: 1px solid var(--ink); }
.info-page h1 { margin: 0; font-size: clamp(48px, 6vw, 76px); line-height: 1.08; letter-spacing: -.07em; }
.info-body { padding-top: 65px; }
.info-body h2 { margin: 0 0 18px; font-size: 27px; letter-spacing: -.045em; }
.info-body h2:not(:first-child) { margin-top: 56px; }
.info-body p, .info-body li { color: #465149; font-size: 16px; line-height: 1.9; }
.info-body ul { padding-left: 22px; }
.not-found { width: min(720px, calc(100% - 48px)); min-height: 70vh; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.not-found h1 { margin: 0; font-size: 44px; letter-spacing: -.05em; }
.not-found p:not(.eyebrow) { color: var(--muted); }
.not-found a { margin-top: 18px; padding-bottom: 7px; border-bottom: 1px solid var(--ink); font-weight: 750; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.admin-bar .site-header { margin-top: 32px; }

@media (max-width: 900px) {
	.site-header { width: min(100% - 32px, 1380px); grid-template-columns: 1fr auto; }
	.desktop-nav { display: none; }
	.hero { width: min(100% - 32px, 1380px); min-height: auto; grid-template-columns: 1fr; padding-top: 62px; gap: 48px; }
	.home-map { min-height: 520px; }
	.home-map { grid-template-rows: 205px 205px auto; }
	.home-zone { min-height: 205px; }
	.area-section, .notes-section, .principle-section { width: min(100% - 32px, 1380px); }
	.area-grid { grid-template-columns: repeat(2, 1fr); }
	.area-card:nth-child(2) { border-right: 0; }
	.area-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.principle-section { grid-template-columns: 1fr; gap: 55px; padding: 72px 9vw; }
	.article-page { width: min(100% - 32px, 1120px); padding-top: 75px; }
	.article-layout { grid-template-columns: 1fr; gap: 45px; }
	.article-guide { position: static; }
	.info-page { width: min(100% - 32px, 900px); padding-top: 80px; }
	.site-footer { grid-template-columns: 1fr; }
	.footer-links { flex-wrap: wrap; }
}

@media (max-width: 580px) {
	.admin-bar .site-header { margin-top: 46px; }
	.site-header { height: 74px; }
	.header-search { gap: 8px; border: 0; font-size: 12px; }
	.header-search span { font-size: 16px; }
	.hero { padding: 52px 0 70px; gap: 40px; }
	.hero h1 { font-size: 44px; }
	.hero-description { font-size: 16px; }
	.hero-actions { align-items: flex-start; flex-direction: column; }
	.home-map { min-height: 0; grid-template-rows: 190px 190px auto; }
	.home-zone { min-height: 190px; padding: 20px; }
	.home-zone::after { width: 130px; height: 130px; }
	.home-zone strong { font-size: 20px; }
	.home-zone small { max-width: 110px; line-height: 1.45; }
	.latest-note { width: 100%; min-height: 108px; }
	.section-heading { align-items: flex-start; flex-direction: column; }
	.area-section { padding: 72px 0 82px; }
	.area-card { min-height: 205px; padding: 20px 16px; }
	.area-card h3 { margin-top: 38px; font-size: 21px; }
	.notes-section { padding: 80px 0 95px; }
	.note-list li a { min-height: 106px; padding: 17px 2px; grid-template-columns: 1fr 24px; gap: 7px 14px; }
	.note-list time { grid-column: 1; }
	.note-list strong { grid-column: 1; font-size: 17px; }
	.note-category { display: none; }
	.note-list b { grid-column: 2; grid-row: 1 / 3; align-self: center; }
	.principle-section { width: 100%; margin-bottom: 0; padding: 70px 24px; }
	.listing-page { width: min(100% - 32px, 1180px); padding: 70px 0 95px; }
	.article-page { padding: 58px 0 90px; }
	.article-lead { margin-bottom: 40px; }
	.article-lead h1 { font-size: 42px; }
	.article-description { font-size: 15px; }
	.article-info { flex-direction: column; gap: 6px; }
	.article-layout { margin-top: 52px; }
	.article-body { font-size: 16px; line-height: 1.95; }
	.article-body > p:first-child { font-size: 18px; }
	.article-body h2 { font-size: 27px; }
	.article-pager { grid-template-columns: 1fr; }
	.article-pager .next { text-align: left; }
	.info-page { padding: 65px 0 95px; }
	.info-page h1 { font-size: 43px; }
	.info-body { padding-top: 50px; }
	.site-footer { padding-top: 58px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
