@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --color-bg: hsl(0, 10%, 10%);
    --color-fg: hsl(0, 20%, 90%);
    --color-bg-accent: hsl(0, 40%, 20%);
    --color-fg-accent: hsl(0, 90%, 70%);
    --v-xs: 0.25rem;
    --v-s: 0.5rem;
    --v-m: 1.0rem;
    --v-l: 2.0rem;
    --v-xl: 3.0rem;
    --v-xxl: 5.0rem;
    --txt-subheading: 1.4rem;
    --txt-heading: 2rem;
    font-size: 16px;
}


* { box-sizing: border-box; margin: 0; padding: 0; font-weight: inherit; font-style: inherit; font-size: 100%; line-height: 1;}

body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: normal;
    background-color: var(--color-bg);
    color: var(--color-fg);
    min-height: 100vh;

}


.page {
    max-width: 40rem;
    margin: 0 auto;
    padding: 0 var(--v-l);
    width: 100%;
}

.bg-accent {
    background-color: var(--color-bg-accent);
}

.fg-accent {
    color: var(--color-fg-accent);
}

a, a:visited {
    color: var(--color-fg-accent);

}

.button {
    color: var(--color-fg-accent);
    border: var(--v-xs) solid var(--color-fg-accent);
    padding: var(--v-s) var(--v-l);
    border-radius: var(--v-xl);
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    background-color: var(--color-fg-accent);
    color: var(--color-bg);
    font-weight: 600;
    padding: calc(var(--v-s) + var(--v-xs) * 2) calc(var(--v-l) + var(--v-xs) * 2);
    border-width: 0;
}

.col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.txt-unimportant {
    font-size: .8rem;
    font-weight: normal;
    opacity: 0.9;
}

.txt-subtle {
    font-size: 1rem;
    font-weight: normal;
    opacity: 0.9;
}

.txt-reg {
    font-size: 1rem;
    font-weight: normal;
}

.txt-important {
    font-size: 1rem;
    font-weight: 600;
}

.txt-subheading {
    font-size: var(--txt-subheading);
    font-weight: normal;
}

.txt-heading {
    font-size: var(--txt-heading);
    font-weight: 600;
}

.line-height-para {
    line-height: 1.5;
}

em {
    font-style: italic;
}

strong {
    font-weight: bolder;
}

.enable-freaky .freaky {
    box-shadow: inset 3px 10px 4px -8px rgba(255, 255, 255, 0.2),
    inset -8px -10px 4px -8px rgba(0, 0, 0, 0.5),
    1px 3px 2px rgba(40, 0, 0, 0.5),
    2px 4px 18px rgba(20, 0, 0, 0.5);
    transition: box-shadow 0.2s;
}

.enable-freaky .button.freaky:hover {
    box-shadow: inset 3px 15px 4px -8px rgba(255, 255, 255, 0.2),
    inset -8px -12px 4px -8px rgba(0, 0, 0, 0.5),
    1px 3px 2px rgba(40, 0, 0, 0.5),
    2px 4px 18px rgba(20, 0, 0, 0.5);
}

.enable-freaky .button.freaky:active {
    box-shadow: inset -3px -15px 4px -8px rgba(255, 255, 255, 0.2),
    inset 8px 12px 4px -8px rgba(0, 0, 0, 0.5),
    1px 3px 2px rgba(40, 0, 0, 0.5),
    2px 4px 18px rgba(20, 0, 0, 0.5);
}

.enable-grainy .grainy {
    background-image: url('noise.png');
    background-blend-mode: multiply;
    background-repeat: repeat;
    background-size: 100px 100px;
}

/* 44rem = 40rem (break width) + --v-l (2rem) * 2 */
@media all and (max-width: 44rem) {
    .page.bg-accent {
        margin-left: var(--v-l);
        margin-right: var(--v-l);
        max-width: calc(100vw - var(--v-l) * 2);
    }
}