:root {
  --navy-950: #09182b;
  --navy-900: #102542;
  --navy-800: #17375e;
  --navy-700: #24507c;
  --blue-100: #e9f1f8;
  --ink: #172231;
  --muted: #607083;
  --line: #dce3ea;
  --surface: #f5f7f9;
  --paper: #fff;
  --accent: #5c826d;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(18, 37, 63, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif; font-size: 16px; line-height: 1.7; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.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; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 1000; padding: 12px 18px; color: #fff; background: var(--navy-950); border-radius: 0 0 8px 8px; }
.skip-link:focus { top: 0; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(220,227,234,.8); backdrop-filter: blur(14px); }
.header-inner { width: min(1440px, calc(100% - 48px)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--navy-900); font-family: serif; font-weight: 700; }
.brand strong, .brand small { display: block; line-height: 1.25; }
.brand strong { font-size: 17px; letter-spacing: -.03em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { position: relative; font-size: 14px; font-weight: 650; color: #344458; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--navy-700); transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.header-search { width: 250px; display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.header-search input { width: 100%; min-width: 0; padding: 9px 4px 9px 16px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.header-search button { padding: 9px 15px; color: var(--navy-800); background: transparent; border: 0; font-size: 12px; font-weight: 700; cursor: pointer; }
.menu-toggle { display: none; }

.hero { position: relative; height: clamp(430px, 58vw, 670px); min-height: 430px; overflow: hidden; background: var(--navy-900); }
.hero picture, .hero img { width: 100%; height: 100%; }
.hero img { object-fit: cover; object-position: center 52%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,20,37,.78) 0%, rgba(11,28,51,.58) 35%, rgba(11,28,51,.16) 73%, rgba(11,28,51,.1) 100%), linear-gradient(0deg, rgba(7,18,32,.25), transparent 45%); }
.hero-copy { position: absolute; inset: 0; width: min(1360px, calc(100% - 80px)); margin: auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: #fff; }
.hero-copy p { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .82; }
.hero-copy h1 { max-width: 800px; margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(42px, 5.5vw, 78px); line-height: 1.08; letter-spacing: -.055em; text-shadow: 0 3px 20px rgba(0,0,0,.15); }
.hero-copy span { margin-top: 22px; font-size: clamp(17px, 2vw, 23px); font-weight: 450; letter-spacing: -.02em; opacity: .94; }

.ad-shell { position: relative; display: grid; place-items: center; overflow: hidden; background: transparent; border: 0; }
.ad-shell .adsbygoogle { width: 100%; height: 100%; min-height: inherit; }
.ad-responsive { width: min(1180px, calc(100% - 48px)); min-height: 180px; margin: 28px auto 38px; }
.article-top-ad .ad-responsive { width: min(920px, 100%); margin: 26px auto 30px; }
.article-content .ad-responsive { width: 100%; min-height: 160px; margin: 18px 0 36px; }
.ad-vertical { width: 100%; min-height: 600px; margin-top: 18px; }

.home-section, .listing-section, .related-section { width: min(1360px, calc(100% - 80px)); margin: 0 auto; padding: 92px 0; }
.home-section + .home-section { border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 34px; }
.section-heading h2 { margin: 4px 0 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(30px, 3vw, 42px); line-height: 1.25; letter-spacing: -.04em; }
.section-heading > a { color: var(--navy-700); font-size: 14px; font-weight: 700; }
.eyebrow { display: block; color: var(--navy-700); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.light { color: #bed3e9; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.post-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-4px); border-color: #c6d2de; box-shadow: var(--shadow); }
.card-image { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--blue-100); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .card-image img { transform: scale(1.025); }
.card-body { padding: 24px 25px 22px; }
.post-category { display: inline-block; color: var(--navy-700); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.card-body h3 { margin: 8px 0 11px; font-size: 21px; line-height: 1.42; letter-spacing: -.035em; }
.card-body p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.65; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 19px; padding-top: 16px; color: #7b8998; border-top: 1px solid #edf0f3; font-size: 11px; }
.card-meta span { color: var(--accent); font-weight: 700; }

.split-section { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .72fr); gap: 70px; align-items: start; }
.latest-list { border-top: 2px solid var(--navy-900); }
.latest-item { display: grid; grid-template-columns: 46px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.latest-number { padding-top: 3px; color: #a5b2c0; font-family: Georgia, serif; font-size: 18px; }
.latest-item h3 { margin: 3px 0 8px; font-size: 20px; line-height: 1.4; letter-spacing: -.025em; }
.latest-item p { margin: 0; color: var(--muted); font-size: 14px; }
.latest-item time { display: block; margin-top: 8px; color: #8a97a5; font-size: 11px; }
.principles-card { position: sticky; top: 116px; padding: 44px; color: #fff; background: var(--navy-900); border-radius: 24px; box-shadow: 0 24px 60px rgba(13,34,58,.22); }
.principles-card::before { content: ""; display: block; width: 46px; height: 4px; margin-bottom: 36px; background: #8aaf98; border-radius: 9px; }
.principles-card h2 { margin: 10px 0 18px; font-family: Georgia, "Noto Serif KR", serif; font-size: 30px; line-height: 1.38; letter-spacing: -.04em; }
.principles-card p { color: #cbd6e3; font-size: 14px; }
.principles-card a { display: inline-block; margin-top: 20px; color: #fff; font-size: 13px; font-weight: 700; }

.category-section { padding-bottom: 110px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.category-card { position: relative; min-height: 190px; padding: 30px; background: var(--surface); border: 1px solid transparent; border-radius: 18px; }
.category-card:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.category-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 19px; color: #fff; background: var(--navy-800); border-radius: 11px; font-family: Georgia, serif; }
.category-card strong { display: block; font-size: 20px; letter-spacing: -.03em; }
.category-card p { margin: 7px 0 22px; color: var(--muted); font-size: 13px; }
.category-card small { position: absolute; right: 25px; bottom: 22px; color: #8290a0; }

.page-header { padding: 95px max(40px, calc((100% - 1120px)/2)); text-align: center; background: linear-gradient(180deg, #eef3f7 0%, #f8fafb 100%); border-bottom: 1px solid var(--line); }
.page-header h1 { max-width: 850px; margin: 12px auto 18px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(38px, 5vw, 58px); line-height: 1.2; letter-spacing: -.05em; }
.page-header p { max-width: 700px; margin: 0 auto; color: var(--muted); font-size: 17px; }
.listing-section { min-height: 420px; }
.empty-state { padding: 70px 20px; text-align: center; background: var(--surface); border-radius: var(--radius); }
.empty-state strong { font-size: 20px; }
.empty-state p { color: var(--muted); }

.search-page form { width: min(680px, 100%); display: flex; margin: 32px auto 18px; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 34px rgba(19,42,68,.08); }
.search-page input { width: 100%; padding: 12px 18px; border: 0; outline: 0; background: transparent; }
.search-page button { padding: 11px 24px; color: #fff; background: var(--navy-800); border: 0; border-radius: 999px; font-weight: 700; cursor: pointer; }

.article-page { padding-bottom: 110px; }
.article-header { width: min(920px, calc(100% - 48px)); margin: 0 auto; padding: 84px 0 48px; text-align: center; }
.breadcrumbs { margin-bottom: 28px; color: #758497; font-size: 12px; }
.breadcrumbs span { margin: 0 9px; }
.article-header h1 { margin: 15px auto 20px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(38px, 5vw, 60px); line-height: 1.25; letter-spacing: -.055em; }
.article-excerpt { max-width: 740px; margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.75; }
.article-dates { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 28px; margin: 30px 0 0; color: #718093; font-size: 12px; }
.article-dates div { display: flex; gap: 7px; }
.article-dates dt { font-weight: 800; color: #405269; }
.article-dates dd { margin: 0; }
.article-image { width: min(1200px, calc(100% - 48px)); aspect-ratio: 16/7.5; margin: 0 auto 64px; overflow: hidden; background: var(--surface); border-radius: 24px; }
.article-image img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { width: min(1200px, calc(100% - 48px)); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin: 0 auto; align-items: start; }
.article-content { min-width: 0; font-size: 17px; line-height: 1.95; }
.article-content h2 { margin: 58px 0 17px; padding-top: 10px; scroll-margin-top: 110px; font-family: Georgia, "Noto Serif KR", serif; font-size: 30px; line-height: 1.4; letter-spacing: -.04em; }
.article-content h3 { margin: 34px 0 10px; font-size: 21px; letter-spacing: -.03em; }
.article-content p { margin: 0 0 20px; }
.article-content ul, .article-content ol { margin: 16px 0 28px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.key-answer { margin-bottom: 42px; padding: 28px 30px; background: #eef4f8; border-left: 4px solid var(--navy-700); border-radius: 0 14px 14px 0; }
.key-answer strong { display: block; margin-bottom: 7px; color: var(--navy-700); font-size: 13px; }
.key-answer p { margin: 0; font-size: 17px; }
.reference-section { margin-top: 60px; padding-top: 8px; border-top: 2px solid var(--navy-900); }
.reference-section h2 { margin-top: 30px; }
.reference-section article { margin-top: 15px; padding: 20px 22px; background: var(--surface); border-radius: 12px; }
.reference-section article h3 { margin: 0 0 6px; font-size: 16px; }
.reference-section article p { margin: 0 0 7px; color: var(--muted); font-size: 14px; }
.reference-section article a { color: var(--navy-700); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.article-disclaimer { margin-top: 56px; padding: 26px 28px; color: #48586a; background: #f2f4f6; border-radius: 13px; font-size: 14px; }
.article-disclaimer strong { color: var(--ink); }
.article-disclaimer p { margin: 7px 0 0; }
.article-sidebar { position: sticky; top: 115px; }
.toc-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.toc-card > strong { font-size: 15px; }
.toc-card ol { margin: 16px 0 0; padding-left: 20px; color: #778596; font-size: 13px; line-height: 1.55; }
.toc-card li + li { margin-top: 9px; }
.toc-card a { color: #3c4e63; }
.toc-card a:hover, .toc-card a:focus-visible { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }
.related-section { margin-top: 88px; padding-top: 72px; border-top: 1px solid var(--line); }

.share-dock { position: fixed; right: 24px; bottom: 24px; z-index: 28; display: flex; flex-direction: column; gap: 11px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.share-button { width: 154px; min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 14px; color: #253244; background: #fff; border: 0; border-radius: 14px; box-shadow: 0 8px 24px rgba(12,31,53,.16); font-size: 13px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.share-button:hover, .share-button:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(21,43,68,.12); }
.share-button svg { width: 19px; height: 19px; flex: 0 0 auto; fill: currentColor; }
.share-kakao { color: #191600; background: #fee500; border-color: #f1d900; }
.share-status { position: absolute; right: 0; bottom: calc(100% + 8px); width: max-content; max-width: 220px; padding: 7px 10px; color: #fff; background: var(--navy-950); border-radius: 8px; font-size: 11px; }
.share-status:empty { display: none; }

.prose-page { width: min(760px, calc(100% - 48px)); min-height: 500px; margin: 0 auto; padding: 72px 0 110px; font-size: 17px; line-height: 1.9; }
.prose-page h2 { margin: 52px 0 12px; font-family: Georgia, "Noto Serif KR", serif; font-size: 30px; letter-spacing: -.04em; }
.prose-page h2:first-child { margin-top: 0; }

.error-page { min-height: 560px; display: grid; place-content: center; padding: 40px; text-align: center; }
.error-page > span { color: #b4c0cb; font-family: Georgia, serif; font-size: 90px; line-height: 1; }
.error-page h1 { margin: 20px 0 10px; font-size: 36px; }
.error-page p { color: var(--muted); }
.error-page a { display: inline-block; margin: 20px auto 0; padding: 11px 20px; color: #fff; background: var(--navy-800); border-radius: 999px; }

.site-footer { color: #d5dee8; background: var(--navy-950); }
.footer-inner { width: min(1360px, calc(100% - 80px)); margin: 0 auto; padding: 64px 0 38px; }
.footer-brand { display: flex; align-items: baseline; gap: 15px; }
.footer-brand strong { color: #fff; font-family: Georgia, "Noto Serif KR", serif; font-size: 24px; }
.footer-brand span { color: #8fa0b2; font-size: 12px; }
.site-footer nav { display: flex; gap: 24px; margin: 30px 0; font-size: 13px; }
.site-footer nav a:hover { color: #fff; }
.legal-notice { max-width: 920px; padding-top: 25px; color: #9dabb9; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; line-height: 1.7; }
.copyright { margin: 28px 0 0; color: #68798b; font-size: 11px; }

@media (max-width: 1100px) {
  .header-inner { gap: 20px; }
  .site-nav { gap: 18px; }
  .header-search { width: 210px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section { grid-template-columns: 1fr; }
  .principles-card { position: static; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 720px); justify-content: center; }
  .article-sidebar { display: none; }
}

@media (max-width: 820px) {
  body { font-size: 15px; line-height: 1.75; }
  .header-inner { width: calc(100% - 32px); min-height: 70px; position: relative; }
  .brand small, .header-search { display: none; }
  .menu-toggle { display: block; margin-left: auto; padding: 9px 13px; color: var(--navy-900); background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; font-weight: 700; }
  .site-nav { display: none; position: absolute; top: 61px; left: -16px; right: -16px; padding: 18px 20px 22px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 20px 30px rgba(20,43,73,.12); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid #edf0f3; }
  .hero { height: 520px; }
  .hero img { object-position: 67% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(7,20,37,.82), rgba(11,28,51,.45)); }
  .hero-copy { width: calc(100% - 42px); justify-content: flex-end; padding-bottom: 70px; }
  .hero-copy h1 { font-size: 43px; }
  .hero-copy span { max-width: 310px; font-size: 17px; }
  .ad-responsive, .article-top-ad .ad-responsive, .article-content .ad-responsive { width: min(336px, calc(100% - 36px)); min-height: 300px; aspect-ratio: 1 / 1; margin: 22px auto 34px; }
  .article-content .ad-responsive { width: min(336px, 100%); }
  .home-section, .listing-section, .related-section { width: calc(100% - 36px); padding: 66px 0; }
  .section-heading { align-items: center; }
  .section-heading h2 { font-size: 30px; }
  .card-grid { grid-template-columns: 1fr; gap: 18px; }
  .card-body h3 { font-size: 19px; }
  .latest-item { grid-template-columns: 36px 1fr; gap: 12px; }
  .latest-item p { display: none; }
  .latest-item h3 { font-size: 18px; }
  .principles-card { padding: 34px 28px; }
  .principles-card h2 { font-size: 26px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 170px; }
  .page-header { padding: 68px 24px; }
  .page-header h1 { font-size: 38px; }
  .page-header p { font-size: 15px; }
  .article-header { width: calc(100% - 36px); padding: 62px 0 36px; }
  .article-header h1 { font-size: 36px; }
  .article-excerpt { font-size: 16px; }
  .article-dates { gap: 8px 16px; }
  .article-image { width: calc(100% - 36px); margin-bottom: 42px; border-radius: 16px; aspect-ratio: 16/9; }
  .article-layout { width: calc(100% - 36px); }
  .article-content { font-size: 16px; line-height: 1.9; }
  .article-content h2 { margin-top: 48px; font-size: 26px; }
  .key-answer { padding: 23px 21px; }
  .article-page { padding-bottom: 158px; }
  .share-dock { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 10px; padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border: 1px solid var(--line); border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
  .share-button { width: auto; min-height: 48px; flex: 1 1 0; padding-top: 7px; padding-bottom: 7px; border: 1px solid var(--line); box-shadow: none; font-size: 14px; }
  .share-kakao { border-color: #f1d900; }
  .share-status { right: 16px; bottom: calc(100% + 8px); }
  .footer-inner { width: calc(100% - 36px); padding-top: 48px; }
  .footer-brand { display: block; }
  .footer-brand span { display: block; margin-top: 5px; }
  .site-footer nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
