:root {
  --paper: #fff;
  --ink: #000;
  --body: #212529;
  --blue: #0b419e;
  --line: #d7d9db;
  --mint: #d6e9e2;
  --pink: #f5abab;
  --control-height: 40px;
  --control-radius: 4px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  min-width: 320px;
  overflow: hidden;
  background: var(--paper);
  color: var(--body);
  font-family: "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

#binary-grid {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}

.top {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vw, 3rem);
  pointer-events: none;
}

.top > * {
  pointer-events: auto;
}

.mark {
  display: inline-flex;
  height: var(--control-height);
  align-items: center;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.context-button {
  display: inline-flex;
  height: var(--control-height);
  align-items: center;
  padding: 0 1rem;
  border: 1px solid var(--ink);
  border-radius: var(--control-radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 120ms ease,
    color 120ms ease;
}

.context-button:hover {
  background: var(--paper);
  color: var(--ink);
}

.context-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.stage {
  position: relative;
  z-index: 2;
  height: 100dvh;
  pointer-events: none;
}

.statement {
  position: absolute;
  bottom: clamp(4.5rem, 11vh, 7rem);
  left: clamp(1.5rem, 4vw, 3rem);
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.foot {
  position: fixed;
  z-index: 10;
  right: clamp(1.5rem, 4vw, 3rem);
  bottom: 30px;
  left: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  color: #888;
  font-size: 14px;
  line-height: 20px;
}

.copyright {
  text-transform: uppercase;
}

.foot .mail {
  position: relative;
  overflow: hidden;
  color: #888;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s;
}

.foot .mail::before {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #888;
  content: "";
}

.foot .mail:hover {
  color: var(--blue);
}

.foot .mail:hover::before {
  animation: underline 0.45s ease-in-out;
  background: var(--blue);
}

.foot .mail:focus-visible {
  outline: 2px dotted var(--blue);
  outline-offset: 3px;
}

@keyframes underline {
  0% {
    width: 100%;
  }
  50% {
    width: 0%;
  }
  51% {
    width: 0%;
  }
  100% {
    left: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .top {
    padding: 1.25rem;
  }

  .mark {
    font-size: 1.1rem;
  }

  .context-button {
    padding: 0 0.75rem;
    font-size: 0.68rem;
  }

  .statement {
    bottom: 6rem;
    left: 1.25rem;
    font-size: 1.6rem;
  }

  .foot {
    right: 1.25rem;
    bottom: 1.1rem;
    left: 1.25rem;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 11px;
    line-height: 16px;
  }
}

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

  .foot .mail:hover::before {
    animation: none;
  }
}
