:root {
  color-scheme: dark;
  --black: #000;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

.noise-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.62;
}

.brand-header {
  position: fixed;
  top: clamp(18px, 3vw, 36px);
  left: clamp(20px, 4vw, 56px);
  z-index: 10;
  mix-blend-mode: difference;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.logo-mark {
  display: inline-block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.site-name {
  font-family: Lexend, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.single-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(72px, 9vw, 118px) clamp(28px, 5vw, 80px);
}

.statement {
  width: min(100%, 1240px);
  margin: 0;
  text-align: center;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(4.7rem, 11.2vw, 12rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.76;
  letter-spacing: 0;
}

@media (min-width: 1120px) and (max-aspect-ratio: 16 / 9) {
  .statement {
    width: min(100%, 1040px);
    font-size: clamp(4.5rem, 9.2vw, 9.6rem);
  }
}

@media (min-width: 1120px) and (min-aspect-ratio: 16 / 9) {
  .statement {
    width: calc(100vw - clamp(72px, 10vw, 144px));
    max-width: none;
    font-size: clamp(3.2rem, 5.05vw, 6.7rem);
    line-height: 0.9;
    white-space: nowrap;
  }
}

.email-footer {
  position: fixed;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(18px, 3vw, 40px);
  left: clamp(20px, 4vw, 56px);
  z-index: 10;
  display: flex;
  justify-content: center;
  color: var(--muted);
  font-family: Lexend, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.78rem, 1.25vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  mix-blend-mode: difference;
}

.email-footer a {
  display: inline-flex;
  max-width: 100%;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  overflow-wrap: anywhere;
}

.scramble-word {
  display: inline-block;
  white-space: nowrap;
}

.scramble-letter {
  display: inline-block;
  transform-origin: 50% 54%;
  transition: transform 160ms ease, opacity 160ms ease;
  will-change: transform;
}

.scramble-space {
  display: inline-block;
  width: 0.34em;
}

.scramble-letter.scrambling {
  opacity: 0.82;
  transform: rotateX(24deg) rotateY(-14deg);
}

@media (max-width: 760px) {
  .brand-header {
    top: 20px;
    left: 20px;
  }

  .logo-mark {
    width: 18px;
    height: 18px;
  }

  .site-name {
    font-size: 0.72rem;
  }

  .single-page {
    align-items: center;
    padding: 88px 20px 92px;
  }

  .statement {
    font-size: clamp(3.3rem, 15.4vw, 6.1rem);
    line-height: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scramble-letter {
    transition: none;
  }
}
