@font-face {
  font-family: 'Fraunces';
  src: url('./fonts/Fraunces-Italic-Variable.ttf') format('truetype');
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('./fonts/Newsreader-Variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('./fonts/IBMPlexMono-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #202523;
  --paper: #f4f1e8;
  --yellow: #ffd263;
  --red: #db3d50;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'Newsreader', Georgia, serif;
}

.landing {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem;
  overflow: hidden;
  position: relative;
}

.landing::before,
.landing::after {
  content: '';
  position: absolute;
  width: 11rem;
  height: 11rem;
  opacity: .85;
  z-index: -1;
}

.landing::before {
  top: -5rem;
  right: -3rem;
  background: var(--yellow);
  transform: rotate(12deg);
}

.landing::after {
  bottom: -6rem;
  left: -4rem;
  background: var(--red);
  transform: rotate(-18deg);
}

.content {
  width: min(100%, 44rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 5rem);
  animation: arrive .8s cubic-bezier(.2,.8,.2,1) both;
}

.logo {
  display: block;
  width: min(100%, 39rem);
  height: auto;
  image-rendering: pixelated;
}

.message {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.58;
  text-align: center;
}

.message a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-left: .2rem;
  font-family: 'Fraunces', serif;
  font-size: 1.3em;
  font-style: italic;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
  transition: color .2s ease, transform .2s ease;
}

.message a:hover,
.message a:focus-visible {
  color: var(--red);
  transform: translateY(-2px);
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .content { animation: none; }
  .message a { transition: none; }
}
