/* Identity 02 adapter for the existing sorek.uk publication theme. */
:root, .is-dark {
    --background-color: var(--sorek-bg);
    --ghost-accent-color: var(--sorek-gold);
    --color-primary-text: var(--sorek-ink);
    --color-secondary-text: var(--sorek-muted);
    --color-darker-gray: var(--sorek-ink);
    --color-dark-gray: var(--sorek-muted);
    --color-lighter-gray: var(--sorek-surface);
    --color-border: var(--sorek-outline);
    --color-dark-border: var(--sorek-outline);
    --font-sans: var(--sorek-font-body);
    --font-serif: var(--sorek-font-body);
}
html, body {background: var(--sorek-bg); color: var(--sorek-ink)}
body {font-family: var(--sorek-font-body)}
:is(h1,h2,h3,h4,.gh-card-title,.gh-article-title,.gh-header-title) {font-family: var(--sorek-font-heading); font-weight: 400; font-synthesis: none; letter-spacing: .015em; line-height: 1.15}
body.has-sans-title .is-title, body.has-serif-title .is-title {font-family: var(--sorek-font-heading); font-weight: 400; letter-spacing: .015em}
:is(a,button,input,summary):focus-visible {outline: 3px solid var(--sorek-gold); outline-offset: 4px}
::selection {background: var(--sorek-selection); color: var(--sorek-bg)}
#gh-navigation, .gh-footer {background: var(--sorek-surface); color: var(--sorek-ink)}
#gh-navigation {border-bottom: 1px solid var(--sorek-outline)}
.gh-navigation-logo {display: inline-flex; align-items: center; gap: 12px; color: var(--sorek-ink); text-decoration: none}
.gh-navigation-logo img {width: 48px; height: 48px; max-height: none; object-fit: contain}
.sorek-wordmark {font: 30px/1 var(--sorek-font-heading); letter-spacing: .035em}
.gh-navigation-menu .nav a:hover, .gh-navigation-menu .nav-current a {color: var(--sorek-gold)}
.gh-navigation-actions, .gh-navigation-brand, .gh-icon-button {color: var(--sorek-ink)}
#gh-navigation .gh-icon-button {background: transparent; color: var(--sorek-ink)}
.gh-dropdown, .gh-navigation-menu {color: var(--sorek-ink)}
.gh-dropdown {background: var(--sorek-surface); border-color: var(--sorek-outline)}
.gh-header.is-classic {isolation: isolate; padding-block: clamp(100px,15vw,200px)!important; border-bottom: 1px solid var(--sorek-outline)}
.gh-header.is-classic .gh-header-title {font-size: clamp(40px,5vw,76px); color: var(--sorek-gold); letter-spacing: .015em; text-shadow: 0 2px 12px var(--sorek-bg)}
.gh-header.is-classic.has-image:before {background: var(--sorek-bg); opacity: .65}
.gh-header-description, .gh-card-excerpt {color: var(--sorek-ink)}
.gh-card-title {font-size: clamp(28px,3vw,38px)}
.gh-about {background: var(--sorek-surface); color: var(--sorek-ink)}
.gh-card-link:hover .gh-card-title, .gh-content a, .gh-footer a:hover {color: var(--sorek-gold)}
.gh-article-title {font-size: clamp(38px,5vw,72px)}
.gh-content :is(h2,h3) {color: var(--sorek-ink)}
.gh-content h2 {font-size: 36px}
.gh-footer {border-top: 1px solid var(--sorek-outline); background-image: linear-gradient(#211c31ed,#211c31ed),url('sorek-pattern.webp'); background-size: auto,500px}
.gh-footer-copyright, .gh-footer a {color: var(--sorek-ink)}
#static-search-dialog {background: var(--sorek-surface); color: var(--sorek-ink); border-color: var(--sorek-outline); border-radius: 3px; font-family: var(--sorek-font-body)}
#static-search-input {background: var(--sorek-bg); color: var(--sorek-ink); border-color: var(--sorek-outline); border-radius: 3px}
#static-search-results a {color: var(--sorek-gold)}
#static-search-status, #static-search-results p {color: var(--sorek-muted)}
#static-search-results li {border-color: var(--sorek-outline)}
@media(max-width:767px) {
    .gh-navigation-logo img {width: 40px; height: 40px}
    .sorek-wordmark {font-size: 26px}
    .gh-header.is-classic {padding-block: 90px!important}
    .is-head-open #gh-navigation, .is-head-open .gh-navigation-menu {background: var(--sorek-surface)}
}
