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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 10;
  padding: var(--space-sm) var(--space-md);
  background: var(--ef-bg1);
  color: var(--ef-fg);
  border-radius: var(--radius-md);
}

.skip:focus {
  left: var(--space-md);
  top: var(--space-md);
}

.matrix {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(
    circle at 50% 46%,
    transparent 0 12%,
    #000 100%
  );
  mask-image: radial-gradient(circle at 50% 46%, transparent 0 12%, #000 100%);
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  padding-bottom: 5rem;
}

main {
  width: min(100%, 40rem);
  text-align: center;
}

h1 {
  margin: 0;
}

.links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--target-touch);
  height: var(--target-touch);
  border-radius: var(--radius-md);
  color: var(--ef-grey1);
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing);
}

.link svg {
  display: block;
  width: var(--icon-size);
  height: var(--icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link:hover,
.link:focus-visible {
  color: var(--ef-blue);
}

.site-foot {
  position: fixed;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  padding: var(--space-md);
  padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
  color: var(--ef-grey1);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.site-foot a {
  color: var(--ef-grey1);
  text-decoration: none;
  min-height: var(--target-touch);
  display: inline-flex;
  align-items: center;
  transition: color var(--duration-fast) var(--easing);
}

.site-foot a:hover,
.site-foot a:focus-visible {
  color: var(--ef-blue);
}

@media (prefers-reduced-motion: reduce) {
  .matrix {
    display: none;
  }
}
