:root{
  --bg: #0b0d10;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.04);
  --stroke: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --muted2: rgba(255,255,255,.42);

  --lime: #b8d62a;
  --lime2: #9cc21f;

  --shadow: 0 24px 80px rgba(0,0,0,.55);
  --radius: 22px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "Pretendard", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 70% 10%, rgba(184,214,42,.15), transparent 55%),
              radial-gradient(900px 500px at 10% 0%, rgba(255,255,255,.08), transparent 60%),
              var(--bg);
  color: var(--text);
  overflow-x:hidden;
}

a{ color: inherit; text-decoration: none; }
.container{
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* 은은한 글로우 */
.bg-glow{
  position: fixed;
  inset: -40vh -40vw;
  background: radial-gradient(circle at 30% 20%, rgba(184,214,42,.14), transparent 55%),
              radial-gradient(circle at 70% 30%, rgba(255,255,255,.06), transparent 60%);
  filter: blur(40px);
  pointer-events:none;
  z-index:-1;
}

/* Header */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(11,13,16,.85), rgba(11,13,16,.55));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner{
  height: 72px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand-mark{
  width: 12px; height: 12px;
  background: var(--lime);
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(184,214,42,.12);
}
.brand-text{ font-weight: 700; letter-spacing: .2px; }

.nav{
  display:flex;
  align-items:center;
  gap: 18px;
}
.nav-link{
  padding: 10px 10px;
  border-radius: 999px;
  color: var(--muted);
  transition: .2s ease;
}
.nav-link:hover{ color: var(--text); background: rgba(255,255,255,.06); }
.nav-link.is-active{ color: var(--lime); }
.nav-link.pill{
  padding: 10px 16px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
}

/* 햄버거 */
.icon-btn{
  display:none;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
}
.hamburger{
  position: relative;
  padding:0;
}
.hamburger span{
  position:absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
  transition: .2s ease;
}
.hamburger span:nth-child(1){ top: 14px; }
.hamburger span:nth-child(2){ top: 21px; opacity: .9; }
.hamburger span:nth-child(3){ top: 28px; }

.hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero{
  padding: 34px 0 18px;
}
.hero-inner{
  position: relative;
}
.hero-card{
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  overflow:hidden;
  padding: 54px 44px 0;
  min-height: 420px;
}
.hero-title{
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: .85;
  font-size: clamp(56px, 9vw, 120px);
  margin: 6px 0 18px;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  text-shadow: 0 0 24px rgba(255,255,255,.08);
}
.hero-desc{
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px;
  font-size: 15px;
}
.hero-cta{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 46px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 13px;
  transition: .2s ease;
}
.btn-primary{
  background: linear-gradient(180deg, var(--lime), var(--lime2));
  color: #12140f;
  box-shadow: 0 10px 30px rgba(184,214,42,.18);
}
.btn-primary:hover{ transform: translateY(-1px); }
.btn-ghost{
  background: rgba(184,214,42,.10);
  border-color: rgba(184,214,42,.30);
  color: var(--text);
}
.btn-ghost:hover{ background: rgba(184,214,42,.16); }

/* 웨이브 */
.hero-waves{
  position:absolute;
  left:0; right:0; bottom:-2px;
  height: 160px;
  opacity: .95;
}
.hero-waves svg{ width:100%; height:100%; display:block; }
.wave{ fill: rgba(255,255,255,.06); }
.w1{ opacity:.9; }
.w2{ opacity:.65; }
.w3{ opacity:.45; }

/* 오른쪽 도트 */
.dots{
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.45);
  background: transparent;
}
.dot.is-on{
  background: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.9);
}

/* Layout */
.main{ padding: 18px 0 56px; }
.layout{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: start;
}

.section-head{
  display:flex;
  align-items:center;
  gap: 14px;
  margin: 10px 0 18px;
}
.section-title{
  margin:0;
  font-size: 16px;
  letter-spacing: .02em;
  color: rgba(255,255,255,.86);
}
.section-line{
  flex:1;
  height: 1px;
  background: linear-gradient(to right, rgba(184,214,42,.5), rgba(255,255,255,.06));
}

/* Post cards */
.post-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.post-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  transition: .2s ease;
  overflow:hidden;
}
.post-card:hover{
  transform: translateY(-2px);
  border-color: rgba(184,214,42,.28);
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
}
.post-card-link{
  display:block;
  padding: 16px 16px 14px;
}
.post-meta{
  display:flex;
  gap: 10px;
  color: var(--muted2);
  font-size: 12px;
}
.post-title{
  margin: 10px 0 8px;
  font-size: 16px;
  color: rgba(255,255,255,.9);
  line-height: 1.35;
}
.post-excerpt{
  margin:0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.post-more{
  color: var(--lime);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
}

/* Article */
.article{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 22px 18px;
}
.article-title{
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.25;
}
.article-meta{
  color: var(--muted2);
  font-size: 12px;
}
.article-meta .sep{ margin: 0 6px; }
.article-body{
  margin-top: 18px;
  line-height: 1.85;
  color: rgba(255,255,255,.88);
}
.article-body img{
  max-width:100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
}
.article-foot{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size: 13px;
}

/* Sidebar */
.sidebar-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 16px;
  margin-bottom: 14px;
}
.sidebar-title{
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 10px;
  color: rgba(255,255,255,.86);
}

/* Footer */
.footer{
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 18px 0;
  color: var(--muted2);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
}
.footer a{ color: var(--muted); }
.footer a:hover{ color: var(--text); }

/* Paging */
.paging{
  margin-top: 18px;
  padding: 14px 0;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
  .sidebar{ order: 2; }
  .content{ order: 1; }
  .post-grid{ grid-template-columns: 1fr; }
  .dots{ display:none; }
}

@media (max-width: 760px){
  .icon-btn{ display:inline-flex; align-items:center; justify-content:center; }
  .nav{
    position: fixed;
    left: 20px; right: 20px;
    top: 84px;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(10,12,15,.92);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
  }
  .nav.is-open{ display:flex; }
  body.nav-open{ overflow:hidden; }
  .hero-card{ padding: 38px 18px 0; }
}

/* =========================
   Recent posts (Sidebar)
   ========================= */
.recent-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-item{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  transition: .2s ease;
}

.recent-item:hover{
  transform: translateY(-1px);
  border-color: rgba(184,214,42,.22);
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
}

.recent-thumb-link{
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.recent-thumb{
  width: 100%;
  height: 64px;
  object-fit: cover;
  display: block;
}

.recent-text{
  min-width: 0; /* 긴 제목 말줄임 안정화 */
}

.recent-title{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.35;
  color: rgba(255,255,255,.90);
  margin: 0 0 6px;
}

.recent-title:hover{
  color: var(--lime);
}

.recent-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted2);
}

.recent-cat{
  color: var(--muted);
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-cat:hover{
  color: rgba(255,255,255,.88);
}

.recent-cnt{
  color: var(--muted2);
  white-space: nowrap;
}

/* 썸네일 없는 글도 레이아웃 안 깨지게 */
.recent-item:has(.recent-thumb) {}

/* :has 지원이 애매한 브라우저 대비(티스토리 환경 고려) */
.recent-thumb-link:empty{
  display: none;
}

/* 모바일에서 조금 더 촘촘하게 */
@media (max-width: 760px){
  .recent-item{
    grid-template-columns: 56px 1fr;
    gap: 10px;
  }
  .recent-thumb{
    height: 56px;
  }
}
