/* ============================================================
   CINE FICTION — 개인 영화비평 아카이브
   ============================================================ */
:root{
  --paper:      #F1ECDD;
  --card:       #FAF7EE;
  --ink:        #1B1812;
  --ink-soft:   #4A4436;
  --muted:      #948C77;
  --red:        #B3271E;
  --border:     #1B1812;
  --border-soft:#D8CFB6;

  --serif-kr:  'Noto Serif KR', serif;
  --gothic-kr: 'Pretendard', -apple-system, sans-serif;
  --display:   'Montserrat', sans-serif;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--serif-kr);
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
::selection{ background:var(--red); color:var(--paper); }

.wrap{ max-width:1080px; margin:0 auto; padding:0 32px; }

/* ---------- masthead ---------- */
.masthead{ border-bottom:1px solid var(--border); }
.masthead .wrap.nav-flex{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 32px; flex-wrap:wrap; gap:16px 40px;
}
.nav-left{ display:flex; align-items:center; gap:28px; flex-shrink:0; }
.nav-right{ display:flex; align-items:center; gap:16px; flex-shrink:0; }

.brand{
  font-family:var(--display); font-weight:900; font-size:21px; letter-spacing:-0.01em;
}
.brand .dot{ color:var(--red); }
nav.primary{ display:flex; gap:22px; font-size:13px; color:var(--ink-soft); }
nav.primary a{ padding-bottom:3px; border-bottom:2px solid transparent; }
nav.primary a[data-active="true"]{ color:var(--ink); border-color:var(--red); }
nav.primary a:hover{ color:var(--ink); }

/* inline underline search */
.nav-search{ position:relative; display:flex; align-items:center; gap:8px; }
.nav-search input{
  width:110px; border:none; border-bottom:1px solid var(--muted); background:transparent;
  font-family:var(--serif-kr); font-size:12.5px; color:var(--ink); padding:2px 0; outline:none;
}
.nav-search input:focus{ border-color:var(--ink); }
.nav-search input::placeholder{ color:var(--muted); }
.search-toggle{
  background:none; border:none; cursor:pointer; color:var(--ink-soft);
  display:flex; align-items:center; padding:0;
}
.search-toggle:hover{ color:var(--red); }

.search-results{
  display:none; position:absolute; top:100%; right:0; margin-top:10px;
  width:280px; max-height:260px; overflow-y:auto;
  background:var(--card); border:1px solid var(--ink); border-radius:3px;
  padding:6px 10px; z-index:20;
}
.search-results.open{ display:block; }
.search-result{
  display:flex; align-items:center; gap:8px; padding:8px 2px; font-size:13px;
  border-bottom:1px dashed var(--border-soft);
}
.search-result:last-child{ border-bottom:none; }
.search-result .cat{ font-family:var(--display); font-size:10px; font-weight:900; color:var(--red); }
.search-empty{ font-size:12.5px; color:var(--muted); margin:4px 2px; }

.nav-divider{ width:1px; height:16px; background:var(--border-soft); display:inline-block; }

/* ---------- footer ---------- */
.footer-inner{ align-items:flex-start; }
.footer-right{ display:flex; align-items:center; gap:16px; }
.copy-note{
  font-family:var(--serif-kr); font-size:11px; color:var(--muted);
}
.nav-social{ display:flex; align-items:center; gap:12px; }
.nav-social a{ color:var(--ink-soft); display:flex; }
.nav-social a:hover{ color:var(--red); }

/* ---------- footer ---------- */
footer{ border-top:1px solid var(--border); margin-top:70px; padding:24px 0 40px; }
footer .wrap{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
  font-family:var(--display); font-size:11px; color:var(--muted);
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--display); font-size:12px; font-weight:900;
  border:1.5px solid var(--ink); padding:9px 16px; border-radius:3px;
  transition:background .15s ease, color .15s ease;
}
.btn:hover{ background:var(--ink); color:var(--paper); }

/* ============================================================
   HOME — hero (featured) + feed
   ============================================================ */
.eyebrow{
  font-family:var(--display); font-weight:900; font-size:11px; letter-spacing:0.06em;
  color:var(--red); margin:0 0 16px;
}
.mark{ position:relative; white-space:nowrap; }
.mark::before{
  content:""; position:absolute; left:-3px; right:-3px; bottom:1px; height:0.32em;
  background:var(--red); opacity:.28; z-index:0;
}
.mark span{ position:relative; }

.hero-section{ max-width:1320px; margin:0 auto; padding:0 12px; }

.hero-banner{
  display:block; width:100%; aspect-ratio:21/9; overflow:hidden;
  border:1px solid var(--border); background:var(--card);
  margin-top:0;
}
.hero-banner img{ width:100%; height:100%; object-fit:cover; display:block; }
.hero-banner .placeholder{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-size:12px; color:var(--muted); font-family:var(--display); text-align:center;
}

/* feed grid — used on home + board pages */
.feed-wrap{ padding-top:36px; padding-bottom:60px; }
.board-head{
  display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:12px;
  margin-bottom:22px;
}
.board-head h2{
  font-family:var(--gothic-kr); font-weight:800; font-size:15px; margin:0;
}
.view-toggle{ display:flex; gap:6px; font-family:var(--display); font-size:11px; }
.view-toggle button{
  background:var(--card); border:1px solid var(--border); color:var(--ink-soft);
  padding:6px 12px; border-radius:14px; cursor:pointer; font-family:var(--display); font-size:11px;
}
.view-toggle button.active{ background:var(--ink); color:var(--paper); border-color:var(--ink); }

.card-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:30px 26px;
  align-items:start;
}
@media (max-width:820px){ .card-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:560px){ .card-grid{ grid-template-columns:1fr; } }

.post-card{ position:relative; }
.post-card .card-cover{ position:absolute; inset:0; z-index:1; }
.post-card .media{
  height:150px; background:var(--card); border:1px solid var(--border-soft);
  display:flex; align-items:center; justify-content:center; overflow:hidden; margin-bottom:12px;
}
.post-card .media img{ width:100%; height:100%; object-fit:cover; }
.post-card .media .placeholder{ font-size:11px; color:var(--muted); font-family:var(--display); }

/* Essay 카테고리 카드만 세로(포트레이트) 비율로 */
.post-card--essay .media{
  height:auto; aspect-ratio:3/4;
}

/* 홈페이지 전용: 특정 글만 세로 2배 + 원본 비율 그대로(안 잘림) */
.post-card--home-tall .media{
  height:300px;
}
.post-card--home-tall .media img{
  object-fit:contain;
}
.post-card .cat{ font-family:var(--display); font-size:11px; font-weight:900; color:var(--red); margin:0 0 8px; }
.post-card h3{
  font-family:var(--gothic-kr); font-weight:700; font-size:16px; line-height:1.42; margin:0 0 10px;
}
.tag-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; position:relative; z-index:2; }
.tag-chip{
  font-size:10.5px; font-family:var(--serif-kr); border:1px solid var(--ink); padding:3px 10px; border-radius:12px;
  color:var(--ink-soft); transition:background .12s ease, color .12s ease; display:inline-block;
}
.tag-chip:hover{ background:var(--ink); color:var(--paper); }
.post-card .excerpt{ font-size:12.5px; color:var(--ink-soft); line-height:1.65; margin:0 0 10px; }
.read-link{
  font-size:12px; font-weight:600; color:var(--red); font-family:var(--gothic-kr);
  position:relative; z-index:2;
}

/* list view */
.list-view{ display:none; flex-direction:column; }
.list-view.active{ display:flex; }
.card-grid.hidden-view{ display:none; }
.list-row{
  display:flex; align-items:baseline; justify-content:space-between; gap:16px;
  padding:14px 0; border-bottom:1px dashed var(--border-soft); font-family:var(--gothic-kr);
}
.list-row .l-title{ font-size:14.5px; font-weight:600; }
.list-row .l-meta{ font-size:11.5px; color:var(--muted); font-family:var(--display); white-space:nowrap; }

/* ============================================================
   ABOUT page
   ============================================================ */
.hero-about{ padding-top:56px; padding-bottom:32px; border-bottom:1px solid var(--border); }

/* ---------- About (simple) ---------- */
.about-simple{ padding-top:80px; padding-bottom:100px; }
.about-simple-title{
  font-family:var(--display); font-weight:900; font-size:clamp(30px,5vw,44px);
  letter-spacing:-0.01em; margin:0 0 18px;
}
.about-simple-title .dot{ color:var(--red); }
.about-simple-dek{ font-size:15.5px; color:var(--ink-soft); margin:0; }
.about-simple-contact-text{ font-size:14px; color:var(--ink-soft); margin:0; }
.about-simple-contact-row{ display:flex; align-items:center; gap:12px; }
.contact-btn{
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--red); color:#fff; font-family:var(--display); font-weight:700; font-size:11.5px;
  padding:8px 16px; border-radius:6px; transition:background .15s ease, transform .1s ease;
}
.contact-btn:hover{ background:#8f1f18; transform:translateY(-1px); }

.about-index-list{ list-style:none; margin:0; padding:0; max-width:680px; font-size:14px; }
.about-index-list li{
  display:flex; justify-content:space-between; gap:20px; padding:5px 0;
  border-bottom:1px dashed var(--border-soft);
}
.about-index-list li span:first-child{ flex-shrink:0; color:var(--ink); }
.about-index-list li span:last-child{ text-align:right; color:var(--ink-soft); }
.hero-about h1{
  font-family:var(--gothic-kr); font-weight:800; font-size:clamp(30px,5vw,46px);
  line-height:1.3; margin:0 0 18px; max-width:14ch;
}
.hero-about .dek{ font-size:15px; color:var(--ink-soft); max-width:48ch; margin:0 0 26px; line-height:1.75; }
.hero-about .actions{ display:flex; gap:12px; flex-wrap:wrap; }

.about-grid{
  display:grid; grid-template-columns:1.15fr 0.85fr; gap:40px;
  padding:44px 0 60px;
}
@media (max-width:720px){ .about-grid{ grid-template-columns:1fr; } }
.about-grid .statement p{ margin:0 0 18px; font-size:15.5px; }
.about-grid .statement p:first-of-type::first-letter{
  font-family:var(--display); font-weight:900; font-size:44px; float:left; line-height:.78;
  padding:5px 8px 0 0; color:var(--red);
}
.sidebar{ border-left:1.5px solid var(--border); padding-left:24px; }
.sidebar h3{
  font-family:var(--display); font-size:11px; font-weight:900; letter-spacing:.06em;
  color:var(--muted); margin:0 0 14px;
}
.sidebar ul{ list-style:none; margin:0 0 28px; padding:0; font-size:13.5px; }
.sidebar li{
  padding:9px 0; border-bottom:1px dashed var(--border-soft);
  display:flex; justify-content:space-between; gap:12px;
}
.sidebar li span:last-child{ color:var(--ink-soft); font-family:var(--display); font-size:11.5px; }
.focus-strip{ display:flex; flex-wrap:wrap; gap:8px; }
.focus-strip span{
  font-size:11.5px; border:1px solid var(--ink); padding:5px 12px; border-radius:14px;
}

/* ============================================================
   VIDEO board — image-only masonry grid
   ============================================================ */
.video-masonry{
  columns:3 260px; column-gap:14px;
}
@media (max-width:820px){ .video-masonry{ columns:2 200px; } }
@media (max-width:560px){ .video-masonry{ columns:1; } }

/* 영상이 1~2개뿐일 때, 임시로 크게 보이는 버전 (영상이 늘어나면 다시 논의) */
.video-masonry--large{
  columns:1 960px;
}

.video-grid-item{
  display:block; position:relative; break-inside:avoid; margin-bottom:14px;
  overflow:hidden; background:var(--card); border:1px solid var(--border-soft);
}
.video-grid-item img{
  width:100%; display:block; transition:filter .3s ease, transform .4s ease;
}
.video-grid-item .placeholder{
  display:flex; align-items:center; justify-content:center; height:220px;
  font-size:11px; color:var(--muted); font-family:var(--display);
}
.video-grid-overlay{
  position:absolute; inset:0;
  background:rgba(241,236,221,0);
  display:flex; align-items:center; justify-content:center; text-align:center; padding:20px;
  transition:background .3s ease;
}
.video-grid-title{
  font-family:var(--gothic-kr); font-weight:700; font-size:15px; color:var(--ink);
  opacity:0; transform:translateY(6px);
  transition:opacity .3s ease, transform .3s ease;
}
.video-grid-item:hover img{ filter:brightness(1.15); transform:scale(1.02); }
.video-grid-item:hover .video-grid-overlay{ background:rgba(241,236,221,0.82); }
.video-grid-item:hover .video-grid-title{ opacity:1; transform:translateY(0); }

/* ============================================================
   POST detail page
   ============================================================ */
.post-head{ padding-top:52px; padding-bottom:26px; border-bottom:1px solid var(--border); }
.post-head .back{ font-family:var(--display); font-size:11px; color:var(--muted); display:inline-block; margin-bottom:24px; }
.post-head .back:hover{ color:var(--red); }
.post-head .film{ font-family:var(--display); font-size:12px; color:var(--red); font-weight:700; margin-bottom:12px; }
.post-head h1{
  font-family:var(--gothic-kr); font-weight:800; font-size:clamp(26px,4.5vw,40px);
  line-height:1.32; margin:0 0 18px; max-width:none;
}
.post-head .meta-row{ display:flex; gap:16px; flex-wrap:wrap; font-family:var(--display); font-size:11.5px; color:var(--muted); }

.post-hero-media{
  margin:32px 0 0; height:340px; background:var(--card); border-top:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.post-hero-media img{ width:100%; height:100%; object-fit:cover; }
.post-hero-media .placeholder{ font-size:12px; color:var(--muted); font-family:var(--display); }

/* 원본 비율 그대로, 자르거나 늘리지 않는 버전 */
.post-hero-media--natural{
  height:auto; max-height:none; border-top:1px solid var(--border);
}
.post-hero-media--natural img{
  width:100%; height:auto; object-fit:contain;
}

/* Video 카테고리 상세페이지 — 홈 히어로 배너와 동일한 21:9 와이드 배너 */
.post-hero-media--wide{
  height:auto; aspect-ratio:21/9; border-top:1px solid var(--border);
}
.post-hero-media--wide img{
  width:100%; height:100%; object-fit:cover;
}

.post-body{ padding-top:40px; padding-bottom:30px; font-size:16.5px; max-width:680px; }
.post-body p{ margin:0 0 22px; }
.post-body p.pull{
  font-family:var(--serif-kr); font-size:21px; line-height:1.55; color:var(--ink);
  margin:36px 0; padding-left:20px; border-left:3px solid var(--red);
}
.post-body figure{ margin:32px 0; }
.post-body figure img{ width:100%; border:1px solid var(--border); }
.post-body figure figcaption{
  font-family:var(--display); font-size:11px; color:var(--muted); margin-top:8px;
}
.post-body p.section-num{
  font-family:var(--display); font-weight:900; font-size:15px; color:var(--red);
  margin:44px 0 4px;
}
.post-divider{
  border:none; border-top:1px solid var(--ink); margin:48px 0; width:100%;
}
.post-body p.note{
  font-size:12px; color:var(--muted); line-height:1.6;
  border-top:1px solid var(--border-soft); padding-top:18px; margin-top:44px;
}
.post-body p.note + p.note{
  border-top:none; padding-top:0; margin-top:8px;
}

.video-embed{
  position:relative; width:100%; padding-top:56.25%; margin:36px 0;
  background:var(--card); border:1px solid var(--border);
}
.video-embed iframe{
  position:absolute; inset:0; width:100%; height:100%; border:0;
}

.rating-list{ margin:32px 0; }
.rating-row{
  display:flex; gap:16px; align-items:flex-start; padding:16px 0;
  border-bottom:1px solid var(--border-soft);
}
.rating-row:last-child{ border-bottom:none; }
.rating-thumb{
  width:64px; height:64px; flex-shrink:0; background:var(--card);
  border:1px solid var(--border); display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.rating-thumb img{ width:100%; height:100%; object-fit:cover; }
.rating-thumb .placeholder{ font-size:10px; color:var(--muted); font-family:var(--display); }
.rating-info{ flex:1; }
.rating-top{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.rating-top h3{
  font-family:var(--gothic-kr); font-weight:700; font-size:15px; margin:0;
}
.rating-top h3 .year{ font-family:var(--display); font-weight:700; font-size:11px; color:var(--muted); }
.stars{ display:flex; gap:2px; flex-shrink:0; color:var(--red); }
.rating-date{ font-family:var(--display); font-size:10.5px; color:var(--muted); margin:4px 0 0; }
.rating-comment{ font-size:13px; color:var(--ink-soft); margin:8px 0 0; line-height:1.6; }

.tag-row{
  display:flex; gap:8px; flex-wrap:wrap; padding-top:18px; padding-bottom:60px;
  border-top:1px dashed var(--border-soft); margin-top:10px;
}
.tag-row .tag-chip{ font-size:11px; }

.not-found{ padding-top:80px; padding-bottom:80px; text-align:center; }

/* ============================================================
   Subscribe page
   ============================================================ */
.subscribe-hero{ padding-top:56px; padding-bottom:40px; border-bottom:1px solid var(--border); max-width:640px; }
.subscribe-hero h1{
  font-family:var(--gothic-kr); font-weight:800; font-size:clamp(28px,4.5vw,42px);
  line-height:1.3; margin:0 0 18px;
}
.subscribe-hero p{ font-size:15px; color:var(--ink-soft); margin:0 0 24px; line-height:1.75; }
.subscribe-form{
  display:flex; gap:10px; flex-wrap:wrap; padding:20px 0;
}
.subscribe-form input[type="email"]{
  flex:1; min-width:220px; padding:12px 14px; border:1.5px solid var(--ink);
  background:var(--card); font-family:var(--serif-kr); font-size:14px; border-radius:3px;
}
.subscribe-note{ font-size:12px; color:var(--muted); margin-top:14px; font-family:var(--display); }
