/* ---------- Design tokens ---------- */
:root{
  --bg:#ffffff;
  --text:#141414;
  --text-soft:#6b6b6b;
  --border:#ececec;
  --surface:#f7f7f7;

  --tag-daily:#2E7D6B;
  --tag-insight:#3457D5;
  --tag-marketing:#C0562C;

  --font-sans:'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;

  --container:1180px;
  --radius:6px;
  --transition:.3s ease;
}

*{box-sizing:border-box;margin:0;padding:0;}

body{
  font-family:var(--font-sans);
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}

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

/* ---------- Reveal animation ---------- */
.reveal{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.in-view{
  opacity:1;
  transform:translateY(0);
}

/* ---------- Header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid transparent;
  transition:border-color var(--transition);
}
.site-header.scrolled{
  border-color:var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
}
.logo{
  font-size:1.15rem;
  font-weight:800;
  letter-spacing:-.02em;
}
.header-links{
  display:flex;
  gap:20px;
}
.header-links a{
  font-size:.88rem;
  font-weight:500;
  color:var(--text-soft);
  transition:color var(--transition);
}
.header-links a:hover{color:var(--text);}

/* ---------- Featured post ---------- */
.featured-post{
  padding:56px 0 80px;
}
.featured-inner{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:56px;
  align-items:center;
}
.featured-media{
  aspect-ratio:4/3;
  border-radius:var(--radius);
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.5), transparent 45%),
    linear-gradient(150deg,#dfe3ea,#aeb6c4);
}
.eyebrow{
  display:inline-block;
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.02em;
  color:var(--tag-daily);
  margin-bottom:16px;
}
.featured-body h1{
  font-size:clamp(1.6rem, 3vw, 2.3rem);
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1.35;
  margin-bottom:18px;
}
.featured-excerpt{
  color:var(--text-soft);
  font-size:1rem;
  margin-bottom:20px;
}
.featured-date{
  font-size:.85rem;
  color:var(--text-soft);
}

/* ---------- Post grid ---------- */
.posts{
  padding:0 0 100px;
}
.post-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:40px 32px;
}
.post-card{
  display:block;
}
.post-card:hover h3{text-decoration:underline;text-underline-offset:3px;}
.post-thumb{
  aspect-ratio:4/3;
  border-radius:var(--radius);
  margin-bottom:16px;
  overflow:hidden;
  transition:transform var(--transition);
}
.post-thumb img,
.featured-media img,
.article-hero img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.post-card:hover .post-thumb{
  transform:translateY(-4px);
}
.post-tag{
  display:block;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.01em;
  margin-bottom:8px;
}
.tag-daily{color:var(--tag-daily);}
.tag-insight{color:var(--tag-insight);}
.tag-marketing{color:var(--tag-marketing);}

.post-card h3{
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:-.01em;
  line-height:1.4;
  margin-bottom:8px;
}
.post-date{
  font-size:.82rem;
  color:var(--text-soft);
}

/* Texture placeholder variants (stand-ins for real photography) */
.thumb-a{background:linear-gradient(150deg,#e4e7ec,#b7bfcc);}
.thumb-b{background:linear-gradient(150deg,#e9e4dc,#c9bba4);}
.thumb-c{background:linear-gradient(150deg,#e2e9e6,#a9c0b7);}
.thumb-d{background:linear-gradient(150deg,#ece2e2,#c8a9a9);}

.empty{
  padding:80px 0;
  text-align:center;
  color:var(--text-soft);
}
.sr-only{
  position:absolute;
  width:1px;height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb{
  font-size:.82rem;
  color:var(--text-soft);
  padding:20px 0 0;
}
.breadcrumb a{color:var(--text-soft);}
.breadcrumb a:hover{color:var(--text);text-decoration:underline;text-underline-offset:3px;}
.breadcrumb .sep{margin:0 6px;}
.breadcrumb [aria-current="page"]{color:var(--text);}

/* ---------- Category page ---------- */
.category-posts{padding-top:16px;}
.category-posts h1{
  font-size:clamp(1.6rem, 3vw, 2.2rem);
  font-weight:800;
  margin:8px 0 36px;
}
.post-tag[href]{cursor:pointer;}
.post-tag[href]:hover{text-decoration:underline;text-underline-offset:3px;}

/* ---------- 404 ---------- */
.not-found{
  padding:140px 0;
  text-align:center;
}
.not-found h1{
  font-size:1.8rem;
  font-weight:800;
  margin:12px 0;
}
.not-found p{color:var(--text-soft);margin-bottom:24px;}
.btn-home{
  display:inline-block;
  padding:12px 26px;
  border-radius:999px;
  background:var(--text);
  color:#fff;
  font-weight:700;
  font-size:.9rem;
}

/* ---------- Article (글 상세) ---------- */
.article{
  padding:40px 0 64px;
}
.article-hero{
  aspect-ratio:21/9;
  border-radius:var(--radius);
  overflow:hidden;
}
.article-head{
  max-width:760px;
  margin:48px auto 40px;
  padding:0 24px;
  text-align:center;
}
.article-meta{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  font-size:.85rem;
  color:var(--text-soft);
  margin-bottom:16px;
}
.article-meta .post-tag{margin-bottom:0;}
.article-head h1{
  font-size:clamp(1.7rem, 4vw, 2.6rem);
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1.35;
}
.article-body{
  max-width:680px;
  margin:0 auto;
  padding:0 24px;
  font-size:1.06rem;
  line-height:1.85;
  color:#262626;
}
.article-body > * + *{margin-top:1.3em;}
.article-body h2{
  font-size:1.45rem;
  font-weight:800;
  letter-spacing:-.01em;
  line-height:1.4;
  margin-top:2.4em;
}
.article-body h3{
  font-size:1.2rem;
  font-weight:700;
  margin-top:2em;
}
.article-body a{color:var(--tag-insight);text-decoration:underline;text-underline-offset:3px;}
.article-body img{
  width:100%;
  border-radius:var(--radius);
  margin:.5em 0;
}
.article-body ul,
.article-body ol{padding-left:1.3em;}
.article-body li + li{margin-top:.4em;}
.article-body blockquote{
  border-left:3px solid var(--text);
  padding:4px 0 4px 18px;
  color:var(--text-soft);
}
.article-body hr{
  border:none;
  text-align:center;
  margin:2.6em 0;
}
.article-body hr::after{
  content:'***';
  letter-spacing:.6em;
  color:var(--text-soft);
}
html{scroll-behavior:smooth;}
.article-body h2,
.article-body h3{scroll-margin-top:96px;}
.article-updated{
  font-size:.8rem;
}
.article-summary{
  background:var(--surface);
  border-radius:var(--radius);
  padding:22px 24px;
}
.summary-label,
.toc-title{
  font-size:.8rem;
  font-weight:800;
  color:var(--text);
  margin-bottom:8px;
}
.article-summary p:not(.summary-label),
.article-summary li{
  font-size:.98rem;
  line-height:1.7;
}
.article-summary ul{padding-left:1.2em;}
.article-toc{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px 24px;
}
.article-toc ol{
  list-style:none;
  padding-left:0;
  counter-reset:toc;
}
.article-toc li{
  font-size:.95rem;
  line-height:1.6;
  margin-top:6px;
}
.article-toc li:not(.toc-sub){counter-increment:toc;}
.article-toc li:not(.toc-sub)::before{
  content:counter(toc) ". ";
  color:var(--text-soft);
  font-weight:700;
}
.article-toc li.toc-sub{
  padding-left:1.4em;
  font-size:.88rem;
}
.article-toc a{
  color:var(--text);
  text-decoration:none;
}
.article-toc a:hover{text-decoration:underline;text-underline-offset:3px;}
.article-faq .faq-item{
  border-top:1px solid var(--border);
  padding:18px 0;
}
.article-faq .faq-item:last-child{border-bottom:1px solid var(--border);}
.article-faq h3{
  font-size:1.02rem;
  font-weight:700;
  margin:0 0 6px;
}
.article-faq h3::before{
  content:'Q. ';
  color:var(--tag-insight);
}
.article-faq p{
  font-size:.98rem;
  color:#3a3a3a;
}
.article-foot{
  max-width:680px;
  margin:56px auto 0;
  padding:0 24px;
}
.article-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  margin-bottom:40px;
}
.article-tags li{
  font-size:.82rem;
  color:var(--text-soft);
  background:var(--surface);
  padding:6px 12px;
  border-radius:999px;
}
.author-box{
  display:flex;
  gap:20px;
  align-items:center;
  padding:28px 0;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.author-photo{
  width:72px;
  height:72px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
}
.author-photo.placeholder{background:linear-gradient(150deg,#e4e7ec,#b7bfcc);}
.author-label{
  font-size:.75rem;
  font-weight:700;
  color:var(--text-soft);
}
.author-name{
  font-size:1.05rem;
  font-weight:800;
}
.author-bio{
  font-size:.9rem;
  color:var(--text-soft);
  margin-bottom:6px;
}
.author-links{
  display:flex;
  gap:14px;
  font-size:.82rem;
}
.author-links a{color:var(--text-soft);}
.author-links a:hover{color:var(--text);}
.related{
  padding:24px 0 100px;
}
.related-title{
  font-size:1.2rem;
  font-weight:800;
  margin-bottom:28px;
}

/* ---------- Footer ---------- */
.site-footer{
  border-top:1px solid var(--border);
  padding:40px 0;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}
.footer-name{
  font-weight:800;
}
.footer-links{
  display:flex;
  gap:18px;
}
.footer-links a{
  font-size:.85rem;
  color:var(--text-soft);
  transition:color var(--transition);
}
.footer-links a:hover{color:var(--text);}
.copyright{
  width:100%;
  font-size:.78rem;
  color:var(--text-soft);
  margin-top:8px;
}

/* ---------- Responsive ---------- */
@media (max-width:860px){
  .featured-inner{
    grid-template-columns:1fr;
    gap:28px;
  }
  .featured-media{aspect-ratio:16/10;}
  .post-grid{grid-template-columns:repeat(2, 1fr);}
  .article-hero{aspect-ratio:16/10;}
}

@media (max-width:560px){
  .header-links a:first-child{display:none;}
  .featured-post{padding:36px 0 56px;}
  .post-grid{grid-template-columns:1fr; gap:32px;}
  .posts{padding-bottom:70px;}
}
