:root {
  --color-bg: #08090b;
  --color-fg: #eceae4;
  --color-accent: #5eead4;
  --color-line: color-mix(in oklab, var(--color-fg) 14%, transparent);
  --color-line-strong: color-mix(in oklab, var(--color-fg) 26%, transparent);
  --font-display: "Instrument Serif", "Iowan Old Style", Palatino, serif;
  --text-display: clamp(2.75rem, 8vw, 5.5rem);
  --tracking-brand: 0.14em;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--color-bg);
  color: var(--color-fg);
}

html,
body {
  min-height: 100dvh;
  margin: 0;
}

body {
  font-family: var(--font-display);
  background: var(--color-bg);
  color: var(--color-fg);
}

h1 {
  text-wrap: balance;
  margin: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.page-shell {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  padding: max(1.5rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
}

.crop-frame {
  position: relative;
  min-height: calc(100dvh - 3rem);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem 1rem;
}

@media (min-width: 640px) {
  .crop-frame {
    padding: 1.75rem 1.5rem 1.25rem;
  }
}

.crop-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.crop-corner-tl {
  top: 0;
  left: 0;
  border-top: 1px solid var(--color-line-strong);
  border-left: 1px solid var(--color-line-strong);
}

.crop-corner-tr {
  top: 0;
  right: 0;
  border-top: 1px solid var(--color-line-strong);
  border-right: 1px solid var(--color-line-strong);
}

.crop-corner-bl {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid var(--color-line-strong);
  border-left: 1px solid var(--color-line-strong);
}

.crop-corner-br {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid var(--color-line-strong);
  border-right: 1px solid var(--color-line-strong);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 0;
}

@media (min-width: 640px) {
  .hero {
    gap: 3rem;
  }
}

.brand-halo {
  position: relative;
  display: grid;
  place-items: center;
}

.brand-halo::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 9999px;
  background: radial-gradient(
    circle,
    color-mix(in oklab, var(--color-accent) 32%, transparent) 0%,
    color-mix(in oklab, var(--color-accent) 8%, transparent) 42%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.brand-mark {
  position: relative;
  z-index: 1;
  width: min(58vw, 16.5rem);
  height: auto;
  color: var(--color-fg);
  display: block;
  overflow: visible;
}

h1 {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--tracking-brand);
}

.rise {
  opacity: 0;
  animation: rise 400ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rise-2 {
  animation-delay: 80ms;
}

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

@media (prefers-reduced-motion: reduce) {
  .rise,
  .rise-2 {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
