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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Bebas Neue", "Impact", "Oswald", system-ui, sans-serif;
  color: #fff;
  background-color: #000;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5vh 4vw;
}

h1 {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6);
}

h1 .question {
  display: block;
  font-size: clamp(2.5rem, 10vw, 8rem);
}

h1 .answer {
  display: block;
  margin-top: 0.15em;
  font-size: clamp(5rem, 22vw, 18rem);
  letter-spacing: 0.04em;
}

.subtitle {
  position: relative;
  z-index: 1;
  margin: 1.5rem auto 0;
  font-size: clamp(0.9rem, 1.8vw, 1.4rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.92;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

footer {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom));
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

footer a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 1px;
}

footer a:hover {
  border-bottom-color: #fff;
}

footer .sep {
  opacity: 0.6;
}

/* About page */
body.about {
  image-rendering: auto;
  background: #0a0a0a;
  overflow: auto;
}

body.about::before {
  display: none;
}

.about-main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 8vh 1.5rem 4vh;
  text-align: left;
}

.about-title {
  font-size: clamp(3rem, 8vw, 5rem);
  margin: 0 0 1.5rem;
  letter-spacing: 0.04em;
}

.about-body {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
}

.about-body p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

.about-body em {
  font-style: italic;
}

.credit {
  margin: 2rem 0 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 0.95rem;
  font-style: italic;
  opacity: 0.7;
}

.credit a,
.credit a:link,
.credit a:visited,
.credit a:hover,
.credit a:active {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.6);
  text-underline-offset: 2px;
}

.credit a:hover {
  text-decoration-color: #fff;
  opacity: 1;
}

.back {
  margin-top: 2.5rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.back a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
}

.back a:hover {
  border-bottom-color: #fff;
}

@media (max-width: 480px) {
  h1 .question {
    font-size: clamp(1.8rem, 9vw, 4rem);
  }
  footer {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }
}
