/* ==================================================
   THE HERD — SPECTRUM v1.0
   Inspired by The Herd community emblem
   ================================================== */

/* DARK MODE */

:root[data-color-scheme="dark"]:not([data-contrast="high"]) {
    --color-bg-primary: #101014;
    --color-bg-secondary: #19191f;
    --color-bg-tertiary: #25252d;

    --color-text-primary: #fafafa;
    --color-text-secondary: #b4b4bf;
    --color-text-tertiary: #a0a0ad;

    --color-accent-base: #00c3ec;
    --color-accent: #00c3ec;

    --color-text-brand: #00c3ec;
    --color-text-brand-soft: #72def4;
    --color-text-status-links: #00c3ec;
    --color-text-on-brand-base: #101014;

    --color-bg-brand-base: #00c3ec;
    --color-bg-brand-base-hover: #48d6f4;
    --color-bg-brand-soft: #20363e;
    --color-bg-brand-softest: #17252b;

    --color-border-primary: #303039;
    --color-border-brand: #00c3ec;
    --color-border-brand-soft: #306070;

    --color-text-favourite-highlight: #ff4ca5;
    --color-text-bookmark-highlight: #b38aff;
}

/* LIGHT MODE */

:root[data-color-scheme="light"]:not([data-contrast="high"]) {
    --color-bg-primary: #f5f5f7;
    --color-bg-secondary: #ffffff;
    --color-bg-tertiary: #e9e9ee;

    --color-text-primary: #18181f;
    --color-text-secondary: #555560;
    --color-text-tertiary: #62626e;

    --color-accent-base: #00758e;
    --color-accent: #00758e;

    --color-text-brand: #00758e;
    --color-text-brand-soft: #006780;
    --color-text-status-links: #00758e;
    --color-text-on-brand-base: #ffffff;

    --color-bg-brand-base: #00758e;
    --color-bg-brand-base-hover: #006178;
    --color-bg-brand-soft: #d8eff4;
    --color-bg-brand-softest: #eef8fa;

    --color-border-primary: #dcdce3;
    --color-border-brand: #00758e;
    --color-border-brand-soft: #a6d3de;

    --color-text-favourite-highlight: #c00065;
    --color-text-bookmark-highlight: #7230ce;
}

/* INTERFACE REFINEMENTS */

:root:not([data-contrast="high"]) .button {
    border-radius: 10px;
    font-weight: 600;
}

:root:not([data-contrast="high"]) .column-header {
    font-weight: 650;
    letter-spacing: -0.025em;
}

:root:not([data-contrast="high"]) :is(
    .media-gallery,
    .status-card,
    .video-player,
    .audio-player
) {
    border-radius: 10px;
}

/* BRAND SIGNATURE */

:root:not([data-contrast="high"]) body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(
        90deg,
        #00c3ec 0%,
        #8939f4 50%,
        #ff0b87 100%
    );
    pointer-events: none;
    z-index: 1000;
}

/* TEXT SELECTION */

:root:not([data-contrast="high"]) ::selection {
    background: var(--color-bg-brand-base);
    color: var(--color-text-on-brand-base);
}

/* END — THE HERD SPECTRUM */

