@font-face {
  font-family: 'Momo Trust Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/momo-trust-display-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inria Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inria-serif-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Inria Serif Fallback';
  font-style: normal;
  font-weight: 400;
  src: local('Georgia');
  size-adjust: 97.78%;
  ascent-override: 97.6%;
}

:root {
  --font-display: 'Momo Trust Display', Georgia, serif;
  --font-serif: 'Inria Serif', 'Inria Serif Fallback', 'Times New Roman',
    serif;

  --color-bg: #e8f2e8;
  --color-ink: #1f3d2b;
  --color-rule: var(--color-ink);

  font-size: 24px;
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  color-scheme: light dark;
  background-color: var(--color-bg);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1f3d2b;
    --color-ink: #e8f2e8;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-ink);
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

#main {
  display: flex;
  flex-direction: column;
  height: 100%;

  padding: 0.5rem;
}

#content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: auto;
  text-align: center;
  width: 100%;
}

#content h1 {
  margin: 0;
  font-family: var(--font-display);

  font-size: clamp(1rem, 8vw, 2.75rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0.01em;
}

#content p,
#content li {
  margin: 0;
  font-family: var(--font-serif);

  font-size: min(1.0625rem, 7.9vw);
  line-height: 1.6;
  font-style: italic;
}

#content ul {
  margin: 1rem 0 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

#content a {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

#content a:hover {
  text-decoration: underline;
}

#content hr {
  width: 100%;
  max-width: 38.6875rem;
  height: 1px;
  margin: 0 auto;
  background-color: var(--color-rule);
  border: none;
}

@keyframes rule-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#content hr {
  transform: scaleX(0);
  animation: rule-in 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 400ms;
}

#content h1,
#content p {
  opacity: 0;
  animation: rise-in 1100ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#content h1 {
  animation-delay: 950ms;
}

#content p {
  animation-delay: 1250ms;
}

#content li {
  opacity: 0;
  animation: fade-in 900ms ease-out forwards;
}

#content li:nth-of-type(1) {
  animation-delay: 1900ms;
}

#content li:nth-of-type(2) {
  animation-delay: 2160ms;
}

#content li:nth-of-type(3) {
  animation-delay: 2420ms;
}

#content li:nth-of-type(4) {
  animation-delay: 2680ms;
}

@media (prefers-reduced-motion: reduce) {
  #content hr,
  #content h1,
  #content p,
  #content li {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
