:root {
  color-scheme: dark;
  --background: #050505;
  --text: #ffffff;
  --muted: #8a8a8a;
  --accent: #e62523;
  --measure: min(900px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.34;
}

.presence {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: clamp(48px, 8vw, 128px) 20px;
}

.presence__inner {
  display: grid;
  width: var(--measure);
  justify-items: center;
  gap: clamp(76px, 12vh, 132px);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wordmark {
  display: block;
  width: min(72vw, 620px);
  margin: 0;
  color: var(--text);
}

.wordmark__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.wordmark__letters {
  opacity: 0.96;
}

.wordmark__cursor {
  color: var(--muted);
  animation: cursor-blink 3.4s steps(1, end) infinite;
}

.thought-space {
  display: grid;
  width: min(700px, 100%);
  min-height: clamp(112px, 14vh, 164px);
  place-items: start center;
}

.quote {
  width: min(100%, 700px);
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.45vw, 1.26rem);
  font-weight: 300;
  line-height: 1.92;
  letter-spacing: 0;
  text-align: center;
  opacity: 0;
  overflow-wrap: break-word;
  transition:
    opacity 3000ms ease,
    color 1800ms ease;
}

.quote::before,
.quote::after {
  color: currentColor;
  opacity: 0.42;
}

.quote::before {
  content: "\201C";
}

.quote::after {
  content: "\201D";
}

.quote.is-visible {
  opacity: 0.82;
}

.quote.is-neville {
  color: var(--accent);
}

.quote.is-other {
  color: var(--text);
}

@keyframes cursor-blink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --measure: min(900px, calc(100vw - 28px));
  }

  .presence {
    padding-inline: 14px;
  }

  .presence__inner {
    gap: clamp(64px, 10vh, 96px);
  }

  .wordmark {
    width: min(72vw, 500px);
  }

  .thought-space {
    width: min(100%, 30ch);
    min-height: 154px;
  }

  .quote {
    font-size: 0.98rem;
    line-height: 1.82;
  }
}

@media (max-width: 420px) {
  .wordmark {
    width: 62vw;
  }

  .thought-space {
    width: min(100%, 27ch);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .wordmark__cursor {
    opacity: 1;
  }

  .atmosphere {
    display: none;
  }

  .quote {
    opacity: 0.82;
  }
}
