:root {
    --ink: #171918;
    --muted: #606865;
    --line: #d9dedb;
    --paper: #ffffff;
    --soft: #f3f5f4;
    --green: #0d5c4b;
    --green-dark: #084338;
    --blue: #2857a4;
    --red: #a9403a;
    --shell: 1180px;
    --article: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.site-shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.site-shell--article { width: min(calc(100% - 48px), var(--article)); margin-inline: auto; }
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 16px; }
.eyebrow {
    display: inline-block; color: var(--green); font-size: 12px; font-weight: 800;
    line-height: 1.3; text-transform: uppercase;
}
.notice-bar { background: var(--green-dark); color: #fff; font-size: 12px; line-height: 32px; }
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .97); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 72px; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand-mark {
    display: grid; width: 36px; height: 36px; place-items: center;
    background: var(--ink); color: #fff; font-size: 13px; font-weight: 900;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 18px; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 800; }
.primary-nav { justify-self: end; }
.nav-list { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.nav-list a { display: block; padding: 24px 0 21px; border-bottom: 3px solid transparent; font-size: 14px; font-weight: 700; }
.nav-list a:hover, .nav-list a:focus-visible { border-color: var(--green); color: var(--green); }
.search-link { display: grid; width: 40px; height: 40px; place-items: center; border-left: 1px solid var(--line); }
.menu-toggle { display: none; border: 0; background: transparent; }
.hero { position: relative; min-height: 440px; overflow: hidden; background: #eef0ef; }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__inner { position: relative; display: flex; align-items: center; min-height: 440px; }
.hero__copy { width: 48%; padding: 54px 0; }
.hero__kicker { margin: 0 0 17px; color: var(--green); font-size: 11px; font-weight: 900; }
.hero h1 { margin: 0; font-size: 58px; line-height: 1.06; letter-spacing: 0; }
.hero__lead { margin: 22px 0 30px; color: #3f4643; font-size: 19px; line-height: 1.7; }
.button-link {
    display: inline-flex; align-items: center; min-height: 48px; gap: 18px; padding: 11px 18px;
    background: var(--ink); color: #fff; font-size: 14px; font-weight: 800;
}
.button-link:hover, .button-link:focus-visible { background: var(--green); }
.topic-band { padding: 58px 0 66px; border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { margin: 5px 0 0; font-size: 30px; line-height: 1.25; }
.section-heading--row { display: flex; align-items: end; justify-content: space-between; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.topic-link { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 18px; min-height: 128px; padding: 22px 24px; border-right: 1px solid var(--line); }
.topic-link:last-child { border-right: 0; }
.topic-link:hover, .topic-link:focus-visible { background: var(--soft); }
.topic-link__code { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; background: var(--green); font-size: 12px; font-weight: 900; }
.topic-link--kr-stocks .topic-link__code { background: var(--blue); }
.topic-link--it-tech .topic-link__code { background: var(--red); }
.topic-link__copy { display: flex; min-width: 0; flex-direction: column; }
.topic-link__copy strong { font-size: 18px; }
.topic-link__copy small { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.topic-link__arrow { font-size: 22px; }
.latest-section, .archive-content { padding: 76px 0 96px; }
.text-link { padding-bottom: 2px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 800; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px 24px; }
.post-card { min-width: 0; }
.post-card__media { display: block; aspect-ratio: 1.62; margin-bottom: 18px; overflow: hidden; background: var(--soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.post-card:hover .post-card__media img { transform: scale(1.02); }
.post-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; border: 1px solid var(--line); background: #edf2ef; color: #799087; }
.post-card__placeholder span { font-size: 12px; font-weight: 900; }
.post-card__title { margin: 8px 0 10px; font-size: 21px; line-height: 1.42; }
.post-card__title a:hover, .post-card__title a:focus-visible { color: var(--green); }
.post-card__excerpt { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.post-card__date { display: block; margin-top: 15px; color: #838a87; font-size: 12px; }
.empty-state { padding: 64px 32px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); text-align: center; }
.empty-state h2, .empty-state h3 { margin: 8px 0; font-size: 24px; }
.empty-state p { margin: 6px 0 0; color: var(--muted); }
.standards-band { padding: 74px 0; background: #18211e; color: #fff; }
.standards-grid { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 0; }
.standards-intro { padding-right: 45px; }
.standards-intro .eyebrow { color: #7fc0aa; }
.standards-intro h2 { margin: 10px 0 0; font-size: 34px; line-height: 1.3; }
.standard-item { padding: 4px 26px 0; border-left: 1px solid #3b4743; }
.standard-item span { color: #7fc0aa; font-size: 11px; font-weight: 800; }
.standard-item h3 { margin: 18px 0 8px; font-size: 17px; }
.standard-item p { margin: 0; color: #b9c2bf; font-size: 13px; }
.site-footer { background: #101513; color: #fff; }
.footer-main { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 80px; padding-top: 58px; padding-bottom: 48px; }
.brand--footer .brand-mark { background: #fff; color: var(--ink); }
.brand--footer .brand-copy small { color: #aeb6b3; }
.footer-brand p { max-width: 530px; margin: 20px 0 0; color: #aeb6b3; font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 28px; margin: 0; padding: 4px 0 0; list-style: none; font-size: 13px; }
.footer-links a:hover, .footer-links a:focus-visible { color: #8bd0b8; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 20px; padding-bottom: 25px; border-top: 1px solid #303734; color: #87908c; font-size: 11px; }
.footer-bottom p { margin: 0; }
.archive-header { padding: 68px 0 58px; background: var(--soft); border-bottom: 1px solid var(--line); }
.archive-header h1 { margin: 8px 0 0; font-size: 42px; line-height: 1.25; }
.archive-description { max-width: 650px; margin-top: 16px; color: var(--muted); }
.archive-description p { margin: 0; }
.pagination { margin-top: 58px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: grid; min-width: 40px; height: 40px; padding: 0 10px; place-items: center; border: 1px solid var(--line); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.article-header { padding-top: 76px; padding-bottom: 42px; }
.article-header h1 { margin: 13px 0 18px; font-size: 46px; line-height: 1.28; word-break: keep-all; }
.article-deck { margin: 0; color: var(--muted); font-size: 19px; line-height: 1.7; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0; margin-top: 28px; color: #747c78; font-size: 12px; }
.article-meta span, .article-meta time { display: inline-flex; align-items: center; }
.article-meta span + span::before, .article-meta span + time::before, .article-meta time + span::before { content: ""; width: 3px; height: 3px; margin: 0 10px; border-radius: 50%; background: #9da4a1; }
.article-feature { margin-bottom: 48px; }
.article-feature img { width: 100%; max-height: 660px; object-fit: cover; }
.article-content { padding-bottom: 62px; font-family: Georgia, "Noto Serif KR", serif; font-size: 18px; line-height: 1.9; }
.article-content > *:first-child { margin-top: 0; }
.article-content h2, .article-content h3 { font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif; line-height: 1.45; }
.article-content h2 { margin: 2.6em 0 .7em; padding-top: .7em; border-top: 1px solid var(--line); font-size: 28px; }
.article-content h3 { margin: 2em 0 .5em; font-size: 22px; }
.article-content p { margin: 0 0 1.35em; }
.article-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { margin: 2em 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--green); color: #46504c; }
.article-content ul, .article-content ol { padding-left: 1.4em; }
.article-content table { width: 100%; border-collapse: collapse; font-family: Pretendard, sans-serif; font-size: 14px; }
.article-content th, .article-content td { padding: 11px; border: 1px solid var(--line); text-align: left; }
.article-content th { background: var(--soft); }
.investment-note { margin-bottom: 70px; padding: 22px 24px; border-left: 4px solid var(--green); background: var(--soft); }
.investment-note strong { font-size: 14px; }
.investment-note p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; padding-top: 30px; padding-bottom: 70px; border-top: 1px solid var(--line); }
.post-navigation > div:last-child { text-align: right; }
.post-navigation a { display: inline-flex; max-width: 80%; flex-direction: column; font-weight: 700; }
.post-navigation span { margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 500; }
.page-header { padding-top: 72px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.page-header h1 { margin: 8px 0 0; font-size: 44px; }
.page-article .article-content { padding-top: 46px; padding-bottom: 90px; }
.not-found { padding-top: 100px; padding-bottom: 120px; }
.not-found h1 { margin: 8px 0 15px; font-size: 42px; }
.not-found p { color: var(--muted); }
.not-found .button-link { margin-top: 20px; }
.search-form { display: flex; max-width: 520px; margin: 28px auto 0; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-right: 0; background: #fff; }
.search-form button { padding: 10px 20px; border: 0; background: var(--ink); color: #fff; font-weight: 800; }

@media (max-width: 900px) {
    .site-shell, .site-shell--article { width: min(calc(100% - 36px), var(--shell)); }
    .header-inner { grid-template-columns: auto 1fr auto; gap: 14px; min-height: 66px; }
    .menu-toggle { display: grid; justify-self: end; width: 40px; height: 40px; place-items: center; padding: 0; }
    .menu-toggle__icon { display: flex; width: 21px; flex-direction: column; gap: 4px; }
    .menu-toggle__icon i { display: block; width: 100%; height: 2px; background: var(--ink); }
    .search-link { grid-column: 3; grid-row: 1; margin-left: 42px; border: 0; }
    .menu-toggle { grid-column: 3; grid-row: 1; margin-right: 34px; }
    .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 66px; min-height: calc(100vh - 66px); padding: 18px; background: #fff; border-top: 1px solid var(--line); }
    .primary-nav.is-open { display: block; }
    .nav-list { align-items: stretch; flex-direction: column; gap: 0; }
    .nav-list a { padding: 17px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
    .hero, .hero__inner { min-height: 410px; }
    .hero__image { object-position: 56% center; opacity: .34; }
    .hero__copy { width: 72%; }
    .hero h1 { font-size: 50px; }
    .topic-grid { grid-template-columns: 1fr; }
    .topic-link { min-height: 104px; border-right: 0; border-bottom: 1px solid var(--line); }
    .topic-link:last-child { border-bottom: 0; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .standards-grid { grid-template-columns: 1fr 1fr; gap: 34px 0; }
    .standards-intro { grid-column: 1 / -1; }
    .standard-item { padding-left: 22px; }
    .standard-item:nth-child(2) { border-left: 0; padding-left: 0; padding-right: 22px; }
    .footer-main { gap: 40px; }
}

@media (max-width: 600px) {
    .site-shell, .site-shell--article { width: min(calc(100% - 32px), var(--shell)); }
    .notice-bar { white-space: nowrap; overflow: hidden; font-size: 11px; }
    .brand-copy strong { font-size: 16px; }
    .hero, .hero__inner { min-height: 388px; }
    .hero__image { object-position: 58% center; opacity: .28; }
    .hero__copy { width: 100%; padding: 44px 0; }
    .hero__kicker { max-width: 230px; line-height: 1.5; }
    .hero h1 { font-size: 42px; }
    .hero__lead { margin: 18px 0 25px; font-size: 16px; }
    .topic-band { padding: 48px 0 52px; }
    .section-heading h2 { font-size: 26px; }
    .topic-link { grid-template-columns: 42px 1fr auto; padding: 18px 8px; gap: 14px; }
    .topic-link__copy strong { font-size: 17px; }
    .topic-link__copy small { font-size: 12px; }
    .latest-section, .archive-content { padding: 56px 0 72px; }
    .section-heading--row { align-items: start; }
    .post-grid { grid-template-columns: 1fr; gap: 38px; }
    .empty-state { padding: 48px 18px; text-align: left; }
    .standards-band { padding: 56px 0; }
    .standards-grid { grid-template-columns: 1fr; gap: 0; }
    .standards-intro { padding: 0 0 32px; }
    .standards-intro h2 { font-size: 30px; }
    .standard-item, .standard-item:nth-child(2) { padding: 24px 0; border-top: 1px solid #3b4743; border-left: 0; }
    .footer-main { grid-template-columns: 1fr; gap: 34px; padding-top: 48px; }
    .footer-links { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; }
    .archive-header { padding: 48px 0 42px; }
    .archive-header h1 { font-size: 32px; }
    .article-header { padding-top: 54px; }
    .article-header h1 { font-size: 34px; }
    .article-deck { font-size: 16px; }
    .article-content { font-size: 17px; line-height: 1.85; }
    .article-content h2 { font-size: 24px; }
    .page-header h1 { font-size: 34px; }
    .post-navigation { gap: 18px; }
    .post-navigation a { max-width: 100%; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .post-card__media img { transition: none; }
}
