/* === FONT FACES === */

/* --- TEXT FONT --- */
/*@font-face {
  font-family: "text";
  src: url("./text.woff2") format("woff2");
  font-display: swap;
  font-weight: 450 750;
}*/

@font-face {
    font-family: "text-fallback-lib";
    src: local("Liberation Sans");
    /* size-adjust: calc(100% * 28 / 24); */
}
@font-face {
    font-family: "text-fallback-win";
    src: local("Arial");
    /* size-adjust: calc(100% * 28 / 24); */
}
@font-face {
    font-family: "text-fallback-mac";
    src: local("Helvetica");
    /* size-adjust: calc(100% * 28 / 24); */
}

/* --- CODE FONT --- */
/*@font-face {
  font-family: "code";
  src: url("./code.woff2") format("woff2");
  font-display: swap;
  font-weight: 500;
}
@font-face {
  font-family: "code";
  src: url("./typewriter.woff2") format("woff2");
  font-display: swap;
  font-weight: 800;
}*/
@font-face {
    font-family: "code-fallback-lib";
    src: local("Liberation Mono");
}
@font-face {
    font-family: "code-fallback-win";
    src: local("Consolas");
    /* size-adjust: calc(100% * 26 / 24); */
}
@font-face {
    font-family: "code-fallback-mac";
    src: local("Monaco");
}

/* --- EMPHASIS FONT --- */
/*@font-face {
  font-family: "emphasis";
  src: url("./heading.woff2") format("woff2");
  font-display: swap;
  font-weight: 450;
}*/
@font-face {
    font-family: "emphasis-fallback-lib";
    src: local("New Century Schoolbook");
    /* size-adjust: calc(100% * 28 / 24); */
    font-style: italic;
}
@font-face {
    font-family: "emphasis-fallback-prp";
    src: local("Georgia");
    /* size-adjust: calc(100% * 28 / 24); */
    font-style: italic;
}

/* === ROOT STYLING === */
html {
    background-image: url("data:image/svg+xml,%3Csvg transform='rotate(0)' xmlns='http://www.w3.org/2000/svg' width='224' height='224' viewBox='-16 -48 224 224'%3E%3Cstyle%3E.letter%7Bfill: %23cff%3B%7D.number %7Bfill: %23f93%3B%7D.back %7Bfill: %23022%3B%7D%3C/style%3E%3Crect width='512' height='512' x='-128' y='-128' class='back'/%3E%3Cg id='mesg'%3E%3Cg id='9' class='number'%3E%3Crect width='8' height='12' x='0' y='-48'/%3E%3Crect width='8' height='12' x='0' y='-32'/%3E%3Crect width='8' height='12' x='0' y='-16'/%3E%3Crect width='8' height='12' x='0' y='0'/%3E%3Crect width='8' height='4' x='0' y='16'/%3E%3C/g%3E%3Cg id='d' class='letter'%3E%3Crect width='8' height='12' x='0' y='32'/%3E%3Crect width='8' height='4' x='0' y='48'/%3E%3Crect width='8' height='4' x='0' y='56'/%3E%3C/g%3E%3Cg id='r' class='letter'%3E%3Crect width='8' height='4' x='0' y='72'/%3E%3Crect width='8' height='12' x='0' y='80'/%3E%3Crect width='8' height='4' x='0' y='96'/%3E%3C/g%3E%3Cg id='v' class='letter'%3E%3Crect width='8' height='4' x='0' y='112'/%3E%3Crect width='8' height='4' x='0' y='120'/%3E%3Crect width='8' height='4' x='0' y='128'/%3E%3Crect width='8' height='12' x='0' y='136'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cuse href='%23mesg' x='56' y='56'/%3E%3Cuse href='%23mesg' x='56' y='-168'/%3E%3C/g%3E%3Cg%3E%3Cuse href='%23mesg' x='112' y='112'/%3E%3Cuse href='%23mesg' x='112' y='-112'/%3E%3C/g%3E%3Cg%3E%3Cuse href='%23mesg' x='168' y='168'/%3E%3Cuse href='%23mesg' x='168' y='-56'/%3E%3C/g%3E%3C/svg%3E");

    background-size: 40em 40em;
    background-color: #022;
    background-repeat: repeat;
    padding: 1em 1em;
    background-position: 0, 0;
    animation: scroll 90s linear infinite;

    /* For all fonts in the Recursive family */
    font-feature-settings:
        "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss08", "ss11", "ss12";
}
@keyframes scroll {
    from {
        background-position: 0vw 100vh;
    }
    to {
        background-position: 0vw 0vh;
    }
}

body {
    font-size: clamp(1rem, 0.75rem + 1vw, 1.25rem);
    background: #eee;
    max-width: 60rem;
    padding: 2rem 2rem 1rem 2rem;
    margin: auto;
    border: 0.5rem solid #377;
    border-radius: 1rem;
    word-wrap: break-word;
    line-height: 140%;
}

/* --- HEADER & FOOTER --- */
p#footer,
p#header {
    font-family:
        code, code-fallback-lib, code-fallback-mac, code-fallback-win, monospace;
    font-weight: 650;
}
#header {
    float: right;
    align-content: center;
    text-align: center;
    margin-top: 0.5em;
}
#header-home {
    font-size: 1.6em;
}
p#footer {
    text-align: center;
}
hr {
    height: 0.2em;
    background-color: #668888;
    border: 0;
    margin: 1em -1em 1em -1em;
}
