:root {
    --white: #ffffff;
    --gray: #6a6a6a;
}
@font-face {
    font-family: PatchworkColorRegular;
    src: url("portfolio_files/patchwork_color/patchwork_color_regular.otf");
}
@font-face {
    font-family: PatchworkColorColdWinter;
    src: url("portfolio_files/patchwork_color/patchwork_color_cold_winter.otf");
}
@font-face {
    font-family: PatchworkColorFireyPastel;
    src: url("portfolio_files/patchwork_color/patchwork_color_firey_pastel.otf");
}
@font-face {
    font-family: PatchworkColorMossyGrove;
    src: url("portfolio_files/patchwork_color/patchwork_color_mossy_grove.otf");
}
@font-face {
    font-family: PatchworkColorRetroGroove;
    src: url("portfolio_files/patchwork_color/patchwork_color_retro_groove.otf");
}
@font-face {
    font-family: PatchworkColorSeaBreeze;
    src: url("portfolio_files/patchwork_color/patchwork_color_sea_breeze.otf");
}
@font-face {
    font-family: PatchworkColorSereneSunset;
    src: url("portfolio_files/patchwork_color/patchwork_color_serene_sunset.otf");
}
* {
    margin: 0;
    padding: 0;
    line-height: 1;
    box-sizing: border-box;
    font-weight: normal;
}
body {
    background: var(--white);
    padding: 2rem;
    font-family: "Open Sans", sans-serif;
    font-weight: normal;
}
main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
section, h1 {
    padding: 0.5rem;
}
h1 {
    font-family: "PatchworkColorRegular", monospace;
    font-weight: normal;
    font-size: clamp(3rem, 6vw, 6rem);
    color: var(--gray);
}
#buttons {
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
}
p {
    font-size: clamp(4rem, 8vw, 8rem);
    text-wrap: balance;
}


/* BUTTONS */
button {
    display: block;
    font-family: "Open Sans", sans-serif;
    text-transform: uppercase;
    font-size: clamp(0.5rem, 1vw, 1rem);
    background: none;
    border: 0.1em solid var(--gray);
    color: var(--gray);
    outline: none;
    padding: 0.5em;
    border-radius: 0.25em;
    cursor: pointer;
}
button.active {
    background: var(--gray);
    color: var(--white);
    border-color: transparent;
}
#color-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.25rem, 0.5vw, 0.5rem);
}


/* FONT STYLES */
.cold-winter {
    font-family: "PatchworkColorColdWinter", monospace;
    animation: extend var(--anim-len) ease-in-out infinite alternate;
}
.firey-pastel {
    font-family: "PatchworkColorFireyPastel", monospace;
    animation: fracture var(--anim-len) ease-in-out infinite alternate;
}
.mossy-grove {
    font-family: "PatchworkColorMossyGrove", monospace;
    animation: glint var(--anim-len) ease-in-out infinite alternate;
}
.retro-groove {
    font-family: "PatchworkColorRetroGroove", monospace;
    animation: slant var(--anim-len) ease-in-out infinite alternate;
}
.sea-breeze {
    font-family: "PatchworkColorSeaBreeze", monospace;
    animation: smooth var(--anim-len) ease-in-out infinite alternate;
}
.serene-sunset {
    font-family: "PatchworkColorSereneSunset", monospace;
    animation: smooth var(--anim-len) ease-in-out infinite alternate;
}