:root {
  color-scheme: light;
  font-family: "Manrope", system-ui, sans-serif;
  font-synthesis: none;
  --text: #171717;
  --muted: #686868;
  --border: #dedbd9;
  --accent: #630901;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  display: grid;
  place-items: center;
  color: var(--text);
  background: #fafafa;
}

.gif-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #eae7e4;
}

.gif-wall {
  display: grid;
  gap: 2px;
  width: max-content;
  background: #ddd8d4;
}

.gif-wall img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gif-background::before,
.gif-background::after {
  content: "";
  position: absolute;
  inset: 0;
}

.gif-background::before {
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 15%) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 15%) 1px, transparent 1px);
  background-size: 24px 24px;
}

.gif-background::after {
  background: radial-gradient(ellipse 52vw 48vh at var(--focus-x, 50%) var(--focus-y, 42%),
      rgb(250 250 250 / 100%) 0%,
      rgb(250 250 250 / 100%) 18%,
      rgb(250 250 250 / 98%) 52%,
      rgb(250 250 250 / 90%) 78%,
      rgb(250 250 250 / 70%) 100%);
}

.landing {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 900px);
  padding: 96px 0;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(4.25rem, 12vw, 7.75rem);
  font-weight: 600;
  letter-spacing: -.09em;
  line-height: 1.05;
  text-shadow: 0 2px 20px rgb(255 255 255 / 80%);
}

.subtitle {
  max-width: 720px;
  margin: 24px auto 44px;
  min-height: 3.1em;
  color: var(--muted);
  font-size: clamp(1.12rem, 2.2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.025em;
}

.typed-text::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 3px;
  background: var(--accent);
  vertical-align: -.13em;
  animation: cursor-blink .8s steps(1) infinite;
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  background: rgb(255 255 255 / 76%);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .2s;
}

.link:hover {
  border-color: #a7a19f;
  background: #fff;
  transform: translateY(-2px);
}

.link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.link span {
  color: #928e8c;
  font-size: 15px;
  font-weight: 400;
}

.link code {
  font: 500 12px "DM Mono", monospace;
}

.link.primary {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.link.primary:hover {
  background: #7b170e;
}

.link.primary span {
  color: #e5bcb8;
}

@media (max-width: 600px) {
  .landing {
    width: min(100% - 36px, 440px);
    padding: 72px 0;
  }

  .subtitle {
    margin-bottom: 34px;
  }

  .links {
    gap: 8px;
  }

  .link {
    min-height: 44px;
    padding: 0 13px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typed-text::after {
    animation: none;
  }

  .link {
    transition: none;
  }
}
