/*
Theme Name: 라브리핑
Theme URI: https://tongtong95062.mycafe24.com
Author: 통통쓰
Author URI: https://tongtong95062.mycafe24.com
Description: AI 7명이 만드는 블로그 자동발행 공장 — 라브리핑 전용 클래식 테마. frozen HTML 본문과 일체감 있는 컬러/폰트, 카테고리별 accent, 최소 헤더/푸터.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: labriefing
Tags: blog, news, custom-colors, custom-menu, featured-images, threaded-comments
*/

/* ───────────────────────────────────────
   라브리핑 — frozen HTML 과 동일한 토큰
   ─────────────────────────────────────── */
:root {
  --cream:        #faf8f4;
  --cream2:       #f3f0e8;
  --navy:         #1a2744;
  --navy-deep:    #0f1a2e;
  --gold:         #b8963e;
  --gold-light:   #d4b668;
  --blue:         #2d5a7b;
  --blue-light:   #4a7ba6;
  --purple:       #6b4f8e;
  --purple-light: #9377b8;
  --teal:         #0d9488;
  --teal-light:   #2dd4bf;
  --warm:         #c75b3f;
  --green:        #059669;
  --ink:          #1a1a1f;
  --ink2:         #3d3d45;
  --ink3:         #6b6b78;
  --ink4:         #9ca3af;
  --line:         rgba(26, 39, 68, 0.08);
  --shadow-sm:    0 2px 8px rgba(26, 39, 68, 0.06);
  --shadow-md:    0 8px 24px rgba(26, 39, 68, 0.08);
  --shadow-lg:    0 16px 48px rgba(26, 39, 68, 0.10);
}

html { color-scheme: light only; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

/* ───────────────────────────────────────
   사이트 헤더
   ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-logo span { color: var(--gold); }
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  padding: 8px 14px;
  border-radius: 99px;
  transition: all .15s ease;
}
.site-nav a:hover { background: var(--cream2); color: var(--navy); }
.site-nav a.current { background: var(--navy); color: #fff; }

/* ───────────────────────────────────────
   메인 컨테이너
   ─────────────────────────────────────── */
.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-hero {
  text-align: center;
  margin-bottom: 48px;
}
.page-hero .kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border: 1px solid rgba(184, 150, 62, 0.3);
  border-radius: 99px;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 12px;
}
.page-hero .lead {
  font-size: 15px;
  color: var(--ink3);
  max-width: 560px;
  margin: 0 auto;
}

/* ───────────────────────────────────────
   카드 그리드 (홈 / 아카이브)
   ─────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, var(--gold));
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--card-accent, var(--gold));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 10px;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--card-accent, var(--gold)); }
.card-excerpt {
  font-size: 13px;
  color: var(--ink3);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}
.card-meta {
  font-size: 11px;
  color: var(--ink4);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-meta .author { color: var(--ink2); font-weight: 600; }

/* ───────────────────────────────────────
   카테고리별 accent (cat27/29/31/32)
   ─────────────────────────────────────── */
.cat-rani  { --card-accent: var(--gold);   }
.cat-kim   { --card-accent: var(--blue);   }
.cat-oh    { --card-accent: var(--purple); }
.cat-kana  { --card-accent: var(--teal);   }

/* ───────────────────────────────────────
   페이지네이션
   ─────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}
.pagination a, .pagination span {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  background: #fff;
  border: 1px solid var(--line);
}
.pagination .current {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.pagination a:hover { background: var(--cream2); }

/* ───────────────────────────────────────
   푸터
   ─────────────────────────────────────── */
.site-footer {
  background: var(--cream2);
  border-top: 1px solid var(--line);
  padding: 40px 24px;
  text-align: center;
  margin-top: 80px;
}
.site-footer .logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 6px;
}
.site-footer .logo span { color: var(--gold); }
.site-footer p {
  font-size: 12px;
  color: var(--ink4);
  margin: 4px 0;
}
.site-footer .credit {
  font-size: 11px;
  color: var(--ink4);
  margin-top: 12px;
}

/* ───────────────────────────────────────
   반응형
   ─────────────────────────────────────── */
@media (max-width: 720px) {
  .site-header-inner { flex-direction: column; height: auto; padding: 12px 20px; gap: 8px; }
  .site-nav { flex-wrap: wrap; justify-content: center; }
  .site-main { padding: 32px 16px 60px; }
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .page-hero h1 { font-size: 24px; }
}

/* ───────────────────────────────────────
   classic 폴백 (frozen 적용 안 된 글 본문)
   ─────────────────────────────────────── */
.entry-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 2;
  color: var(--ink2);
}
.entry-content h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.entry-content p { margin-bottom: 20px; }
