:root {
  --primary: #16a36a;
  --primary-dark: #0f7d50;
  --primary-soft: #e8f7ef;
  --accent: #ff6b3d;
  --accent-dark: #ef5226;
  --ink: #18221d;
  --ink-soft: #44524b;
  --muted: #818d86;
  --line: #e8efea;
  --bg: #ffffff;
  --bg-soft: #f5faf7;
  --bg-warm: #fff8f3;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(20, 60, 42, 0.09);
  --shadow-lg: 0 16px 44px rgba(20, 60, 42, 0.14);
  --max: 780px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', system-ui, sans-serif;
  color: var(--ink); background: var(--bg);
  line-height: 1.78; font-size: 17px; letter-spacing: -0.011em;
  word-break: keep-all; overflow-wrap: anywhere;
}
img { max-width: 100%; }
a { color: var(--primary-dark); text-decoration: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 13px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-weight: 800; font-size: 1.24rem; color: var(--ink); letter-spacing: -0.02em; }
.brand-mark { margin-right: 2px; }
.site-header nav a { margin-left: 20px; color: var(--ink-soft); font-size: 0.93rem; font-weight: 600; }
.site-header nav a:hover { color: var(--primary-dark); }

main { max-width: var(--max); margin: 0 auto; padding: 10px 20px 60px; }

/* ---------- category badge ---------- */
.badge {
  display: inline-block; font-size: 0.76rem; font-weight: 800; letter-spacing: -0.01em;
  color: #fff; background: var(--c, var(--primary)); padding: 5px 12px; border-radius: 999px;
}

/* ---------- hero ---------- */
.hero {
  margin: 18px 0 30px; padding: 40px 30px;
  background:
    radial-gradient(1200px 300px at 100% -10%, rgba(255,107,61,.10), transparent 60%),
    linear-gradient(135deg, var(--primary-soft), #f3fbf6);
  border-radius: 26px; border: 1px solid var(--line);
}
.hero-kicker { margin: 0 0 10px; font-weight: 800; color: var(--primary-dark); font-size: 0.95rem; }
.hero h1 { font-size: 2.05rem; line-height: 1.28; margin: 0 0 14px; letter-spacing: -0.035em; }
.hero .tagline { color: var(--ink-soft); margin: 0 0 20px; font-size: 1.02rem; max-width: 90%; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip {
  font-size: 0.84rem; font-weight: 700; color: var(--primary-dark);
  background: #fff; border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px;
}

/* ---------- featured ---------- */
.featured {
  display: block; margin: 0 0 26px; border-radius: var(--radius); overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: inherit; transition: transform .16s ease, box-shadow .16s ease;
}
.featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.featured img { width: 100%; height: 300px; object-fit: cover; display: block; }
.featured-body { padding: 24px 26px 26px; }
.featured-body h2 { font-size: 1.5rem; line-height: 1.34; margin: 12px 0 8px; letter-spacing: -0.025em; }
.featured-body p { color: var(--ink-soft); margin: 0 0 14px; }
.read-more { color: var(--accent-dark); font-weight: 800; font-size: 0.95rem; }

/* ---------- post grid ---------- */
.post-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.post-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg); box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card a { display: block; color: inherit; }
.post-card .thumb { width: 100%; height: 158px; object-fit: cover; display: block; }
.thumb-ph {
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
  background: color-mix(in srgb, var(--c, var(--primary)) 14%, white);
}
.post-card-body { padding: 16px 17px 18px; }
.post-card-body .badge { font-size: 0.7rem; padding: 4px 10px; }
.post-title { font-size: 1.12rem; line-height: 1.4; margin: 9px 0 7px; color: var(--ink); letter-spacing: -0.02em; }
.post-desc {
  color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-date { color: var(--muted); font-size: 0.8rem; }

/* ---------- article ---------- */
.post > .badge { margin-bottom: 12px; }
.post h1 { font-size: 1.78rem; line-height: 1.36; margin: 8px 0 10px; letter-spacing: -0.03em; }
.post .meta { color: var(--muted); font-size: 0.88rem; margin: 0 0 22px; }
.hero-img { margin: 0 0 26px; }
.hero-img img { width: 100%; border-radius: var(--radius); max-height: 420px; object-fit: cover; }
.hero-img figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 7px; text-align: center; }

.post-body { font-size: 1.05rem; }
.post-body > p { margin: 0 0 18px; }
.post-body h2 {
  font-size: 1.36rem; margin: 38px 0 14px; line-height: 1.38; letter-spacing: -0.02em;
  padding-bottom: 8px; border-bottom: 2px solid var(--primary-soft);
}
.post-body h3 { font-size: 1.12rem; margin: 22px 0 8px; color: var(--primary-dark); }
.post-body ul { padding-left: 1.15em; }
.post-body li { margin: 7px 0; }
.post-body blockquote {
  margin: 20px 0; padding: 15px 18px; background: var(--bg-warm);
  border: 1px solid #ffe3d3; border-left: 4px solid var(--accent);
  border-radius: 12px; color: var(--ink-soft); font-size: 0.98rem;
}
.post-body blockquote p { margin: 0; }

/* ---------- summary box ---------- */
.summary-box {
  margin: 4px 0 26px; padding: 18px 22px;
  background: var(--primary-soft); border: 1px solid #cdeede; border-radius: var(--radius);
}
.summary-label { font-weight: 800; color: var(--primary-dark); font-size: 0.96rem; }
.summary-box ul { margin: 10px 0 0; padding-left: 1.1em; }
.summary-box li { margin: 6px 0; font-size: 0.98rem; color: var(--ink); }

/* ---------- magazine place list (여행지·맛집) ---------- */
.place-list { margin: 22px 0; display: grid; gap: 14px; }
.place {
  display: flex; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--bg); box-shadow: 0 3px 14px rgba(20,60,42,.05);
}
.place img { width: 116px; height: auto; min-height: 100%; object-fit: cover; flex-shrink: 0; }
.place-body { padding: 14px 16px; position: relative; }
.place-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 999px; background: var(--primary); color: #fff;
  font-size: 0.78rem; font-weight: 800; margin-bottom: 6px;
}
.place-body h3 { margin: 4px 0 4px; font-size: 1.1rem; letter-spacing: -0.02em; }
.place-area { color: var(--muted); font-size: 0.82rem; }
.place-body p { margin: 8px 0 0; font-size: 0.93rem; color: var(--ink-soft); }

/* ---------- responsive table ---------- */
.post-body table {
  width: 100%; border-collapse: separate; border-spacing: 0; display: block;
  overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 0.9rem;
  border: 1px solid var(--line); border-radius: 14px; margin: 20px 0;
}
.post-body thead th {
  position: sticky; top: 0; background: var(--primary); color: #fff; font-weight: 700; white-space: nowrap;
}
.post-body th, .post-body td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 62px; }
.post-body td:first-child, .post-body th:first-child {
  position: sticky; left: 0; font-weight: 700; min-width: 118px; max-width: 150px; background: var(--bg);
  box-shadow: 1px 0 0 var(--line);
}
.post-body thead th:first-child { background: var(--primary-dark); }
.post-body tbody tr:nth-child(even) td { background: var(--bg-soft); }
.post-body tbody tr:nth-child(even) td:first-child { background: #eef6f1; }

/* ---------- highlight marker (형광펜) ---------- */
.post-body mark {
  background: linear-gradient(180deg, transparent 55%, #ffe487 55%);
  color: inherit; padding: 0 2px; font-weight: 700; border-radius: 2px;
}

/* ---------- booking cards ---------- */
.book-cards {
  margin: 32px 0; padding: 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, #fff6f0, var(--primary-soft));
  border: 1px solid #ffe0d0;
}
.book-cards-head { margin: 0 0 14px; font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.book-card {
  display: flex; align-items: center; gap: 14px; margin: 12px 0; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 4px 16px rgba(20,60,42,.07); color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.book-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(239,82,38,.18); text-decoration: none; }
.book-icon { font-size: 1.9rem; flex-shrink: 0; }
.book-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.book-text b { font-size: 1.02rem; color: var(--ink); line-height: 1.35; }
.book-text small { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.4; }
.book-btn {
  flex-shrink: 0; background: var(--accent); color: #fff; font-weight: 800; font-size: 0.92rem;
  padding: 11px 16px; border-radius: 999px; box-shadow: 0 4px 12px rgba(239,82,38,.28); white-space: nowrap;
}
.book-card:hover .book-btn { background: var(--accent-dark); }
.book-card.simple { justify-content: center; font-weight: 700; color: var(--accent-dark); }

.tp-ad-box { display: block; margin: 26px 0; text-align: center; }
.tp-ad-box img { max-width: 100%; border-radius: 12px; }
.tp-ad-title { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 8px; }

.tags { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.tags span {
  display: inline-block; color: var(--primary-dark); background: var(--primary-soft);
  font-size: 0.82rem; padding: 4px 11px; border-radius: 999px; margin: 0 6px 8px 0;
}
.source-note { color: var(--muted); font-size: 0.83rem; line-height: 1.65; }
.back-home { display: inline-block; margin: 26px 0 0; font-weight: 700; color: var(--primary-dark); }

.empty { color: var(--muted); text-align: center; padding: 50px 0; font-size: 1.05rem; }

/* ---------- footer ---------- */
.site-footer {
  max-width: var(--max); margin: 0 auto; padding: 30px 20px 50px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; line-height: 1.7;
}
.footer-brand { font-weight: 800; color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 10px; }
.site-footer p { margin: 7px 0; }
.copyright { margin-top: 12px !important; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 30px 22px; border-radius: 22px; }
  .hero h1 { font-size: 1.62rem; }
  .hero h1 br { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .featured img { height: 210px; }
  .featured-body h2 { font-size: 1.28rem; }
  .post h1 { font-size: 1.48rem; }
  .post-body { font-size: 1.02rem; }
  .post-body table { font-size: 0.84rem; }
  .place img { width: 92px; }
}
