/*
Theme Name: Wedmo
Theme URI: https://wedmo.kr
Description: wedmo.kr 프론트(Next.js) 디자인을 재현한 WP 단독 서빙 테마. globals.css 를 그대로 이식했다.
Author: Wedmo
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: wedmo
*/

:root {
  --font-serif: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-sans: 'Pretendard Variable', Pretendard, var(--font-inter), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Anvely Official Palette (Seamless Nude & Cream) */
  --color-bg: #FAF9F6;
  --color-surface: #FFFFFF;
  --color-text: #38312B; /* Soft Espresso */
  --color-text-light: #8A817A; /* Muted Warm Gray */
  --color-accent: #C26A4D; /* Terracotta — primary accent */
  --color-accent-light: #F2D8CB;
  --color-border: #EAE2DB;
  --color-white: #FFFFFF;
  
  --spacing-section: 5rem;
  --spacing-container: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: clip;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
*:focus:not(:focus-visible) {
  outline: none;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-container);
}

.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }

/* SaaS Category Pills */
.category-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 3rem;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.category-nav::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-light);
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
}

.category-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.category-pill.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* SaaS Cards */
.saas-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.saas-card:hover .img-zoom {
  transform: scale(1.05);
}

.img-zoom-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--color-surface);
  margin-bottom: 1.25rem;
}

.img-zoom {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.card-category {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.saas-card:hover .card-title {
  color: var(--color-accent);
}

.hover-text-accent {
  transition: color 0.2s ease;
}
.hover-text-accent:hover {
  color: var(--color-accent) !important;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.2s ease;
  position: relative;
  display: inline-block;
}

.nav-desktop {
  display: flex;
  gap: 2rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 50%;
  background-color: var(--color-accent);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  margin: 0;
}

.view-all {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
}

.view-all:hover {
  color: var(--color-text);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3rem 2rem;
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Page Layout */
.section {
  padding: 4rem 0 8rem;
}

.container-sm {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-container);
}

/* Typography utilities */
.text-serif {
  font-family: var(--font-serif);
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Animation utilities */
.delay-300 { animation-delay: 300ms; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background-color: var(--color-accent);
  color: var(--color-white);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  background-color: #A85638;
  border-color: #A85638;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  background-color: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-white);
}

/* Post content (rendered WordPress HTML) */
.post-content > * + * {
  margin-top: 1.5rem;
}

.post-content p {
  line-height: 1.8;
}

.post-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 3rem;
  letter-spacing: -0.02em;
}

.post-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2.5rem;
  letter-spacing: -0.02em;
}

.post-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2rem;
}

.post-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content a:hover {
  color: var(--color-text);
}

.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
}

.post-content li + li {
  margin-top: 0.5rem;
}

.post-content blockquote {
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--color-accent);
  background-color: var(--color-accent-light);
  color: var(--color-text);
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

.post-content img,
.post-content figure {
  border-radius: 8px;
  overflow: hidden;
  margin: 2rem 0;
}

.post-content figure img {
  margin: 0;
}

.post-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.75rem;
}

.post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background-color: var(--color-surface);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.post-content pre {
  background-color: #2E2824;
  color: #FAF9F6;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

.post-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

.post-content hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 3rem 0;
}

/* ============================================================
   Post-content callouts & highlights
   (Writer wraps content in a Group block, adds the class name
    via Advanced → "Additional CSS class".)
   ============================================================ */

.post-content .callout-tip,
.post-content .callout-info,
.post-content .callout-warning,
.post-content .callout-note {
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.post-content .callout-tip {
  background: var(--color-accent-light);
  border-left: 3px solid var(--color-accent);
}

.post-content .callout-info {
  background: #F0F4F8;
  border-left: 3px solid #6B8FA3;
}

.post-content .callout-warning {
  background: #FFF4E5;
  border-left: 3px solid #E0934A;
}

.post-content .callout-note {
  background: var(--color-surface);
  border-left: 3px solid var(--color-text-light);
}

/* Callout 내부의 자식 마진 조정 (위/아래 여백 중복 방지) */
.post-content .callout-tip > *:first-child,
.post-content .callout-info > *:first-child,
.post-content .callout-warning > *:first-child,
.post-content .callout-note > *:first-child {
  margin-top: 0;
}
.post-content .callout-tip > *:last-child,
.post-content .callout-info > *:last-child,
.post-content .callout-warning > *:last-child,
.post-content .callout-note > *:last-child {
  margin-bottom: 0;
}

/* 인라인 형광펜 — <span class="highlight">강조 문구</span> */
.post-content .highlight {
  background: linear-gradient(transparent 60%, var(--color-accent-light) 60%);
  padding: 0 0.1em;
}

/* 부드러운 강조 박스 — 강조 인용 같은 큰 한 줄 */
.post-content .lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-text);
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .section {
    padding: 2rem 0 4rem;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
  display: block;
  margin: 2.5px 0;
}

.nav-toggle-bar.open-top {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-bar.open-mid {
  opacity: 0;
}

.nav-toggle-bar.open-bot {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none !important;
  }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }
  .nav-mobile {
    display: flex;
    flex-direction: column;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
    padding: 0 1.5rem;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav-mobile.open {
    max-height: 360px;
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
  }
  .nav-link-mobile {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: color 0.2s;
  }
  .nav-link-mobile:hover {
    color: var(--color-accent);
  }
  .nav-link-mobile:last-child {
    border-bottom: 0;
  }
}

/* Breadcrumb */
.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li[aria-current='page'] {
  color: var(--color-text);
  font-weight: 500;
}

.breadcrumb-sep {
  color: var(--color-border);
  font-size: 0.95em;
}

/* ============================================================
   Homepage mobile layout fixes (responsiveness only)
   ============================================================ */

.home-layout {
  display: flex;
  gap: 5rem;
  align-items: flex-start;
}

.home-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
}

.home-main {
  flex: 1;
  min-width: 0;
}

.home-mobile-categories {
  display: none;
}

.home-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .home-layout { gap: 3rem; }
  .home-post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .home-layout {
    flex-direction: column;
    gap: 2rem;
  }
  .home-sidebar { display: none; }
  .home-mobile-categories {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .home-mobile-categories::-webkit-scrollbar { display: none; }
  .home-post-grid { grid-template-columns: 1fr; }
}

.postcard-featured {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .postcard-featured {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Post list (horizontal cards stacked vertically) */
.home-post-list {
  display: flex;
  flex-direction: column;
}

.postcard-list {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.postcard-list:last-child {
  border-bottom: 0;
}

.postcard-list-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  margin: 0;
}

.postcard-list-body {
  min-width: 0;
}

.postcard-list-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.6rem;
  text-wrap: pretty;
}

.postcard-list-title a {
  display: inline;
}

@media (max-width: 640px) {
  .postcard-list {
    grid-template-columns: 110px 1fr;
    gap: 1rem;
    padding: 1.25rem 0;
  }
  .postcard-list-title {
    font-size: 1rem;
  }
}

/* ============================================================
   Mobile-first blog home (max-width: 480px single column)
   ============================================================ */

.m-home {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 4rem;
}

/* Category tabs (horizontal scroll) */
.m-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1rem 1.25rem;
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.m-tabs::-webkit-scrollbar { display: none; }

.m-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-light);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.m-tab:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}
.m-tab.active {
  background-color: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-white);
}

/* Section */
.m-section {
  margin-bottom: 2rem;
}

.m-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.m-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--color-text);
}

.m-section-more {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
  transition: color 0.2s;
}
.m-section-more:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Hero card */
.m-hero-card {
  display: block;
  margin: 0 1rem 1.25rem;
  transition: transform 0.15s ease;
}
.m-hero-card:active {
  transform: scale(0.99);
}

.m-hero-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--color-accent-light);
  background-image: linear-gradient(90deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 100%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}

.m-hero-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-hero-card-body {
  padding: 14px 0 0;
}

.m-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.m-badge-new {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(232, 90, 44, 0.3);
}

.m-hero-card-title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--color-text);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-hero-card-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-light);
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-card-meta {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* List cards (left text + right thumbnail) */
.m-list {
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
}

.m-list-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.15s ease;
}
.m-list-card:last-child {
  border-bottom: 0;
}
.m-list-card:active {
  background-color: var(--color-accent-light);
}

.m-list-card-body {
  flex: 1;
  min-width: 0;
  padding-left: 0.5rem;
}

.m-list-card-source {
  font-size: 0.72rem;
  color: var(--color-accent);
  margin-bottom: 0.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.m-list-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0 0 0.3rem;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-list-card-desc {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--color-text-light);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-list-card-meta {
  font-size: 0.72rem;
  color: var(--color-text-light);
  margin-top: 0.4rem;
}

.m-list-card-thumb {
  flex-shrink: 0;
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--color-accent-light);
  background-image: linear-gradient(90deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 100%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}

.m-list-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CTA Banner */
.m-cta-banner {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  margin: 1.5rem 1rem;
  padding: 1.25rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 12px;
  transition: filter 0.15s ease;
}
.m-cta-banner:hover { filter: brightness(1.05); }
.m-cta-banner:active { filter: brightness(0.95); }

.m-cta-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.m-cta-banner-text {
  flex: 1;
  min-width: 0;
}

.m-cta-banner-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
  line-height: 1.35;
}

.m-cta-banner-sub {
  font-size: 0.78rem;
  opacity: 0.88;
  line-height: 1.45;
}

/* Skeleton pulse animation */
@keyframes skeleton-pulse {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

/* Empty/error state inside m-content */
.m-empty {
  padding: 4rem 1rem;
  text-align: center;
  color: var(--color-text-light);
}

/* PostCard shared primitives */
.postcard-image-fallback {
  width: 100%;
  height: 100%;
  background-color: var(--color-surface);
}

.postcard-meta {
  font-size: 0.75rem;
  color: var(--color-text-light);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: auto;
}
.postcard-meta-lg { font-size: 0.8rem; }
.postcard-meta-sep { font-size: 0.6rem; }

.postcard-category {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.postcard-category-lg {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.postcard-default-image {
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
}

.postcard-default-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.postcard-default-title a {
  display: inline;
}

.postcard-featured-image {
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  margin: 0;
  width: 100%;
  border: 1px solid var(--color-border);
}

.postcard-featured-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.postcard-featured-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   Site shell — body, header, footer
   ============================================================ */

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Reserve space for the floating sticky banner. */
  padding-bottom: 96px;
}
.site-main {
  flex: 1;
}

@media (min-width: 768px) {
  .site-shell {
    padding-bottom: 120px;
  }
}

.sticky-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 90;
  width: calc(100% - 32px);
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.sticky-banner__link {
  display: block;
  line-height: 0;
  border-radius: inherit;
  overflow: hidden;
  transition: opacity 0.2s ease;
}
.sticky-banner__link:hover {
  opacity: 0.95;
}
.sticky-banner__link picture {
  display: block;
}
.sticky-banner__link img {
  display: block;
  width: 100%;
  height: auto;
}
.sticky-banner__close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.15s ease;
}
.sticky-banner__close:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* PC (≥1024px): align banner to the main content column
   (sidebar shifts content to the right, so we right-align it).
   Layout is max-width 1200 with 24px padding and 220px sidebar + 56px gap. */
@media (min-width: 1024px) {
  .sticky-banner {
    left: auto;
    transform: none;
    right: max(24px, calc(50vw - 576px));
    width: calc(100vw - 48px);
    max-width: min(876px, calc(100vw - 324px));
  }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.header-logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.site-footer {
  background-color: #2E2824;
  padding: 5rem 0 4rem;
  margin-top: auto;
}
.site-footer-logo {
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
  color: #FAF9F6;
  letter-spacing: 0.02em;
}
.site-footer-tagline {
  color: #AFA89F;
  font-size: 0.95rem;
  margin-bottom: 3rem;
}
.site-footer-copy {
  font-size: 0.8rem;
  color: #857D74;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   Page heroes (top title block on subpages)
   ============================================================ */

.page-hero {
  text-align: center;
  margin-bottom: 3rem;
}
.page-hero-eyebrow {
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
}
.page-hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.page-hero-title-lg { font-size: 3rem; }
.page-hero-subtitle {
  color: var(--color-text-light);
  margin-bottom: 4rem;
}
.page-hero-subtitle-tight { margin-bottom: 3rem; }
.page-hero-divider {
  width: 40px;
  height: 1px;
  background-color: var(--color-accent);
  margin: 0 auto 3rem;
}
.category-back {
  margin-top: 1.5rem;
}
.category-back-link {
  font-size: 0.9rem;
  color: var(--color-text-light);
}
.category-desc {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   Empty/error states + loading
   ============================================================ */

.empty-card {
  text-align: center;
  padding: 6rem 0;
  background-color: var(--color-surface);
  border-radius: 16px;
  margin-top: 2rem;
}
.empty-card-text {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.error-page { text-align: center; }
.error-page-eyebrow {
  margin-bottom: 1rem;
  letter-spacing: 0.15em;
}
.error-page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}
.error-page-message {
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-label {
  margin-top: 1.5rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ============================================================
   About prose
   ============================================================ */

.about-prose {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
}
.about-prose p + p { margin-top: 1.5rem; }

/* ============================================================
   Contact form
   ============================================================ */

.contact-card {
  background-color: var(--color-white);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-label {
  font-size: 0.9rem;
  font-weight: 500;
}
.form-input,
.form-textarea {
  padding: 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 1rem;
}
.form-textarea { resize: vertical; }
.form-error-text {
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
.form-alert {
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}
.form-alert-success {
  background-color: var(--color-accent-light);
  color: var(--color-text);
}
.form-alert-error {
  background-color: #fdecea;
  color: #c0392b;
}
.form-submit {
  width: 100%;
  margin-top: 1rem;
}

/* ============================================================
   BlogFilter — pills + search
   ============================================================ */

.filter-row {
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.filter-pills {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-pill {
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background-color: transparent;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
}
.filter-pill.active {
  background-color: var(--color-accent);
  color: var(--color-white);
}
.search-bar {
  display: flex;
  width: 100%;
  max-width: 400px;
  position: relative;
}
.search-input {
  width: 100%;
  padding: 0.8rem 3rem 0.8rem 1.5rem;
  border-radius: 30px;
  border: 1px solid var(--color-border);
  outline: none;
  font-size: 0.95rem;
  background-color: var(--color-white);
  font-family: var(--font-sans);
}
.search-submit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Blog list pagination
   ============================================================ */

.blog-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   Single post page
   ============================================================ */

.single-post-page {
  padding: 2.5rem 0 6rem;
}

@media (max-width: 768px) {
  .single-post-page {
    padding: 1.5rem 0 3rem;
  }
}

.single-post-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .single-post-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 56px;
    align-items: start;
  }
}

.single-post-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .single-post-sidebar {
    display: block;
    position: sticky;
    top: 100px;
    align-self: start;
  }
  .single-post-sidebar .m-sidebar {
    position: static;
    top: auto;
  }
  .single-post-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 8px;
  }
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.reading-progress-bar {
  height: 100%;
  background: var(--color-accent);
  transition: width 0.1s linear;
  will-change: width;
}

.single-post-main {
  max-width: 920px;
  margin: 0 auto;
  min-width: 0;
}

@media (min-width: 1024px) {
  .single-post-main {
    max-width: none;
    margin: 0;
  }
}

.single-post-hero {
  position: relative;
  width: 100%;
  height: clamp(260px, 42vw, 460px);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0 2.5rem;
}
.single-post-hero-placeholder {
  width: 100%;
  height: clamp(260px, 42vw, 460px);
  background-color: var(--color-border);
  border-radius: 12px;
  margin: 1.5rem 0 2.5rem;
}

.single-post-header {
  text-align: left;
  margin-bottom: 3rem;
}
.single-post-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--color-accent-light);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}
.single-post-title {
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 1rem 0 0;
}
.single-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* Author block */
.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.5rem;
}
.post-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.post-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.post-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}
.post-author-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  display: flex;
  gap: 6px;
  align-items: center;
}
.post-author-sep {
  font-size: 0.7rem;
}

/* Table of Contents */
.post-toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.post-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.post-toc-item {
  display: block;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, padding 0.2s;
  line-height: 1.4;
  text-decoration: none;
}
.post-toc-item:hover {
  color: var(--color-accent);
}
.post-toc-item.active {
  color: var(--color-text);
  font-weight: 700;
  border-left-color: var(--color-accent);
  padding-left: 10px;
}

/* Sticky-header offset for anchor jumps */
.post-content h2 {
  scroll-margin-top: 100px;
}
.single-related {
  margin-top: 6rem;
  border-top: 1px solid var(--color-border);
  padding-top: 4rem;
}
.single-related-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: -0.02em;
}
.single-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .single-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Responsive — Tablet (≥768px) & PC (≥1024px)
   - Tablet: wider container, 2-col card grid, no sidebar
   - PC: sidebar(200px) + main, 60:40 hero, 3-col card grid
   ============================================================ */

/* Sidebar (PC only) */
.m-sidebar {
  display: none;
}

.m-sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.m-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.m-sidebar-item {
  display: block;
  padding: 9px 0 9px 0;
  font-size: 1rem;
  color: var(--color-text-light);
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, padding 0.2s;
}
.m-sidebar-item:hover {
  color: var(--color-accent);
}
.m-sidebar-item.active {
  color: var(--color-text);
  font-weight: 700;
  border-left-color: var(--color-accent);
  padding-left: 12px;
}

/* PC hero area (60:40) — hidden by default */
.m-pc-hero { display: none; }

.m-pc-hero-large {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: center;
  transition: transform 0.2s ease;
}
.m-pc-hero-large:hover {
  transform: translateY(-2px);
}
.m-pc-hero-large:hover .m-pc-hero-large-title {
  color: var(--color-accent);
}

.m-pc-hero-large-image {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--color-accent-light);
}
.m-pc-hero-large-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-pc-hero-large-body {
  padding: 0;
}

.m-pc-hero-large-source {
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.m-pc-hero-large-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-pc-hero-large-meta {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

/* Card grid (tablet 2-col, PC 3-col) — hidden by default */
.m-grid { display: none; }

.m-grid-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.m-grid-card:hover {
  transform: translateY(-2px);
}
.m-grid-card:hover .m-grid-card-title {
  color: var(--color-accent);
}

.m-grid-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--color-accent-light);
  background-image: linear-gradient(90deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 100%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}
.m-grid-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-grid-card-body {
  padding: 14px 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.m-grid-card-source {
  font-size: 0.72rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.m-grid-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-grid-card-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text-light);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-grid-card-meta {
  margin-top: auto;
  font-size: 0.72rem;
  color: var(--color-text-light);
}

/* Category page (uses m-home layout) */
.m-content-pad {
  padding: 0 16px;
}
.m-category-hero {
  margin: 4px 0 24px;
}
.m-category-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--color-text);
}
.m-category-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.55;
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}
.m-category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.25rem;
}
@media (min-width: 640px) {
  .m-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Breakpoint switches
   ============================================================ */

/* Tablet (≥768px): wider, 2-col card grid, no sidebar */
@media (min-width: 768px) {
  .m-home {
    max-width: 800px;
    padding: 0 16px 4rem;
  }
  .m-list { display: none; }
  .m-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 16px;
  }
  .m-hero-card { margin: 0 16px 1.25rem; }
  .m-cta-banner { margin: 1.5rem 16px; }
  .m-section-header { padding: 0 16px; }
  .m-tabs { padding: 1rem 16px 1.25rem; }
  .m-content-pad { padding: 0; }
}

/* PC (≥1024px): sidebar(200px) + main, 60:40 hero, 3-col grid */
@media (min-width: 1024px) {
  .m-home {
    max-width: 1200px;
    padding: 24px 24px 64px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 56px;
    align-items: start;
  }

  .m-sidebar {
    display: block;
    position: sticky;
    top: 100px;
    align-self: start;
  }

  .m-content { min-width: 0; }

  /* Hide mobile tabs (sidebar takes over) */
  .m-tabs { display: none; }

  /* Hide mobile hero, show PC hero */
  .m-hero-card { display: none; }
  .m-pc-hero {
    display: block;
    margin: 0 0 32px;
  }

  /* 3-col grid (overrides tablet's 2-col) */
  .m-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
  }

  /* Section spacing on PC */
  .m-section { margin-bottom: 48px; }
  .m-section-header { padding: 0; margin-bottom: 20px; }
  .m-section-title { font-size: 1.625rem; }

  /* CTA banner wider on PC */
  .m-cta-banner {
    margin: 0 0 40px;
    padding: 28px 32px;
    min-height: 120px;
  }
  .m-cta-banner-icon { width: 44px; height: 44px; font-size: 1.1rem; }
  .m-cta-banner-title { font-size: 1.1rem; }
  .m-cta-banner-sub { font-size: 0.9rem; }

  .m-category-title { font-size: 1.5rem; }
  .m-category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 1.5rem;
  }
}

/* ============================================================
   Post readability enhancements
   AI 초안이 출력하는 시맨틱 HTML(h2, p, ul, ol, blockquote, table,
   strong)을 시각적으로 풍부하게 렌더링하기 위한 추가 스타일.
   기존 .post-content 규칙 다음에 와서 덮어쓰는 구조.
   ============================================================ */

/* H2: 왼쪽 액센트 보더 + 글자색 자체도 테라코타로 (매거진 톤) */
.post-content h2 {
  padding-left: 0.9rem;
  border-left: 4px solid var(--color-accent);
  line-height: 1.35;
  color: var(--color-accent);
}

/* 본문 첫 단락 — 리드 스타일 */
.post-content > p:first-of-type {
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--color-text);
  font-weight: 500;
}

/* strong: 형광펜 느낌의 연한 배경 강조 */
.post-content strong {
  background: linear-gradient(transparent 62%, var(--color-accent-light) 62%);
  padding: 0 0.12em;
  font-weight: 700;
}

/* ul: 기본 디스크 마커 대신 액센트 닷 */
.post-content ul {
  list-style: none;
  padding-left: 0;
}
.post-content ul > li {
  position: relative;
  padding-left: 1.4rem;
}
.post-content ul > li::before {
  content: '';
  position: absolute;
  left: 0.35rem;
  top: 0.75em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ol: 번호를 작은 원형 배지로 */
.post-content ol {
  counter-reset: post-ol;
  list-style: none;
  padding-left: 0;
}
.post-content ol > li {
  counter-increment: post-ol;
  position: relative;
  padding-left: 2.2rem;
  min-height: 1.6rem;
}
.post-content ol > li::before {
  content: counter(post-ol);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.55rem;
  height: 1.55rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* blockquote — 콜아웃 박스로 강화 (기존 스타일 보완) */
.post-content blockquote {
  font-style: normal;
  padding: 1.1rem 1.4rem;
  border-radius: 0 10px 10px 0;
}
.post-content blockquote > p {
  margin: 0;
}
.post-content blockquote > p + p {
  margin-top: 0.6rem;
}

/* blockquote 주의 변형 — 모델이 class="callout-warning" 출력 시 적용.
   blockquote 태그 셀렉터(0,2,0)보다 한 단계 높은 specificity(0,2,1)로 안전하게 덮어쓰기. */
.post-content blockquote.callout-warning {
  background: #FFF4E5;
  border-left: 3px solid #E0934A;
}

/* table — 비교형 글에 사용되는 핵심 시각 요소 */
.post-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  font-size: 0.96rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}
.post-content thead {
  background: var(--color-accent-light);
}
.post-content th {
  text-align: left;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.post-content td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.65;
}
.post-content tbody tr:last-child td {
  border-bottom: none;
}
.post-content tbody tr:nth-child(even) {
  background: var(--color-surface);
}

/* 모바일: 표 가로 스크롤 가능하게 */
@media (max-width: 640px) {
  .post-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .post-content th,
  .post-content td {
    white-space: normal;
    min-width: 9rem;
  }
}

/* ============================================
   Landing (home)
   ============================================ */

.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(242, 216, 203, 0.55), transparent 70%),
    radial-gradient(ellipse 50% 45% at 8% 90%, rgba(242, 216, 203, 0.35), transparent 70%),
    var(--color-bg);
}

.landing-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 3rem;
}

.landing-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent-light);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
}

.landing-title {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.landing-title-accent {
  font-style: normal;
  color: var(--color-accent);
  position: relative;
}

.landing-title-accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.32em;
  background: var(--color-accent-light);
  z-index: -1;
  border-radius: 2px;
}

.landing-sub {
  font-size: 1.08rem;
  color: var(--color-text-light);
  margin-bottom: 2.25rem;
  max-width: 34rem;
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.landing-cta-primary {
  padding: 1rem 2.1rem;
  font-size: 1.02rem;
  box-shadow: 0 10px 24px rgba(194, 106, 77, 0.35);
}

/* 히어로 목업 카드 스택 */
.landing-mock {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: rotate(2deg);
}

.landing-mock-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-md);
}

.landing-mock-dday {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transform: translateX(-1.2rem);
}

.landing-mock-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 600;
}

.landing-mock-dday-num {
  font-size: 2.6rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-accent);
}

.landing-mock-date {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.landing-mock-budget {
  transform: translateX(1.4rem);
}

.landing-mock-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.landing-mock-row-sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin: 0.6rem 0 0;
}

.landing-mock-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--color-accent-light);
  overflow: hidden;
}

.landing-mock-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--color-accent);
}

.landing-mock-check {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transform: translateX(-0.4rem);
}

.landing-mock-check-item {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.landing-mock-check-item.done {
  color: var(--color-text);
}

/* 기능 소개 */
.landing-features {
  padding-bottom: 5rem;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.landing-feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.landing-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.landing-feature-card h3 {
  font-size: 1.08rem;
  margin: 1rem 0 0.5rem;
}

.landing-feature-card p {
  font-size: 0.93rem;
  color: var(--color-text-light);
  margin: 0;
}

.landing-feature-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  color: var(--color-accent);
  background: var(--color-accent-light);
}

.landing-feature-icon svg {
  width: 100%;
  height: 100%;
}

/* 블로그 / 섹션 공통 */
.landing-blog,
.landing-guides,
.landing-faq {
  padding: 3.5rem 0;
}

.landing-section-sub {
  color: var(--color-text-light);
  margin: -1.5rem 0 2rem;
}

/* 인기 가이드 */
.landing-guide-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 2rem;
}

.landing-guide-list a {
  display: block;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.97rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.landing-guide-list a:hover {
  color: var(--color-accent);
  padding-left: 0.9rem;
}

/* FAQ */
.landing-faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.landing-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
}

.landing-faq-item summary::-webkit-details-marker {
  display: none;
}

.landing-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.landing-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.landing-faq-item p {
  padding: 0 1.4rem 1.2rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* 마지막 CTA */
.landing-final-cta {
  padding: 5rem 0 7rem;
}

.landing-final-cta h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.landing-final-cta p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* 반응형 */
@media (max-width: 900px) {
  .landing-hero {
    padding: 3.5rem 0 4rem;
  }
  .landing-hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .landing-mock {
    max-width: 420px;
    margin: 0 auto;
    transform: rotate(0deg);
  }
  .landing-mock-dday,
  .landing-mock-budget,
  .landing-mock-check {
    transform: none;
  }
  .landing-br-desktop {
    display: none;
  }
  .landing-guide-list {
    grid-template-columns: 1fr;
  }
}
