/* Modern CSS Reset 2025 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* Basics */

@font-face {
    font-family: "IPM";
    src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    /* regular */
}

@font-face {
    font-family: "IPM";
    src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    /* medium */
}

html {
    font-size: 16px; /* Basis für rem */
    scroll-behavior: smooth; /* sanftes Scrollen */
}

html,
body {
    overscroll-behavior: none;
}

body {
    font-family: "IPM", monospace;
    font-weight: 500;
    font-style: normal;
    font-variant-ligatures: normal;
    background-color: #2c2c2c;
    color: #e2e2e2;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    flex: 1;
}

header {
    margin-top: 2em;
    margin-left: 1.5em;
}

@media (min-width: 768px) {
    header {
        margin-top: 3em;
        margin-left: 3em;
    }
}

main {
    flex: 1;
}

footer {
    margin-left: 1.5em;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

@media (min-width: 768px) {
    footer {
        margin-left: 3em;
        margin-right: 3em;
        margin-bottom: 1.5em;
    }
}

a {
    color: inherit;
}

h1 {
    font-size: 1em;
    font-weight: 400;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1em;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

/*
:root {
    color-scheme: light dark; 
}
*/

/* background animation */

body {
    background: blue;
    /* initial color */
    transition: background 5s;
    /* .5s how long transition should take */
}

/* cursor trail */
canvas {
    position: fixed;
    top: 0;
    left: 0;
}
