@charset "utf-8";

:root{
  --bg:#fff;
  --ink:#111;
  --muted:#747474;
  --line:#e7e7e7;
  --soft:#f5f3ef;
  --max:1380px;
  --reading:760px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",sans-serif;word-break:keep-all}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input{font:inherit}
.skip{position:fixed;left:12px;top:-60px;z-index:100;background:#111;color:#fff;padding:12px 16px}
.skip:focus{top:12px}

.site-header{position:relative;background:#fff}
.header-inner{max-width:var(--max);height:130px;margin:auto;padding:0 32px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;border-bottom:1px solid var(--line)}
.brand{text-align:center;line-height:1}
.brand strong{display:block;font-family:Arial,Helvetica,sans-serif;font-size:52px;letter-spacing:.22em;font-weight:600;margin-right:-.22em}
.brand small{display:block;margin-top:14px;font-size:13px;letter-spacing:.45em;margin-right:-.45em}
.menu-button,.search-button{appearance:none;border:0;background:none;cursor:pointer}
.menu-button{width:36px;height:36px;padding:8px;justify-self:start}
.menu-button span{display:block;width:21px;height:1.5px;background:#111;margin:6px 0}
.search-button{justify-self:end;font-size:28px;line-height:1}
.main-nav{height:64px;max-width:var(--max);padding:0 32px;margin:auto;display:flex;align-items:center;justify-content:center;gap:58px;border-bottom:1px solid var(--line);font-size:12px;letter-spacing:.06em}
.main-nav a{padding:24px 0 21px;border-bottom:2px solid transparent}
.main-nav a:hover{border-color:#111}
.mobile-panel,.search-panel{position:absolute;left:0;right:0;z-index:20;background:#fff;border-bottom:1px solid var(--line);padding:32px;box-shadow:0 16px 35px rgba(0,0,0,.06)}
.mobile-nav{max-width:var(--max);margin:auto}
.mobile-nav ul{list-style:none;margin:0;padding:0}
.mobile-nav>ul{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.mobile-nav li a{display:block;padding:9px 0}
.search-form{max-width:760px;margin:auto}
.search-form>label{display:block;font-size:12px;letter-spacing:.18em;margin-bottom:12px}
.search-form>div{display:flex;border-bottom:1px solid #111}
.search-form input{flex:1;border:0;outline:0;padding:14px 0;font-size:20px}
.search-form button{border:0;background:none;cursor:pointer;font-size:11px;letter-spacing:.12em}

#content{min-height:55vh}
.archive-head{max-width:var(--max);margin:0 auto;padding:72px 32px 30px}
.archive-head p,.section-title p{font-size:11px;letter-spacing:.2em;margin:0 0 12px;color:var(--muted)}
.archive-head h1{font-family:Georgia,"Noto Serif KR",serif;font-weight:400;font-size:42px;margin:0}

.post-grid{max-width:var(--max);margin:auto;padding:0 32px 100px;display:grid;grid-template-columns:repeat(3,1fr);gap:58px 28px}
.post-card{min-width:0}
.post-image{position:relative;display:block;overflow:hidden;background:var(--soft);aspect-ratio:4/3}
.post-image img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.post-image:hover img{transform:scale(1.025)}
.image-fallback{position:absolute;inset:0;display:grid;place-items:center;color:#b7b0a7;letter-spacing:.25em;font-size:13px}
.post-image img+.image-fallback{display:none}
.post-copy{padding:18px 4px 0}
.eyebrow{font-size:11px;letter-spacing:.12em;text-transform:uppercase;margin:0 0 12px;color:var(--muted)}
.post-copy h2{font-family:Georgia,"Noto Serif KR",serif;font-size:25px;line-height:1.38;font-weight:400;margin:0}
.post-copy .summary{color:#666;font-size:14px;line-height:1.7;margin:12px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.post-copy time{display:block;color:#999;font-size:11px;margin-top:14px}

/* 첫 게시물을 매거진 히어로처럼 */
.post-grid .post-card:first-child{grid-column:1/-1;display:grid;grid-template-columns:1.7fr 1fr;background:var(--soft);min-height:480px}
.post-grid .post-card:first-child .post-image{aspect-ratio:auto;min-height:480px}
.post-grid .post-card:first-child .post-copy{padding:64px 54px;display:flex;flex-direction:column;justify-content:center}
.post-grid .post-card:first-child h2{font-size:43px;line-height:1.3}
.post-grid .post-card:first-child .summary{font-size:16px;-webkit-line-clamp:4}
.post-grid .post-card:first-child time{margin-top:24px}

.entry{padding-bottom:110px}
.entry-header{max-width:1000px;margin:0 auto;text-align:center;padding:100px 32px 65px}
.entry-header h1{font-family:Georgia,"Noto Serif KR",serif;font-size:56px;line-height:1.25;font-weight:400;margin:0}
.entry-meta{display:flex;justify-content:center;gap:18px;color:#999;font-size:12px;margin-top:28px}
.entry-body{max-width:var(--reading);margin:auto;padding:0 24px;font-size:17px;line-height:1.95}
.entry-body p{margin:0 0 1.7em}
.entry-body h2,.entry-body h3{font-family:Georgia,"Noto Serif KR",serif;font-weight:400;line-height:1.4;margin:2.2em 0 .8em}
.entry-body h2{font-size:34px}.entry-body h3{font-size:26px}
.entry-body img{width:auto;max-width:min(100%,1100px);height:auto;margin:44px auto}
.entry-body blockquote{margin:42px 0;padding:0 0 0 26px;border-left:2px solid #111;font-family:Georgia,"Noto Serif KR",serif;font-size:23px;line-height:1.65}
.entry-body a{text-decoration:underline;text-underline-offset:4px}
.entry-body table{width:100%;border-collapse:collapse;font-size:14px}
.entry-body th,.entry-body td{border-bottom:1px solid var(--line);padding:12px;text-align:left}
.entry-footer{max-width:var(--reading);margin:70px auto 0;padding:28px 24px;border-top:1px solid var(--line)}
.tags a{display:inline-block;padding:7px 11px;border:1px solid var(--line);margin:4px;border-radius:99px;font-size:12px}
.entry-actions{display:flex;justify-content:space-between;margin-top:24px}
.entry-actions button,.entry-actions a{border:0;background:none;padding:0;font-size:11px;letter-spacing:.1em;cursor:pointer}
.related{max-width:var(--max);margin:100px auto 0;padding:70px 32px 0;border-top:1px solid var(--line)}
.section-title h2{font-family:Georgia,serif;font-size:38px;font-weight:400;margin:0 0 34px}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.related-card img{width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--soft)}
.related-card p{font-size:10px;letter-spacing:.12em;color:#888;margin:14px 0 7px}
.related-card h3{font-family:Georgia,"Noto Serif KR",serif;font-size:20px;font-weight:400;margin:0}

.simple-page{max-width:900px;margin:auto;padding:90px 32px 120px}
.simple-page h1{font-family:Georgia,serif;font-size:48px;font-weight:400}
.tag-cloud a{display:inline-block;margin:5px;padding:8px 13px;border:1px solid var(--line);border-radius:99px}

.pagination{max-width:var(--max);margin:0 auto 90px;padding:30px 32px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;font-size:11px;letter-spacing:.1em}
.pagination .next{justify-self:end}
.pagination .numbers{display:flex;gap:8px}
.pagination .numbers a{width:30px;height:30px;display:grid;place-items:center}
.pagination .selected{background:#111;color:#fff}

.site-footer{background:#111;color:#fff;padding:68px max(32px,calc((100vw - var(--max))/2 + 32px));display:grid;grid-template-columns:1fr auto;gap:50px}
.site-footer strong{font-family:Arial,sans-serif;font-size:32px;letter-spacing:.2em}
.site-footer p{color:#aaa;font-size:13px}
.footer-links{display:flex;gap:24px;font-size:11px;letter-spacing:.09em}
.site-footer small{grid-column:1/-1;color:#666;border-top:1px solid #333;padding-top:28px}

@media(max-width:900px){
  .header-inner{height:95px;padding:0 20px}
  .brand strong{font-size:33px}
  .brand small{font-size:9px;margin-top:10px}
  .main-nav{display:none}
  .mobile-panel,.search-panel{padding:24px 20px}
  .mobile-nav>ul{grid-template-columns:repeat(2,1fr)}
  .archive-head{padding:52px 20px 24px}
  .archive-head h1{font-size:33px}
  .post-grid{padding:0 20px 70px;grid-template-columns:repeat(2,1fr);gap:42px 16px}
  .post-grid .post-card:first-child{display:block;min-height:0}
  .post-grid .post-card:first-child .post-image{min-height:0;aspect-ratio:4/3}
  .post-grid .post-card:first-child .post-copy{padding:28px 24px 34px}
  .post-grid .post-card:first-child h2{font-size:31px}
  .entry-header{padding:70px 22px 45px}
  .entry-header h1{font-size:39px}
  .related{padding:52px 20px 0}
  .related-grid{grid-template-columns:repeat(2,1fr)}
  .site-footer{grid-template-columns:1fr;padding:55px 24px}
  .footer-links{flex-wrap:wrap}
}
@media(max-width:560px){
  .post-grid{grid-template-columns:1fr}
  .post-grid .post-card:first-child h2{font-size:28px}
  .post-copy h2{font-size:23px}
  .post-copy .summary{display:none}
  .entry-header h1{font-size:34px}
  .entry-body{font-size:16px;padding:0 20px}
  .entry-body h2{font-size:29px}
  .related-grid{grid-template-columns:1fr}
  .pagination .numbers{display:none}
}

/* =====================================================
   NAROVA EDITORIAL ARTICLE FORMAT v1.0
   글 본문(.entry-body) 안에서만 작동합니다.
   홈/목록/헤더 디자인에는 영향을 주지 않습니다.
===================================================== */
.entry-body .nv-article{max-width:920px;margin:0 auto;color:#171717}
.entry-body .nv-article *{box-sizing:border-box}
.entry-body .nv-article p{margin:0 0 1.65em}
.entry-body .nv-opening{background:#111;color:#f7f4ed;margin:0 0 74px;padding:72px 64px;min-height:520px;display:flex;flex-direction:column;justify-content:center}
.entry-body .nv-opening .nv-label{font-family:Arial,"Noto Sans KR",sans-serif;font-size:10px;letter-spacing:.18em;text-transform:uppercase;margin:0 0 70px;color:#d5d1c9}
.entry-body .nv-opening h2{color:#fff;font-family:Georgia,"Noto Serif KR",serif;font-size:54px;line-height:1.28;font-weight:400;letter-spacing:-.04em;margin:0}
.entry-body .nv-opening .nv-line{width:170px;height:1px;background:rgba(255,255,255,.45);margin:34px 0 25px}
.entry-body .nv-opening .nv-deck{font-size:16px;line-height:1.9;color:#d8d4cc;margin:0;max-width:500px}
.entry-body .nv-lead{font-family:Georgia,"Noto Serif KR",serif;font-size:30px;line-height:1.65;margin:0 0 42px;letter-spacing:-.025em}
.entry-body .nv-copy{max-width:690px;margin:0 auto;font-size:17px;line-height:2.15}
.entry-body .nv-photo{margin:70px calc(50% - 46vw);width:92vw;max-width:none}
.entry-body .nv-photo img{display:block;width:100%;max-width:none;height:auto;margin:0;filter:grayscale(100%)}
.entry-body .nv-caption{font-family:Arial,"Noto Sans KR",sans-serif;font-size:10px;line-height:1.5;letter-spacing:.08em;color:#888;margin:10px 0 0;text-align:right}
.entry-body .nv-question{margin:90px 0;padding:72px 34px;text-align:center;background:#efede7}
.entry-body .nv-question p{font-family:Georgia,"Noto Serif KR",serif;font-size:38px;line-height:1.65;margin:0;letter-spacing:-.035em}
.entry-body .nv-quote{margin:88px auto;padding:0;max-width:760px;border:0;text-align:center}
.entry-body .nv-quote:before{content:'“';display:block;font-family:Georgia,serif;font-size:74px;line-height:.75;margin-bottom:20px}
.entry-body .nv-quote p{font-family:Georgia,"Noto Serif KR",serif;font-size:30px;line-height:1.7;margin:0}
.entry-body .nv-quote cite{display:block;margin-top:24px;font-family:Arial,"Noto Sans KR",sans-serif;font-style:normal;font-size:10px;letter-spacing:.14em;color:#777}
.entry-body .nv-section{margin:90px 0 34px;padding-top:26px;border-top:1px solid #222}
.entry-body .nv-section span{display:block;font-family:Arial,"Noto Sans KR",sans-serif;font-size:10px;letter-spacing:.16em;color:#777;margin-bottom:18px}
.entry-body .nv-section h2{font-family:Georgia,"Noto Serif KR",serif;font-size:40px;line-height:1.4;font-weight:400;margin:0;letter-spacing:-.035em}
.entry-body .nv-ending{margin:100px 0 20px;padding:80px 60px;background:#f0eee8;text-align:center}
.entry-body .nv-ending strong{display:block;font-family:Georgia,"Noto Serif KR",serif;font-size:35px;line-height:1.55;font-weight:400;margin-bottom:34px}
.entry-body .nv-ending p{font-size:17px;line-height:2;margin:0 auto;max-width:600px}
.entry-body .nv-sign{margin-top:50px;font-family:Arial,"Noto Sans KR",sans-serif;font-size:10px;line-height:1.8;letter-spacing:.16em}
@media(max-width:720px){
  .entry-body .nv-opening{margin-left:-20px;margin-right:-20px;padding:58px 25px;min-height:460px}
  .entry-body .nv-opening .nv-label{margin-bottom:52px}
  .entry-body .nv-opening h2{font-size:40px}
  .entry-body .nv-lead{font-size:25px}
  .entry-body .nv-copy{font-size:16px;line-height:2}
  .entry-body .nv-photo{margin:54px -20px;width:calc(100% + 40px)}
  .entry-body .nv-question{margin:65px -20px;padding:60px 24px}
  .entry-body .nv-question p{font-size:30px}
  .entry-body .nv-quote{margin:66px 0}
  .entry-body .nv-quote p{font-size:25px}
  .entry-body .nv-section{margin-top:70px}
  .entry-body .nv-section h2{font-size:32px}
  .entry-body .nv-ending{margin:76px -20px 0;padding:64px 24px}
  .entry-body .nv-ending strong{font-size:29px}
}

/* v1.0 header interaction hardening */
.mobile-panel[hidden],.search-panel[hidden]{display:none!important}
.mobile-panel,.search-panel{top:100%;z-index:999}
.mobile-nav{max-width:var(--max);margin:0 auto}
.mobile-category-list{width:100%}
.mobile-category-list>ul{margin:0;padding:0;list-style:none}
.menu-button,.search-button{position:relative;z-index:1000;touch-action:manipulation}
@media (max-width:760px){.mobile-panel{padding:24px 20px}}

/* =====================================================
   NAROVA CATEGORY INDEX v2.0
   HOME은 그대로 두고 /category/ 페이지에서만 적용
===================================================== */
.archive-description,.archive-count{display:none}

body.is-category-page .archive-head{
  max-width:var(--max);
  margin:0 auto;
  padding:86px 32px 48px;
  border-bottom:1px solid var(--ink);
}
body.is-category-page .archive-head .archive-kicker{
  margin:0 0 18px;
  font-size:10px;
  letter-spacing:.18em;
  color:#8b8b8b;
}
body.is-category-page .archive-head h1{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  font-size:clamp(48px,6vw,84px);
  line-height:.95;
  font-weight:500;
  letter-spacing:.035em;
}
body.is-category-page .archive-description{
  display:block;
  margin:26px 0 0;
  font-family:Georgia,"Noto Serif KR",serif;
  font-size:19px;
  line-height:1.6;
  color:#555;
}
body.is-category-page .archive-count{
  display:block;
  margin:42px 0 0;
  font-size:10px;
  letter-spacing:.15em;
  color:#777;
}
body.is-category-page .archive-count strong{color:#111;font-weight:500}

body.is-category-page .post-grid{
  counter-reset:narova-category-item;
  max-width:var(--max);
  margin:0 auto;
  padding:22px 32px 92px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:48px;
  row-gap:0;
}
body.is-category-page .post-card,
body.is-category-page .post-grid .post-card:first-child{
  counter-increment:narova-category-item;
  position:relative;
  min-width:0;
  min-height:0;
  padding:30px 0 32px 68px;
  border-bottom:1px solid var(--line);
  background:transparent;
  display:grid;
  grid-template-columns:minmax(150px,31%) minmax(0,1fr);
  gap:24px;
  align-items:start;
}
body.is-category-page .post-card::before{
  content:counter(narova-category-item,decimal-leading-zero);
  position:absolute;
  left:0;
  top:33px;
  font-size:10px;
  letter-spacing:.12em;
  color:#a6a6a6;
}
body.is-category-page .post-image,
body.is-category-page .post-grid .post-card:first-child .post-image{
  position:relative;
  width:100%;
  min-height:0;
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--soft);
}
body.is-category-page .post-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .45s ease,filter .45s ease;
}
body.is-category-page .post-card:hover .post-image img{transform:scale(1.025)}
body.is-category-page .post-copy,
body.is-category-page .post-grid .post-card:first-child .post-copy{
  min-width:0;
  padding:2px 0 0;
  display:block;
}
body.is-category-page .post-copy .eyebrow{
  margin:0 0 12px;
  font-size:9px;
  letter-spacing:.14em;
  color:#888;
}
body.is-category-page .post-copy h2,
body.is-category-page .post-grid .post-card:first-child h2{
  margin:0 0 14px;
  font-family:Georgia,"Noto Serif KR",serif;
  font-size:clamp(21px,1.65vw,29px);
  line-height:1.38;
  font-weight:400;
  letter-spacing:-.025em;
}
body.is-category-page .post-copy h2 a{transition:color .2s ease}
body.is-category-page .post-card:hover .post-copy h2 a{color:#db4f17}
body.is-category-page .post-copy .summary,
body.is-category-page .post-grid .post-card:first-child .summary{
  display:-webkit-box;
  margin:0 0 16px;
  color:#666;
  font-size:13px;
  line-height:1.7;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.is-category-page .post-copy time,
body.is-category-page .post-grid .post-card:first-child time{
  display:block;
  margin:0;
  color:#999;
  font-size:10px;
}

/* 카테고리에서 목록만 표시: 티스토리가 목록과 글을 함께 렌더링하는 설정 대응 */
body.is-category-page #content > .entry{display:none}

/* HOME은 매거진 첫 화면 유지, 페이지 번호 없음 */
body.is-home-page .pagination{display:none}

/* 카테고리 하단 번호형 내비게이션 */
body.is-category-page .pagination{
  max-width:var(--max);
  margin:0 auto 100px;
  padding:34px 32px 0;
  border-top:1px solid #111;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  font-size:10px;
  letter-spacing:.14em;
}
body.is-category-page .pagination .prev,
body.is-category-page .pagination .next{padding:12px 0}
body.is-category-page .pagination .numbers{display:flex;gap:4px;align-items:center}
body.is-category-page .pagination .numbers a{
  width:38px;
  height:38px;
  display:grid;
  grid-auto-flow:column;
  place-content:center;
  gap:0;
  border-radius:0;
}
body.is-category-page .pagination .numbers a.selected,
body.is-category-page .pagination .numbers .selected{
  background:#111;
  color:#fff;
}
body.is-category-page .pagination .page-zero{display:inline}

@media(max-width:900px){
  body.is-category-page .archive-head{padding:60px 20px 36px}
  body.is-category-page .archive-head h1{font-size:52px}
  body.is-category-page .archive-description{font-size:17px}
  body.is-category-page .post-grid{padding:14px 20px 70px;grid-template-columns:1fr}
  body.is-category-page .post-card,
  body.is-category-page .post-grid .post-card:first-child{
    padding:26px 0 28px 48px;
    grid-template-columns:minmax(128px,34%) minmax(0,1fr);
    gap:20px;
  }
  body.is-category-page .post-card::before{top:29px}
  body.is-category-page .pagination{margin-bottom:70px;padding:28px 20px 0}
}
@media(max-width:560px){
  body.is-category-page .archive-head{padding-top:48px}
  body.is-category-page .archive-head h1{font-size:43px}
  body.is-category-page .archive-count{margin-top:30px}
  body.is-category-page .post-card,
  body.is-category-page .post-grid .post-card:first-child{
    padding:25px 0 30px;
    display:grid;
    grid-template-columns:30px 112px minmax(0,1fr);
    gap:13px;
  }
  body.is-category-page .post-card::before{position:static;grid-column:1;grid-row:1;color:#aaa;padding-top:2px}
  body.is-category-page .post-image,
  body.is-category-page .post-grid .post-card:first-child .post-image{grid-column:2;grid-row:1;aspect-ratio:1/1}
  body.is-category-page .post-copy,
  body.is-category-page .post-grid .post-card:first-child .post-copy{grid-column:3;grid-row:1;padding:0}
  body.is-category-page .post-copy .eyebrow{margin-bottom:7px}
  body.is-category-page .post-copy h2,
  body.is-category-page .post-grid .post-card:first-child h2{font-size:18px;margin-bottom:8px;line-height:1.35}
  body.is-category-page .post-copy .summary{display:none}
  body.is-category-page .pagination{grid-template-columns:auto 1fr auto;gap:10px}
  body.is-category-page .pagination .numbers{display:flex;justify-content:center;overflow:hidden}
  body.is-category-page .pagination .numbers a{width:32px;height:34px}
}
