:root {
    --bg: #ffffff;
    --surface: #f8fafc;
    --surface-2: #eef2f7;
    --text: #111827;
    --muted: #64748b;
    --line: #dbe3ed;
    --navy: #0f172a;
    --blue: #2563eb;
    --blue-2: #1d4ed8;
    --cyan: #06b6d4;
    --white: #ffffff;
    --shadow: 0 18px 60px rgba(15, 23, 42, .08);
    --radius: 22px;
    --radius-sm: 14px;
    --shell: 1180px;
    --article: 760px;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
    --bg: #07111f;
    --surface: #0d1a2c;
    --surface-2: #13233a;
    --text: #edf5ff;
    --muted: #9fb0c5;
    --line: #263a54;
    --navy: #eaf2ff;
    --white: #ffffff;
    --shadow: 0 18px 60px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3 { color: var(--navy); line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.25rem; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.narrow { max-width: 800px; }
.article-shell { max-width: var(--article); }
.article-wide .article-shell { max-width: 920px; }
.wide-shell { max-width: 1280px; }
.center { text-align: center; }
.section { padding: 92px 0; }
.section-tight { padding: 38px 0; }
.section-muted { background: var(--surface); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; background: var(--navy); color: var(--bg); padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.eyebrow { display: inline-block; color: var(--blue); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 800; margin-bottom: 14px; }

.site-header { border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(18px); z-index: 100; }
.has-sticky-header .site-header { position: sticky; top: 0; }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand img { max-height: 42px; width: auto; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; background: var(--blue); color: #fff; border-radius: 12px; font-weight: 900; }
.brand-text { display: grid; line-height: 1; }
.brand-text strong { font-size: 1rem; letter-spacing: .08em; color: var(--navy); }
.brand-text small { color: var(--blue); margin-top: 4px; }
.site-nav { margin-left: auto; }
.site-nav .nav { display: flex; list-style: none; margin: 0; padding: 0; gap: 22px; align-items: center; }
.site-nav .nav a { color: var(--muted); font-size: .92rem; font-weight: 650; }
.site-nav .nav a:hover, .site-nav .nav-current a { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .gh-search-icon { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; margin-left: auto; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font-weight: 750; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 40px; padding-inline: 16px; font-size: .88rem; }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 28px rgba(37, 99, 235, .2); }
.button-primary:hover { background: var(--blue-2); }
.button-secondary { border-color: var(--line); background: var(--bg); color: var(--navy); }
.button-light { background: #fff; color: #0f172a; }
.text-link { color: var(--blue); font-weight: 750; display: inline-flex; gap: 8px; align-items: center; }

.hero { padding: 100px 0 72px; overflow: hidden; background: radial-gradient(circle at 75% 20%, rgba(37,99,235,.10), transparent 28%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 72px; }
.hero-copy h1 { max-width: 820px; }
.hero-copy > p { max-width: 660px; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.32rem); margin: 26px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: .88rem; }
.hero-points li::before { content: "✓"; color: var(--blue); font-weight: 900; margin-right: 7px; }
.hero-visual { min-height: 470px; position: relative; display: grid; align-content: center; }
.signal-card { border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow); border-radius: var(--radius); }
.signal-main { min-height: 330px; padding: 38px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.signal-main::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(37,99,235,.11); right: -70px; top: -50px; }
.signal-label { font-size: .78rem; letter-spacing: .15em; color: var(--blue); font-weight: 800; }
.signal-main strong { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.02; color: var(--navy); z-index: 1; }
.signal-lines { display: flex; gap: 8px; align-items: end; height: 70px; }
.signal-lines i { display: block; width: 13px; border-radius: 9px; background: var(--blue); }
.signal-lines i:nth-child(1) { height: 30%; opacity: .35; }.signal-lines i:nth-child(2) { height: 55%; opacity: .55; }.signal-lines i:nth-child(3) { height: 78%; opacity: .75; }.signal-lines i:nth-child(4) { height: 100%; }
.signal-small { position: absolute; padding: 17px 20px; min-width: 145px; display: flex; justify-content: space-between; gap: 24px; color: var(--navy); }
.signal-small span { color: var(--blue); font-size: .78rem; }.signal-small:nth-child(2) { right: -25px; bottom: 25px; }.signal-small:nth-child(3) { left: -35px; top: 25px; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; display: grid; gap: 4px; background: var(--bg); transition: .2s ease; }
.quick-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.quick-card > span { color: var(--blue); font-size: .75rem; font-weight: 800; }.quick-card strong { color: var(--navy); font-size: 1.1rem; }.quick-card small { color: var(--muted); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { min-width: 0; border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .22s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-image { aspect-ratio: 16/10; background: var(--surface-2); overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }.post-card:hover img { transform: scale(1.03); }
.image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(145deg, var(--navy), var(--blue)); color: #fff; }
.image-placeholder span { font-size: 2.4rem; font-weight: 900; letter-spacing: -.06em; }
.post-card-content { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: .77rem; }
.tag-pill { display: inline-flex; width: max-content; padding: 5px 9px; border-radius: 999px; background: rgba(37,99,235,.10); color: var(--blue); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.post-card-title { font-size: 1.45rem; margin: 16px 0 10px; }.post-card-content > p { color: var(--muted); font-size: .94rem; }
.post-card-footer { margin-top: auto; display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; padding-top: 14px; }
.featured-story { display: grid; grid-template-columns: .88fr 1.12fr; background: var(--navy); color: #dbe7f7; border-radius: 28px; overflow: hidden; }
.featured-content { padding: clamp(30px, 5vw, 64px); align-self: center; }.featured-content h2 { color: #fff; margin: 18px 0; }.featured-content p { color: #b9c8db; }.story-meta { display: flex; gap: 18px; color: #91a4bc; font-size: .82rem; margin-bottom: 24px; }.featured-content .text-link { color: #8bc7ff; }
.featured-image { min-height: 480px; }.featured-image img { width: 100%; height: 100%; object-fit: cover; }
.split-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }.split-section p { color: var(--muted); margin: 20px 0 28px; }
.topic-list { border-top: 1px solid var(--line); }.topic-list a { display: flex; justify-content: space-between; padding: 20px 4px; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 700; }.topic-list b { color: var(--blue); }
.newsletter-band { background: var(--blue); color: #eaf2ff; padding: 70px 0; }.newsletter-band h2 { color: #fff; }.newsletter-band .eyebrow { color: #bfe7ff; }.newsletter-band p { color: #dbeafe; margin-top: 16px; }.newsletter-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; }

.archive-header { padding: 92px 0 58px; text-align: center; background: var(--surface); border-bottom: 1px solid var(--line); }.archive-header h1 { font-size: clamp(2.7rem, 6vw, 5rem); }.archive-header p { color: var(--muted); font-size: 1.15rem; margin: 22px auto 0; max-width: 700px; }
.author-avatar { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; margin: 0 auto 18px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 48px; color: var(--muted); }

.article-header { padding: 88px 0 50px; text-align: center; }.article-kicker { display: flex; justify-content: center; align-items: center; gap: 14px; color: var(--muted); font-size: .84rem; }.article-header h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); margin-top: 20px; }.article-deck { color: var(--muted); font-size: 1.25rem; margin: 25px auto; max-width: 760px; }.article-byline { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .82rem; }.article-feature { margin-bottom: 58px; }.article-feature img { width: 100%; max-height: 760px; object-fit: cover; border-radius: 24px; }.article-feature figcaption { color: var(--muted); font-size: .8rem; margin-top: 8px; text-align: center; }
.article-layout { display: grid; grid-template-columns: 130px minmax(0, var(--article)) 1fr; gap: 34px; align-items: start; }.article-aside { position: sticky; top: 110px; display: grid; gap: 8px; font-size: .8rem; color: var(--muted); }.aside-label { text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--text); }.article-aside a:hover { color: var(--blue); }.share-copy { width: max-content; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }.share-copy:hover { color: var(--blue); }
.gh-content { min-width: 0; }.gh-content > * { max-width: 100%; }.gh-content p, .gh-content li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); }.gh-content p { margin: 0 0 1.5em; }.gh-content h2 { margin: 2.1em 0 .7em; font-size: clamp(1.8rem, 4vw, 2.7rem); }.gh-content h3 { margin: 1.7em 0 .6em; }.gh-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }.gh-content blockquote { margin: 2em 0; padding: 8px 0 8px 25px; border-left: 4px solid var(--blue); font-size: 1.2rem; color: var(--navy); }.gh-content pre { overflow-x: auto; padding: 22px; background: #0b1220; color: #e5efff; border-radius: 14px; }.gh-content code { font-size: .9em; }.gh-content table { width: 100%; border-collapse: collapse; font-size: .93rem; }.gh-content th, .gh-content td { padding: 12px; border: 1px solid var(--line); text-align: left; }.gh-content th { background: var(--surface); }.gh-content hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.kg-width-wide { width: min(1100px, calc(100vw - 40px)); max-width: none !important; margin-left: 50%; transform: translateX(-50%); }.kg-width-full { width: 100vw; max-width: none !important; margin-left: 50%; transform: translateX(-50%); }.kg-image, .kg-gallery-image img { border-radius: 14px; }.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }.kg-gallery-row { display: flex; flex-direction: row; gap: 8px; }.kg-gallery-image { flex: 1; }.kg-bookmark-card a { display: grid; grid-template-columns: 1fr 180px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--text); }.kg-bookmark-content { padding: 20px; }.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }.kg-callout-card { padding: 20px; border-radius: 14px; }.kg-toggle-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; }.kg-button-card a.kg-btn { display: inline-flex; background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 10px; text-decoration: none; }
.article-cta { margin-top: 64px; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--blue) 8%, var(--bg))); }.article-cta h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }.article-cta p { max-width: 610px; margin: 16px 0 24px; color: var(--muted); }.article-footer { padding: 54px 0 90px; }.article-tags a { display: inline-block; padding: 7px 10px; margin: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; }.author-box { margin-top: 38px; border-top: 1px solid var(--line); padding-top: 32px; display: flex; gap: 20px; }.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }.author-box h2 { font-size: 1.45rem; margin: 0 0 8px; }.author-box p { color: var(--muted); }
.reading-progress { position: fixed; z-index: 1000; top: 0; left: 0; width: 100%; height: 3px; }.reading-progress span { display: block; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.page-slug .article-content { padding-top: 70px; padding-bottom: 100px; }.page-hero { padding-bottom: 78px; }.error-page { padding: 140px 0; }.error-code { font-size: 5rem; color: var(--blue); font-weight: 900; }.error-page p { color: var(--muted); margin: 20px 0 30px; }

.site-footer { background: #081221; color: #aebed2; padding: 72px 0 24px; }.site-footer .brand-text strong { color: #fff; }.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 70px; }.footer-brand p { max-width: 360px; margin-top: 20px; }.footer-title { color: #fff; font-size: 1rem; letter-spacing: .02em; }.site-footer .nav { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }.site-footer a:hover { color: #fff; }.footer-bottom { border-top: 1px solid #203149; margin-top: 54px; padding-top: 22px; display: flex; justify-content: space-between; font-size: .78rem; }

@media (max-width: 1020px) {
    .site-nav { position: fixed; inset: 79px 0 auto; background: var(--bg); border-bottom: 1px solid var(--line); padding: 22px; display: none; }
    .site-nav.is-open { display: block; }.site-nav .nav { display: grid; gap: 4px; }.site-nav .nav a { display: block; padding: 10px 4px; font-size: 1rem; }
    .nav-toggle { display: block; }.header-actions .button { display: none; }
    .hero-grid, .featured-story, .split-section { grid-template-columns: 1fr; }.hero-visual { max-width: 650px; width: 100%; margin-inline: auto; }.featured-image { min-height: 360px; order: -1; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }.post-grid { grid-template-columns: repeat(2, 1fr); }.article-layout { grid-template-columns: 1fr; max-width: var(--article); }.article-aside { position: static; display: flex; }.footer-grid { grid-template-columns: 1fr 1fr; }.footer-brand { grid-column: 1/-1; }
}

@media (max-width: 700px) {
    body { font-size: 16px; }.shell { width: min(calc(100% - 28px), var(--shell)); }.section { padding: 68px 0; }.header-inner { min-height: 68px; gap: 8px; }.site-nav { top: 69px; }.header-actions { gap: 6px; }.icon-button, .gh-search-icon { width: 38px; height: 38px; }.hero { padding: 70px 0 50px; }.hero-grid { gap: 40px; }.hero-visual { min-height: 390px; }.signal-main { min-height: 280px; padding: 26px; }.signal-small:nth-child(2) { right: 8px; }.signal-small:nth-child(3) { left: 8px; }.quick-grid, .post-grid { grid-template-columns: 1fr; }.section-heading { align-items: start; flex-direction: column; }.newsletter-inner, .footer-bottom { align-items: start; flex-direction: column; }.newsletter-inner .button { width: 100%; }.archive-header { padding: 70px 0 44px; }.article-header { padding: 64px 0 38px; }.article-feature img { border-radius: 0; }.article-feature.shell { width: 100%; }.kg-bookmark-card a { grid-template-columns: 1fr; }.kg-bookmark-thumbnail { height: 180px; }.kg-width-wide { width: calc(100vw - 28px); }.footer-grid { grid-template-columns: 1fr; gap: 40px; }.footer-brand { grid-column: auto; }
}
