/* Shared by the home page and the sub pages (매물, 동네 이야기, 묻고 답하기): tokens, top menu, section heads, story and
   question cards. Page-specific layout stays in each page. */
:root {
  --white: #ffffff;
  --light: #f7f4f2;
  --pill: #f3efec;
  --line: #ebe5df;
  --ink: #282420;
  --ink-2: #18181b;
  --muted: #6f675f;
  --sub: #8a8178;
  --yellow: #f4e75a;
  --cream: #feffd9;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  --track: -0.045em;
  --wrap: 1320px;
  --gnb-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.4; word-break: keep-all; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- top menu ---------- */
.gnb { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.gnb.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.94); }
.gnb-in { max-width: 1440px; margin: 0 auto; height: var(--gnb-h); padding: 0 16px; display: flex; align-items: center; gap: 16px; }
.gnb .brand { font-size: 17px; font-weight: 600; letter-spacing: -0.04em; white-space: nowrap; margin-right: auto; display: inline-flex; align-items: center; gap: 9px; }
.gnb .brand::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(244,231,90,.35); }
.gnb-links { display: flex; gap: 4px; }
.gnb-links a { position: relative; padding: 9px 13px; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -0.02em; color: #4a443e; white-space: nowrap; transition: background .15s, color .15s; }
.gnb-links a:hover { background: var(--pill); color: var(--ink); }
.gnb-links a.on { color: var(--ink); font-weight: 650; }
.gnb-links a.on::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--ink); }
.gnb-r { display: flex; gap: 6px; }
.gnb .btn { padding: 11px 18px; font-size: 14px; font-weight: 600; }
.gnb .btn.make { background: var(--ink); color: #fff; }
.gnb .btn .d { display: none; }
@media (max-width: 899px) {
  .gnb-in { flex-wrap: wrap; height: auto; padding: 10px 16px 0; row-gap: 6px; }
  .gnb-links { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 2px 10px 6px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .gnb-links::-webkit-scrollbar { display: none; }
  .gnb-links a { padding: 9px 10px 11px; font-size: 15px; border-radius: 8px; }
  .gnb-links a:hover { background: transparent; }
  .gnb-links a.on::after { left: 10px; right: 10px; bottom: 2px; }
  .gnb .btn { padding: 9px 14px; font-size: 13px; }
}
@media (max-width: 380px) { .gnb .btn.make { display: none; } }
@media (min-width: 900px) {
  .gnb-in { padding: 0 40px; height: 72px; }
  .gnb .brand { font-size: 18px; }
  .gnb .btn .d { display: inline; }
}
@media (min-width: 900px) and (max-width: 1120px) { .gnb .btn.make { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 22px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; background: var(--pill); color: var(--ink); white-space: nowrap; border: 0; cursor: pointer; transition: transform .15s var(--ease), background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.y { background: var(--yellow); }
.btn.y:hover { box-shadow: 0 6px 18px rgba(196,180,30,.28); }
.btn.dark { background: var(--ink); color: #fff; }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); padding: 6px 0; border-bottom: 1.5px solid var(--ink); }
.more::after { content: "→"; transition: transform .2s var(--ease); }
.more:hover::after { transform: translateX(4px); }
.on-dark .more { color: #fff; border-bottom-color: rgba(255,255,255,.6); }

/* ---------- section head: eyebrow + title + lead | link ---------- */
.band { padding: 72px 16px; }
.band > .in { max-width: var(--wrap); margin: 0 auto; }
.band.light { background: var(--light); }
.sh { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 32px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1px rgba(40,36,32,.18); }
.on-dark .eyebrow { color: rgba(255,255,255,.66); }
.sh h2 { margin: 14px 0 0; font-size: 32px; line-height: 1.18; font-weight: 600; letter-spacing: var(--track); color: var(--ink-2); }
.on-dark .sh h2 { color: #fff; }
.sh .lead { margin: 12px 0 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--muted); }
@media (min-width: 900px) {
  .band { padding: 112px 60px; }
  .sh { margin-bottom: 44px; }
  .sh h2 { font-size: 46px; }
  .sh .lead { font-size: 17px; }
}

/* ---------- story cards (동네 이야기) ---------- */
.scards { display: grid; gap: 14px; }
.scard { display: flex; flex-direction: column; background: var(--white); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.scard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(40,36,32,.28); }
.scard .ph { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #efe9e3, #e4ddd5); overflow: hidden; }
.scard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.scard:hover .ph img { transform: scale(1.04); }
.scard .ph.none { display: flex; align-items: flex-end; padding: 18px 20px; background: radial-gradient(120% 90% at 85% 10%, rgba(244,231,90,.32), transparent 55%), var(--ink); }
.scard .ph.none span { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: var(--cream); opacity: .85; display: inline-flex; align-items: center; gap: 8px; }
.scard .ph.none span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.scard .tx { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.scard time { font-size: 13px; color: var(--sub); }
.scard h3 { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 600; letter-spacing: -0.035em; color: var(--ink-2); }
.scard p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* phones: first card full, the rest as compact rows */
@media (max-width: 899px) {
  .scards .scard:not(:first-child) { flex-direction: row; }
  .scards .scard:not(:first-child) .ph { aspect-ratio: auto; width: 116px; flex: none; }
  .scards .scard:not(:first-child) .ph.none span { display: none; }
  .scards .scard:not(:first-child) .tx { padding: 14px 16px; gap: 4px; }
  .scards .scard:not(:first-child) h3 { font-size: 16px; }
  .scards .scard:not(:first-child) p { -webkit-line-clamp: 1; font-size: 14px; }
}
/* first card large on wide screens */
@media (min-width: 900px) {
  .scards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .scards.lead1 { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; }
  .scards.lead1 .scard:first-child { grid-row: span 2; }
  .scards.lead1 .scard:first-child .ph { aspect-ratio: 4 / 3; }
  .scards.lead1 .scard:first-child h3 { font-size: 26px; }
  .scards.lead1 .scard:not(:first-child) { flex-direction: row; }
  .scards.lead1 .scard:not(:first-child) .ph { aspect-ratio: auto; width: 42%; flex: none; }
}

/* ---------- questions (묻고 답하기) ---------- */
.qa-list { display: grid; gap: 12px; }
.qa { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 20px; }
.qa .q { display: flex; gap: 12px; }
.qa .q b, .qa .a b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.qa .q b { background: var(--ink); color: #fff; }
.qa .a b { background: var(--yellow); color: var(--ink); }
.qa .q p { margin: 3px 0 0; font-size: 16px; line-height: 1.55; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-2); white-space: pre-line; }
.qa .who { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; color: var(--sub); }
.qa .a { display: flex; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.qa .a p { margin: 3px 0 0; font-size: 15px; line-height: 1.65; color: #4b443d; white-space: pre-line; }
.qa.clamp .a p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 13px 15px; border-radius: 12px; border: 1px solid #ddd5cd; background: #fff; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(244,231,90,.45); }
.field small { font-weight: 400; color: var(--sub); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- sub pages ---------- */
.sub-main { max-width: var(--wrap); min-height: calc(100vh - 260px); margin: 0 auto; padding: 44px 16px 96px; }
.sub-head h1 { margin: 14px 0 0; font-size: 36px; line-height: 1.15; font-weight: 600; letter-spacing: var(--track); color: var(--ink-2); }
.sub-head p { margin: 12px 0 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.sub-foot { border-top: 1px solid var(--line); background: var(--light); padding: 32px 16px 40px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.sub-foot > div { max-width: var(--wrap); margin: 0 auto; }
.sub-foot b { color: var(--ink); }
@media (min-width: 900px) {
  .sub-main { padding: 72px 60px 120px; }
  .sub-head h1 { font-size: 52px; }
  .sub-foot { padding: 40px 60px 48px; }
}
