/*!
 * This file is a part of ts-website 2
 * https://github.com/Wruczek/ts-website
 *
 * Light theme - design tokens and base elements. All components in css/style.css
 * use these variables, so changing them here re-brands the whole website.
 * The dark theme (css/themes/dark.css) overrides the same variables.
 * Fonts (Geist, Geist Mono) are loaded in templates/body.latte.
 */

:root {
    color-scheme: light;

    /* surfaces */
    --bg: #fafaf8;
    --surface: #ffffff;
    --surface-2: #f3f3f0;
    --line: #e7e6e1;
    --line-strong: #d4d3cd;
    --nav-bg: rgba(250, 250, 248, .82);

    /* text */
    --text: #18181b;
    --text-2: #3f3f46;
    --muted: #71717a;
    --faint: #a1a1aa;
    --text-strong: #000000;
    --text-inverse: #ffffff; /* text on top of var(--text), like the dark buttons */

    /* the one accent color */
    --accent: #ff4f00;
    --accent-soft: rgba(255, 79, 0, .12);

    /* states */
    --online: #16a34a;
    --away: #d97706;
    --offline: #a1a1aa;
    --danger: #dc2626;

    /* alerts */
    --info-text: #1e3a8a;
    --info-bg: #f3f6ff;
    --info-border: #dbe3fe;
    --success-text: #14532d;
    --success-bg: #f0fdf4;
    --success-border: #c6f1d3;
    --warning-text: #78350f;
    --warning-bg: #fffbeb;
    --warning-border: #fbe3a4;
    --danger-text: #7f1d1d;
    --danger-bg: #fef3f2;
    --danger-border: #fbd0cc;

    /* shape & depth */
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(24, 24, 27, .05);
    --shadow-md: 0 12px 32px -14px rgba(24, 24, 27, .22);
    --shadow-lg: 0 30px 80px -24px rgba(24, 24, 27, .35);
    --focus-ring: rgba(24, 24, 27, .08);
    --backdrop: #18181b;
    --backdrop-opacity: .25;

    /* type */
    --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* motion */
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

html {
    background-color: var(--bg);
    scrollbar-color: var(--line-strong) transparent;
}

body {
    background-color: var(--bg);
    color: var(--text-2);
    font-family: var(--font-sans);
    font-size: 15.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -.02em;
}

a {
    color: var(--text);
    transition: color .2s ease;
}

a:hover {
    color: var(--text);
    text-decoration: none;
}

b, strong {
    color: var(--text);
    font-weight: 600;
}

hr {
    border-top-color: var(--line);
}

code {
    padding: .1em .35em;
    border-radius: 5px;
    background-color: var(--surface-2);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: .85em;
}

.text-muted {
    color: var(--muted) !important;
}

.text-mono {
    font-family: var(--font-mono);
    font-size: .92em;
}

::selection {
    color: #fff;
    background-color: var(--accent);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
