* {
    margin: 0;
    padding: 0;
    text-decoration: none;
}

:root {
    color-scheme: light dark;

    /* Base Neutrals */
    --black: light-dark(hsl(70, 5%, 0%), hsl(70, 10%, 90%));
    --white: light-dark(hsl(70, 10%, 100%), hsl(70, 5%, 10%));
    /* Backgrounds */
    --bg-dark:  light-dark(hsl(71, 58%, 73%), hsl(224, 14%, 10%));
    --bg:       light-dark(hsl(70, 58%, 79%), hsl(224, 14%, 14%));
    --bg-light: light-dark(hsl(70, 57%, 84%), hsl(224, 12%, 20%));
    /* Typography */
    --text:       light-dark(hsl(224, 12%, 18%), hsl(224, 20%, 93%));
    --text-muted: light-dark(hsl(224, 7%, 43%), hsl(224, 10%, 65%));
    /* Brand Accents */
    --primary:   light-dark(hsl(70, 67%, 46%), hsl(70, 50%, 60%));
    --secondary: light-dark(hsl(21, 98%, 49%), hsl(21, 95%, 60%));
    --tertiary:  light-dark(hsl(221, 94%, 50%), hsl(215, 90%, 65%));
    /* Alpha/Glass Variants & Borders */
    --primary-glass: light-dark(hsla(70, 67%, 46%, 0.2), hsla(224, 14%, 12%, 0.55));
    --border:        light-dark(hsl(70, 10%, 30%), hsl(224, 12%, 25%));
    --shadow:        light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));

    --h1: 700 56px "Markazi Text", serif;
    --h2: 700 42px "Markazi Text", serif;
    --h3: 600 36px "Markazi Text", serif;
    --h4: 600 28px "Markazi Text", serif;
    --h5: 500 22px "Markazi Text", serif;
    --p: 400 24px "Markazi Text", serif;
    --a: 400 24px "Markazi Text", serif;
    --link: 400 30px "Markazi Text", serif;
}

@font-face {
    font-family: "Markazi Text";
    src: url('/assets/fonts/MarkaziTextVariable.woff2') format('woff2 supports variations'),
         url('/assets/fonts/MarkaziTextVariable.woff2') format('woff2-variations'),
         url('/assets/fonts/MarkaziTextVariable.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    font: var(--p);
    color: var(--text);
    overflow-x: hidden;
}

html, body {
    margin: 0;
    padding: 0;
}

#main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    padding: 0;
}

h1 {
    font: var(--h1);
}

h2 {
    font: var(--h2);
}

h3 {
    font: var(--h3);
}

h4 {
    font: var(--h4);
}

h5 {
    font: var(--h5);
}

p {
    font: var(--p);
    color: var(--text-muted);
}

a {
    font: inherit;
    color: inherit;
    text-decoration: none;
}

.btn, button {
    font: var(--p);
    padding: 6px 18px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    user-select: none;
}

.btn:hover, button:hover {
    background-color: var(--secondary);
    color: var(--white);
    transition: 0.3s ease-in-out;
}

@media (max-width: 500px) {
    h1 {
        font: var(--h2);
    }

    h2 {
        font: var(--h3);
    }

    h3 {
        font: var(--h4);
    }
}

/* Utility Classes */
section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 84px;
    padding-top: 30px;
    padding-bottom: 30px;
}

section > div {
    max-width: 1500px;
}

.light-section {
    background-color: var(--bg-light);
}

.medium-section {
    background-color: var(--bg);
}

.dark-section {
    background-color: var(--bg-dark);
}

.content {
    width: 75%;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.span {
    height: 100%;
    width: 100%;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.flex-column {
    flex-direction: column;
}

.reverse {
    flex-direction: row-reverse;
}

.tiny {
    font-size: 12px
}

@media (min-width : 500px) {
    .hideOnDesktop {
        display: none;
    }
}

@media (max-width: 500px) {
    .hideOnMobile {
        display: none !important;
    }
}

/* Toast Styles */
.toast-container {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    align-items: center;
    z-index: 500;
    pointer-events: none;
    width: auto;
    max-width: calc(100% - (30px * 2));
}

#toast {
    pointer-events: auto;
    border-radius: 30px;
    padding: 12px 24px;
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(10px);
    opacity: 0;
    transition: transform 220ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease;
    width: 100%;
    box-sizing: border-box;
}

#toast.show {
    transform: translateY(0);
    opacity: 1;
}