:root {
  --bg: #fafafa;
  --ink: #1a1a1a;
  --ink-soft: #5c5c5c;
  --font-script: "Sacramento", cursive;
  --font-body: "Outfit Regular", sans-serif;
  --pad: clamp(1.75rem, 7vw, 3.5rem);
  --fade-duration: 1s;
  --fade-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  background: var(--bg);
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4.5rem, 16vh, 8rem);
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top, 0px) + 2rem) var(--pad)
    calc(env(safe-area-inset-bottom, 0px) + 2rem);
  text-align: center;
}

.brand h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-weight: 400;
  font-style: normal;
}

.brand-richell {
  display: inline-block;
  font-family: var(--font-script);
  font-size: clamp(4.5rem, 19vw, 7.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
  white-space: nowrap;
  padding-right: 0.08em;
}

html.js .brand-richell {
  opacity: 0;
}

.brand-richell.is-visible {
  animation: fade-in var(--fade-duration) var(--fade-ease) forwards;
}

.brand-studio {
  font-family: var(--font-body);
  font-size: clamp(0.65rem, 2.1vw, 0.78rem);
  font-weight: 400;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-left: 0.36em;
  opacity: 0;
}

html.js .brand-studio {
  opacity: 0;
}

.brand-studio.is-visible {
  animation: fade-in var(--fade-duration) var(--fade-ease) forwards;
}

.intro {
  margin: 0;
  max-width: 24rem;
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 2.5vw, 1rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-soft);
  opacity: 0;
}

html.js .intro {
  opacity: 0;
}

.intro.is-visible {
  animation: fade-in var(--fade-duration) var(--fade-ease) forwards;
}

.intro a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.intro a:hover {
  color: var(--ink);
}

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

  to {
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .intro {
    max-width: 28rem;
    font-size: 1rem;
    line-height: 1.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .brand-richell,
  .brand-studio,
  .intro {
    opacity: 1;
    animation: none;
  }
}
