/* Fresh coat for the preserved WordPress pages (archive, old posts, bio, portfolio).
   Loaded after the Salient theme, so it wins without touching the original markup.
   Same type and palette as the new site: Instrument Sans + IBM Plex Mono on near-black. */
@font-face{font-family:Instrument;src:url('/fonts/instrument-sans-latin-wght-normal.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:Plex;src:url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');font-weight:400;font-display:swap}
:root{--bg:#0b0b0c;--panel:#131317;--text:#f3f2ee;--body:#d6d5dc;--muted:#9e9da9;--line:rgba(255,255,255,.12);--accent:#8da1ff;--blue:#3452ff;--pink:#ff1053;--sans:Instrument,'Helvetica Neue',Arial,sans-serif;--mono:Plex,ui-monospace,monospace}

/* Type: one sans for reading, one mono for labels. Icons keep their own fonts. */
html body,body :is(div,p,li,a,span,em,strong,b,h1,h2,h3,h4,h5,h6,blockquote,td,th,label,input,textarea,button,figcaption,small,dd,dt):not([class*=icon]):not(.fa):not([class*=fa-]){font-family:var(--sans)!important}
body{-webkit-font-smoothing:antialiased;font-synthesis:none;text-rendering:optimizeLegibility}
body :is(h1,h2,h3,h4,h5,h6),body :is(h1,h2,h3,h4,h5,h6) a{text-transform:none!important;letter-spacing:-.02em!important;font-weight:500!important;color:var(--text)!important}

/* Surfaces */
html,body,#ajax-content-wrap,.container-wrap,.main-content,#author-bio,#footer-outer,#footer-outer #copyright,#ajax-loading-screen,.single .container-wrap{background-color:var(--bg)!important}
body,.container-wrap,.wpb_text_column,.post-content{color:var(--body)!important}
::selection{background:var(--blue);color:#fff}

/* Header: slim glass bar, mono navigation */
#header-outer,#header-outer.transparent,#header-outer[data-transparent-header=true].transparent{background:rgba(11,11,12,.55)!important;-webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2);border-bottom:1px solid var(--line)!important;box-shadow:none!important}
#header-outer #top nav>ul>li>a,#header-outer .menu-title-text{font-family:var(--mono)!important;font-size:12px!important;letter-spacing:.06em!important;text-transform:lowercase!important;color:#e6e5ea!important}
#header-outer #top nav>ul>li>a:hover .menu-title-text,#header-outer #top nav>ul>li>a:hover{color:#fff!important}
#header-outer #top nav>ul>li>a .menu-title-text:after,#header-outer #top nav>ul>li>a:after{background:var(--accent)!important;height:1px!important}
#header-outer #social-in-menu a,#header-outer #top nav .buttons a{color:#cfced6!important}

/* Post hero */
#page-header-bg{background-color:var(--bg)!important}
#page-header-bg:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,11,12,.15) 0%,rgba(11,11,12,.35) 55%,var(--bg) 100%);pointer-events:none;z-index:1}
#page-header-bg .container,#page-header-bg .row{position:relative;z-index:2}
#page-header-bg h1,body.single #page-header-bg h1,#page-header-bg .span_6 h1{font-size:clamp(34px,5.6vw,76px)!important;line-height:1.02!important;letter-spacing:-.035em!important;font-weight:500!important;max-width:16ch;margin-left:auto!important;margin-right:auto!important;text-wrap:balance}
#page-header-bg .meta-category a,#page-header-bg .inner-wrap>a,.meta-category a{font-family:var(--mono)!important;font-size:10px!important;letter-spacing:.12em!important;text-transform:uppercase!important;border:1px solid rgba(255,255,255,.35)!important;border-radius:20px!important;padding:6px 12px!important;background:rgba(11,11,12,.35)!important;color:#fff!important}
#page-header-bg #single-below-header,#page-header-bg #single-below-header span,#page-header-bg #single-below-header a{font-family:var(--mono)!important;font-size:11px!important;letter-spacing:.06em!important;color:#d4d3da!important;border-color:var(--line)!important}

/* Reading column */
.single .post-area,.single .post-content .content-inner{max-width:740px!important;margin-left:auto!important;margin-right:auto!important;float:none!important}
.container-wrap .post-content p,.container-wrap .wpb_text_column p,.container-wrap .content-inner p,.container-wrap li{font-size:18px!important;line-height:1.68!important;color:var(--body)!important;letter-spacing:0!important}
.container-wrap .content-inner strong,.container-wrap .content-inner b{color:var(--text)!important;font-weight:600!important}
.container-wrap a:not(.button):not(.nectar-button):not([class*=img]):not(.pretty_photo):not(.meta-category a){color:var(--accent)!important;text-decoration:underline;text-decoration-color:rgba(141,161,255,.4);text-underline-offset:3px;transition:text-decoration-color .2s}
.container-wrap a:not(.button):hover{text-decoration-color:var(--accent)}
.container-wrap blockquote{border-left:2px solid var(--blue)!important;padding-left:20px!important;color:var(--text)!important;font-size:22px!important;line-height:1.45!important}
.container-wrap img{border-radius:6px}
.wpb_gallery .wpb_gallery_slidesimage_grid li img,.wpb_gallery img{transition:transform .5s cubic-bezier(.2,.7,.2,1),filter .5s;filter:saturate(.92)}
.wpb_gallery a:hover img{transform:scale(1.02);filter:saturate(1.05)}
.container-wrap iframe{border-radius:8px}

/* Previous / next: small mono label, large title */
.blog_next_prev_buttons{border-top:1px solid var(--line)}
.blog_next_prev_buttons h3>span:first-child{display:block;font-family:var(--mono)!important;font-size:10px!important;line-height:1.4!important;letter-spacing:.14em!important;text-transform:uppercase!important;color:#d8d7de!important;margin-bottom:10px}
.blog_next_prev_buttons h3 span.text{display:block;font-family:var(--sans)!important;font-size:clamp(20px,2.3vw,32px)!important;line-height:1.12!important;letter-spacing:-.02em!important;text-transform:none!important;font-weight:500!important;color:#fff!important;max-width:22ch}
.blog_next_prev_buttons .post-bg-img:after{content:'';position:absolute;inset:0;background:rgba(11,11,12,.55)}

/* Boilerplate WordPress extras that no longer work in the static copy: share widget, author box */
.nectar-social.fixed,#author-bio,.comments-section{display:none!important}
#footer-outer,#footer-outer #copyright{border-top:1px solid var(--line)!important;color:var(--muted)!important}
a.nectar-button,.nectar-button.see-through-2,.button.transparent_2{font-family:var(--mono)!important;letter-spacing:.08em!important;text-transform:lowercase!important;border-radius:22px!important}
#to-top{background:rgba(20,20,26,.7)!important;border:1px solid var(--line)!important;box-shadow:none!important}

/* Homepage (archive) slider and sections */
.wpb_row .light a:not(.button):not(.nectar-button){color:#fff!important;text-decoration-color:rgba(255,255,255,.6)}
.swiper-slide .content h2{font-size:clamp(36px,5vw,68px)!important;letter-spacing:-.035em!important}
.swiper-slide .content p span,.swiper-slide .content p{font-size:clamp(16px,1.6vw,20px)!important}
.nectar-3d-transparent-button .button-text,.nectar-3d-transparent-button{font-family:var(--mono)!important;text-transform:lowercase!important;letter-spacing:.08em!important}
.post-meta,.post-meta *,.meta-author,.meta-category{font-family:var(--mono)!important;font-size:11px!important;letter-spacing:.06em!important}
.excerpt{font-size:16px!important;line-height:1.6!important}

@media (max-width:640px){.container-wrap .post-content p,.container-wrap .content-inner p{font-size:17px!important}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation-duration:.001s!important}}
/* Oldest / newest post: one neighbour fills the row */
.blog_next_prev_buttons .controls li[class^=rr-none]{display:none!important}
.blog_next_prev_buttons .controls:has(li[class^=rr-none]) li{width:100%!important}

/* Pages without a hero image: dark spacer, readable date, white tag pills */
#header-space{background:var(--bg)!important}
#single-below-header span,#single-below-header a{color:var(--muted)!important;font-family:var(--mono)!important;font-size:11px!important;letter-spacing:.06em!important}
.meta-category a,.container-wrap .meta-category a,#page-header-bg .meta-category a{color:#fff!important;text-decoration:none!important}
