/* ============ Modern Minimal Theme - Silbi ============ */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-soft: #fafbfc;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --line: #e5e7eb;
  --line-soft: #f1f5f9;
  --brand: #0ea5a4;
  --brand-dark: #0d9488;
  --brand-soft: #ecfeff;
  --accent: #f59e0b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15,23,42,0.04), 0 4px 16px rgba(15,23,42,0.04);
  --shadow-hover: 0 8px 32px rgba(15,23,42,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-feature-settings: 'ss18';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.serif { font-family: 'Fraunces', serif; font-optical-sizing: auto; }

/* ============ Header ============ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: border-color 0.2s;
}

header.scrolled { border-bottom-color: var(--line); }

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.brand-logo {
  width: 28px;
  height: 28px;
  background: var(--ink);
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--brand);
  border-radius: 50%;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.menu > li > a {
  display: inline-block;
  padding: 10px 16px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s;
}

.menu > li > a:hover {
  color: var(--ink);
  background: var(--bg-alt);
}

.menu-cta {
  background: var(--ink) !important;
  color: white !important;
  padding: 10px 18px !important;
  margin-left: 8px;
  font-weight: 600 !important;
}

.menu-cta:hover {
  background: var(--brand) !important;
}

/* Dropdown */
.has-sub { position: relative; }

.submenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 240px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transition: all 0.18s;
  list-style: none;
}

.has-sub:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.submenu a {
  display: block;
  padding: 10px 14px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.15s;
}

.submenu a:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: 0.3s;
}

.hamburger span::before, .hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: 0.3s;
}
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }

.hamburger.active span { background: transparent; }
.hamburger.active span::before { top: 0; transform: rotate(45deg); }
.hamburger.active span::after { top: 0; transform: rotate(-45deg); }

/* ============ Page Hero ============ */
.page-hero {
  padding: 130px 28px 60px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: 840px;
  margin: 0 auto;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
}

.crumb a:hover { color: var(--ink); }
.crumb-sep { color: var(--muted-light); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 18px;
}

.page-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-dark);
}

.page-hero-desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
}

/* ============ Article ============ */
.article {
  padding: 60px 28px 80px;
}

.article-inner {
  max-width: 760px;
  margin: 0 auto;
}

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 48px;
}

.toc-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  padding: 6px 0;
  font-size: 14.5px;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--brand);
  font-weight: 600;
  margin-right: 12px;
  font-family: 'Fraunces', serif;
  font-size: 13px;
}

.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}

.toc a:hover { color: var(--brand-dark); }

/* Article Body */
.body h2 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 56px 0 20px;
  padding-top: 8px;
}

.body h2:first-child { margin-top: 0; }

.body h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 32px 0 12px;
}

.body p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 18px;
}

.body ul, .body ol {
  padding-left: 22px;
  margin-bottom: 20px;
}

.body li {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 6px;
}

.body strong {
  color: var(--ink);
  font-weight: 700;
}

/* Callout Box */
.callout {
  padding: 22px 24px;
  border-radius: var(--radius);
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.7;
  border-left: 3px solid;
  color: var(--ink-soft);
}

.callout.tip {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.callout.warn {
  background: #fff7ed;
  border-color: var(--accent);
}

.callout-title {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 14px;
  letter-spacing: -0.2px;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.info-cell {
  background: white;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.info-cell:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.info-num {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.info-cell h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.info-cell p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

/* Clean Table */
.clean-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14.5px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.clean-table th {
  padding: 14px 16px;
  background: var(--bg-alt);
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: -0.2px;
}

.clean-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
}

.clean-table tr:last-child td { border-bottom: none; }

.clean-table td:first-child {
  font-weight: 600;
  color: var(--ink);
}

/* Check List */
.check-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 24px 0;
}

.check-list li {
  padding: 14px 18px 14px 46px !important;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  position: relative;
  transition: all 0.15s;
}

.check-list li:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8l3 3 5-6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

/* Q&A */
.qna {
  list-style: none !important;
  padding: 0 !important;
}

.qna-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px !important;
  padding: 24px 26px !important;
  transition: all 0.2s;
}

.qna-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.qna-card::before { display: none !important; }

.qna-q {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.qna-q-mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--ink);
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 12px;
  font-weight: 600;
}

.qna-q-text {
  font-weight: 600;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.55;
  letter-spacing: -0.2px;
}

.qna-a {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.qna-a-mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 12px;
  font-weight: 600;
}

.qna-a-text {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.75;
}

/* CTA Block */
.cta-block {
  background: var(--ink);
  padding: 44px 36px;
  border-radius: var(--radius);
  color: white;
  margin: 56px 0 12px;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: var(--brand);
  border-radius: 50%;
  opacity: 0.2;
}

.cta-block h3 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  position: relative;
}

.cta-block p {
  color: rgba(255,255,255,0.7) !important;
  margin-bottom: 20px !important;
  font-size: 15px !important;
  position: relative;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: var(--ink);
  padding: 13px 24px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.2s;
  position: relative;
}

.cta-btn:hover {
  background: var(--brand);
  color: white;
  transform: translateX(4px);
}

/* Related */
.related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.related-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.related-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  display: block;
}

.related-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.related-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.related-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
  line-height: 1.4;
}

.related-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Footer */
footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 48px 28px 32px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover { color: var(--brand-dark); }

.footer-notice {
  font-size: 12px;
  color: var(--muted-light);
}

.footer-notice p { margin-bottom: 3px; }

.footer-notice strong { color: var(--muted); }

.footer-copy {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-light);
  text-align: center;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .menu {
    position: fixed;
    top: 64px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 64px);
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 28px;
    gap: 4px;
    transition: right 0.3s;
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }

  .menu.active { right: 0; }

  .menu > li > a {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
  }

  .submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 4px 0 4px 16px;
    margin: 0;
    min-width: 0;
    border: none;
    background: transparent;
  }

  .submenu a { padding: 10px 14px; font-size: 14px; }

  .menu-cta {
    margin-left: 0 !important;
    margin-top: 8px;
    text-align: center;
  }

  .hamburger { display: flex; }
}

@media (max-width: 640px) {
  .nav-wrap { padding: 14px 20px; }
  .page-hero { padding: 110px 20px 50px; }
  .article { padding: 50px 20px 70px; }
  .body h2 { font-size: 24px; }
  .cta-block { padding: 36px 24px; }
  .qna-card { padding: 22px !important; }
  .footer-top { flex-direction: column; }
}
