@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&family=Song+Myung&display=swap');
:root {
  --font-nanum: 'Nanum Gothic';
  --font-songmyung: 'Song Myung';
}

:root {
  --linen: #efe9dd;
  --linen-deep: #e6dfce;
  --paper: #fffdf8;
  --ink: #2d2a23;
  --ink-soft: #5e584c;
  --muted: #948c7c;
  --line: #ddd4c2;
  /* 시그니처: muted dusty-blue map accent (ivoryvillage의 terracotta와 대비) */
  --blue: #7d8aa0;
  --blue-deep: #56627c;
  --blue-soft: #e6eaf0;
  --blue-line: #c8d0dd;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 16px 40px rgba(86, 98, 124, 0.13);
  --shadow-soft: 0 8px 20px rgba(86, 98, 124, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 88% -6%, rgba(125, 138, 160, 0.14), transparent 32rem),
    var(--linen);
  color: var(--ink);
  font-family: var(--font-nanum), ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--blue-deep);
  color: var(--paper);
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-nanum), system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* 키커: Song Myung 세리프 악센트 */
.kicker {
  margin: 0 0 12px;
  font-family: var(--font-songmyung), serif;
  color: var(--blue-deep);
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

/* ---------- Masthead (single-row, left-aligned, map glyph) ---------- */
.masthead {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.85), rgba(255, 253, 248, 0.3));
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(1.1) blur(4px);
}

.masthead-inner {
  width: min(1100px, calc(100% - 44px));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  color: var(--blue-deep);
}

.wordmark-text strong {
  display: block;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.wordmark-text small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.76rem;
}

.area-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.area-nav a {
  position: relative;
  padding-bottom: 3px;
}

.area-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.area-nav a:hover {
  color: var(--blue-deep);
}

.area-nav a:hover::after {
  transform: scaleX(1);
}

main {
  width: min(1100px, calc(100% - 44px));
  margin: 0 auto;
}

/* ---------- Lead (asymmetric: copy + map panel) ---------- */
.village-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: center;
  padding: 62px 0 50px;
}

.lead-copy h1 {
  margin: 0;
  font-size: clamp(1.95rem, 3.6vw, 2.95rem);
  line-height: 1.34;
}

.lead-lede {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.82;
}

.lead-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.lead-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

/* 지도 패널: jpg 위에 dusty-blue 그라데이션 폴백 (jpg 없어도 완성 보임) */
.lead-map {
  position: relative;
  height: clamp(260px, 34vw, 380px);
  border-radius: 22px;
  border: 1px solid var(--blue-line);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(86, 98, 124, 0.12), rgba(86, 98, 124, 0.28)),
    url("/images/linenvillage-lead.jpg") center / cover no-repeat,
    linear-gradient(135deg, #e9edf2 0%, #dfe4ec 45%, #cdd4e0 100%);
  box-shadow: var(--shadow);
}

/* 지도 길/핀 단서 (CSS만으로 표현, 이미지 없어도 보임) */
.lead-route {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 58%;
  height: 0;
  border-top: 2px dashed rgba(255, 253, 248, 0.85);
  transform: rotate(-7deg);
}

.lead-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 6px 14px rgba(45, 42, 35, 0.28);
}

.lead-pin-a {
  left: 24%;
  top: 38%;
  background: var(--paper);
  border: 3px solid var(--blue-deep);
}

.lead-pin-b {
  right: 22%;
  top: 64%;
  background: var(--blue-deep);
  border: 3px solid var(--paper);
}

/* ---------- Section heads ---------- */
.lane-head {
  margin-bottom: 24px;
}

.lane-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
}

.lane-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.area-lanes,
.topic-lanes,
.hood-recent {
  padding: 52px 0;
}

/* ---------- Area lanes (SIGNATURE: horizontal lanes + map cues) ---------- */
.lane-list {
  display: grid;
  gap: 14px;
}

.area-lane {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.area-lane:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow);
}

/* 왼쪽 핀 + 세로 길 */
.lane-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.lane-marker::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: -28px;
  width: 0;
  border-left: 2px dashed var(--blue-line);
}

.area-lane:last-child .lane-marker::before {
  display: none;
}

.marker-pin {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--blue-soft);
  border: 2.5px solid var(--blue-deep);
}

.lane-body {
  min-width: 0;
}

.lane-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.lane-title h3 {
  font-size: 1.2rem;
}

.lane-cue {
  font-family: var(--font-songmyung), serif;
  color: var(--blue-deep);
  font-size: 0.92rem;
}

/* 가로 길(track) + 정류장(spot) */
.lane-track {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 10px;
  position: relative;
  padding-left: 4px;
}

.spot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  color: var(--blue-deep);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.16s ease;
}

.spot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.spot:hover {
  background: #dbe2ec;
}

.lane-count {
  display: inline-block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Topic lanes (tiles, different treatment) ---------- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.topic-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--blue);
}

.topic-glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  margin-bottom: 14px;
}

.topic-tile h3 {
  font-size: 1.14rem;
}

.topic-tile p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.66;
}

/* ---------- Recent guides (rows) ---------- */
.recent-list {
  display: grid;
  gap: 12px;
}

.recent-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.recent-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.recent-tag {
  justify-self: start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 800;
}

.recent-text strong {
  display: block;
  font-size: 1.14rem;
  line-height: 1.42;
  letter-spacing: -0.01em;
}

.recent-text p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.recent-row small {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

/* ---------- About band ---------- */
.about-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  margin: 8px 0 12px;
  padding: 42px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: 22px;
}

.about-copy h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.about-lede {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.78;
}

.about-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.about-points li {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius-sm);
  padding: 16px 18px 16px 44px;
  color: var(--ink-soft);
  line-height: 1.66;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 1.05em;
  width: 13px;
  height: 13px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--paper);
  border: 2.5px solid var(--blue-deep);
}

/* ---------- Footer ---------- */
.site-footer {
  width: min(1100px, calc(100% - 44px));
  margin: 36px auto 0;
  padding: 32px 0 56px;
  border-top: 2px solid var(--blue-line);
  color: var(--muted);
}

.footer-mark {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.footer-mark strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.footer-mark span {
  font-size: 0.82rem;
}

.footer-desc {
  margin: 10px 0 16px;
  max-width: 540px;
  line-height: 1.62;
  font-size: 0.92rem;
}

.footer-disclosure {
  display: inline-block;
  margin: 0;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ---------- Article (single column) ---------- */
.article-shell {
  max-width: 740px;
  padding: 34px 0 80px;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--blue-deep);
}

.article-body {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 5vw, 52px);
  box-shadow: var(--shadow-soft);
}

.article-chip {
  display: inline-block;
  color: var(--blue-deep);
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.article-head h1 {
  margin: 16px 0 0;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.34;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* 인트로 lede (Song Myung 세리프, laurelguide의 boxed 핵심요약과 다름) */
.article-lede {
  margin: 26px 0 4px;
  padding-left: 18px;
  border-left: 3px solid var(--blue);
}

.lede-kicker {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-songmyung), serif;
  color: var(--blue-deep);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.article-lede p {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.78;
}

/* 작은 area-context note (single-column 시그니처) */
.area-context {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 24px 0 8px;
  padding: 16px 18px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius-sm);
}

.context-pin {
  flex: none;
  margin-top: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--paper);
  border: 2.5px solid var(--blue-deep);
}

.area-context p {
  margin: 0;
  color: var(--blue-deep);
  font-size: 0.94rem;
  line-height: 1.66;
}

.article-content {
  margin-top: 28px;
  color: #34302a;
  font-size: 1.05rem;
  line-height: 1.86;
}

.article-content h2 {
  margin: 40px 0 14px;
  font-size: clamp(1.32rem, 2.4vw, 1.68rem);
  padding-left: 14px;
  border-left: 5px solid var(--blue);
}

.article-content h3 {
  margin: 28px 0 10px;
  font-size: 1.18rem;
}

.article-content p {
  margin: 0 0 18px;
}

.article-content a {
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.article-content ul li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  line-height: 1.62;
}

.article-content ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--blue);
}

.article-content ol {
  counter-reset: step;
}

.article-content ol li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  line-height: 1.62;
  counter-increment: step;
}

.article-content ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.article-content blockquote {
  margin: 26px 0;
  padding: 22px 26px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius-sm);
  color: var(--blue-deep);
  font-family: var(--font-songmyung), serif;
  font-size: 1.18rem;
  line-height: 1.72;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.96rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.article-content th,
.article-content td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

.article-content th:last-child,
.article-content td:last-child {
  border-right: 0;
}

.article-content tbody tr:last-child td {
  border-bottom: 0;
}

.article-content th {
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-weight: 800;
}

.article-content tbody tr:nth-child(even) td {
  background: #faf8f2;
}

.faq-section,
.source-note {
  margin-top: 38px;
}

.faq-section h2,
.source-note h2 {
  font-size: clamp(1.28rem, 2.2vw, 1.55rem);
  margin-bottom: 8px;
}

.faq-section details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  gap: 0.5em;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: var(--blue);
  font-weight: 800;
}

.faq-section details[open] summary::before {
  content: "–";
}

.faq-section details p,
.source-note p {
  color: var(--ink-soft);
  line-height: 1.74;
}

.faq-section details p {
  margin: 10px 0 0 1.6em;
}

.source-note {
  padding: 22px 24px;
  background: #faf8f2;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.article-foot {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-deep);
  font-weight: 800;
}

.back-link::before {
  content: "←";
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .village-lead,
  .about-band {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-band {
    padding: 30px;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recent-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .recent-row small {
    order: -1;
  }
}

@media (max-width: 560px) {
  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .area-nav {
    gap: 16px 20px;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .area-lane {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
