/* Seoulmate (lifeseoulmate.com) — 글로벌 블로그 스타일
   팔레트(config.yaml): 테라코타 + 크림 + 차콜 + 세이지 (따뜻한 음식/집 톤) */

:root {
  --bg: #FFF8F0;            /* 크림 */
  --bg-alt: #faeddc;        /* 크림 짙은 톤 */
  --card: #fffdfa;
  --ink: #2A2A2A;           /* 차콜 */
  --ink-soft: #6e6358;
  --terra: #E2603B;         /* 감/테라코타 (primary) */
  --terra-dark: #c44a28;
  --sage: #7A8B6F;          /* 세이지 (accent) */
  --line: #ece0d0;
  --shadow: 0 6px 24px rgba(42,42,42,.08);
  --radius: 16px;
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; line-height: 1.15; font-weight: 600; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
em { font-style: italic; color: var(--terra); }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(193,95,60,.3); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--terra); color: var(--terra); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,248,240,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; }
.brand-mark { color: var(--ink); }
.brand-global { color: var(--terra); margin-left: 4px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav-cta { background: var(--ink); color: #fff !important; padding: 9px 20px; border-radius: 999px; }
.nav-cta:hover { background: var(--terra); }
.nav-toggle { display: none; font-size: 24px; background: none; border: none; cursor: pointer; }

/* ── Hero ── */
.hero { padding: 80px 0 90px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 600; color: var(--terra); margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 22px; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 32em; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; height: 420px; }
.hero-card {
  position: absolute; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
  display: flex; flex-direction: column; gap: 10px; font-size: 40px;
  width: 210px;
}
.hero-card span { font-size: 15px; font-weight: 600; font-family: 'Inter'; color: var(--ink); }
.hero-card-1 { top: 10px; left: 10px; transform: rotate(-4deg); }
.hero-card-2 { top: 130px; right: 0; transform: rotate(3deg); }
.hero-card-3 { bottom: 0; left: 40px; transform: rotate(-2deg); }

/* ── Sections ── */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 18px; }

/* ── Categories ── */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--terra); }
.cat-emoji { font-size: 38px; display: block; margin-bottom: 14px; }
.cat-card h3 { font-size: 20px; margin-bottom: 8px; }
.cat-card p { color: var(--ink-soft); font-size: 15px; }

/* ── Posts ── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s, box-shadow .18s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-thumb {
  height: 180px; background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex; align-items: center; justify-content: center; font-size: 56px;
}
.post-body { padding: 22px; }
.post-cat { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--terra); margin-bottom: 10px; }
.post-body h3 { font-size: 20px; margin-bottom: 10px; line-height: 1.3; }
.post-body p { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.post-meta { font-size: 13px; color: var(--sage); font-weight: 500; }
.latest-note { text-align: center; margin-top: 40px; color: var(--ink-soft); font-style: italic; }

/* ── About ── */
.about-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 20px; }
.about-copy p { color: var(--ink-soft); font-size: 18px; margin-bottom: 18px; }
.about-copy .btn { margin-top: 10px; }
.about-stats { display: flex; flex-direction: column; gap: 18px; }
.stat { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; text-align: center; }
.stat-num { display: block; font-family: 'Fraunces', serif; font-size: 38px; color: var(--terra); font-weight: 600; }
.stat-label { color: var(--ink-soft); font-size: 14px; }

/* ── Newsletter ── */
.newsletter { background: var(--ink); color: #fff; padding: 80px 0; text-align: center; }
.newsletter h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; color: #fff; }
.newsletter p { color: rgba(255,255,255,.7); font-size: 18px; margin-bottom: 30px; }
.news-form { display: flex; gap: 12px; justify-content: center; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.news-form input {
  flex: 1; min-width: 240px; padding: 14px 20px; border-radius: 999px; border: none;
  font-size: 15px; font-family: 'Inter';
}
.news-note { margin-top: 16px; color: var(--sage); font-size: 14px; min-height: 20px; }

/* ── Footer ── */
.site-footer { background: var(--bg-alt); padding: 56px 0 28px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-brand .brand-mark, .footer-brand .brand-global { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; }
.footer-brand p { color: var(--ink-soft); margin-top: 8px; font-size: 15px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--ink-soft); font-size: 15px; }
.footer-nav a:hover { color: var(--terra); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; color: var(--ink-soft); font-size: 13px; flex-wrap: wrap; gap: 8px; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .nav { position: fixed; inset: 68px 0 auto 0; background: var(--bg); flex-direction: column;
         gap: 0; padding: 12px 0; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; width: 100%; }
  .nav-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; margin-top: 20px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-stats { flex-direction: row; }
}
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
}

/* ── Article (글 상세) ── */
.article { padding: 48px 0 80px; }
.article-inner { max-width: 740px; }
.back-link { display: inline-block; color: var(--ink-soft); font-weight: 500; font-size: 14px; margin-bottom: 24px; }
.back-link:hover { color: var(--terra); }
.article .post-cat { display: block; }
.article h1 { font-size: clamp(30px, 5vw, 46px); margin: 10px 0 14px; }
.article-meta { color: var(--sage); font-weight: 500; margin-bottom: 30px; }
.article-thumb { height: 300px; border-radius: var(--radius); background: linear-gradient(135deg, var(--c1), var(--c2)); display: flex; align-items: center; justify-content: center; font-size: 84px; margin-bottom: 38px; }
.article-body { font-size: 18px; color: var(--ink); }
.article-body h2 { font-size: 27px; margin: 36px 0 14px; }
.article-body h3 { font-size: 21px; margin: 26px 0 10px; }
.article-body p { margin-bottom: 18px; color: var(--ink-soft); }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; color: var(--ink-soft); }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); }
.article-cta { margin-top: 50px; padding: 34px; background: var(--bg-alt); border-radius: var(--radius); text-align: center; }
.article-cta h3 { margin-bottom: 18px; font-size: 24px; }
.ai-disclosure-box { margin: 36px 0 0; padding: 13px 18px; background: #fff7ed; border: 1px solid #f9a826; border-radius: 10px; font-size: 14px; color: #7c2d12; line-height: 1.5; }
