@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;600;700&display=swap');

/* ============================================================
   마케터박프로의 온라인광고 탐험기록 — Design tokens
   ============================================================ */

:root {
  --paper:      #FBFAF6;
  --paper-2:    #F4F2EB;
  --ink:        #17170F;
  --ink-soft:   #3A3A30;
  --muted:      #7C7A6D;
  --muted-2:    #A6A395;
  --rule:       #E0DCCE;
  --rule-soft:  #EDEAE0;
  --accent:     #96421F;
  --accent-2:   #C2683F;

  --serif: 'Noto Serif KR', 'Nanum Myeongjo', Georgia, serif;
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --mono: 'SFMono-Regular', 'JetBrains Mono', Consolas, monospace;

  --wrap: 1140px;
  --read: 680px;
  --gut: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.35; }
p { margin: 0 0 1.15em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
::selection { background: #E8DFC9; color: var(--ink); }

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.rule { border-top: 1px solid var(--rule); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 22px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); flex: none; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding-bottom: 18px; border-bottom: 1px solid var(--ink);
}
.section-head h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.section-head .more { font-size: 13px; color: var(--muted); white-space: nowrap; transition: color .2s; }
.section-head .more:hover { color: var(--accent); }

/* category quick-nav pills (insights.html) */
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 6px; }
.cat-pills a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: 999px; padding: 8px 18px;
  transition: background .2s, border-color .2s, color .2s;
}
.cat-pills a .n { font-family: var(--mono); font-size: 11px; color: var(--muted-2); transition: color .2s; }
.cat-pills a:hover, .cat-pills a:focus-visible,
.cat-pills a.active {
  color: #fff; background: var(--accent); border-color: var(--accent);
}
.cat-pills a:hover .n, .cat-pills a:focus-visible .n,
.cat-pills a.active .n { color: rgba(255,255,255,.75); }
.entry[hidden] { display: none; }
section[id] { scroll-margin-top: 84px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 68px; position: relative;
}

.brand { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }
.brand strong { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.brand span { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { position: relative; font-size: 14px; color: var(--ink-soft); padding: 4px 0; transition: color .2s; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s cubic-bezier(.2,.7,.3,1);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav .cta {
  border: 1px solid var(--ink); border-radius: 2px; padding: 7px 15px;
  font-size: 13px; font-weight: 500; background: var(--ink); color: var(--paper);
  transition: background .2s, color .2s, border-color .2s;
}
.nav .cta::after { display: none; }
.nav .cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
/* 현재 페이지일 때도 버튼 글자색이 유지되도록 (검은 배경에 검은 글씨 방지) */
.nav a.cta[aria-current="page"] { color: var(--paper); background: var(--accent); border-color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */

.hero { padding: 92px 0 0; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px; align-items: end; padding-bottom: 54px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 600; line-height: 1.3; letter-spacing: -0.045em; margin: 0 0 26px;
}
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ''; position: absolute; left: -2px; right: -2px; bottom: 0.08em;
  height: 0.34em; background: #E9DCC4; z-index: -1;
}
.hero .lede { font-size: 17px; color: var(--ink-soft); max-width: 46ch; margin: 0; }

.hero-side { border-left: 1px solid var(--rule); padding-left: 28px; }
.hero-side dl { margin: 0; display: grid; gap: 20px; }
.hero-side dt { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }
.hero-side dd { margin: 0; font-family: var(--serif); font-size: 15px; color: var(--ink); line-height: 1.5; }

/* ---------- Entry list ---------- */

.entries { list-style: none; margin: 0; padding: 0; }
.entry { border-bottom: 1px solid var(--rule-soft); transition: background .25s; }
.entry:hover { background: var(--paper-2); }
.entry > a {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) 132px;
  gap: 28px; align-items: baseline; padding: 26px 14px 26px 0;
  transition: padding .3s cubic-bezier(.2,.7,.3,1);
}
.entry:hover > a { padding-left: 14px; padding-right: 0; }
.entry .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent); padding-top: 4px; }
.entry .body h3 {
  font-family: var(--serif); font-size: 19px; font-weight: 500;
  letter-spacing: -0.025em; margin: 0 0 7px; transition: color .2s;
}
.entry:hover .body h3 { color: var(--accent); }
.entry .body p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.65; }
.entry .meta { text-align: right; font-size: 12px; color: var(--muted-2); letter-spacing: 0.02em; white-space: nowrap; }
.entry .meta .cat {
  display: block; color: var(--ink-soft); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px;
}

/* ---------- Tool grid ---------- */

.tool-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 300px));
  gap: 20px;
}
.tool-card {
  display: flex; flex-direction: column; gap: 18px;
  padding: 28px 26px; border: 1px solid var(--rule-soft); border-radius: 4px;
  background: var(--paper);
  transition: border-color .25s, transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s;
}
.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -18px rgba(23, 23, 15, 0.28);
}
.tool-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 4px; flex: none;
  background: var(--paper-2); color: var(--accent);
  transition: background .25s, color .25s;
}
.tool-card:hover .tool-icon { background: var(--accent); color: var(--paper); }
.tool-icon svg { width: 26px; height: 26px; }
.tool-cat {
  display: inline-block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 6px;
}
.tool-card h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 500;
  letter-spacing: -0.02em; margin: 0 0 8px; transition: color .2s;
}
.tool-card:hover h3 { color: var(--accent); }
.tool-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.65; }

.tool-card.is-soon { opacity: 0.55; cursor: default; }
.tool-card.is-soon:hover { border-color: var(--rule-soft); transform: none; box-shadow: none; }
.tool-card.is-soon:hover .tool-icon { background: var(--paper-2); color: var(--accent); }
.tool-card.is-soon:hover h3 { color: var(--ink); }
.tool-card .tool-soon-badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--muted-2); border: 1px solid var(--rule); border-radius: 100px;
  padding: 2px 9px; display: inline-block; margin-bottom: 6px;
}

/* ---------- Bands ---------- */

.band { padding: 84px 0; }
.band-tight { padding: 60px 0; }
.band-paper2 { background: var(--paper-2); }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 46px; border-top: 1px solid var(--rule); }
.points > div { padding: 30px 30px 30px 0; border-right: 1px solid var(--rule-soft); }
.points > div:last-child { border-right: 0; }
.points > div:not(:first-child) { padding-left: 30px; }
.points span { font-family: var(--mono); font-size: 11px; color: var(--accent); display: block; margin-bottom: 12px; }
.points h3 { font-family: var(--serif); font-size: 17px; font-weight: 500; margin: 0 0 9px; }
.points p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.7; }

/* ---------- CTA ---------- */

.cta-block {
  background: var(--ink); color: #EDEBE2; padding: 62px 56px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center;
}
.cta-block h2 { font-family: var(--serif); font-size: 27px; font-weight: 500; color: #fff; letter-spacing: -0.03em; margin: 0 0 12px; }
.cta-block p { margin: 0; font-size: 15px; color: #ABA795; max-width: 52ch; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: 14px 26px; border-radius: 2px; font-size: 15px; font-weight: 500;
  font-family: var(--sans); cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn .arw { transition: transform .25s; }
.btn:hover .arw { transform: translateX(4px); }

/* ---------- Article ---------- */

.article-head { padding: 76px 0 40px; border-bottom: 1px solid var(--ink); max-width: var(--read); }
.article-head .kicker { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.article-head h1 {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 40px);
  font-weight: 600; line-height: 1.38; letter-spacing: -0.04em; margin: 0 0 20px;
}
.article-head .sub { font-size: 16px; color: var(--muted); margin: 0 0 24px; }
.article-head .byline { font-size: 12px; color: var(--muted-2); letter-spacing: 0.03em; }

.prose { max-width: var(--read); padding: 40px 0 20px; font-size: 16.5px; line-height: 1.92; }
.prose > h2 { font-family: var(--serif); font-size: 23px; font-weight: 600; margin: 56px 0 18px; letter-spacing: -0.03em; }
.prose > h3 { font-size: 17px; font-weight: 600; margin: 36px 0 12px; color: var(--ink); }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 1.3em; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(150,66,31,.3); transition: border-color .2s; }
.prose a:hover { border-color: var(--accent); }

.prose blockquote {
  margin: 30px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: 17px; color: var(--ink); line-height: 1.8;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14.5px; line-height: 1.6; }
.prose th, .prose td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.prose th { border-bottom: 1px solid var(--ink); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; color: var(--ink); }
.prose td { color: var(--ink-soft); }

.callout {
  margin: 32px 0; padding: 22px 24px; background: var(--paper-2);
  border-left: 2px solid var(--ink); font-size: 15px; line-height: 1.8;
}
.callout .label {
  display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 9px; font-weight: 600;
}
.callout p:last-child { margin-bottom: 0; }

.article-foot { max-width: var(--read); border-top: 1px solid var(--ink); margin-top: 46px; padding: 34px 0 0; }

/* ---------- TOC ---------- */
.toc { max-width: var(--read); margin: 32px 0 8px; padding: 20px 24px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; }
.toc .toc-label { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; font-weight: 600; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 7px; font-size: 14.5px; }
.toc a { color: var(--ink-soft); border-bottom: none; }
.toc a:hover { color: var(--accent); }

/* ---------- Inline figures ---------- */
.prose figure { margin: 36px 0; }
.prose figure img { width: 100%; border-radius: 8px; display: block; }
.prose figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; font-style: italic; }
.fig-placeholder {
  margin: 36px 0; border: 1px dashed var(--rule); border-radius: 8px;
  background: var(--paper-2); padding: 36px 24px; text-align: center;
}
.fig-placeholder .ph-icon { font-size: 26px; margin-bottom: 10px; opacity: .45; }
.fig-placeholder .ph-caption { font-size: 13.5px; color: var(--muted); font-style: italic; }
.fig-placeholder .ph-note { font-size: 10.5px; color: var(--muted-2); margin-top: 10px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Author + CTA foot ---------- */
.author-line { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--rule-soft); }
.author-line .av {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 16px;
}
.author-line .who strong { display: block; font-size: 14.5px; color: var(--ink); }
.author-line .who span { font-size: 12.5px; color: var(--muted); }

/* ---------- Form ---------- */

.form-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 72px; align-items: start; }
.field { margin-bottom: 22px; }
.field label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: 9px 0; border-radius: 0; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C7A6D' stroke-width='1.5'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 16px; padding-right: 24px;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field .hint { font-size: 12px; color: var(--muted-2); margin-top: 6px; letter-spacing: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 26px 0; line-height: 1.6; }
.consent input { width: 15px; height: 15px; margin-top: 3px; flex: none; accent-color: var(--accent); }

.checklist { list-style: none; padding: 0; margin: 26px 0 0; }
.checklist li {
  display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--rule-soft);
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.65;
}
.checklist li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 9px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--ink); margin-top: 96px; padding: 48px 0 56px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.site-footer .fbrand { font-family: var(--serif); font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a { transition: color .2s; }
.site-footer nav a:hover { color: var(--accent); }
.site-footer .copy { font-size: 12px; color: var(--muted-2); margin-top: 4px; }

/* ---------- Utilities ---------- */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.reveal {
  opacity: 0;
  transform: translateY(14px);
  /* JS가 로드되지 않아도 2초 뒤 반드시 노출되는 안전장치 */
  animation: revealFallback 0s 2s forwards;
}
.reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
@keyframes revealFallback { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  :root { --gut: 22px; }

  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 22px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px; }
  .nav a::after { display: none; }
  .nav .cta { margin-top: 14px; justify-content: center; border-bottom: 0; }

  .hero { padding: 54px 0 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; padding-bottom: 40px; }
  .hero-side { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 26px; }
  .hero-side dl { grid-template-columns: 1fr 1fr; gap: 22px; }

  .entry > a { grid-template-columns: 44px minmax(0,1fr); gap: 16px; padding: 22px 0; }
  .entry:hover > a { padding-left: 8px; }
  .entry .meta { grid-column: 2; text-align: left; margin-top: 8px; }
  .entry .meta .cat { display: inline; margin-right: 10px; }

  .points { grid-template-columns: 1fr; }
  .points > div { border-right: 0; border-bottom: 1px solid var(--rule-soft); padding: 24px 0; }
  .points > div:not(:first-child) { padding-left: 0; }
  .points > div:last-child { border-bottom: 0; }

  .cta-block { grid-template-columns: 1fr; padding: 40px 28px; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; gap: 44px; }
  .field-row { grid-template-columns: 1fr; gap: 22px; }

  .band { padding: 58px 0; }
  .prose { font-size: 16px; }
  .site-footer { margin-top: 64px; }
}
