:root{
  --bg:#ffffff;
  --fg:#111111;
  --muted:#6b7280;
  --line:#e9e9e9;
  --soft:#f6f6f6;

  --max: 1180px;
  --radius: 14px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:"Noto Sans KR", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:var(--bg);
  color:var(--fg);
}

a{ color:inherit; }
a:hover{ opacity:.85; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 16px 40px;
}

/* =========================
   Topbar
========================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.brand__logo{
  height: 80px;
  transform: scale(2.4);   /* 글자만 확대 느낌 */
  transform-origin: left center;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
}

.brand__mark{
  width: 34px;
  height: 34px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  display:grid;
  place-items:center;
  font-weight: 900;
}

.brand__name{
  font-weight: 900;
  letter-spacing: .5px;
}

.nav{
  display:flex;
  gap: 18px;
  align-items:center;
}

.nav a{
  text-decoration:none;
  font-size: 14px;
  font-weight: 700;
  color: rgba(0,0,0,.7);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
}

.nav a:hover{
  color: var(--fg);
  border-bottom-color: var(--fg);
}
.nav__link.is-active{
  color: var(--fg);
  font-weight: 900;
  border-bottom-color: var(--fg); /* 검은 선 */
}
.topbar__actions{
  display:flex;
  gap: 10px;
}

.iconbtn{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  cursor:pointer;
}

.iconbtn:hover{
  border-color: rgba(0,0,0,.25);
}

/* =========================
   Hero
========================= */
.hero{
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.hero__kicker{
  margin: 0 0 10px 0;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: rgba(0,0,0,.55);
  font-weight: 800;
}

.hero__title{
  margin: 0 0 10px 0;
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.4px;
  font-weight: 900;
}

.hero__desc{
  margin: 0 0 16px 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
}

.hero__cta{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: .78rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  text-decoration:none;
  font-weight: 800;
  font-size: 14px;
}

.btn:hover{ opacity:.9; }

.btn--ghost{
  background: transparent;
  color: var(--fg);
}

.btn--ghost:hover{
  background: var(--soft);
}

/* =========================
   Grid
========================= */
.grid{
  display:grid;
  grid-template-columns: 1fr 340px;
  gap: 26px;
  align-items:start;
}

.panel{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.panel__head{
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
}

.panel__title{
  margin:0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.panel__link{
  font-size: 13px;
  font-weight: 800;
  color: rgba(0,0,0,.65);
  text-decoration:none;
}

.panel__link:hover{
  color: var(--fg);
}

.panel__meta{
  font-size: 12px;
  color: rgba(0,0,0,.55);
  font-weight: 800;
}

/* Popular list */
.list{
  padding: 10px 14px 14px;
}

.item{
  display:grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.item:last-child{ border-bottom: none; }

.item__no{
  font-weight: 900;
  font-size: 13px;
  color: rgba(0,0,0,.45);
  letter-spacing: .8px;
  padding-top: 2px;
}

.item__title{
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
}

.item__title a{
  text-decoration:none;
}

.item__title a:hover{
  text-decoration: underline;
}

.item__desc{
  margin: 0 0 10px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.item__meta{
  display:flex;
  gap: 8px;
  align-items:center;
  font-size: 12px;
  color: rgba(0,0,0,.55);
  font-weight: 700;
}

.dot{ opacity:.6; }

/* Trending */
.rank{
  margin: 0;
  padding: 10px 14px 14px;
  list-style:none;
}

.rank__item{
  display:grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items:start;
}

.rank__item:last-child{ border-bottom:none; }

.rank__no{
  font-weight: 900;
  color: rgba(0,0,0,.5);
  font-size: 13px;
  padding-top: 1px;
}

.rank__title{
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.55;
}

.rank__title:hover{
  text-decoration: underline;
}

/* Side note */
.sideNote{
  margin: 0 14px 14px;
  padding: 12px 12px;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--line);
  background: var(--soft);
}

.sideNote__title{
  margin: 0 0 6px 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .8px;
  color: rgba(0,0,0,.65);
}

.sideNote__text{
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(0,0,0,.85);
}

/* =========================
   Footer
========================= */
.footer{
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 14px;
  flex-wrap:wrap;
}

.footer__brand{
  margin:0;
  font-weight: 900;
  letter-spacing: .5px;
}

.footer__desc{
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer__right{
  display:flex;
  gap: 14px;
  flex-wrap:wrap;
}

.footer__right a{
  font-size: 13px;
  font-weight: 800;
  color: rgba(0,0,0,.7);
  text-decoration:none;
  border-bottom: 1px solid transparent;
}

.footer__right a:hover{
  color: var(--fg);
  border-bottom-color: var(--fg);
}

.footer__copy{
  margin: 14px 0 0 0;
  color: rgba(0,0,0,.55);
  font-size: 12px;
}

/* =========================
   Popular with Thumbnail
========================= */

.item--with-thumb{
  display:grid;
  grid-template-columns: 1fr 160px;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.item__thumb{
  width:100%;
  aspect-ratio: 4 / 3;   /* 항상 동일 비율 */
  overflow:hidden;
  border-radius: 10px;
  background: #eee;
}

.item__thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transition: transform .3s ease;
}

.item--with-thumb:hover .item__thumb img{
  transform: scale(1.04);
}
.item__thumb{
  order: 2;
}
.item__body{
  order: 1;
}
/* 번호 위치 정리 */
.item--with-thumb .item__no{
  font-size:12px;
  color: rgba(0,0,0,.45);
  margin-bottom: 6px;
}

/* =========================
   CTA BAND (Magazine Style)
========================= */
.cta-band{
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #111;
  color: #fff;
}

.cta-band__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 20px;
  flex-wrap:wrap;
}

.cta-band__text h3{
  margin:0 0 6px 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.cta-band__text p{
  margin:0;
  font-size: 14px;
  color: rgba(255,255,255,.75);
}

.cta-band .btn{
  border-radius: 999px;
  padding: .75rem 1.1rem;
  font-weight: 800;
}

.cta-band .btn--primary{
  background: #fff;
  color: #111;
  border: 1px solid #fff;
}

.cta-band .btn--primary:hover{
  background: #f2f2f2;
}

.cta-band .btn--secondary{
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.cta-band .btn--secondary:hover{
  background: rgba(255,255,255,.1);
}


/* =========================
   Admin Feedback (Magazine)
========================= */
#admin-feedback{
  max-width: var(--max);
  margin: 40px auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
}

#admin-feedback h3{
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 900;
}

#admin-feedback textarea{
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  resize: none;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
}

#admin-feedback textarea:focus{
  outline: none;
  border-color: #111;
}

#admin-feedback button{
  margin-top: 12px;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

#admin-feedback button:hover{
  background: #000;
}


/* =========================
   Footer (Minimal B/W)
========================= */
.site-footer{
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.site-footer__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display:flex;
  justify-content:space-between;
  gap: 30px;
  flex-wrap:wrap;
}

.site-footer .col h4,
.site-footer .col h5{
  margin:0 0 10px 0;
  font-weight: 900;
}

.site-footer .col p,
.site-footer .col li{
  font-size: 13px;
  color: rgba(0,0,0,.7);
  line-height: 1.7;
}

.site-footer ul{
  list-style:none;
  padding:0;
  margin:0;
}

.site-footer a{
  text-decoration:none;
  color: rgba(0,0,0,.75);
}

.site-footer a:hover{
  color:#111;
  text-decoration: underline;
}


/* =========================
   Responsive
========================= */
@media (max-width: 768px){
  .cta-band__inner{
    flex-direction: column;
    align-items:flex-start;
  }

  .site-footer__inner{
    flex-direction: column;
  }
}

/* 모바일 대응 */
@media (max-width: 640px){
  .item--with-thumb{
    grid-template-columns: 1fr;
  }
}


/* =========================
   Responsive
========================= */
@media (max-width: 980px){
  .nav{ display:none; }
  .grid{ grid-template-columns: 1fr; }
}

@media (max-width: 480px){
  .item{ grid-template-columns: 38px 1fr; }
  .brand__name{ display:none; }
}

