/*
Theme Name: grlue benefits
Description: 생활 제도 계산기(grlue.co.kr) 테마 — 시안 8 구성 + 색 13 차콜·머스터드(2026-10-05 킹봉님 선택).
Version: 1.1.0
Text Domain: grlue-benefits
*/

@font-face {
	font-family: "SUIT";
	src: url("fonts/SUIT-Variable.woff2") format("woff2-variations");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--forest: #1f2327;
	--forest-2: #2b3036;
	--forest-line: rgba(255, 255, 255, 0.14);
	--on-forest: #ffffff;
	--on-forest-sub: rgba(255, 255, 255, 0.74);
	--mint: #ecc94b;
	--mint-soft: #fbf3d2;
	--sage: #e6e3da;
	--paper: #f8f7f3;
	--white: #ffffff;
	--ink: #1b1d1f;
	--ink-sub: #5d5f63;
	--line: #e4e2dc;
	--focus: #1f2327;
	--wrap: 1120px;
	--text: 720px;
	--font: "SUIT", "Pretendard", "Apple SD Gothic Neo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.7 var(--font);
	font-feature-settings: "tnum" 1;
	word-break: keep-all;
	overflow-wrap: anywhere;
}
::selection { background: var(--mint); color: var(--forest); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* 머리말 */
.site-head { background: var(--forest); color: var(--on-forest); }
.site-head .wrap { display: flex; align-items: center; gap: 40px; min-height: 84px; border-bottom: 1px solid var(--forest-line); }
.brand { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.site-nav ul { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
.site-nav a { font-size: 16px; font-weight: 600; text-decoration: none; color: var(--on-forest); opacity: 0.92; }
.site-nav a:hover { opacity: 1; text-decoration: underline; }
.site-search { margin-left: auto; position: relative; width: 300px; }
.site-search input {
	width: 100%; height: 42px; padding: 0 44px 0 14px; border: 0; border-radius: 2px;
	background: var(--white); color: var(--ink); font: 500 15px var(--font);
}
.site-search input::placeholder { color: #85878b; }
.site-search button { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; background: none; color: var(--forest); cursor: pointer; }
.site-search svg, .nav-toggle svg { display: block; margin: auto; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: var(--on-forest); cursor: pointer; }

/* 첫 화면 대표 글 */
.hero { background: var(--forest); color: var(--on-forest); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; padding-top: 56px; padding-bottom: 64px; }
.hero-text { padding-right: 48px; border-right: 1px solid var(--forest-line); }
.hero-cat { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--on-forest-sub); }
.hero-title { margin: 0; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.18; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.hero-title a { text-decoration: none; }
.hero-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.hero-summary { margin: 22px 0 0; font-size: 19px; font-weight: 500; color: var(--on-forest); }
.hero-metric { padding-left: 48px; display: flex; flex-direction: column; justify-content: center; }
.hero-metric .label { margin: 0; font-size: 20px; font-weight: 600; color: var(--on-forest); }
.hero-metric .value { margin: 4px 0 0; font-size: clamp(64px, 9vw, 132px); line-height: 1; font-weight: 800; letter-spacing: -0.05em; color: var(--mint); white-space: nowrap; }
.hero-metric .value small { font-size: 0.55em; letter-spacing: -0.02em; margin-left: 4px; }
.hero-metric .note { margin: 18px 0 0; font-size: 17px; color: var(--on-forest-sub); }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 700; color: var(--mint); text-decoration: none; }
.hero-cta:hover { text-decoration: underline; }

/* 글 목록 */
.list { padding: 24px 0 72px; }
.list-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.item:hover .item-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.chip { display: inline-block; justify-self: start; padding: 3px 10px; border-radius: 3px; background: var(--sage); color: var(--forest); font-size: 14px; font-weight: 700; }
.item-title { grid-column: 1; margin: 8px 0 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; }
.item-desc { grid-column: 1; margin: 6px 0 0; color: var(--ink-sub); font-size: 16px; }
.item-arrow { grid-column: 2; grid-row: 1 / span 3; color: var(--ink-sub); }
.list-empty { color: var(--ink-sub); padding: 32px 0; }
.list-title { margin: 24px 0 8px; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.ad-slot { grid-column: 1 / -1; margin: 28px 0; }

/* 글 화면 */
.post-head { background: var(--paper); padding: 48px 0 8px; }
.post-head .inner, .entry { max-width: calc(var(--text) + 48px); margin: 0 auto; }
.post-head .inner { padding: 0 24px; }
.post-head h1 { margin: 14px 0 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.22; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.post-meta { margin: 16px 0 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--ink-sub); font-size: 15px; }
.post-meta span + span::before { content: ""; display: inline-block; width: 1px; height: 12px; margin: 0 12px; background: #c4c1b8; vertical-align: -1px; }
.entry { padding: 8px 24px 72px; }
.entry > * { margin-top: 0; }
.entry p, .entry ul, .entry ol { margin: 0 0 1.1em; }
.entry h2 { margin: 2.2em 0 0.7em; font-size: 26px; line-height: 1.35; font-weight: 800; letter-spacing: -0.03em; }
.entry h3 { margin: 1.8em 0 0.6em; font-size: 21px; font-weight: 700; }
.entry strong { font-weight: 800; }
.entry a { color: var(--forest); font-weight: 600; }
.entry table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; background: var(--white); }
.entry th, .entry td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry th { background: var(--sage); color: var(--forest); font-weight: 700; }
.entry .table-scroll { overflow-x: auto; }

/* 본문 속 계산기(글 HTML 블록의 .ub-calc)를 테마 색으로 */
.entry .ub-calc {
	--ub-ink: var(--ink); --ub-sub: var(--ink-sub); --ub-line: var(--line); --ub-accent: var(--forest); --ub-soft: var(--mint-soft);
	max-width: none; margin: 1.6em 0 2em; padding: 28px; border: 1px solid var(--line); background: var(--white); font-family: var(--font);
}
.entry .ub-calc h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.entry .ub-calc input[type=text], .entry .ub-calc input[type=date], .entry .ub-calc select { height: 48px; border-color: #cfccc4; border-radius: 3px; font-family: var(--font); }
.entry .ub-calc button { height: 52px; border-radius: 3px; background: var(--forest); font-size: 17px; }
.entry .ub-calc button:hover { background: var(--forest-2); }
.entry .ub-calc .ub-result { margin: 22px -28px -28px; padding: 22px 28px 26px; border-top: 0; background: var(--mint-soft); }
.entry .ub-calc .ub-row { border-color: rgba(31, 35, 39, 0.12); }
.entry .ub-calc #ub-day { font-size: clamp(44px, 8vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -0.045em; color: var(--forest); }
.entry .ub-calc dl { display: flex; flex-direction: column; }
.entry .ub-calc .ub-row:has(#ub-day) { order: -1; flex-direction: column; gap: 2px; padding-top: 4px; }
.entry .ub-calc .ub-row:has(#ub-day) dd { text-align: left; }
.entry .ub-calc .ub-total dd { color: var(--forest); }
.entry .ub-calc .ub-why { background: var(--white); }

/* 꼬리말 */
.site-foot { background: var(--forest); color: var(--on-forest-sub); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 32px; padding-bottom: 40px; }
.site-foot strong { color: var(--on-forest); font-size: 16px; }
.site-foot p { margin: 6px 0 0; max-width: 560px; }

@media (max-width: 860px) {
	body { font-size: 16px; }
	.site-head .wrap { min-height: 64px; gap: 16px; }
	.brand { font-size: 22px; }
	.nav-toggle { display: block; }
	.site-nav, .site-search { display: none; }
	.site-head.open .wrap { flex-wrap: wrap; padding-bottom: 16px; }
	.site-head.open .site-nav, .site-head.open .site-search { display: block; width: 100%; margin: 0; }
	.site-head.open .site-nav ul { flex-direction: column; gap: 14px; }
	.hero .wrap { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 40px; }
	.hero-text { padding: 0 0 28px; border-right: 0; border-bottom: 1px solid var(--forest-line); }
	.hero-metric { padding: 24px 0 0; }
	.list-grid { grid-template-columns: 1fr; }
	.item { padding: 22px 0; }
	.post-head { padding-top: 28px; }
	.post-head .inner { padding: 0 20px; }
	.entry { padding: 8px 20px 56px; }
	.entry table { display: block; overflow-x: auto; font-size: 14px; white-space: nowrap; }
	.entry th, .entry td { padding: 9px 10px; }
	.entry .ub-calc { padding: 20px 16px; margin-left: -4px; margin-right: -4px; }
	.entry .ub-calc .ub-result { margin: 20px -16px -20px; padding: 20px 16px 22px; }
}
