:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666666;
  --line: #e5e5e5;
  --accent: #111111;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  word-break: keep-all;
}

a { color: var(--fg); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.primary-nav {
  display: flex;
  gap: 18px;
  flex: 1;
  flex-wrap: wrap;
}
.primary-nav .nav-link {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 2px;
}
.primary-nav .nav-link:hover {
  color: var(--accent);
  text-decoration: none;
}
.primary-nav .nav-link:hover::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--accent);
}
.meta-nav {
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* Main */
.site-main { padding: 60px 0 80px; min-height: 60vh; }

/* Hero */
.hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 60px;
}
.hero h1 {
  font-size: clamp(48px, 8vw, 84px);
  margin: 0 0 20px;
}
.hero-tagline {
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--muted);
  max-width: 720px;
  margin: 0;
}

/* Section title */
.section-title {
  font-size: 32px;
  margin: 0 0 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* Categories grid */
.categories { margin-bottom: 80px; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.category-card {
  background: var(--bg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  transition: background 0.2s ease;
}
.category-card:hover {
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}
.category-card .cat-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.category-card .cat-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.category-card:hover .cat-desc { color: rgba(255,255,255,0.8); }

/* Latest / post list */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px 32px;
}
.post-card {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.post-card h2, .post-card h3 {
  font-size: 22px;
  margin: 8px 0 12px;
}
.post-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--line);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.03); }
.post-card-body { display: contents; }
.post-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.post-category { font-weight: 700; color: var(--fg); }
.post-excerpt { color: var(--muted); font-size: 15px; }

/* Page hero (category, static) */
.page-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 50px;
}
.category-intro {
  max-width: 720px;
  margin: -30px 0 60px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}
.category-intro p { margin: 0 0 20px; }
.category-intro p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .category-intro { font-size: 16px; line-height: 1.7; }
}
.page-hero .kicker {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}
.page-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin: 0 0 16px;
}
.page-tagline {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
}

/* Post */
.post { max-width: 720px; margin: 0 auto; }
.post-header { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }

.post-hero {
  margin: 0 0 40px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--line);
}
.post-hero img,
.post-inline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.post-inline-image {
  margin: 2.2em 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--line);
}
/* 인물 위주 카테고리 — 얼굴이 상단에 있는 경우가 많아 더 위쪽 보존 */
.post-hero--k-drama img,  .post-inline-image--k-drama img,
.post-hero--k-movie img,  .post-inline-image--k-movie img,
.post-hero--k-pop img,    .post-inline-image--k-pop img,
.post-hero--k-fashion img,.post-inline-image--k-fashion img,
.post-hero--k-beauty img, .post-inline-image--k-beauty img {
  object-position: 50% 22%;
}
.image-credit {
  margin: 30px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  letter-spacing: 0.02em;
}
.image-credit a { color: var(--muted); text-decoration: underline; text-decoration-thickness: 1px; }
.post-header h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin: 12px 0 16px;
}
.post-lede {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.6;
}
.post-body {
  font-size: 18px;
  line-height: 1.8;
}
.post-body h2 {
  font-size: 26px;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}
.post-body h3 { font-size: 21px; margin-top: 1.4em; }
.post-body ul, .post-body ol { margin: 0 0 1.2em 1.4em; padding: 0; }
.post-body li { margin-bottom: 0.5em; }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0 0 0 20px;
  margin: 1.5em 0;
  color: var(--muted);
  font-style: italic;
}
.post-body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.post-footer { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); }
.tag-list {
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.tag-list li {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  padding: 4px 10px;
  color: var(--muted);
}

.post-cta {
  max-width: 720px;
  margin: 60px auto 0;
  padding: 32px;
  border: 1px solid var(--line);
  text-align: center;
}

/* Static page */
.static-page { max-width: 720px; margin: 0 auto; }
.page-header { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: clamp(36px, 5vw, 56px); }
.page-body { font-size: 18px; line-height: 1.8; }
.page-body h2 { font-size: 26px; margin-top: 1.6em; }

/* Empty state */
.empty-state {
  padding: 60px 0;
  color: var(--muted);
  text-align: center;
}
.link-back { color: var(--fg); text-decoration: underline; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .tagline { margin-bottom: 14px; }
.site-footer nav { display: flex; gap: 18px; margin-bottom: 18px; }
.site-footer .copy { font-size: 12px; }

/* ===== Mobile / responsive ===== */

/* Tablet & narrow desktop */
@media (max-width: 960px) {
  :root { --max: 100%; }
  .container { padding: 0 24px; }
  .hero h1 { font-size: 56px; }
}

/* Mobile (default phone sizes 480px~720px) */
@media (max-width: 720px) {
  .container { padding: 0 18px; }

  /* Header — explicit 2-row grid: brand+meta on row 1, primary-nav scrolls on row 2 */
  .site-header { padding: 10px 0 0; }
  .site-header .container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand meta"
      "nav   nav";
    align-items: center;
    column-gap: 16px;
    row-gap: 8px;
  }
  .brand {
    grid-area: brand;
    font-size: 18px;
    min-width: 0;
  }
  .meta-nav {
    grid-area: meta;
    font-size: 13px;
    gap: 14px;
  }
  .primary-nav {
    grid-area: nav;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0 -18px;
    border-top: 1px solid var(--line);
  }
  .primary-nav .nav-link {
    font-size: 11.5px;
    text-align: center;
    padding: 10px 4px;
    border-right: 1px solid var(--line);
    white-space: nowrap;
    letter-spacing: 0.04em;
  }
  .primary-nav .nav-link:nth-child(4n) { border-right: none; }
  .primary-nav .nav-link:nth-child(n+5) { border-top: 1px solid var(--line); }
  .primary-nav .nav-link:hover::after { display: none; }

  /* Main spacing */
  .site-main { padding: 32px 0 56px; min-height: 50vh; }

  /* Hero */
  .hero {
    padding: 48px 0 36px;
    margin-bottom: 36px;
  }
  .hero h1 { font-size: 40px; line-height: 1.1; }
  .hero-tagline { font-size: 16px; line-height: 1.55; }

  /* Section title */
  .section-title { font-size: 22px; margin-bottom: 22px; }

  /* Category grid → 1 column */
  .category-grid { grid-template-columns: 1fr; }
  .category-card {
    padding: 22px 20px;
    min-height: 0;
  }
  .category-card .cat-name { font-size: 19px; }
  .category-card .cat-desc { font-size: 14px; }

  /* Post list → 1 column */
  .post-list { grid-template-columns: 1fr; gap: 32px 0; }
  .post-card { padding-top: 22px; }
  .post-card h2, .post-card h3 { font-size: 19px; line-height: 1.3; }
  .post-meta { font-size: 12px; gap: 10px; }
  .post-excerpt { font-size: 14px; }

  /* Page hero */
  .page-hero { padding: 40px 0 28px; margin-bottom: 36px; }
  .page-hero .kicker { font-size: 11px; margin-bottom: 8px; }
  .page-hero h1 { font-size: 34px; }
  .page-tagline { font-size: 16px; }

  /* Post body */
  .post-header { margin-bottom: 32px; padding-bottom: 22px; }
  .post-header h1 { font-size: 30px; line-height: 1.18; }
  .post-lede { font-size: 16px; line-height: 1.55; }
  .post-body { font-size: 16.5px; line-height: 1.75; }
  .post-body h2 { font-size: 22px; margin-top: 1.5em; }
  .post-body h3 { font-size: 18px; margin-top: 1.3em; }
  .post-body ul, .post-body ol { margin-left: 1.2em; }

  /* Post CTA / footer */
  .post-cta { padding: 24px 18px; margin-top: 44px; }
  .post-footer { margin-top: 36px; padding-top: 18px; }

  /* Static page */
  .page-header h1 { font-size: 32px; }
  .page-body { font-size: 16.5px; }
  .page-body h2 { font-size: 22px; }

  /* Footer */
  .site-footer { padding: 32px 0 44px; }
  .site-footer nav { flex-direction: row; gap: 16px; flex-wrap: wrap; }
}

/* Small phones (≤ 380px — iPhone SE, older Androids) */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: 34px; }
  .hero-tagline { font-size: 15px; }
  .section-title { font-size: 20px; }
  .post-header h1 { font-size: 26px; }
  .post-body { font-size: 16px; }
  .post-body h2 { font-size: 20px; }
  .page-header h1 { font-size: 28px; }
  .category-card { padding: 18px 16px; }
  .category-card .cat-name { font-size: 18px; }
  .post-cta { padding: 20px 14px; }
}

/* Landscape phones — keep header tight */
@media (max-width: 720px) and (orientation: landscape) {
  .site-header { padding: 10px 0; }
  .hero { padding: 36px 0 28px; }
  .hero h1 { font-size: 36px; }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Comments */
.post-comments {
  max-width: 720px;
  margin: 56px auto 24px;
  padding: 0 4px;
}
.comments-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.comments-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.comments-empty {
  color: #888;
  font-size: 14px;
  padding: 14px 0;
  border-top: 1px solid #eee;
}
.comment-item {
  padding: 14px 0;
  border-top: 1px solid #eee;
}
.comment-item:last-child { border-bottom: 1px solid #eee; }
.comment-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.comment-name { font-size: 14px; color: #111; }
.comment-date { font-size: 12px; color: #888; }
.comment-body {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.comments-form {
  position: relative;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 20px;
  display: grid;
  gap: 12px;
}
.comments-form-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.comments-form-note {
  margin: -4px 0 4px;
  font-size: 12px;
  color: #888;
}
.comments-form label {
  display: block;
  font-size: 13px;
  color: #555;
}
.comments-form input,
.comments-form textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 11px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
}
.comments-form textarea { resize: vertical; min-height: 90px; }
.comments-form input:focus,
.comments-form textarea:focus {
  outline: none;
  border-color: #444;
}
.comments-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.comments-submit {
  justify-self: start;
  padding: 10px 22px;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.comments-submit:disabled { opacity: 0.5; cursor: wait; }
.comments-status {
  margin: 0;
  font-size: 13px;
  min-height: 1.2em;
}
@media (max-width: 600px) {
  .post-comments { margin-top: 40px; }
  .comments-row { grid-template-columns: 1fr; }
}

/* Touch targets */
@media (hover: none) and (pointer: coarse) {
  a { padding-block: 2px; }
  .primary-nav .nav-link { padding: 8px 0; }
  .meta-nav a { padding: 8px 0; }
}

/* ★ v0.7.1 (2026-05-10) — 어필리에이트·광고 모듈 */
.post-affiliates { margin: 32px 0; display: grid; gap: 14px; }
.aff-module {
  border: 1px solid var(--line, #e5e5e5);
  padding: 14px 16px;
  background: #fafafa;
}
.aff-module .aff-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.aff-module .aff-label { font-weight: 600; }
.aff-module .aff-disclosure {
  color: #888; font-size: 11px; font-weight: 400;
}
.aff-module .aff-card {
  display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: inherit;
}
.aff-module .aff-card strong { font-size: 17px; font-weight: 600; }
.aff-module .aff-card span { color: #555; font-size: 14px; }
.aff-module .aff-card:hover strong { text-decoration: underline; }

.ad-slot { margin: 24px 0; padding: 12px 0; text-align: center; }
.ad-slot .ad-label {
  font-size: 11px; color: #888; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 6px;
}

@media (max-width: 720px) {
  .aff-module { padding: 12px 14px; }
  .aff-module .aff-card strong { font-size: 16px; }
}
