:root {
  --bg: #0b0b0a;
  --fg: #eceae4;
  --muted: #8d8981;
  --hairline: color-mix(in srgb, var(--fg) 16%, transparent);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino,
    serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: color-mix(in srgb, var(--fg) 18%, transparent);
  color: var(--fg);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.8125rem;
}

.skip-link:focus {
  top: 1rem;
}

.frame {
  min-height: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding:
    calc(clamp(1.35rem, 3.6vw, 2.5rem) + env(safe-area-inset-top))
    calc(clamp(1.25rem, 5vw, 3.25rem) + env(safe-area-inset-right))
    calc(clamp(1.35rem, 3.6vw, 2.5rem) + env(safe-area-inset-bottom))
    calc(clamp(1.25rem, 5vw, 3.25rem) + env(safe-area-inset-left));
}

.masthead,
.colophon {
  display: flex;
  align-items: center;
}

.masthead {
  justify-content: flex-start;
}

.colophon {
  justify-content: flex-end;
}

.domain,
.colophon p {
  margin: 0;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding-block: clamp(2.5rem, 7vh, 5.5rem);
}

.name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.65rem, 8.6vw, 6.5rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 100%;
}

.name::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin: 1.55rem auto 1.4rem;
  background: var(--hairline);
}

.status {
  margin: 0 0 0.9rem;
  color: color-mix(in srgb, var(--fg) 78%, var(--muted));
  font-size: 0.71875rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.lede {
  margin: 0;
  max-width: 24ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.8vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.012em;
}

.masthead,
.name,
.status,
.lede,
.colophon {
  animation: rise 1.1s var(--ease) both;
}

.name {
  animation-delay: 90ms;
}

.status {
  animation-delay: 220ms;
}

.lede {
  animation-delay: 340ms;
}

.colophon {
  animation-delay: 460ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 540px) {
  .colophon {
    justify-content: flex-start;
  }

  .domain,
  .colophon p {
    letter-spacing: 0.1em;
  }

  .name {
    font-size: clamp(3.15rem, 14.5vw, 4.1rem);
    letter-spacing: -0.038em;
    line-height: 0.94;
    max-width: 8.4ch;
  }

  .status {
    letter-spacing: 0.26em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .masthead,
  .name,
  .status,
  .lede,
  .colophon {
    animation: none;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .frame {
    padding-block: calc(0.85rem + env(safe-area-inset-top))
      calc(0.85rem + env(safe-area-inset-bottom));
  }

  .stage {
    padding-block: 1.25rem;
  }

  .name {
    font-size: clamp(2.1rem, 9vh, 4.25rem);
  }

  .name::after {
    margin-block: 0.95rem 0.85rem;
  }
}
