/*
 * Osnivo blog theme — https://osnivo.com/blog
 * Header/footer/buttons/tokens: shared/osnivo-chrome.css (inlined before this file).
 * Tokens and component language mirror resources/css/app.css. Docs: docs/themes.md
 */

/* ===================================================================
   Base
   =================================================================== */
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "cv11", "ss01";
    background:
        radial-gradient(60rem 34rem at 12% -8%, rgb(124 140 255 / .13), transparent 60%),
        radial-gradient(50rem 30rem at 92% -6%, rgb(196 139 255 / .09), transparent 60%),
        #04050a;
}
body.admin-bar { --osn-top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { body.admin-bar { --osn-top: 0px; } body.admin-bar .osn-header { position: absolute; top: 46px; } }
::selection { background: rgb(124 140 255 / .45); color: #fff; }
:where(a, button, input, summary):focus-visible { outline: 2px solid var(--osn-iris); outline-offset: 2px; border-radius: 6px; }

/* Film grain, same as the main site's .noise */
body::after {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wp-site-blocks { overflow-x: clip; }
.wp-site-blocks > * { margin-block: 0; }
.osn-main { padding-top: 96px; padding-bottom: 32px; }
.osn-site-header { position: relative; z-index: 100; }

/* Cursor spotlight (driven by --mx/--my from osnivo.js) */
.spot { position: relative; isolation: isolate; }
.spot::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
    opacity: 0; transition: opacity .35s ease;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(124 140 255 / .14), transparent 45%);
}
.spot:hover::before { opacity: 1; }

/* ===================================================================
   Hero (blog index, archives, search, 404)
   =================================================================== */
.osn-hero { position: relative; isolation: isolate; text-align: center; padding: 72px 0 32px; }
.osn-hero-sm { padding-bottom: 16px; }
.osn-hero > * { margin-inline: auto; }
.osn-hero-fx {
    position: absolute; z-index: -1; pointer-events: none;
    top: -120px; bottom: -80px; left: 50%; width: 100vw; max-width: none !important; margin: 0 !important;
    transform: translateX(-50%); overflow: hidden;
}
.osn-grid-bg {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 25%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 25%, transparent 75%);
}
.osn-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: osn-float 12s ease-in-out infinite; }
.osn-orb-a { width: 520px; height: 520px; left: calc(50% - 560px); top: -40px; background: radial-gradient(circle, rgb(124 140 255 / .55), transparent 65%); }
.osn-orb-b { width: 460px; height: 460px; left: calc(50% + 80px); top: 10px; background: radial-gradient(circle, rgb(196 139 255 / .4), rgb(255 143 107 / .12) 45%, transparent 70%); animation-delay: -6s; }
@keyframes osn-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -18px, 0); } }

.osn-hero .osn-eyebrow { margin: 0 auto; }
.osn-hero-title, .osn-hero h1.wp-block-query-title {
    margin: 22px auto 0 !important; max-width: 16ch;
    font: 600 clamp(2.6rem, 7vw, 5.25rem)/1.0 var(--osn-font-display); letter-spacing: -.035em; color: #fff;
    text-wrap: balance;
}
.osn-hero-sm .osn-hero-title, .osn-hero-sm h1.wp-block-query-title { font-size: clamp(2.25rem, 5.5vw, 4rem); max-width: 20ch; }
.osn-hero-lede, .osn-hero .wp-block-term-description {
    max-width: 38rem; margin: 22px auto 0 !important;
    font-size: 1.125rem; line-height: 1.65; color: var(--osn-mist-400); text-wrap: pretty;
}
.osn-hero .wp-block-term-description p { margin: 0; }

/* Hero search — same feel as the main site's Ask box */
.osn-hero-search {
    position: relative; display: flex; align-items: center; gap: 10px;
    max-width: 640px; margin: 36px auto 0; padding: 8px 8px 8px 18px; border-radius: 22px;
    background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .025)), rgb(8 10 18 / .7);
    border: 1px solid rgb(255 255 255 / .1);
    box-shadow: 0 30px 80px -30px rgb(124 140 255 / .45), inset 0 1px 0 rgb(255 255 255 / .06);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    transition: border-color .3s, box-shadow .3s;
}
.osn-hero-search::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(135deg, rgb(124 140 255 / .7), rgb(196 139 255 / .2) 40%, rgb(255 143 107 / .55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.osn-hero-search:focus-within { box-shadow: 0 30px 90px -25px rgb(124 140 255 / .7), inset 0 1px 0 rgb(255 255 255 / .06); }
.osn-hero-search-i { width: 18px; height: 18px; color: var(--osn-orchid); }
.osn-hero-search input {
    flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent;
    font: 400 1.0625rem/1 var(--osn-font-sans); color: #fff;
}
.osn-hero-search input::placeholder { color: var(--osn-mist-500); }
.osn-hero-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.osn-hero-search kbd {
    display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
    border: 1px solid rgb(255 255 255 / .12); font: 12px var(--osn-font-mono); color: var(--osn-mist-400);
}
.osn-hero-search button {
    display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; cursor: pointer;
    background: #fff; color: var(--osn-ink-950); transition: box-shadow .3s;
}
.osn-hero-search button:hover { box-shadow: 0 0 30px -4px rgb(124 140 255 / .8); }
.osn-hero-search button .osn-icon { width: 18px; height: 18px; }
@media (max-width: 600px) { .osn-hero-search kbd { display: none; } }

/* Category pills */
ul.osn-pills {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    list-style: none; margin: 28px auto 0 !important; padding: 0;
}
.osn-pills li { margin: 0; }
.osn-pills a {
    display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 14px;
    border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .03);
    font-size: 13px; line-height: 20px; color: var(--osn-mist-200); text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
}
.osn-pills a:hover, .osn-pills .current-cat a { border-color: rgb(124 140 255 / .5); background: rgb(124 140 255 / .1); color: #fff; }

/* Search block (search + 404) */
.osn-search { max-width: 560px; margin: 32px auto 0 !important; }
.osn-search .wp-block-search__inside-wrapper {
    padding: 6px !important; border-radius: 999px !important; border: 1px solid rgb(255 255 255 / .12) !important;
    background: rgb(255 255 255 / .04);
}
.osn-search .wp-block-search__input { border: 0 !important; background: transparent; color: #fff; padding: 8px 14px; font-size: 1rem; }
.osn-search .wp-block-search__input:focus { outline: 0; }
.osn-search .wp-block-search__button { margin: 0 !important; border-radius: 999px !important; padding: 10px !important; }

/* ===================================================================
   Post grid + cards
   =================================================================== */
.osn-feed { margin-top: 40px !important; }
ul.osn-grid {
    display: grid; gap: 20px; list-style: none; padding: 0; margin: 0;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}
.osn-grid > li { margin: 0 !important; min-width: 0; animation: osn-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.osn-grid > li:nth-child(2) { animation-delay: .06s; }
.osn-grid > li:nth-child(3) { animation-delay: .12s; }
.osn-grid > li:nth-child(4) { animation-delay: .18s; }
.osn-grid > li:nth-child(n+5) { animation-delay: .24s; }
@keyframes osn-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.osn-card {
    height: 100%; display: flex; flex-direction: column; overflow: hidden;
    border-radius: 28px; border: 1px solid rgb(255 255 255 / .07);
    background: linear-gradient(180deg, rgb(255 255 255 / .035), rgb(255 255 255 / .008)), var(--osn-ink-900);
    transition: border-color .35s, transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.osn-card:hover {
    border-color: rgb(255 255 255 / .16); transform: translateY(-3px);
    box-shadow: 0 30px 60px -30px rgb(0 0 0 / .9), 0 0 50px -25px rgb(124 140 255 / .5);
}
.osn-card > * { margin: 0 !important; }
.osn-card .osn-cover { border-radius: 0; overflow: hidden; }
.osn-card .osn-cover img { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.osn-card:hover .osn-cover img { transform: scale(1.04); }
.osn-card-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 22px 24px 22px; }
.osn-card-body > * { margin: 0 !important; }
.osn-card-cat a { color: var(--osn-orchid); text-decoration: none; }
.osn-card-cat a:hover { color: #fff; }
.osn-card-cat .wp-block-post-terms__separator { color: var(--osn-mist-500); }
.osn-card-title { font-size: 1.4rem !important; line-height: 1.18 !important; letter-spacing: -.02em; text-wrap: balance; }
.osn-card-title a { color: #fff; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s; }
.osn-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* whole card is clickable */
.osn-card-title a:hover { color: #fff; background-size: 100% 1px; }
.osn-card-cat a, .osn-card-meta { position: relative; z-index: 3; }
.osn-card-excerpt p { margin: 0; }
.osn-card-excerpt .wp-block-post-excerpt__more-text { display: none; }
.osn-card-meta {
    margin-top: auto !important; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / .06);
    justify-content: space-between; gap: 12px;
}
.osn-card-meta > * { margin: 0 !important; }
.osn-readtime { margin: 0; font: 500 .75rem/1.5 var(--osn-font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--osn-mist-500); }

/* Generated cover for posts without a featured image */
.osn-cover-ph { margin: 0; }
.osn-cover-ph a {
    position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 10; height: 100%;
    background:
        radial-gradient(110% 90% at 0% 0%, color-mix(in oklab, var(--c1) 50%, transparent), transparent 60%),
        radial-gradient(90% 100% at 100% 100%, color-mix(in oklab, var(--c2) 45%, transparent), transparent 60%),
        var(--osn-ink-850);
}
.osn-cover-ph a::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%);
}
.osn-cover-art { position: relative; display: grid; place-items: center; }
.osn-cover-art::before, .osn-cover-art::after {
    content: ""; position: absolute; border-radius: 50%; border: 1px solid rgb(255 255 255 / .14);
    left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.osn-cover-art::before { width: 170px; height: 170px; }
.osn-cover-art::after { width: 270px; height: 270px; border-style: dashed; border-color: rgb(255 255 255 / .08); animation: osn-spin 80s linear infinite; }
@keyframes osn-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.osn-cover-art .osn-logo { width: 84px; height: 84px; filter: drop-shadow(0 10px 30px rgb(0 0 0 / .5)); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.osn-card:hover .osn-cover-art .osn-logo { transform: scale(1.06) rotate(-8deg); }
.osn-cover-label {
    position: absolute; left: 16px; bottom: 14px; border-radius: 999px; padding: 4px 10px;
    background: rgb(4 5 10 / .55); border: 1px solid rgb(255 255 255 / .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font: 500 10.5px/1.5 var(--osn-font-mono); text-transform: uppercase; letter-spacing: .16em; color: rgb(255 255 255 / .85);
}

/* First post on page 1 of the blog index: large horizontal card */
@media (min-width: 900px) {
    body:not(.paged) .osn-feed-home .osn-grid > li:first-child { grid-column: 1 / -1; }
    body:not(.paged) .osn-feed-home .osn-grid > li:first-child .osn-card { flex-direction: row; min-height: 380px; }
    body:not(.paged) .osn-feed-home .osn-grid > li:first-child .osn-cover { flex: 0 0 56%; aspect-ratio: auto !important; }
    body:not(.paged) .osn-feed-home .osn-grid > li:first-child .osn-cover a,
    body:not(.paged) .osn-feed-home .osn-grid > li:first-child .osn-cover img { aspect-ratio: auto !important; height: 100% !important; }
    body:not(.paged) .osn-feed-home .osn-grid > li:first-child .osn-card-body { padding: 40px 40px 32px; justify-content: center; gap: 16px; }
    body:not(.paged) .osn-feed-home .osn-grid > li:first-child .osn-card-title { font-size: clamp(2rem, 3vw, 2.75rem) !important; line-height: 1.05 !important; }
    body:not(.paged) .osn-feed-home .osn-grid > li:first-child .osn-card-excerpt { font-size: 1.05rem; }
    body:not(.paged) .osn-feed-home .osn-grid > li:first-child .osn-cover-art .osn-logo { width: 120px; height: 120px; }
    body:not(.paged) .osn-feed-home .osn-grid > li:first-child .osn-cover-art::before { width: 240px; height: 240px; }
    body:not(.paged) .osn-feed-home .osn-grid > li:first-child .osn-cover-art::after { width: 380px; height: 380px; }
    body:not(.paged) .osn-feed-home .osn-grid > li:first-child .osn-card-body::before {
        content: "Latest"; align-self: flex-start; border-radius: 999px; padding: 3px 10px;
        background: rgb(95 212 196 / .1); border: 1px solid rgb(95 212 196 / .3);
        font: 500 10.5px/1.5 var(--osn-font-mono); text-transform: uppercase; letter-spacing: .16em; color: var(--osn-mint);
    }
}

/* Pagination */
.osn-pagination { margin-top: 48px !important; gap: 6px; font-size: 14px; }
.osn-pagination a, .osn-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 14px;
    border-radius: 999px; border: 1px solid rgb(255 255 255 / .1); color: var(--osn-mist-200); text-decoration: none;
}
.osn-pagination a:hover { border-color: rgb(255 255 255 / .3); color: #fff; }
.osn-pagination .page-numbers.current { background: #fff; border-color: #fff; color: var(--osn-ink-950); font-weight: 600; }
.osn-pagination .page-numbers.dots { border: 0; }

/* Empty state */
.osn-empty {
    text-align: center; padding: 56px 24px; border-radius: 28px;
    border: 1px dashed rgb(255 255 255 / .14); background: rgb(255 255 255 / .02);
}
.osn-empty h2 { font-size: 1.75rem; margin: 0; }
.osn-empty p { color: var(--osn-mist-400); margin: 10px 0 0; }

/* ===================================================================
   Call to action band
   =================================================================== */
.osn-cta { margin-top: 96px !important; margin-bottom: 64px !important; }
.osn-cta-inner {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
    padding: 36px 40px; border-radius: 32px;
    background:
        radial-gradient(40rem 16rem at 0% 0%, rgb(124 140 255 / .2), transparent 60%),
        radial-gradient(30rem 16rem at 100% 100%, rgb(255 143 107 / .14), transparent 60%),
        var(--osn-ink-900);
}
.osn-cta-inner::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(135deg, rgb(124 140 255 / .7), rgb(196 139 255 / .2) 40%, rgb(255 143 107 / .55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.osn-cta-icon {
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
    background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); color: var(--osn-orchid);
}
.osn-cta-icon .osn-icon { width: 26px; height: 26px; }
.osn-cta-text h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.osn-cta-text p { margin: 8px 0 0; color: var(--osn-mist-400); max-width: 40rem; }
.osn-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) {
    .osn-cta-inner { grid-template-columns: 1fr; padding: 28px 24px; gap: 18px; }
}

/* ===================================================================
   Article (single post + page)
   =================================================================== */
.osn-article-head { position: relative; isolation: isolate; padding-top: 56px; padding-bottom: 8px; }
.osn-article-head .osn-hero-fx { top: -140px; bottom: -40px; opacity: .8; }
.osn-back {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 4px;
    font: 500 12px/1 var(--osn-font-mono); text-transform: uppercase; letter-spacing: .14em;
    color: var(--osn-mist-400); text-decoration: none;
}
.osn-back:hover { color: #fff; }
.osn-back .osn-icon { width: 14px; height: 14px; transition: transform .25s; }
.osn-back:hover .osn-icon { transform: translateX(-3px); }
.osn-chips a, .osn-tags a {
    display: inline-flex; border-radius: 999px; padding: 4px 12px; margin: 0 4px 4px 0;
    border: 1px solid rgb(196 139 255 / .35); background: rgb(196 139 255 / .08);
    color: var(--osn-orchid); text-decoration: none;
}
.osn-chips a:hover, .osn-tags a:hover { color: #fff; border-color: rgb(196 139 255 / .7); }
.osn-chips .wp-block-post-terms__separator, .osn-tags .wp-block-post-terms__separator { display: none; }
.osn-article-title {
    margin-top: 18px !important;
    font-size: clamp(2.4rem, 6vw, 4.25rem) !important; line-height: 1.02 !important; letter-spacing: -.035em !important;
    text-wrap: balance;
}
.osn-byline { gap: 10px 14px; align-items: center; margin-top: 28px !important; }
.osn-byline > * { margin: 0 !important; }
.osn-byline .wp-block-avatar img { display: block; border: 1px solid rgb(255 255 255 / .15); }
.osn-byline .wp-block-post-date::before, .osn-byline .osn-readtime::before { content: "·"; margin-right: 14px; color: var(--osn-mist-500); }

.osn-hero-image { margin-top: 48px !important; }
.osn-hero-image img { border: 1px solid rgb(255 255 255 / .08); box-shadow: 0 40px 100px -40px rgb(0 0 0 / .9); }

/* Prose */
.osn-prose { margin-top: 48px !important; font-size: 1.125rem; line-height: 1.8; }
.osn-prose > p:first-child { font-size: 1.3rem; line-height: 1.65; color: #e3e7f6; }
.osn-prose > * + * { margin-top: 1.4em; }
.osn-prose :where(h2, h3, h4) { margin-top: 2.2em !important; margin-bottom: .2em; scroll-margin-top: 110px; }
.osn-prose h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); }
.osn-prose h3 { font-size: 1.4rem; }
.osn-prose a:where(:not(.wp-element-button):not(.osn-btn)) {
    color: #fff; text-decoration: underline; text-decoration-color: rgb(124 140 255 / .6);
    text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s;
}
.osn-prose a:where(:not(.wp-element-button):not(.osn-btn)):hover { color: var(--osn-orchid); text-decoration-color: var(--osn-orchid); }
.osn-prose strong { color: #fff; font-weight: 600; }
.osn-prose :where(ul, ol):not([class*="is-style-osn"]) { padding-left: 1.3em; }
.osn-prose :where(ul, ol):not([class*="is-style-osn"]) li { margin: .4em 0; padding-left: .2em; }
.osn-prose :where(ul, ol):not([class*="is-style-osn"]) li::marker { color: var(--osn-iris); font-weight: 600; }
.osn-prose :not(pre) > code {
    padding: .15em .45em; border-radius: 6px; background: var(--osn-ink-800); border: 1px solid rgb(255 255 255 / .06);
    font: .86em var(--osn-font-mono); color: #e7d6ff;
}
.osn-prose pre.wp-block-code { position: relative; overflow-x: auto; }
.osn-prose pre code { font-family: var(--osn-font-mono); }
.osn-prose hr, .osn-prose .wp-block-separator {
    border: 0; height: 1px; margin: 3em auto; opacity: 1;
    background: linear-gradient(90deg, transparent, rgb(124 140 255 / .5), rgb(196 139 255 / .5), transparent);
}
.osn-prose figure { margin-top: 2em; margin-bottom: 2em; }
.osn-prose figcaption, .osn-prose .wp-element-caption { text-align: center; margin-top: .8em; }
.osn-prose blockquote.wp-block-quote { font-family: var(--osn-font-display); letter-spacing: -.01em; }
.osn-prose blockquote.wp-block-quote cite { display: block; margin-top: .8em; font-family: var(--osn-font-mono); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.osn-prose .wp-block-table { overflow-x: auto; }
.osn-prose table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid rgb(255 255 255 / .08); border-radius: 16px; overflow: hidden; }
.osn-prose th, .osn-prose td { border: 0; border-bottom: 1px solid rgb(255 255 255 / .06); padding: 12px 16px; text-align: left; }
.osn-prose tr:last-child td { border-bottom: 0; }
.osn-prose thead th, .osn-prose thead td { background: rgb(255 255 255 / .03); font: 500 .72rem/1.5 var(--osn-font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--osn-mist-400); }
.osn-prose .wp-block-table thead { border-bottom: 0; }
.osn-prose .wp-block-image img { border: 1px solid rgb(255 255 255 / .06); }

/* Copy button on code blocks (osnivo.js) */
.osn-copy {
    position: absolute; top: 10px; right: 10px; border-radius: 999px; padding: 4px 10px; cursor: pointer;
    border: 1px solid rgb(255 255 255 / .12); background: rgb(4 5 10 / .7); color: var(--osn-mist-400);
    font: 500 11px/1.5 var(--osn-font-mono); text-transform: uppercase; letter-spacing: .12em;
    opacity: 0; transition: opacity .2s, color .2s;
}
pre:hover > .osn-copy, .osn-copy:focus-visible, .osn-copy.is-done { opacity: 1; }
.osn-copy:hover { color: #fff; }
.osn-copy.is-done { color: var(--osn-mint); border-color: rgb(95 212 196 / .4); }

/* Reading progress (osnivo.js) */
.osn-progress {
    position: fixed; left: 0; right: 0; top: var(--osn-top); height: 2px; z-index: 101; pointer-events: none;
    background: var(--osn-aurora); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* Article footer */
.osn-article-foot { margin-top: 56px !important; }
.osn-article-foot > * + * { margin-top: 28px !important; }
.osn-tags a { border-color: rgb(255 255 255 / .1); background: rgb(255 255 255 / .03); color: var(--osn-mist-200); text-transform: none; letter-spacing: 0; font-family: var(--osn-font-sans); font-size: 13px; }
.osn-tags a::before { content: "#"; color: var(--osn-mist-500); margin-right: 1px; }
.osn-trust {
    display: flex; gap: 16px; padding: 22px 24px; border-radius: 24px;
    border: 1px solid rgb(95 212 196 / .2); background: linear-gradient(180deg, rgb(95 212 196 / .07), rgb(95 212 196 / .02));
}
.osn-trust-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgb(95 212 196 / .12); color: var(--osn-mint); }
.osn-trust-icon .osn-icon { width: 20px; height: 20px; }
.osn-trust p { margin: 0; font-size: .95rem; line-height: 1.65; color: var(--osn-mist-400); }
.osn-trust p.osn-trust-title { color: #fff; font-weight: 600; margin-bottom: 4px; font-size: 1rem; }
.osn-trust a { color: var(--osn-mint); }
.osn-postnav { gap: 14px; }
.osn-postnav > div:empty { display: none; }
.osn-postnav .post-navigation-link-previous, .osn-postnav .post-navigation-link-next {
    margin: 0 !important; border-radius: 20px; border: 1px solid rgb(255 255 255 / .08); background: var(--osn-ink-900);
    transition: border-color .25s, transform .25s;
}
.osn-postnav .post-navigation-link-next { text-align: right; }
.osn-postnav .post-navigation-link-previous:hover, .osn-postnav .post-navigation-link-next:hover { border-color: rgb(255 255 255 / .2); transform: translateY(-2px); }
.osn-postnav a {
    display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; height: 100%;
    color: #fff; text-decoration: none; font-family: var(--osn-font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.25;
}
.osn-postnav .post-navigation-link__label {
    font: 500 11px/1.5 var(--osn-font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--osn-mist-500);
}
@media (max-width: 600px) { .osn-postnav { grid-template-columns: 1fr !important; } }

/* ===================================================================
   Block styles (registered in functions.php) — for authors
   =================================================================== */
.is-style-osn-card {
    padding: 24px 26px; border-radius: 24px; border: 1px solid rgb(255 255 255 / .08);
    background: linear-gradient(180deg, rgb(255 255 255 / .05), rgb(255 255 255 / .015));
}
.is-style-osn-card > :first-child { margin-top: 0 !important; }
.is-style-osn-card > :last-child { margin-bottom: 0; }

.is-style-osn-tip, .is-style-osn-warning {
    position: relative; padding: 18px 22px 18px 58px; border-radius: 20px; font-size: 1rem; line-height: 1.7;
}
.is-style-osn-tip > *, .is-style-osn-warning > * { margin: 0; }
.is-style-osn-tip > * + *, .is-style-osn-warning > * + * { margin-top: .6em; }
.is-style-osn-tip::before, .is-style-osn-warning::before {
    content: ""; position: absolute; left: 20px; top: 20px; width: 22px; height: 22px; background: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.is-style-osn-tip { border: 1px solid rgb(124 140 255 / .3); background: rgb(124 140 255 / .07); }
.is-style-osn-tip::before {
    color: var(--osn-iris);
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E");
}
.is-style-osn-warning { border: 1px solid rgb(255 200 87 / .3); background: rgb(255 200 87 / .06); }
.is-style-osn-warning::before {
    color: var(--osn-sun);
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}

/* Settings path: Settings › Battery › Low Power Mode */
ul.is-style-osn-path {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; padding: 14px 16px;
    border-radius: 18px; border: 1px solid rgb(255 255 255 / .08); background: var(--osn-ink-900);
}
ul.is-style-osn-path li {
    display: inline-flex; align-items: center; gap: 8px; margin: 0;
    font: 500 .85rem/1.5 var(--osn-font-mono); color: var(--osn-mist-200);
}
ul.is-style-osn-path li::before { display: none; }
ul.is-style-osn-path li:not(:last-child)::after { content: "›"; color: var(--osn-mist-500); font-size: 1.1rem; }
ul.is-style-osn-path li:last-child {
    padding: 3px 10px; border-radius: 999px; color: #fff;
    background: rgb(124 140 255 / .16); border: 1px solid rgb(124 140 255 / .4);
}

/* Numbered steps */
ol.is-style-osn-steps { list-style: none; counter-reset: osn-step; padding: 0; }
ol.is-style-osn-steps > li {
    position: relative; counter-increment: osn-step; margin: 0; padding: 0 0 26px 56px;
}
ol.is-style-osn-steps > li::before {
    content: counter(osn-step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(var(--osn-ink-900), var(--osn-ink-900)) padding-box, var(--osn-aurora) border-box;
    border: 1.5px solid transparent; font: 600 .9rem/1 var(--osn-font-mono); color: #fff;
}
ol.is-style-osn-steps > li:not(:last-child)::after {
    content: ""; position: absolute; left: 17.5px; top: 42px; bottom: 6px; width: 1px;
    background: linear-gradient(rgb(124 140 255 / .5), rgb(255 255 255 / .05));
}
ol.is-style-osn-steps > li:last-child { padding-bottom: 0; }

.is-style-osn-aurora {
    background: var(--osn-aurora); background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
.is-style-osn-lead { font-size: 1.3rem !important; line-height: 1.6; color: #e3e7f6; }
p.is-style-osn-eyebrow { font: 500 11px/1.5 var(--osn-font-mono) !important; text-transform: uppercase; letter-spacing: .18em; color: var(--osn-mist-400); }
.is-style-osn-framed img { padding: 8px; background: var(--osn-ink-850); border: 1px solid rgb(255 255 255 / .08); border-radius: 24px; }

/* Verified on */
.osn-verified { border-color: rgb(95 212 196 / .25) !important; }
.osn-verified > * { margin: 0 !important; }
.osn-verified > * + * { margin-top: 10px !important; }
ul.osn-verified-list { list-style: none; padding: 0 !important; }
ul.osn-verified-list li { position: relative; padding-left: 28px !important; color: #fff; font-weight: 500; margin: 6px 0 !important; }
ul.osn-verified-list li::before {
    content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; background: var(--osn-mint);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z'/%3E%3Cpath d='m16 9-5.5 5.5L8 12'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z'/%3E%3Cpath d='m16 9-5.5 5.5L8 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.osn-verified-date { font: 500 .75rem/1.5 var(--osn-font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--osn-mist-500); }

/* ===================================================================
   404
   =================================================================== */
.osn-404 { padding-top: 64px; padding-bottom: 80px; }
.osn-404-code { margin: 0 auto !important; font: 700 clamp(6rem, 18vw, 11rem)/.9 var(--osn-font-display); letter-spacing: -.06em; }
.osn-404 .osn-hero-title { font-size: clamp(2rem, 5vw, 3.25rem); max-width: 18ch; }
.osn-404-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px !important; }

/* ===================================================================
   Motion preferences
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
