@font-face {
  font-family: "Sorts Mill Goudy";
  src: url(SortsMillGoudy-Regular.ttf);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sorts Mill Goudy", serif;
  color: #0b0b0b;
}

a {
  color: #0b0b0b;
}

p {
  margin-top: 0;
}
main {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
  }
  .object {
    width: 150px;
    margin: 0 auto;
    position: relative;
    animation: float 1.72s alternate infinite ease-in-out;
  }
  .hat {
    content: "";
    position: absolute;
    width: 80px;
    height: 100px;
    z-index: 2;
    left: 56px;
    top: -68px;
  }
  .hat.hide {
    display: none;
  }
  button {
    background: transparent;
    border: 2px solid purple;
    border-radius: 2px;
    color: purple;
    font-weight: bold;
    padding: 4px 6px;
    cursor: pointer;
  }
  h1 {
    text-align: center;
    margin: 0;
    font-weight: normal;
    font-size: clamp(2rem, -0.3125rem + 5vw, 3rem);
  }
  @media (min-width: 800px) {
    .flex {
      margin: 0 auto;
      gap: 20px;
      align-items: center;
      display: flex;
      > div {
        line-height: 1;
      }
    }
    h1 {
      text-align: left;
    }
    .record { margin-top: .5em; opacity: .8; }
  }
  .result {
    text-align: left;
    font-size: clamp(3rem, -0.875rem + 8.333vw, 3.5rem);
    span {
      font-weight: bold;
      font-family: serif;
      display: inline-block;
      padding: 5px 10px;
      background: #000;
      color: #fff;
      border-radius: 5px;
    }
  }
  @media (max-width: 799px) {
    .result, .record {
      text-align: center;
    }
  }
}
.bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  .explainer {
    padding: 0 10px;
    text-align: right;
    p {
      font-size: 0.8rem;
      margin-bottom: .25em;
    }
  }
  .byline {
    opacity: 0.5;
  }
}

@keyframes float {
  to {
    transform: translate(0, 5px);
    rotate: 2deg;
    scale: 1.025;
  }
  
}