@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@400;700&display=swap");

:root {
    --primary-color: #f73878;
    --secondary-color: #5c00dd;
    --accent-color: #ffa856;

    --primary-color-light: #ff9baa;
    --secondary-color-light: #a36df2;

    --primary-color-dark: #2d171f;
    --secondary-color-dark: #191928;

    --background-color: #0c080e;
    --background-color-light: #16101a;
    --background-color-dark: #09050a;
    --background-gradient: linear-gradient(145deg, var(--secondary-color-dark) 0%, var(--background-color-light) 50%, var(--primary-color-dark) 100%);

    --title-color: #fff;
    --text-color: rgba(255, 255, 255, 0.92);
    --text-color-muted: rgba(255, 255, 255, 0.8);
    --color-border: rgba(255, 255, 255, 0.14);
    
    --font-family: "Quicksand", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    corner-shape: squircle;
    margin: 0;
    padding: 0;
}

::selection {
    background-color: rgba(163, 109, 242, 0.75);
    color: white;
    text-shadow: 2px 2px 2px var(--background-color);
}

html,
body {
    scroll-behavior: smooth;
    width: 100%;
    font-family: var(--font-family);
    color: var(--title-color);
    font-size: 1rem;
}

body {
    width: 100vw;
    background: var(--background-color);
        overflow-x: hidden;
    display: grid;
    grid-template-columns: minmax(350px, 30vw) minmax(0, 1fr);
    min-height: 100vh;
}

aside{
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem;
    background: var(--background-gradient);
        border-radius: 0 2.5rem 2.5rem 0;
}

main {
    display: flex;
    flex-direction: column;
    width: min(1080px, calc(100% - 5rem));
    margin: 0 auto;
    padding: 2.5rem 0 3rem;
    gap: 2.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--title-color);
}

h1 {
    font-size: 3.5em;
    font-weight: 900;
    line-height: 1;
}

h2 {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.25;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.25rem;
}

p {
    color: var(--title-color-light);
    font-size: 1em;
    font-weight: 400;
}

ul,
ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
    color: var(--title-color-light);
    font-size: 1.1em;
    line-height: 1.7;
}

ul li::marker,
ol li::marker {
    color: var(--primary-color-light);
    font-size: 1.2em;
    font-weight: 600;
}

/* ===== Buttons ===== */
.button {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    font-size: 1.1em;
    font-weight: 900;
    text-align: center;
    text-shadow: 2px 2px 0px var(--background-color);
    text-decoration: none;
    text-wrap: nowrap;
    color: var(--title-color);
    background-color: var(--secondary-color-dark);
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.2);
    border-radius: 1.5rem;
    cursor: pointer;
    transition:
        scale 500ms cubic-bezier(0.2, 2.4, 0.2, 1),
        gap 500ms cubic-bezier(0.2, 2.4, 0.2, 1),
        letter-spacing 500ms cubic-bezier(0.2, 2.4, 0.2, 1),
        flex 500ms cubic-bezier(0.2, 2.4, 0.2, 1);
    scale: 1;
    gap: 0.5rem;
    letter-spacing: 0.015em;
}

.button::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 33%, transparent 66%);
    background-size: 300% 100%;
    background-position: 100%;
    opacity: 0;
    transition:
        background-position 750ms cubic-bezier(0.25, 1, 0.75, 1),
        opacity 250ms ease-out 500ms;
}

.button:hover {
    scale: 1.025;
    gap: 0.6rem;
    letter-spacing: 0.075em;
}

.button:hover::before {
    opacity: 1;
    background-position: 0%;
    transition:
        background-position 750ms cubic-bezier(0.25, 1, 0.75, 1),
        opacity 100ms ease 0ms;
}

.button:active {
    scale: 0.975;
}

.button i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    color: inherit;
}

.button i.fa-brands {
    font-size: 1.2em;
}

.button-group {
    display: flex;
    flex-direction: row !important;
    gap: 1rem;
}

.button-group>* {
    flex: 1;
}

.button-group>*:hover {
    flex: 1.1;
}


time {
    height: max-content;
    padding: 0.3rem 0.55rem;
    border-radius: 0.75rem;
    background: var(--background-color-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}


/* ===== Animations ===== */
.animate-in {
    animation: transition-in cubic-bezier(0.25, 1, 0.75, 1) both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
}

@keyframes transition-in {
    from {
        transform: translateY(3rem);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media screen and (max-width: 640px) {

    html,
    body {
        font-size: 0.975rem;
    }
}

@media screen and (max-width: 480px) {

    html,
    body {
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .animate-in {
        animation: none;
    }
}