/* fonts */
@font-face {
    font-display: swap;
    font-family: 'Shantell Sans';
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/ShantellSans-Regular.ttf);
}

@font-face {
    font-display: swap;
    font-family: 'Shantell Sans';
    font-style: normal;
    font-weight: 700;
    src: url(/fonts/ShantellSans-Bold.ttf);
}

/* https://piccalil.li/blog/a-more-modern-css-reset/ */
/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
    margin-block-end: 0;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
    line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
    text-wrap: balance;
}

/* Make images easier to work with */
img,
picture,
svg {
    max-width: 100%;
    display: block;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
    scroll-margin-block: 5ex;
}

:root {
    --background: #111;
    --text: #d9d9d9;
    /* funny colors */
    --primary: #16d8b2;
    --secondary: #2bc7ff;
    --tertiary: #4626ff;
    --int-1: #20c5f5;
    --int-2: #2b57ff;
    /* gradients */
    --diagonal-gradient: linear-gradient(130deg, var(--primary), var(--secondary), var(--tertiary));
}

:focus {
    border-radius: 5px;
    outline: .2rem solid var(--secondary);
    outline-offset: .5rem;
}

html {
    font-family: 'Shantell Sans', monospace;
    font-size: 100%;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-size: 1.25rem;
    scroll-behavior: smooth;
}

a {
    color: var(--int-1);
}

a:visited {
    color: var(--int-2);
}

header,
footer {
    display: flex;
    margin-block: 2rem;
}

header {
    border-bottom: 2px solid var(--primary);
}

/* clip from http://nimbupani.com/using-background-clip-for-text-with-css-fallback.html */
header > a {
    color: var(--text);
    -webkit-text-fill-color: transparent;
    background: var(--diagonal-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    font-size: 3rem;
    text-decoration: none;
}

/* thanks safari */
header > *,
footer > * {
    margin: 0 auto;
    text-align: center;
}

main {
    display: flex;
    justify-content: center;
    margin: 1em;
}

main > * {
    margin-block: 0;
}

main > * + * {
    margin-block-start: 1.5rem;
}

h1,
h2 {
    color: var(--primary);
}

#blot {
    inset-block-start: 2em;
    margin-inline: -1em;
    opacity: 50%;
    position: absolute;
    z-index: -1;
}

.flex-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 60ch;
}