/* LocalTravel — card-grid travel blog.
   디자인 언어: ref/20250918_LOCAL_TRAVEL_KR_VUEJS (Quasar) → plain CSS 이식.
   Plus Jakarta Sans / #0ea5e9 accent / 14px 카드 / 16:10 썸네일 / 1200px 컨테이너. */

:root {
  --text: #111827;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --accent: #0ea5e9;
  --accent-soft: rgba(14, 165, 233, 0.1);
  --radius: 14px;
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.06);
  --container: 1200px;
  --reading: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e5e7eb;
    --muted: #9ca3af;
    --faint: #6b7280;
    --line: #2d333b;
    --bg: #0f1419;
    --bg-soft: #1a1f26;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.12);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable both-edges;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    'Plus Jakarta Sans',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Noto Sans KR',
    sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 16px;
}

/* ── Header ─────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.site-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.site-name em {
  font-style: normal;
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 6px 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a.nav-active {
  color: var(--accent);
}

.site-nav a.nav-active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* 햄버거 토글 — 데스크톱에서는 숨긴다 */
.nav-toggle,
.nav-burger {
  display: none;
}

@media (max-width: 900px) {
  .site-header .container {
    gap: 12px;
    justify-content: space-between;
  }

  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    cursor: pointer;
  }

  .nav-burger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }

  .nav-toggle:checked ~ .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* 드로어: 헤더 아래로 슬라이드 */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    display: none;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 10px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-nav a.nav-active {
    background: var(--accent-soft);
    border-radius: 8px;
  }

  .site-nav a.nav-active::after {
    display: none;
  }
}

/* ── Hero (home) ────────────────────────── */

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  margin: 16px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.125rem;
}

/* ── Section header ─────────────────────── */

.section-header {
  margin: 56px 0 32px;
  text-align: center;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Category chips ─────────────────────── */

.chip-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
}

.chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.chip.chip-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* ── Post card grid ─────────────────────── */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

@media (max-width: 960px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

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

.post-card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 16px;
}

.post-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.8rem;
  color: var(--faint);
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}

.post-card-excerpt {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Featured post (home 첫 글) ─────────── */

.featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

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

.featured-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 10px 0;
}

.featured-body .post-card-excerpt {
  -webkit-line-clamp: 3;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .featured {
    grid-template-columns: 1fr;
  }
  .featured-body {
    padding: 20px;
  }
}

/* ── Post detail ────────────────────────── */

.post-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--bg-soft);
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.1);
}

.post-hero .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
}

.post-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.post-hero .post-meta {
  color: rgba(255, 255, 255, 0.85);
  margin: 12px 0 0;
}

.post-hero .post-meta a {
  color: #fff;
}

/* 커버 없는 글: 텍스트 헤더 */
.post-header-plain {
  max-width: var(--reading);
  margin: 56px auto 0;
  padding: 0 16px;
}

.post-header-plain h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--muted);
  margin: 14px 0 0;
}

.post-body {
  max-width: var(--reading);
  margin: 40px auto 80px;
  padding: 0 16px;
  font-size: 1.075rem;
  line-height: 1.8;
}

.post-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
}

.post-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.post-body p,
.post-body ul,
.post-body ol {
  margin: 0 0 1.25rem;
}

.post-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.post-body a:hover {
  border-bottom-color: var(--accent);
}

.post-body img {
  margin: 2rem 0;
  border-radius: var(--radius);
}

.post-body blockquote {
  margin: 2rem 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.post-body code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
}

.post-body pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

/* ── Page heading (category/archive/about) ─ */

.page-head {
  text-align: center;
  padding: 56px 0 8px;
}

.page-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.page-description {
  margin: 10px auto 0;
  max-width: 560px;
  color: var(--muted);
}

/* ── Archive ────────────────────────────── */

.archive-wrap {
  max-width: var(--reading);
  margin: 0 auto 80px;
  padding: 0 16px;
}

.archive-year h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  margin: 40px 0 8px;
}

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.archive-list time {
  color: var(--faint);
  font-size: 0.85rem;
  flex-shrink: 0;
  min-width: 5.5rem;
  font-variant-numeric: tabular-nums;
}

.archive-list a {
  font-weight: 600;
}

.archive-list a:hover {
  color: var(--accent);
}

/* ── Search ─────────────────────────────── */

.search-wrap {
  max-width: var(--reading);
  margin: 0 auto 80px;
  padding: 0 16px;
}

.search-input {
  width: 100%;
  font-size: 1.05rem;
  font-family: inherit;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  margin: 32px 0 24px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-results li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.search-results .result-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.search-results .result-title:hover {
  color: var(--accent);
}

.search-results .result-meta {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--faint);
}

.search-results .result-excerpt {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.search-empty {
  color: var(--faint);
  padding: 32px 0;
  text-align: center;
}

/* ── Footer ─────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--accent);
}

.copyright {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--faint);
}

/* ── 404 ────────────────────────────────── */

.notfound {
  text-align: center;
  padding: 96px 16px;
}

.notfound h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
}

.notfound p {
  color: var(--muted);
  margin: 16px 0 0;
}

.btn {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.btn:hover {
  filter: brightness(1.08);
}

/* ── Typed content (tours/courses/tips/regions) ─ */

/* hero 안 두 번째 칩 행 라벨 */
.chip-row-label {
  margin: 20px 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.chip-row-label + .chip-row {
  margin-top: 10px;
}

/* tour 가격 배지 — 채워진 accent */
.price-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
}

/* course 경유지 순서 목록 */
.stop-list {
  padding-left: 1.4rem;
}

.stop-list li {
  margin: 0 0 0.5rem;
}

.stop-list li::marker {
  color: var(--accent);
  font-weight: 700;
}

/* region 카드 — post-card 변형 */
.region-card .post-card-title {
  -webkit-line-clamp: 1;
}

.region-card .post-card-meta {
  margin-top: 6px;
}
