/* Deep Atlantic surfaces; lava marks a featured story or a highlighted passage. */
:root {
    color-scheme: light;
    --atlantic-page: light-dark(#f5f8ff, #0b182f);
    --atlantic-text: light-dark(#101f40, #e9f1ff);
    --atlantic-muted: light-dark(#50617b, #b0c2dd);
    --atlantic-link: light-dark(#224faa, #88bbff);
    --atlantic-panel: light-dark(#e7eefb, #172b47);
    --atlantic-rule: light-dark(#c8d5e8, #304664);
    --atlantic-button-text: light-dark(#fff, #0b182f);
    --lava: #ff601e;
}

html.dark-mode { color-scheme: dark; }
html.auto-color { color-scheme: light dark; }

html:root body {
    color: var(--atlantic-text);
    background: var(--atlantic-page);
    --color-secondary-text: var(--atlantic-muted);
    --color-border: var(--atlantic-rule);
    --color-darkmode: #0b182f;
    --ghost-accent-color: #224faa;
}

.lava-brand {
    display: inline-flex;
    align-items: center;
    gap: .32em;
    vertical-align: middle;
    letter-spacing: -.045em;
    line-height: 1;
}

.lava-brand img {
    display: block;
    flex: none;
    width: 1.55em;
    height: 1.55em;
}

html:root .lava-brand img { opacity: 1; }
html:root body:not(.has-cover) #gh-head,
html:root .gh-head-open #gh-head,
html:root .gh-head-open #gh-head .gh-head-actions {
    color: var(--atlantic-text);
    background: var(--atlantic-page);
}

html:root .gh-head-open #gh-head .gh-head-logo { color: inherit; }
html:root body:not(.has-cover) .gh-burger::before,
html:root body:not(.has-cover) .gh-burger::after,
html:root .gh-head-open .gh-burger::before,
html:root .gh-head-open .gh-burger::after { background: var(--atlantic-text); }

body:not(.has-cover) .site-header-content,
html:root .article-title,
html:root .post-card-title,
.post-card-content-link { color: var(--atlantic-text); }

html:root .article-excerpt,
html:root .post-card-excerpt,
body:not(.has-cover) .site-title + .site-description { color: var(--atlantic-muted); }

.article-tag a,
.gh-content a:not([class]),
html:root .gh-content :is(p, li, blockquote, figcaption) a:not([class]) {
    color: var(--atlantic-link);
}

html:root #gh-head .gh-head-button {
    color: var(--atlantic-button-text);
    background: var(--atlantic-link);
}

html:root .gh-content pre {
    color: #e9f1ff;
    background: #101f40;
    border-inline-start: 3px solid #2456bc;
}

html:root .gh-content pre code { color: inherit; background: transparent; }
html:root .gh-content :not(pre) > code {
    color: var(--atlantic-text);
    background: var(--atlantic-panel);
    border-color: var(--atlantic-rule);
}

.gh-content mark {
    color: #101f40;
    background: #ffbb97;
    box-shadow: inset 0 -2px var(--lava);
}

.post-card-featured svg { color: var(--lava); fill: currentColor; }
html:root .author-avatar.author-profile-image {
    background: var(--atlantic-panel);
    border-color: var(--atlantic-page);
}
html:root .author-avatar.author-profile-image path { fill: var(--atlantic-muted); }
.site-footer { background: #0b182f; }
