/*
Theme Name: Vanilla World
Author: 5060 Play
Description: 바닐라 세상을 위한 깔끔한 한국형 카페·뉴스 블로그 테마입니다.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: vanilla-world
*/

:root {
  --vw-bg: #f3f1ec;
  --vw-paper: #ffffff;
  --vw-ink: #20231f;
  --vw-muted: #73786f;
  --vw-line: #deded7;
  --vw-primary: #2e5742;
  --vw-primary-dark: #1e3c2d;
  --vw-cream: #f3e3bf;
  --vw-cream-deep: #d7aa62;
  --vw-danger: #b4413e;
  --vw-radius: 10px;
  --vw-shadow: 0 12px 32px rgba(27, 40, 31, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--vw-ink);
  background: var(--vw-bg);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--vw-primary); }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.vw-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.vw-topbar {
  border-bottom: 1px solid rgba(255,255,255,.13);
  background: var(--vw-primary-dark);
  color: rgba(255,255,255,.8);
  font-size: 12px;
}
.vw-topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.vw-topbar-links { display: flex; gap: 14px; }
.vw-topbar a:hover { color: #fff; }

.vw-hero { background: linear-gradient(115deg, #284d3a 0%, #376b51 58%, #e6c98e 58%, #f1dfb8 100%); }
.vw-hero-inner { min-height: 185px; display: grid; grid-template-columns: 1fr 280px; align-items: center; gap: 46px; }
.vw-brand-kicker { margin: 0 0 7px; color: #f1d797; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.vw-brand { margin: 0; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 68px); line-height: 1; letter-spacing: -.04em; }
.vw-brand span { color: #f1d797; }
.vw-brand-copy { margin: 16px 0 0; max-width: 590px; color: rgba(255,255,255,.84); font-size: 15px; }
.vw-hero-card { padding: 20px 22px; border: 1px solid rgba(46,87,66,.18); border-radius: 12px; background: rgba(255,255,255,.77); backdrop-filter: blur(10px); }
.vw-hero-card strong { display: block; color: var(--vw-primary-dark); font-family: Georgia, serif; font-size: 24px; }
.vw-hero-card p { margin: 7px 0 0; color: #5f665e; font-size: 13px; }

.vw-nav { background: var(--vw-paper); border-bottom: 1px solid var(--vw-line); box-shadow: 0 3px 10px rgba(26,31,27,.04); }
.vw-nav-inner { min-height: 50px; display: flex; align-items: center; gap: 28px; }
.vw-home-link { color: var(--vw-primary); font-weight: 800; }
.vw-menu { display: flex; flex-wrap: wrap; gap: 3px 26px; margin: 0; padding: 0; list-style: none; }
.vw-menu a { display: block; padding: 14px 0 12px; border-bottom: 3px solid transparent; font-weight: 700; }
.vw-menu a:hover, .vw-menu .current-menu-item > a { border-bottom-color: var(--vw-primary); }

.vw-notice { margin: 16px auto 20px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--vw-line); background: var(--vw-paper); font-size: 13px; }
.vw-notice b { flex: 0 0 auto; padding: 2px 8px; border-radius: 3px; background: var(--vw-primary); color: #fff; font-size: 11px; }

.vw-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr) 180px; align-items: start; gap: 18px; padding-bottom: 50px; }
.vw-panel { border: 1px solid var(--vw-line); border-radius: var(--vw-radius); background: var(--vw-paper); box-shadow: var(--vw-shadow); }
.vw-panel + .vw-panel { margin-top: 14px; }
.vw-panel-head { padding: 14px 15px 10px; border-bottom: 2px solid var(--vw-primary); font-weight: 800; }
.vw-profile { padding: 17px 15px; }
.vw-profile-mark { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 50%; background: var(--vw-cream); color: var(--vw-primary-dark); font-family: Georgia, serif; font-size: 25px; font-weight: 800; }
.vw-profile h2 { margin: 0; font-size: 16px; }
.vw-profile p { margin: 7px 0 14px; color: var(--vw-muted); font-size: 12px; line-height: 1.6; }
.vw-write-button { display: block; padding: 10px 12px; border-radius: 5px; background: var(--vw-primary); color: #fff; text-align: center; font-weight: 800; }
.vw-write-button:hover { background: var(--vw-primary-dark); color: #fff; }
.vw-search { display: flex; margin-top: 10px; }
.vw-search input { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid var(--vw-line); border-radius: 4px 0 0 4px; }
.vw-search button { padding: 0 10px; border: 0; border-radius: 0 4px 4px 0; background: var(--vw-primary-dark); color: #fff; }
.vw-category-list, .vw-mini-list { margin: 0; padding: 7px 14px 12px; list-style: none; }
.vw-category-list li, .vw-mini-list li { border-bottom: 1px solid #ededE8; }
.vw-category-list li:last-child, .vw-mini-list li:last-child { border-bottom: 0; }
.vw-category-list a, .vw-mini-list a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; font-size: 13px; }
.vw-category-list small { color: #a1a59d; }

.vw-main { min-width: 0; }
.vw-section { margin-bottom: 18px; overflow: hidden; }
.vw-section-title { margin: 0; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--vw-line); background: #fafaf7; font-size: 18px; }
.vw-section-title span { color: var(--vw-muted); font-size: 12px; font-weight: 400; }
.vw-feature { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; padding: 16px; }
.vw-feature-image { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: linear-gradient(135deg, var(--vw-primary), var(--vw-cream)); }
.vw-feature-image img { width: 100%; height: 100%; object-fit: cover; }
.vw-feature-copy { align-self: center; }
.vw-category-badge { display: inline-block; margin-bottom: 7px; padding: 3px 8px; border-radius: 999px; background: #edf4ef; color: var(--vw-primary); font-size: 11px; font-weight: 800; }
.vw-feature-copy h2 { margin: 0; font-size: clamp(21px, 3vw, 30px); line-height: 1.35; }
.vw-feature-copy p { margin: 10px 0 0; color: var(--vw-muted); font-size: 13px; }
.vw-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 16px 17px; }
.vw-card-thumb { aspect-ratio: 4 / 3; display: block; overflow: hidden; border-radius: 5px; background: #eceae3; }
.vw-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vw-card h3 { margin: 8px 0 4px; font-size: 14px; line-height: 1.45; }
.vw-card time { color: #969a92; font-size: 11px; }

.vw-board { width: 100%; border-collapse: collapse; }
.vw-board th { padding: 9px 12px; border-bottom: 1px solid var(--vw-line); background: #f7f7f3; color: var(--vw-muted); font-size: 11px; text-align: left; }
.vw-board td { padding: 10px 12px; border-bottom: 1px solid #ecece7; font-size: 13px; vertical-align: middle; }
.vw-board tr:last-child td { border-bottom: 0; }
.vw-board .vw-board-cat { width: 84px; color: var(--vw-primary); font-size: 11px; }
.vw-board .vw-board-date { width: 72px; color: #999d95; font-size: 11px; text-align: right; }
.vw-board-title a { font-weight: 600; }

.vw-ad { min-height: 520px; display: grid; place-items: center; padding: 16px; border: 1px dashed #c8c8c0; background: rgba(255,255,255,.62); color: #a3a49d; font-size: 12px; text-align: center; }
.vw-ad-short { min-height: 180px; }
.vw-right-sticky { position: sticky; top: 18px; }

.vw-content { padding: 26px 28px; }
.vw-content-header { padding-bottom: 20px; border-bottom: 1px solid var(--vw-line); }
.vw-content-header h1 { margin: 8px 0; font-size: clamp(27px, 4vw, 42px); line-height: 1.3; }
.vw-meta { color: var(--vw-muted); font-size: 12px; }
.vw-entry { padding-top: 24px; font-size: 16px; line-height: 1.9; }
.vw-entry h2 { margin-top: 2em; }
.vw-entry blockquote { margin: 24px 0; padding: 12px 18px; border-left: 4px solid var(--vw-cream-deep); background: #fbf7ef; }
.vw-pagination { padding: 18px; text-align: center; }
.vw-pagination .page-numbers { display: inline-block; min-width: 32px; margin: 2px; padding: 5px 8px; border: 1px solid var(--vw-line); background: #fff; }
.vw-pagination .current { border-color: var(--vw-primary); background: var(--vw-primary); color: #fff; }
.vw-empty { padding: 45px 20px; color: var(--vw-muted); text-align: center; }

.vw-footer { border-top: 1px solid var(--vw-line); background: #e9e6df; }
.vw-footer-inner { padding: 30px 0 40px; display: flex; justify-content: space-between; gap: 30px; color: #6e736b; font-size: 12px; }
.vw-footer strong { color: var(--vw-primary-dark); font-family: Georgia, serif; font-size: 18px; }

@media (max-width: 980px) {
  .vw-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .vw-right { display: none; }
  .vw-hero-inner { grid-template-columns: 1fr 240px; }
}
@media (max-width: 720px) {
  .vw-wrap { width: min(100% - 20px, 1180px); }
  .vw-topbar-inner { justify-content: center; }
  .vw-topbar-inner > span { display: none; }
  .vw-hero { background: linear-gradient(145deg, #284d3a, #376b51); }
  .vw-hero-inner { min-height: 170px; grid-template-columns: 1fr; gap: 0; }
  .vw-hero-card { display: none; }
  .vw-brand { font-size: 46px; }
  .vw-nav-inner { align-items: flex-start; gap: 14px; overflow-x: auto; }
  .vw-menu { flex-wrap: nowrap; white-space: nowrap; }
  .vw-layout { grid-template-columns: 1fr; }
  .vw-left { order: 2; }
  .vw-main { order: 1; }
  .vw-left .vw-panel:not(:first-child) { display: none; }
  .vw-feature { grid-template-columns: 1fr; }
  .vw-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vw-board .vw-board-cat, .vw-board .vw-board-date { display: none; }
  .vw-content { padding: 22px 18px; }
  .vw-footer-inner { display: block; }
}
