/* =========================================================
   카록 (CarLog) — Design Tokens
   Concept: 고속도로 표지판 / 아스팔트 / 신호등에서 가져온 팔레트.
   자동차·정보라는 주제를 "도로 위 정보 표지판"으로 은유합니다.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Gothic+A1:wght@400;500;700;800;900&family=IBM+Plex+Mono:wght@500;600;700&display=swap');
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/woff2/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 45 920;
}

:root {
  /* Color tokens */
  --concrete: #EEF0F0;      /* 페이지 배경 — 옅은 아스팔트/콘크리트 회색 */
  --card: #FFFFFF;          /* 카드 배경 */
  --asphalt: #1B1F23;       /* 본문/헤드라인 잉크 */
  --asphalt-fade: #666E76;  /* 보조 텍스트 */
  --route: #1E4C86;         /* 고속도로 표지판 블루 — 신뢰/정보 */
  --route-deep: #163A68;
  --signal: #F2A63A;        /* 방향지시등 앰버 — 핵심 강조 */
  --signal-deep: #C97F1E;
  --lane: #FFC845;          /* 차선 옐로 — 서브 강조/하이라이트 */
  --line: #DEE2E3;          /* 헤어라인 */
  --danger-soft: #FBEFE3;

  /* Type */
  --font-display: 'Gothic A1', sans-serif;
  --font-body: 'Pretendard', 'Gothic A1', sans-serif;
  --font-data: 'IBM Plex Mono', monospace;

  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--asphalt);
  font-family: var(--font-body);
  font-weight: 450;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 240, 240, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logo .mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--route);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  border: 2px solid var(--asphalt);
  box-shadow: 2px 2px 0 var(--asphalt);
}
.logo .tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--asphalt-fade);
  margin-left: 2px;
  padding-top: 3px;
}
nav.main-nav ul { display: flex; gap: 28px; }
nav.main-nav a {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--asphalt-fade);
  position: relative;
  padding: 4px 0;
}
nav.main-nav a.active,
nav.main-nav a:hover { color: var(--asphalt); }
nav.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--signal);
  border-radius: 2px;
}

/* ---------- Route-sign badge (signature element) ---------- */
.route-sign {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--route);
  color: #fff;
  border: 2px solid #fff;
  outline: 2px solid var(--route-deep);
  border-radius: var(--radius-sm);
  padding: 9px 14px 9px 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  transition: transform .15s ease, outline-color .15s ease;
}
.route-sign .arrow { font-family: var(--font-data); font-weight: 700; opacity: .85; }
.route-sign:hover { transform: translateY(-2px); outline-color: var(--signal); }
.route-sign.is-mini { padding: 6px 10px; font-size: 12.5px; border-width: 1.5px; }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--route);
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero .eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 720px;
}
.hero h1 .hl {
  color: var(--route);
  position: relative;
  white-space: nowrap;
}
.hero p.lead {
  font-size: 17.5px;
  color: var(--asphalt-fade);
  max-width: 520px;
  margin: 0 0 34px;
  font-weight: 500;
}

.region-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.region-picker .group-label {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--asphalt-fade);
  align-self: center;
  margin-right: 4px;
}

/* ---------- Section shell ---------- */
section { padding: 64px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.section-head .desc { color: var(--asphalt-fade); font-size: 14.5px; font-weight: 500; }
.section-kicker {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  color: var(--signal-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

/* ---------- Why strip ---------- */
.why-strip {
  background: var(--asphalt);
  color: #fff;
  padding: 0;
}
.why-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.why-item {
  padding: 40px 28px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.why-item:last-child { border-right: none; }
.why-item .num {
  font-family: var(--font-data);
  color: var(--signal);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.why-item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}
.why-item p { color: rgba(255,255,255,0.62); font-size: 14px; margin: 0; }

/* ---------- Category grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color .15s ease, transform .15s ease;
}
.cat-card.is-live { border-color: var(--asphalt); }
.cat-card:hover { transform: translateY(-3px); }
.cat-card .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--concrete);
  margin-bottom: 18px;
}
.cat-card.is-live .icon { background: var(--signal); }
.cat-card h3 {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.cat-card p { font-size: 13px; color: var(--asphalt-fade); margin: 0; }
.status-pill {
  position: absolute;
  top: 22px; right: 20px;
  font-family: var(--font-data);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--concrete);
  color: var(--asphalt-fade);
}
.cat-card.is-live .status-pill {
  background: var(--danger-soft);
  color: var(--signal-deep);
}

/* ---------- Post cards ---------- */
.region-tabs {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.region-tabs button {
  border: none;
  background: transparent;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--asphalt-fade);
}
.region-tabs button.active {
  background: var(--asphalt);
  color: #fff;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(27,31,35,0.08); }
.post-card .tagbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 0;
}
.chip {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--concrete);
  color: var(--asphalt-fade);
}
.chip.region { background: #EAF1F9; color: var(--route); }
.post-card .body { padding: 14px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.post-card h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.amount-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.amount-row .label { font-size: 12px; color: var(--asphalt-fade); font-weight: 600; }
.amount-row .amount {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 17px;
  color: var(--signal-deep);
}

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: var(--danger-soft);
  border: 1px solid #EFD9B8;
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: 13.5px;
  color: #6B5222;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.disclaimer .mark {
  font-family: var(--font-data);
  font-weight: 700;
  background: var(--signal);
  color: #fff;
  width: 24px; height: 24px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--asphalt);
  color: rgba(255,255,255,0.55);
  padding: 48px 0 32px;
  margin-top: 40px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
footer .foot-brand {
  font-family: var(--font-display);
  color: #fff;
  font-weight: 900;
  font-size: 19px;
}
footer p { font-size: 13px; max-width: 420px; margin: 10px 0 0; }
footer .foot-links { display: flex; gap: 20px; }
footer .foot-links a { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.75); }
footer .copyright { margin-top: 32px; font-size: 12px; color: rgba(255,255,255,0.35); }

/* ---------- Article page ---------- */
.article-hero {
  padding: 48px 0 30px;
  border-bottom: 1px solid var(--line);
}
.crumbs { font-family: var(--font-data); font-size: 12px; color: var(--asphalt-fade); margin-bottom: 18px; }
.crumbs a { color: var(--route); font-weight: 600; }
.article-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  max-width: 760px;
  margin: 0 0 18px;
}
.meta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.summary-box {
  background: var(--card);
  border: 1.5px solid var(--asphalt);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 34px 0;
}
.summary-box h2 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.summary-box table { width: 100%; border-collapse: collapse; }
.summary-box td { padding: 9px 0; font-size: 14.5px; border-top: 1px dashed var(--line); }
.summary-box tr:first-child td { border-top: none; }
.summary-box td:first-child { color: var(--asphalt-fade); font-weight: 600; width: 34%; }
.summary-box td:last-child { font-weight: 700; }
.summary-box td.big { font-family: var(--font-data); color: var(--signal-deep); font-size: 18px; }

.article-body { max-width: 720px; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}
.article-body p { font-size: 15.5px; color: #333; margin: 0 0 16px; }
.article-body ul { margin: 0 0 20px; }
.article-body li {
  font-size: 15px;
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--line);
  position: relative;
}
.article-body li:first-child { border-top: none; }
.article-body li::before {
  content: '';
  position: absolute;
  left: 4px; top: 18px;
  width: 8px; height: 8px;
  background: var(--signal);
  border-radius: 2px;
}
.step-list { counter-reset: step; }
.step-list li { counter-increment: step; padding-left: 40px; }
.step-list li::before {
  content: counter(step);
  font-family: var(--font-data);
  background: var(--route);
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  top: 10px;
}

@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .why-strip .wrap { grid-template-columns: 1fr; }
  .why-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: 1fr; }
  footer .wrap { flex-direction: column; }
}
