:root {
      --bg:           #faf8f5;
      --surface:      #ffffff;
      --border:       #e8e2da;
      --text:         #1a1713;
      --text-sub:     #6b6560;
      --text-muted:   #a09a93;
      --warm:         #f2ede6;
      --accent:       #c8392b;      --header-h: 56px;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
      font-weight: 300;
      background: var(--bg);
      color: var(--text);
      -webkit-font-smoothing: antialiased;
    }

    /* ── 페이지 헤더 ── */
    .page-header {
      border-bottom: 1px solid var(--border);
      padding: 40px 0 32px;
      background: var(--bg);
    }
    .page-header-inner {
      max-width: 960px; margin: 0 auto; padding: 0 32px;
      display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
    }
    .page-eyebrow {
      font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
      color: var(--accent); margin-bottom: 8px;
    }
    .page-title {
      font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
      font-size: 24px; font-weight: 600; color: var(--text);
    }
    .page-sub { font-size: 13px; color: var(--text-sub); margin-top: 6px; line-height: 1.6; }
    .page-header-link {
      font-size: 12px; color: var(--text-muted); text-decoration: none;
      border-bottom: 1px solid var(--border); padding-bottom: 1px;
      transition: color .15s, border-color .15s; white-space: nowrap;
    }
    .page-header-link:hover { color: var(--accent); border-color: var(--accent); }

    /* ── 필터 바 ── */
    .filter-wrap {
      max-width: 960px; margin: 0 auto; padding: 20px 32px;
      border-bottom: 1px solid var(--border);
    }
    .archive-role-note {
      max-width: 960px; margin: 0 auto;
      padding: 14px 32px;
      background: var(--warm);
      border-bottom: 1px solid var(--border);
      font-size: 12px; color: var(--text-sub); line-height: 1.7;
    }
    .archive-role-note a {
      color: var(--text); text-decoration: none;
      border-bottom: 1px solid var(--border);
    }
    .archive-role-note a:hover { color: var(--accent); border-bottom-color: var(--accent); }
    .filter-bar { display: flex; gap: 6px; flex-wrap: wrap; }
    .filter-btn {
      font-size: 11px; font-weight: 400;
      padding: 5px 16px; border-radius: 20px;
      border: 1px solid var(--border);
      background: var(--surface); color: var(--text-sub);
      cursor: pointer; transition: all .12s; letter-spacing: .03em;
    }
    .filter-btn.active, .filter-btn:hover {
      background: var(--text); color: #fff; border-color: var(--text);
    }

    /* ── 카드 컨테이너 ── */
    main {
      max-width: 960px; margin: 0 auto; padding: 32px 32px 80px;
    }

    /* 배지 */
    .badge {
      font-size: 9px; font-weight: 500; letter-spacing: .1em;
      text-transform: uppercase; padding: 2px 7px; border-radius: 1px;
    }
    .badge-anchor { background: var(--accent); color: #fff; }
    .badge-theme  { background: #1a1713; color: #fff; }
    .badge-region { border: 1px solid var(--border); color: var(--text-sub); font-weight: 400; }

    .card-badges { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
    .card-title {
      font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
      font-size: 22px; font-weight: 600;
      color: var(--text); line-height: 1.35; margin-bottom: 10px;
    }
    .card-desc {
      font-size: 13px; color: var(--text-sub);
      line-height: 1.7; margin-bottom: 16px;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .card-meta { font-size: 10px; color: var(--text-muted); }

    /* featured 카드 */
    .featured-card {
      display: grid; grid-template-columns: 1fr 1fr;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 2px; overflow: hidden;
      margin-bottom: 20px;
      text-decoration: none; color: inherit;
      transition: box-shadow .15s;
    }
    .featured-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }

    .featured-img {
      height: 200px; background: var(--warm);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      position: relative; overflow: hidden;
    }
    .featured-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
    .featured-img-city {
      font-family: inherit;
      font-size: 52px; color: var(--text); opacity: .18;
      text-align: center; line-height: 1; z-index: 1; padding: 0 20px;
    }
    .featured-img-cat {
      font-size: 10px; color: var(--text-muted);
      letter-spacing: .1em; text-transform: uppercase;
      margin-top: 6px; z-index: 1;
    }
    .featured-body {
      padding: 28px; display: flex; flex-direction: column; justify-content: space-between;
    }

    /* 일반 카드 그리드 */
    .card-grid {
      display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
    }
    .post-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 2px; overflow: hidden;
      text-decoration: none; color: inherit;
      transition: box-shadow .15s;
      display: flex; flex-direction: column;
    }
    .post-card:hover { box-shadow: 0 3px 16px rgba(0,0,0,.07); }
    .card-img {
      height: 140px; background: var(--warm);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      position: relative; overflow: hidden;
    }
    .card-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
    .card-img-city {
      font-family: inherit;
      font-size: 36px; color: var(--text); opacity: .18;
      text-align: center; line-height: 1; z-index: 1; padding: 0 12px;
    }
    .card-img-cat {
      font-size: 9px; color: var(--text-muted);
      letter-spacing: .1em; text-transform: uppercase;
      margin-top: 4px; z-index: 1;
    }
    .card-body {
      padding: 16px; flex: 1; display: flex; flex-direction: column;
    }
    .card-body .card-title { font-size: 15px; margin-bottom: 8px; }
    .card-body .card-desc { flex: 1; margin-bottom: 10px; }

    /* 빈 상태 */
    .empty-state {
      text-align: center; padding: 60px;
      color: var(--text-muted); font-size: 14px;
    }

    /* 지도 복귀 배너 */
    .map-banner {
      margin-top: 48px; padding: 20px 24px;
      background: #1a1713;
      display: flex; justify-content: space-between; align-items: center;
      gap: 16px; flex-wrap: wrap;
      border-radius: 2px;
    }
    .map-banner-text {
      font-size: 13px; color: rgba(232,227,219,0.6); line-height: 1.6;
    }
    .map-banner-text strong { color: rgba(232,227,219,0.9); font-weight: 500; }
    .map-banner-btn {
      display: inline-flex; align-items: center;
      padding: 9px 18px; border-radius: 2px;
      background: var(--accent); color: #fff;
      font-size: 12px; font-weight: 500;
      text-decoration: none; white-space: nowrap;
      transition: background .15s;
    }
    .map-banner-btn:hover { background: #a93226; }

    @media (max-width: 768px) {
      .featured-card { grid-template-columns: 1fr; }
      .card-grid { grid-template-columns: 1fr 1fr; }
      main { padding: 24px 24px 64px; }
      .filter-wrap { padding: 16px 24px; }
      .page-header-inner { padding: 0 24px; }
    }
    @media (max-width: 480px) {
      .card-grid { grid-template-columns: 1fr; }
    }
