/* 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, .site .site-footer { background: var(--site-night); color: #fff; }
.site .site-header-inner { display: flex; align-items: center; min-height: 88px; gap: 32px; }
.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: #f3f5fb; 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 { 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: 100%; }
    .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; }
}
