/*
 Theme Name:  Muxmu Custom
 Theme URI:   https://muxmu.me
 Description: 자동화·지식관리·마케팅 블로그 — Claude Design System
 Author:      Muxmu
 Author URI:  https://muxmu.me
 Version:     1.5.0
 Text Domain: muxmu
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Backgrounds */
  --bg:        #F2ECE5;
  --bg-warm:   #EDE8DF;
  --bg-white:  #FFFFFF;
  --bg-code:   #F5F0E8;
  --bg-dark:   #1A1818;

  /* Text */
  --tx:        #1A1818;
  --tx-2:      #5C5752;
  --tx-3:      #9C9690;
  --tx-inv:    #F2ECE5;

  /* Brand */
  --ac:        #D4623A;
  --ac-hover:  #B84F2A;
  --ac-soft:   rgba(212,98,58,0.10);

  /* Borders */
  --bd:        #E2DAD1;
  --bd-card:   #EBE5DC;

  /* Typography */
  --f-display: "DM Serif Display", "Georgia", serif;
  --f-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", "Fira Code", monospace;

  /* Layout */
  --w-content:  760px;
  --w-wide:     1140px;
  --nav-h:      64px;

  /* Easing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tx);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ac); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ac-hover); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(242, 236, 229, 0.88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--bd);
  transition: background 0.3s;
}

.nav-inner {
  width: 100%;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--tx);
  font-weight: 400;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--tx); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.nav-links > li,
.nav-links .menu-item,
.nav-links .nav-item {
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tx-2);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a:hover,
.nav-links a.current,
.nav-links .current-menu-item > a,
.nav-links .current-menu-parent > a { color: var(--tx); }

/* Caret on parents */
.nav-links .menu-item-has-children > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 4px;
  opacity: 0.6;
}

/* Dropdown */
.nav-links .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--bg, #fff);
  border: 1px solid var(--bd);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  z-index: 100;
}
.nav-links .menu-item-has-children:hover > .sub-menu,
.nav-links .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}
.nav-links .sub-menu li { list-style: none; display: block; }
.nav-links .sub-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  white-space: nowrap;
  color: var(--tx-2);
}
.nav-links .sub-menu a:hover { color: var(--tx); background: rgba(0, 0, 0, 0.04); }

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.5rem 1.125rem;
  background: var(--tx);
  color: var(--tx-inv) !important;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #2D2A2A !important; color: var(--tx-inv) !important; }
.nav-item--cta::after { content: none !important; }

/* Hero brand (IXAI logo) */
.home-hero__brand {
  display: inline-block;
  margin-bottom: 1.25rem;
  line-height: 0;
}
.home-hero__brand-logo {
  height: clamp(40px, 4vw, 56px);
  width: auto;
  display: block;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--tx);
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.container {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.container--content {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.site-main {
  min-height: calc(100svh - var(--nav-h) - 200px);
  padding-bottom: 5rem;
}

/* ============================================================
   BLOG HERO (홈/아카이브 상단)
   ============================================================ */
.blog-hero {
  padding: 4rem clamp(1rem, 4vw, 3rem) 2.5rem;
  max-width: var(--w-wide);
  margin: 0 auto;
  text-align: center;
}

.blog-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 1rem;
}
.blog-hero__eyebrow::before,
.blog-hero__eyebrow::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ac);
}

.blog-hero__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 2.875rem);
  font-weight: 400;
  color: var(--tx);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.blog-hero__desc {
  font-size: 1.0625rem;
  color: var(--tx-2);
  max-width: 44ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   CATEGORY FILTER
   ============================================================ */
.cat-filter {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 clamp(1rem, 4vw, 3rem);
  margin: 2rem 0 3rem;
}

.cat-filter a {
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tx-2);
  background: var(--bg-white);
  border: 1px solid var(--bd);
  text-decoration: none;
  transition: all 0.2s var(--ease);
}
.cat-filter a:hover,
.cat-filter a.is-active {
  color: var(--ac);
  border-color: var(--ac);
  background: var(--ac-soft);
}

/* ============================================================
   POST CARDS
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.post-card {
  background: var(--bg-white);
  border: 1px solid var(--bd-card);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.2s;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  box-shadow: 0 8px 32px rgba(26,24,24,0.09);
  transform: translateY(-2px);
  border-color: var(--bd);
  color: inherit;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.post-card__cat {
  display: inline-flex;
  padding: 0.2rem 0.625rem;
  background: var(--ac-soft);
  color: var(--ac);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
}
.post-card__cat:hover { color: var(--ac-hover); }

.post-card__date {
  font-size: 0.8125rem;
  color: var(--tx-3);
}

.post-card__title {
  font-family: var(--f-display);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--tx);
  transition: color 0.2s;
}
.post-card:hover .post-card__title { color: var(--ac); }

.post-card__excerpt {
  font-size: 0.9375rem;
  color: var(--tx-2);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--bd-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-card__read {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ac);
}

.post-card__time {
  font-size: 0.75rem;
  color: var(--tx-3);
}

/* 썸네일 있을 때 */
.post-card__thumb {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-warm);
  margin: -1.75rem -1.75rem 0;
  border-radius: 14px 14px 0 0;
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.post-card:hover .post-card__thumb img { transform: scale(1.03); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  padding: 3rem clamp(1rem, 4vw, 3rem) 0;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.75rem;
  border: 1px solid var(--bd);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--tx-2);
  background: var(--bg-white);
  text-decoration: none;
  transition: all 0.2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--ac);
  border-color: var(--ac);
  color: #fff;
}
.pagination .page-numbers.dots { border: none; background: none; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.reading-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--ac);
  z-index: 999;
  border-radius: 0 2px 2px 0;
  transition: width 0.08s linear;
}

.post-header {
  padding: 3.5rem clamp(1rem, 4vw, 2.5rem) 2rem;
  max-width: var(--w-content);
  margin: 0 auto;
}

.post-header__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.post-header__cat {
  display: inline-flex;
  padding: 0.2rem 0.625rem;
  background: var(--ac-soft);
  color: var(--ac);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
}

.post-header__date,
.post-header__readtime {
  font-size: 0.8125rem;
  color: var(--tx-3);
}

.post-header__title {
  font-family: var(--f-display);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--tx);
  margin-bottom: 1.25rem;
}

.post-header__excerpt {
  font-size: 1.125rem;
  color: var(--tx-2);
  line-height: 1.7;
  max-width: 52ch;
}

.post-header__thumb {
  max-width: var(--w-content);
  margin: 0 auto 2.5rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.post-header__thumb img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--bd);
}

/* ── 본문 타이포그래피 ──────────────────────── */
.post-content {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 4rem;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--tx-2);
}

.post-content > * + * { margin-top: 1.5em; }

.post-content h2 {
  font-family: var(--f-display);
  font-size: 1.625rem;
  font-weight: 400;
  color: var(--tx);
  margin-top: 3rem;
  margin-bottom: 0.875rem;
  letter-spacing: -0.015em;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--bd);
}
.post-content h3 {
  font-family: var(--f-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--tx);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.post-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tx);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.post-content a {
  color: var(--ac);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.post-content a:hover { color: var(--ac-hover); }

.post-content strong { font-weight: 600; color: var(--tx); }
.post-content em { font-style: italic; }

.post-content ul, .post-content ol {
  padding-left: 1.5rem;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li + li { margin-top: 0.4em; }
.post-content li::marker { color: var(--ac); }

.post-content pre {
  background: var(--bg-code);
  border: 1px solid var(--bd);
  border-radius: 12px;
  padding: 1.5rem;
  overflow-x: auto;
  font-family: var(--f-mono);
  font-size: 0.875rem;
  line-height: 1.6;
}
.post-content code {
  font-family: var(--f-mono);
  font-size: 0.875em;
  color: var(--ac-hover);
}
.post-content p code,
.post-content li code {
  background: var(--bg-code);
  border: 1px solid var(--bd);
  padding: 0.15em 0.45em;
  border-radius: 4px;
}

.post-content blockquote {
  border-left: 3px solid var(--ac);
  background: var(--bg-warm);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  font-style: italic;
  color: var(--tx-2);
}
.post-content blockquote p { margin-top: 0; }

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

.post-content img {
  border-radius: 12px;
  border: 1px solid var(--bd);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.post-content th {
  background: var(--bg-warm);
  font-weight: 600;
  color: var(--tx);
  text-align: left;
  padding: 0.625rem 1rem;
  border-bottom: 2px solid var(--bd);
}
.post-content td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--bd-card);
  color: var(--tx-2);
}
.post-content tr:last-child td { border-bottom: none; }

/* 포스트 하단 네비게이션 */
.post-nav {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid var(--bd);
  padding-top: 2rem;
}

.post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--bd-card);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.post-nav__item:hover {
  border-color: var(--bd);
  box-shadow: 0 4px 16px rgba(26,24,24,0.07);
  color: inherit;
}
.post-nav__item--next { text-align: right; }

.post-nav__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.post-nav__title {
  font-family: var(--f-display);
  font-size: 0.9375rem;
  color: var(--tx);
  line-height: 1.4;
}

/* ============================================================
   STATIC PAGE
   ============================================================ */
.page-content {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 3rem clamp(1rem, 4vw, 2.5rem) 5rem;
}

.page-content h1 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--tx);
}

/* ============================================================
   ARCHIVE HEADER
   ============================================================ */
.archive-hero {
  padding: 4rem clamp(1rem, 4vw, 3rem) 2.5rem;
  max-width: var(--w-wide);
  margin: 0 auto;
  text-align: center;
}

.archive-hero__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 0.75rem;
}

.archive-hero__title {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--tx);
  letter-spacing: -0.02em;
}

/* ============================================================
   CATEGORY HERO (카테고리별 특별 히어로)
   ============================================================ */
.cat-hero {
  padding: 5rem clamp(1rem, 4vw, 3rem) 4rem;
  border-bottom: 1px solid var(--bd);
}

.cat-hero--beginner {
  background: var(--bg);
}

.cat-hero__inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.cat-hero__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 1.5rem;
}

.cat-hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 400;
  color: var(--tx);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.cat-hero__title em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--ac);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.cat-hero__right {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.cat-hero__desc {
  font-size: 1rem;
  color: var(--tx-2);
  line-height: 1.85;
}

@media (max-width: 768px) {
  .cat-hero__inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .cat-hero__right { padding-top: 0; }
  .cat-hero__title { font-size: clamp(2rem, 7vw, 2.75rem); }
}

/* ============================================================
   404
   ============================================================ */
.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem clamp(1rem, 4vw, 3rem);
}

.not-found__code {
  font-family: var(--f-display);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 400;
  color: var(--bd);
  line-height: 1;
  margin-bottom: 1rem;
}

.not-found__title {
  font-family: var(--f-display);
  font-size: 1.75rem;
  color: var(--tx);
  margin-bottom: 0.75rem;
}

.not-found__desc {
  color: var(--tx-2);
  margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(242,236,229,0.5);
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--tx-inv);
  font-size: 1.1rem;
  font-weight: 400;
}

.footer-copy {
  font-size: 0.8125rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}
.footer-links a {
  font-size: 0.8125rem;
  color: rgba(242,236,229,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--tx-inv); }

/* ============================================================
   BUTTONS & UTILITY
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary { background: var(--tx); color: var(--tx-inv); }
.btn--primary:hover { background: #2D2A2A; color: var(--tx-inv); }
.btn--outline { background: transparent; color: var(--tx); border-color: var(--bd); }
.btn--outline:hover { border-color: var(--tx); color: var(--tx); }
.btn--brand { background: var(--ac); color: #fff; }
.btn--brand:hover { background: var(--ac-hover); color: #fff; }

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.wp-block-button__link {
  display: inline-flex;
  padding: 0.625rem 1.25rem;
  border-radius: 100px !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

/* Gravity Forms 기본 스타일 */
.gform_wrapper input:not([type=radio]):not([type=checkbox]),
.gform_wrapper textarea,
.gform_wrapper select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--bd);
  border-radius: 10px;
  background: var(--bg-white);
  font-size: 0.9375rem;
  color: var(--tx);
  font-family: var(--f-body);
  transition: border-color 0.2s;
}
.gform_wrapper input:focus,
.gform_wrapper textarea:focus {
  outline: none;
  border-color: var(--ac);
  box-shadow: 0 0 0 3px var(--ac-soft);
}
.gform_wrapper .gform_submit_button,
.gform_wrapper input[type=submit] {
  background: var(--ac) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 0.75rem 1.75rem !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}
.gform_wrapper .gform_submit_button:hover { background: var(--ac-hover) !important; }

/* 스크롤바 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--tx-3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--bg);
    padding: 2rem clamp(1rem, 4vw, 3rem);
    gap: 1.5rem;
    z-index: 199;
    border-top: 1px solid var(--bd);
  }
  .nav-links.is-open a { font-size: 1.125rem; }
  .nav-links.is-open > li { display: block; width: 100%; }
  .nav-links.is-open .sub-menu {
    display: block;
    position: static;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0.25rem 0 0.25rem 1rem;
    background: transparent;
    min-width: 0;
  }
  .nav-links.is-open .sub-menu a { padding: 0.4rem 0; font-size: 1rem; opacity: 0.85; }
  .nav-links .menu-item-has-children > a::after { display: none; }
  .nav-toggle { display: flex; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .cat-filter { gap: 0.375rem; }
  .cat-filter a { font-size: 0.75rem; padding: 0.3rem 0.75rem; }
}

/* ============================================================
   THUMBNAIL PLACEHOLDER
   ============================================================ */
.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* 카테고리별 배경 */
.thumb-placeholder--ai-automation       { background: linear-gradient(135deg, #D4623A 0%, #E88B68 100%); }
.thumb-placeholder--knowledge-management{ background: linear-gradient(135deg, #3E7E6A 0%, #6AB5A0 100%); }
.thumb-placeholder--marketing           { background: linear-gradient(135deg, #B84B2E 0%, #D97554 100%); }
.thumb-placeholder--work-log            { background: linear-gradient(135deg, #6B4E3A 0%, #A07860 100%); }
.thumb-placeholder--tools               { background: linear-gradient(135deg, #4A4A7A 0%, #7A7AAA 100%); }
.thumb-placeholder--default,
.thumb-placeholder--uncategorized       { background: linear-gradient(135deg, #C8BCB0 0%, #DED6CC 100%); }

.thumb-placeholder__icon {
  width: 48px;
  height: 48px;
  color: #fff;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ============================================================
   HOME HERO (Anthropic style — two-column, light)
   ============================================================ */
.home-hero {
  background: var(--bg);
  padding: 5rem clamp(1rem, 4vw, 3rem) 4rem;
  border-bottom: 1px solid var(--bd);
}

.home-hero__inner {
  max-width: var(--w-wide);
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
}

.home-hero__logo {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.home-hero__badge span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-3);
}

.home-hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 400;
  color: var(--tx);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.home-hero__title em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--ac);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.home-hero__right {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.home-hero__desc {
  font-size: 1rem;
  color: var(--tx-2);
  line-height: 1.8;
}

/* 카테고리 필터 */
.home-hero__cats {
  max-width: var(--w-wide);
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.home-hero__cats a {
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tx-2);
  background: transparent;
  border: 1px solid var(--bd);
  text-decoration: none;
  transition: all 0.2s var(--ease);
}
.home-hero__cats a:hover,
.home-hero__cats a.is-active {
  color: var(--ac);
  border-color: var(--ac);
  background: var(--ac-soft);
}

/* ============================================================
   HOME DARK (Anthropic 다크 카드 섹션)
   ============================================================ */
.home-dark-wrap {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 3rem clamp(1rem, 4vw, 3rem) 0;
}

.home-dark {
  position: relative;
  background: var(--bg-dark);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.home-dark__text {
  position: relative;
  z-index: 1;
  padding: 4rem clamp(1.75rem, 3vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.home-dark__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 236, 229, 0.35);
}

.home-dark__title {
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 400;
  color: var(--tx-inv);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.home-dark__desc {
  font-size: 0.9375rem;
  color: rgba(242, 236, 229, 0.5);
  line-height: 1.75;
  max-width: 340px;
}

.home-dark__visual {
  position: relative;
  overflow: hidden;
}

#meshCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   FEATURED CARD (홈 첫 번째 포스트)
   ============================================================ */
.featured-wrap {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 3rem clamp(1rem, 4vw, 3rem) 1.5rem;
}

.featured-card {
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--bd-card);
  background: var(--bg-white);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
  min-height: 380px;
}
.featured-card:hover {
  box-shadow: 0 16px 56px rgba(26, 24, 24, 0.12);
  transform: translateY(-3px);
  color: inherit;
}

.featured-card__image {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  background: var(--bg-warm);
}
.featured-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.featured-card:hover .featured-card__image img { transform: scale(1.04); }

.featured-card__image .thumb-placeholder {
  position: absolute;
  inset: 0;
  height: 100%;
}

.featured-card__body {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.featured-card__meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.featured-card__date,
.featured-card__time {
  font-size: 0.8125rem;
  color: var(--tx-3);
}

.featured-card__title {
  font-family: var(--f-display);
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--tx);
  transition: color 0.2s;
}
.featured-card:hover .featured-card__title { color: var(--ac); }

.featured-card__excerpt {
  font-size: 0.9375rem;
  color: var(--tx-2);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ac);
  margin-top: 0.5rem;
  transition: gap 0.2s var(--ease);
}
.featured-card:hover .featured-card__cta { gap: 0.625rem; }

/* posts-empty */
.posts-empty {
  text-align: center;
  color: var(--tx-3);
  padding: 4rem 0;
}

/* ============================================================
   RESPONSIVE — new components
   ============================================================ */
@media (max-width: 768px) {
  .featured-card {
    flex-direction: column;
    min-height: auto;
  }
  .featured-card__image {
    flex: none;
    height: 220px;
  }
  .featured-card__body { padding: 1.75rem; }
  .home-hero__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .home-hero__right { padding-top: 0; }
  .home-hero__title { font-size: clamp(2rem, 7vw, 2.75rem); }
  .home-dark { grid-template-columns: 1fr; }
  .home-dark__visual { min-height: 220px; }
}

@media (max-width: 480px) {
  .home-hero { padding: 3.5rem 1rem 2.5rem; }
  .featured-card__body { padding: 1.25rem; }
}
