@font-face {
  font-family: "Baskervville Notes";
  src: url("/assets/Baskervville-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14171a;
  --paper: #f8f1e7;
  --title: "Baskervville Notes", Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--title);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--paper);
}

.landing {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(28px, 6vw, 72px);
  overflow: hidden;
}

.mascot-perch {
  position: fixed;
  right: clamp(12px, 4vw, 56px);
  bottom: clamp(10px, 3.4vw, 42px);
  width: clamp(144px, 22vw, 286px);
  aspect-ratio: 1;
  pointer-events: none;
}

.mascot-motion,
.mascot-steady {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.mascot-motion {
  opacity: 0;
}

.mascot-steady {
  opacity: 1;
}

.mascot-perch.is-animating .mascot-motion {
  opacity: 1;
}

.mascot-perch.is-animating .mascot-steady {
  opacity: 0;
}

h1 {
  margin: 0;
  max-width: min(92vw, 980px);
  color: var(--ink);
  font-family: var(--title);
  font-size: clamp(48px, 10vw, 124px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.9;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 520px) {
  .landing {
    padding: 28px 20px 160px;
  }

  .mascot-perch {
    right: 8px;
    bottom: 6px;
    width: min(44vw, 172px);
  }
}
