/* Scoped to the new shell; existing pages retain their current styles. */
.site {
    --site-ink: #111722;
    --site-muted: #526074;
    --site-paper: #f8fafc;
    --site-line: #dde3eb;
    --site-night: #17202c;
    --site-accent: #3454b4;
    color-scheme: light;
    margin: 0;
    color: var(--site-ink);
    background: var(--site-paper);
    font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site *, .site *::before, .site *::after { box-sizing: border-box; }
.site a { color: var(--site-accent); text-underline-offset: 4px; }
.site a:focus-visible, .site summary:focus-visible, .site [tabindex]:focus-visible {
    outline: 3px solid #8064ec; outline-offset: 5px;
}
.site h1, .site h2, .site h3, .site p { margin: 0; }
.site h1, .site h2, .site h3 { line-height: 1.15; letter-spacing: -.035em; }
.site h1 { font-size: clamp(2.35rem, 5vw, 4rem); overflow-wrap: anywhere; }
.site h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.site h3 { font-size: 1.15rem; }
.site img { display: block; max-width: 100%; height: auto; }
.site main { min-height: 65vh; }
.site .site-wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.site .site-skip { position: absolute; top: -100px; left: 16px; z-index: 10; background: white; padding: 12px; }
.site .site-skip:focus { top: 10px; }
.site .site-header { background: transparent; color: var(--site-ink); }
.site .site-footer { background: var(--site-night); color: #fff; }
.site .site-header-inner { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 88px; gap: 28px; }
.site .site-brand { font-size: 1.3rem; font-weight: 750; letter-spacing: -.03em; color: inherit; text-decoration: none; }
.site .site-desktop-nav { display: flex; gap: 30px; margin-inline: auto; }
.site .site-header nav a { color: inherit; text-decoration: none; }
.site .site-header a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; }
.site .site-mobile-nav { display: none; }
.site .site-button { display: inline-flex; justify-content: center; align-items: center; padding: 11px 23px; min-height: 46px; border: 1px solid var(--site-line); border-radius: 100px; background: white; color: var(--site-ink); font-size: .9rem; font-weight: 650; line-height: 1.5; text-decoration: none; }
.site .site-button:hover { background: #e9eef8; }
.site .site-button-ghost { background: transparent; border-color: #8690a1; color: white; }
.site .site-button-ghost:hover { background: #ffffff1a; }
.site .site-page-heading { max-width: 800px; padding-block: 66px 38px; }
.site .site-page-heading > p:last-child { color: var(--site-muted); margin-top: 20px; font-size: 1.1rem; }
.site .site-eyebrow { font-size: .72rem; letter-spacing: .17em; font-weight: 700; text-transform: uppercase; color: var(--site-muted); margin-bottom: 12px; }
.site .site-section { padding-block: 56px; }
.site .site-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.site .site-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.site .site-post-card { display: flex; min-width: 0; border: 1px solid #d9dde3; border-radius: 16px; overflow: hidden; background: white; box-shadow: 0 2px 5px #17202c0d; transition: transform 180ms ease, box-shadow 180ms ease; }
.site .site-post-link { display: flex; flex-direction: column; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.site .site-post-cover { display: block; width: 100%; max-width: none; height: auto; border: 0; flex-shrink: 0; }
.site .site-post-content { flex: 1; padding: 24px 22px 28px; }
.site .site-post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; color: #647080; font-size: .82rem; line-height: 1.6; margin-bottom: 12px; }
.site .site-post-card h3 { font-size: 1.23rem; line-height: 1.24; font-weight: 750; margin-bottom: 12px; overflow-wrap: anywhere; }
.site .site-post-card p { font-size: .96rem; line-height: 1.6; color: var(--site-muted); }
.site .site-post-link:hover h3 { text-decoration: underline; }
.site .site-post-card:focus-within { outline: 3px solid #8064ec; outline-offset: 5px; transform: translateY(-4px); box-shadow: 0 12px 26px #17202c1a, 0 3px 8px #17202c0d; }
.site .site-post-link:focus-visible { outline: none; }
.site .site-app-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.site .site-app-card { display: flex; background: white; border: 1px solid var(--site-line); border-radius: 20px; min-width: 0; }
.site .site-app-link { display: flex; flex-direction: column; flex: 1; gap: 14px; padding: 22px 20px; color: inherit; text-decoration: none; border-radius: inherit; }
.site .site-app-link:hover h3 { text-decoration: underline; }
.site .site-app-card p { font-size: .9rem; color: var(--site-muted); }
.site .site-app-icon { width: 72px; height: 72px; object-fit: contain; border-radius: 21px; }
.site .site-tag { align-self: flex-start; margin-top: auto; padding: 3px 10px; border-radius: 100px; background: #edf1f7; color: #465469; font-size: .72rem; font-weight: 600; }
.site .site-reading { max-width: 740px; margin-inline: auto; padding-block: 54px 72px; }
.site .site-reading h2 { font-size: 1.8rem; margin: 44px 0 18px; }
.site .site-reading p { margin-block: 20px; font-size: 1.125rem; line-height: 1.8; }
.site .site-reading figure { margin: 28px 0; }
.site .site-reading figure img { width: 100%; border-radius: 12px; }
.site .site-reading figcaption { font-size: .83rem; color: var(--site-muted); margin-top: 10px; }
.site pre { background: #182130; color: #e7efff; padding: 24px; border-radius: 14px; max-width: 100%; overflow: auto; line-height: 1.65; font-size: .88rem; tab-size: 4; }
.site code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.site .site-footer { padding-block: 40px; }
.site .site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.site .site-footer p { font-size: .8rem; color: #c0c9d8; margin-top: 7px; }
.site .site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site .site-footer nav a { color: #f5f7fc; font-size: .9rem; }
@media (hover: hover) and (pointer: fine) {
    .site .site-post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px #17202c1a, 0 3px 8px #17202c0d; }
}
@media (max-width: 1050px) {
    .site .site-app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .site .site-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .site .site-wrap { width: calc(100% - 40px); }
    .site .site-header-inner { display: flex; min-height: 76px; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block: 16px; }
    .site .site-desktop-nav, .site .site-contact { display: none; }
    .site .site-mobile-nav { display: block; }
    .site .site-mobile-nav summary { cursor: pointer; padding: 7px 12px; border: 1px solid #69758a; border-radius: 8px; }
    .site .site-mobile-nav[open] { width: auto; }
    .site .site-mobile-nav nav { display: flex; flex-wrap: wrap; gap: 12px 22px; padding-top: 20px; }
    .site .site-page-heading { padding-block: 44px 30px; }
    .site .site-section { padding-block: 38px; }
    .site .site-post-grid { grid-template-columns: 1fr; }
    .site .site-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .site .site-app-link { padding: 18px 16px; }
    .site .site-reading { padding-block: 36px 50px; }
    .site .site-reading p { font-size: 1.05rem; }
    .site .site-footer-inner { align-items: flex-start; flex-direction: column; }
    .site pre { padding: 18px; }
}
@media (max-width: 380px) {
    .site .site-app-grid { grid-template-columns: 1fr; }
    .site .site-actions { flex-direction: column; }
    .site .site-brand { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
    .site .site-post-card { transition: none; }
    .site .site-post-card:hover, .site .site-post-card:focus-within { transform: none; }
}

.site .site-hero { color: white; background: radial-gradient(ellipse at 92% 40%, #aa7d74 0%, #59617f 28%, #273248 56%, #141c27 90%); }
.site .site-hero-inner { min-height: 470px; padding-block: 72px; }
.site .site-hero .site-eyebrow { color: #d3d9e7; }
.site .site-hero h1 { font-size: clamp(3.1rem, 6vw, 4.9rem); margin-bottom: 22px; }
.site .site-hero h1 span { color: #a8b8ff; }
@supports (background-clip: text) { .site .site-hero h1 span { background: linear-gradient(100deg,#74d4ff,#bb8bfb); background-clip: text; color: transparent; } }
.site .site-hero p:not(.site-eyebrow) { font-size: 1.1rem; max-width: 560px; }
.site .site-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.site .site-tinted { background: #edf1f7; }
.site .site-archive { padding-bottom: 72px; }
.site .site-product-monogram { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; color: white; background: #3454b4; font-size: 1.6rem; font-weight: 750; }
@media (max-width:700px) {
    .site .site-hero-inner { min-height: auto; padding-block: 48px; }
    .site .site-section-heading { flex-direction: column; align-items: flex-start; }
}

/* One continuous hero backdrop underneath the transparent homepage navigation. */
.site .site-contact { display: flex; justify-self: end; align-items: center; gap: 16px; }
.site .site-social-links { display: flex; align-items: center; gap: 8px; }
.site .site-social-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: inherit; border-radius: 8px; }
.site .site-social-link:hover { background: #8091ad22; }
.site .site-social-link svg { display: block; flex-shrink: 0; }
.site .site-footer nav { align-items: center; }
.site.site-home .site-header { position: relative; z-index: 2; margin-bottom: -88px; color: white; }
.site.site-home .site-hero-inner { min-height: 558px; padding-top: 160px; }
@media (min-width: 701px) and (max-width: 1000px) {
    .site .site-header-inner { grid-template-columns: auto 1fr auto; gap: 16px; }
    .site .site-desktop-nav { gap: 20px; }
    .site .site-contact { gap: 8px; }
    .site .site-contact .site-button { display: none; }
}
@media (max-width: 700px) {
    .site .site-contact { display: none; }
    .site.site-home .site-header { margin-bottom: -76px; }
    .site.site-home .site-hero-inner { min-height: auto; padding-top: 124px; }
    .site .site-mobile-nav summary { min-height: 44px; display: flex; align-items: center; }
    .site .site-mobile-nav nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 3; padding: 20px; border: 1px solid var(--site-line); border-radius: 12px; background: var(--site-paper); color: var(--site-ink); box-shadow: 0 12px 26px #17202c1a; }
    .site .site-mobile-nav nav > a { min-height: 44px; display: inline-flex; align-items: center; }
    .site .site-mobile-nav .site-social-links { flex-basis: 100%; }
}

.site .site-article h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.13; }
.site .site-back { display: inline-block; margin-bottom: 28px; font-size: .9rem; }
.site .site-article .site-article-summary { font-size: 1.2rem; color: var(--site-muted); }
.site .site-byline { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--site-muted); font-size: .88rem; margin: 22px 0 32px; }
.site .site-article-hero img { width: 100%; height: auto; }
.site .site-reading li { margin-block: 10px; }
.site .site-related-link { display: block; margin-block: 20px; }
.site .site-note { padding: 20px 24px; border-left: 3px solid #4965b5; background: #edf1fb; border-radius: 0 12px 12px 0; margin-block: 24px; }
.site .site-sponsor { border: 1px solid var(--site-line); padding: 24px; border-radius: 16px; background: white; margin-block: 32px; }
.site .site-sponsor-link { display: block; text-decoration: none; color: inherit; }
.site .site-sponsor-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site .site-sponsor-heading img { width: 100px; }
.site .site-sponsor-heading span { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--site-muted); }
.site .site-sponsor p { font-size: 1rem; }
.site .site-sponsor-link:hover .site-button { background: #e9eef8; }
.site .site-article hr { border: 0; border-top: 1px solid var(--site-line); margin-block: 36px; }
.site .token.comment, .site .token.prolog { color: #aab8ce; }
.site .token.keyword, .site .token.atrule { color: #e6a7ed; }
.site .token.string, .site .token.char { color: #a7e8b7; }
.site .token.number, .site .token.boolean, .site .token.constant { color: #ffd494; }
.site .token.function, .site .token.class-name, .site .token.builtin { color: #91d7ff; }
.site .token.operator, .site .token.punctuation { color: #e7efff; }


.site .site-about-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.site .site-prose p { margin-bottom: 24px; font-size: 1.125rem; line-height: 1.8; }
.site .site-info-panel { padding: 28px; background: #edf1f7; border: 1px solid var(--site-line); border-radius: 20px; }
.site .site-info-panel h2 { font-size: 1.35rem; margin-bottom: 16px; }
.site .site-info-panel ul { padding-left: 20px; margin: 0; }
.site .site-info-panel li + li { margin-top: 12px; }
@media (max-width: 700px) { .site .site-about-layout { grid-template-columns: 1fr; gap: 32px; } }
