:root {
    --c-ink: #1B1410;
    --c-surface: #241B16;
    --c-surface-raised: #2D2218;
    --c-paper: #F2E8DC;
    --c-paper-dim: #A89484;
    --c-hairline: #3A2D24;
    --c-hero-glow: #6E3038;
}

html.light {
    --c-ink: #FBF7F0;
    --c-surface: #FFFFFF;
    --c-surface-raised: #F5EEE2;
    --c-paper: #2B2118;
    --c-paper-dim: #8A7A68;
    --c-hairline: #E5DACB;
    --c-hero-glow: #E8C4CB;
}

html:not(.light) header .text-black {
    color: #ffffff;
}

* {
    -webkit-font-smoothing: antialiased;
}

html,
body {
    transition: background-color 0.25s ease, color 0.25s ease;
}

::selection {
    background: #6E3038;
    color: #F2E8DC;
}

html.light ::selection {
    background: #E8C4CB;
    color: #2B2118;
}

html {
    scroll-behavior: smooth;
}

@media(prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.hero-glow::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--c-hero-glow) 0%, transparent 70%);
    opacity: 0.35;
    pointer-events: none;
}

html.light.hero-glow::before {
    opacity: 0.5;
}

.redaction-bar::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #C4495A;
    transform: scaleY(0.18);
    transform-origin: top;
    transition: transform 0.35s ease;
}

.redaction-card.redaction-bar:hover::before {
    transform: scaleY(1);
}

/* theme toggle switch */
.theme-toggle {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: var(--c-hairline);
    position: relative;
    cursor: pointer;
    border: 1px solid var(--c-paper-dim);
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.theme-toggle.knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--c-paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    transition: transform 0.25s ease;
}

html.light.theme-toggle.knob {
    transform: translateX(20px);
}

/* amimations */

img {
    opacity: 0;
    filter: grayscale(100%);
    animation: image-intro 0.25s ease-in-out 0.25s forwards;
}

@keyframes image-intro {
    0% {
        opacity: 0;
        filter: grayscale(100%);
    }

    100% {
        opacity: 1;
        filter: grayscale(0%);
    }
}

header {
    opacity: .2;
    transform: translateY(-10%);
    animation: header-intro 0.25s ease-in-out 0.25s forwards;
}

@keyframes header-intro {
    0% {
        opacity: .2;
        transform: translateY(-10%);
    }

    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}

article {
    opacity: .2;
    transform: translateY(-10%);
    animation: article-intro 0.25s ease-in-out 0.25s forwards;
}

@keyframes article-intro {
    0% {
        opacity: .2;
        transform: translateY(-10%);
    }

    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}

/* calendar */

.cal-day {
    text-align: center;
}

.cal-day.is-active {
    background-color: var(--color-surface-raised, rgba(255, 255, 255, 0.05));
    border-color: currentColor !important;
    font-weight: 700;
}

.cal-dot-rrefim,
.cal-dot-artikull,
.cal-dot-muzike,
.cal-dot-poezi {
    width: 7px;
    height: 7px;
    border-radius: 9999px;
}

.cal-dot-rrefim {
    background-color: rgb(196 73 90 / var(--tw-text-opacity, 1));
}

.cal-dot-artikull {
    background-color: rgb(201 154 74 / var(--tw-text-opacity, 1));
}

.cal-dot-muzike {
    background-color: rgb(91 140 140 / var(--tw-text-opacity, 1));
}

.cal-dot-poezi {
    background-color: rgb(139 122 176 / var(--tw-text-opacity, 1));
}

/* Sigurohu që kontenitori i pikave t'i rreshtojë ato horizontalisht */
.cal-day .dots {
    display: flex;
    justify-content: center;
    gap: 0px;
    margin-top: -5px;
    height: 7px;
}