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;
}

/* -------------------------------- */

* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

@font-face {
  font-family: "Jost";
  src: url(./jost-medium.ttf);
}

:root {
  --main-light: #fffdf6;
  --edge-width: 60px;
}

body {
  font-family: "Jost", sans-serif;
  /*background-color: #fffdf6;*/
  background-color: #aaa;
  background-image: url("./whale_monsters_square.jpg");
  background-position: 50% 40%;
  background-size: 110% auto;
  height: 100dvh;
  border: 0 solid #fff;
  display: flex;
  animation: 1s ease-out 0.2s 1 expandBorder;
  animation-fill-mode: forwards;
}

.container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: center;
  justify-content: space-between;
  margin: 2rem;
}

img {
  width: 100%;
  max-width: 840px;
}

.subtitle {
  color: var(--main-light);
  text-transform: uppercase;
  font-size: 1.75rem;
  margin: 2rem;
  text-align: center;
}

.intro {
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: 1s ease-out 1s 1 fadeInIntro;
  animation-fill-mode: forwards;
}

.contact {
  opacity: 0;
  text-transform: uppercase;
  justify-self: flex-end;
  color: var(--main-light);
  text-align: center;
  display: flex;
  flex-direction: column;
  line-height: 1.5em;
  letter-spacing: 0.02em;
  animation: 0.7s ease-out 1.5s 1 fadeInContact;
  animation-fill-mode: forwards;
}

.contact a {
  text-decoration: none;
  color: var(--main-light);
}

@keyframes expandBorder {
  0% {
    border: 0 solid #fff;
    background-size: 110% auto;
  }
  100% {
    border: var(--edge-width) solid #fff;
    background-size: 100% auto;
  }
}

@keyframes fadeInContact {
  0% {
    opacity: 0;
    transform: translateY(20%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInIntro {
  0% {
    opacity: 0;
    transform: translateY(-10%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media only screen and (max-width: 700px) {
  body {
    background-size: cover !important;
    border: 10px solid #fff;
  }
  :root {
    --edge-width: 40px;
  }
  .intro {
    justify-content: end;
  }
  @keyframes expandBorder {
    0% {
      border: 10px solid #fff;
      background-size: 110% auto;
    }
    100% {
      border: 10px solid #fff;
      background-size: 100% auto;
    }
  }
}
