/* ===== Fonts ===== */
@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(/fonts/CrimsonPro.ttf) format("truetype");
}
@font-face {
  font-family: "Crimson Pro";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(/fonts/CrimsonPro-Italic.ttf) format("truetype");
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh; /* fallback for browsers without svh/dvh */
  min-height: 100dvh; /* dynamic viewport fallback */
  min-height: 100svh; /* small viewport: always fits regardless of iOS Safari toolbars */
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #1a1a1a;
  color: #fff;
  font-family: "Crimson Pro", serif;
  font-weight: 300;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Faded dither background (fills the viewport, sits behind content) ===== */
.faded-dither {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  z-index: -1;
}

.faded-dither__c {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

/* ===== Content ===== */
.content {
  position: relative;
  z-index: 1;
}

.title {
  margin: 0.67em 2rem;
  text-align: center;
  font-size: 2em;
  font-weight: 300;
}

.intro,
.outro {
  margin: 1em 2rem;
  font-size: 24px;
  font-weight: 300;
}

.outro {
  text-align: center;
}

.intro a {
  color: #86f5ff;
}

.list-wrap {
  display: flex;
  justify-content: center;
}

.list {
  width: auto;
  margin: 1em 0;
  font-size: 24px;
  font-weight: 300;
}

.list li {
  width: fit-content;
}

/* ===== Mobile ===== */
@media (max-width: 479px) {
  .title {
    font-size: 1.6em;
  }

  .intro,
  .outro,
  .list {
    font-size: 1.2rem;
  }
}
