@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("fonts/noto-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("fonts/noto-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --echo-red: #ea1b2d;
  --echo-red-dark: #8f0d18;
  --echo-ink: #0d0d0d;
  --echo-panel: #121212;
  --echo-paper: #f0f1f7;
  --echo-muted: #a8a9b0;
  --focus: #ff5b68;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  background: var(--echo-paper);
}

.brand__mark img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.brand__accent {
  color: var(--echo-red);
}

.site-nav {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}

.site-nav__links a {
  font-size: 0.875rem;
  text-decoration: none;
}

.site-nav__links a:not(.button):hover {
  color: var(--echo-red);
}

.menu-button {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  background: var(--echo-red);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  background: #ff3243;
}

.button:active {
  transform: translateY(1px);
}

.button--ghost {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.button--ghost:hover {
  border-color: var(--echo-red);
  background: transparent;
  color: var(--echo-red);
}

.beta-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(100%, 590px);
}

.beta-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.beta-form input {
  min-height: 52px;
  border: 1px solid currentColor;
  border-radius: 0;
  padding: 0 16px;
  background: transparent;
  color: inherit;
}

.beta-form input::placeholder {
  color: currentColor;
  opacity: 0.6;
}

.form-message {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  animation: echo-reveal 650ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes echo-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .site-nav {
    min-height: 62px;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .site-nav__links {
    position: fixed;
    inset: 62px 0 auto;
    display: none;
    align-items: stretch;
    padding: 18px;
    background: inherit;
    border-bottom: 1px solid currentColor;
  }

  .site-nav__links.is-open {
    display: grid;
  }

  .site-nav__links a {
    min-height: 46px;
    display: flex;
    align-items: center;
  }

  .beta-form {
    grid-template-columns: 1fr;
  }

  .form-message {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

