/* Codesense's brand, on top of pages-base.css.

   --brand is the colour of the mark (codesense/logos/dist/codesense-mark.svg). The other two are measured against
   the surfaces in pages-base.css (bg · bg-alt · bg-elev · bg-chrome · bg-sunken), in 8-bit sRGB as axe does,
   2026-11-27, with the dark bg-chrome re-measured on 2026-12-03 when it took the portal's #0b0d12 (below):

       --brand        3:1 as a graphic: light 4.35 · 4.10 · 4.64 · 4.64 · 3.74, dark 3.52 · 3.76 · 3.27 · 4.19 · 4.27
       --brand-text   4.5:1 as text: light #3e6f6c 5.33 · 5.02 · 5.68 · 5.68 · 4.58, dark #559893 4.90 · 5.23 · 4.55 · 5.83 · 5.94
       --brand-on     4.5:1 against the --brand fill: white 4.64

   --brand-text is the mark's hue and saturation at the lightness that first clears 4.5:1 on every surface, darker
   than the mark in the light theme and lighter in the dark one. */
@font-face {
    font-family: 'Audiowide';
    src: url('../fonts/Audiowide-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* The wordmark's face: the portal's header sets the name in Audiowide too (same file) */
    --wordmark-font: 'Audiowide', var(--rl-font-sans);

    --brand: #467e7a;
    --brand-text: #3e6f6c;
    --brand-on: #ffffff;

    /* Not the brand's: pages-base.css's --text-subtle, which its own header says is short of 4.5:1 (dark 3.67 to 4.42
       across the surfaces, light 4.13 on --bg-sunken), and which fails Lighthouse's contrast audit in the dark theme
       on the footer's links and copyright and on a legal document's masthead. These are the values relayout-pages
       carries in its copy of the base, measured on the same five surfaces, 2026-11-27: light 5.68 · 5.34 · 6.05 · 6.05 ·
       4.88, dark 5.15 · 5.50 · 4.78 · 6.13 · 6.25. Remove them when the portal's pages-base.css takes the fix. */
    --text-subtle: #5f6368;

    /* The header is the portal's (portal.css: .nav, .nav-inner, .nav-logo; wordmark.ts), so it stays in place going
       between the two sites: 48px and its border below (the base counts the border inside --nav-h), and a 2rem inset
       at every width, which the footer shares. */
    --nav-h: calc(3rem + 1px);
    --gutter: 2rem;
}

[data-theme="dark"] {
    --brand-text: #559893;
    --text-subtle: #8c9198;
    /* The portal's dark --chrome, under the header and the footer as there. Every tier is higher on it than on the
       base's #121519: --text 16.85, --text-muted 7.12, --text-subtle 6.13, --brand-text 5.83, the mark 4.19. */
    --bg-chrome: #0b0d12;
}

/* The lockup as the portal's: the name at 1rem, "Code" in the muted tier and "sense" in the text tier, and the mark
   1.35 times the name's size, 0.5rem before it */
.nav-logo {
    font-size: 1rem;
    gap: 0.5rem;
}

.nav-logo-mark {
    height: 1.35em;
}

.nav-logo-word {
    font-size: 1em;
}

.nav-logo-code {
    color: var(--text-muted);
}

.nav-logo-sense {
    color: var(--text);
}

/* Audiowide has the one weight, so the base's 600 on the wordmark would be a synthesised bold */
.hero-title,
.nav-logo-word,
.footer-logo-word {
    font-weight: 400;
}
