/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

@font-face {
  font-family: PixelOperator;
  font-weight: bold;
  src: url("./PixelOperatorMono8-Bold.ttf");
}
@font-face {
  font-family: PixelOperator;
  font-weight: normal;
  src: url("./PixelOperatorMono8.ttf");
}
:root {
  --paper-rgb: 200, 176, 127;
  --ink-rgb: 53, 34, 11;
  --paper: rgb(var(--paper-rgb));
  --ink: rgb(var(--ink-rgb));
}

button,
details > summary {
  cursor: pointer;
}

b,
strong {
  font-weight: bolder;
}

i,
em {
  font-style: italic;
}

:root {
  font-family: PixelOperator;
  font-size: 16px;
  font-weight: normal;
  color-scheme: dark;
}

::selection {
  background: #312129;
  color: #fff4c4;
}

* {
  box-sizing: border-box;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) rgba(0, 0, 0, 0.1);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
*::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.52);
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
*::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0.1);
}

@font-face {
  font-family: Poor Richard;
  src: url("./POORICH.TTF");
}
:root {
  font-family: Poor Richard;
  color: white;
  background: transparent;
}

html,
body {
  overflow: hidden;
  height: 100vh;
}

main {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 1rem;
  font-size: 7vw;
  font-size: max(1rem, min(7vw, 12vh));
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  animation: body 4s ease-in-out both;
}

h1, p {
  width: 100%;
  max-width: 50%;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.75);
}

h1 {
  padding: 0;
  margin: 0;
  text-align: left;
  animation: h1 4s ease-in-out both;
  transform-origin: 0% 100%;
  padding-inline-end: 10%;
  text-wrap: balance;
}

hr {
  display: block;
  height: 0;
  border: 0;
  border-top: 1px solid #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.75);
  width: 60%;
  border-radius: 1px;
  padding: 0;
  margin-block: 0.1em;
  animation: hr 4s ease-in-out both;
}

p {
  padding: 0;
  margin: 0;
  text-align: right;
  font-size: 60%;
  animation: p 4s ease-in-out both;
  transform-origin: 100% 0%;
  padding-inline-start: 10%;
  text-wrap: balance;
}

footer {
  font-family: PixelOperator;
  font-size: 16px;
  display: none;
  animation: footer 4s ease-in-out both;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  text-shadow: 0 0 4px #000, 0 0 8px #000;
}

html:not(.go) main {
  display: none;
}

@keyframes footer {
  0% {
    opacity: 0;
    transform: translateY(1rem);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-1rem);
  }
}
@keyframes body {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes h1 {
  0% {
    opacity: 0;
    transform: skewX(-80deg) translate(50%);
    animation-timing-function: ease-in-out;
  }
  15% {
    transform: skewX(-20deg) translate(2%);
    animation-timing-function: linear;
  }
  25% {
    opacity: 1;
  }
  85% {
    opacity: 1;
    transform: skewX(-20deg) translate(-1%);
  }
  100% {
    opacity: 0;
    transform: scale(1.25, 0.5) skewX(-30deg) translate(-25%);
    animation-timing-function: ease-out;
  }
}
@keyframes hr {
  0%, 5% {
    opacity: 0;
    transform: scale(1.25);
    animation-timing-function: ease-in-out;
  }
  10% {
    transform: scale(1.1);
    animation-timing-function: linear;
  }
  25% {
    opacity: 1;
  }
  85% {
    opacity: 1;
    transform: scale(1.01);
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
    animation-timing-function: ease-out;
  }
}
@keyframes p {
  0%, 7% {
    opacity: 0;
    transform: skewX(-40deg) translate(-25%);
    animation-timing-function: ease-in-out;
  }
  20% {
    transform: skewX(-20deg) translate(-2%);
    animation-timing-function: linear;
  }
  40% {
    opacity: 1;
  }
  85% {
    opacity: 1;
    transform: skewX(-20deg) translate(1%);
  }
  100% {
    opacity: 0;
    transform: scale(1.25, 0.75) skewX(-30deg) translate(25%);
    animation-timing-function: ease-out;
  }
}