:root {
  color-scheme: light;

  --background: #fffaf4;
  --text: #352922;
  --muted: #82756b;
  --orange: #f49b39;
  --coral: #ed765c;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;

  background: var(--background);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #ffdca8;
  color: var(--text);
}

/* Background */

.ambient {
  position: fixed;
  z-index: -1;
  width: min(65vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(65px);
  opacity: 0.5;
  animation: drift 18s ease-in-out infinite alternate;
}

.ambient-one {
  top: -25%;
  right: -15%;
  background: radial-gradient(circle, #ffe5ad, transparent 70%);
}

.ambient-two {
  bottom: -30%;
  left: -20%;
  background: radial-gradient(circle, #ffd5c7, transparent 70%);
  animation-delay: -9s;
}

/* Layout */

.hero {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding: 48px 24px 32px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Logo */

.logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(210px, 35vw, 300px);
  margin: 24px 0 12px;
  isolation: isolate;

  animation: appear 1s 0.1s ease both;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;

  filter: drop-shadow(0 18px 20px rgb(218 135 58 / 12%));
  animation: float 6s ease-in-out infinite;
}

.logo-glow {
  position: absolute;
  z-index: -1;
  inset: 12%;
  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgb(255 201 101 / 32%),
    rgb(255 214 161 / 12%) 50%,
    transparent 72%
  );

  filter: blur(18px);
  animation: glow 6s ease-in-out infinite;
}

/* Orange wavy underline */

.wobbly-line {
  display: block;
  flex-shrink: 0;
  margin: -4px auto 28px;
  overflow: visible;

  animation: appear 0.8s 0.2s ease both;
}

/* Typography */

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.055em;

  animation: appear 0.8s 0.3s ease both;
}

h1 span {
  color: var(--coral);
}

.description {
  margin: 24px 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;

  animation: appear 0.8s 0.4s ease both;
}

/* GitHub button */

.github-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  min-height: 52px;
  padding: 15px 23px;
  border: 1px solid var(--text);
  border-radius: 999px;

  background: var(--text);
  color: #fffaf4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;

  box-shadow: 0 6px 16px rgb(53 41 34 / 10%);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;

  animation: appear 0.8s 0.5s ease both;
}

.github-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.button-arrow {
  margin-left: 8px;
  font-size: 19px;
  transition: transform 0.25s ease;
}

.github-button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}

.github-button:active {
  transform: translateY(0) scale(0.98);
}

.coming-soon {
  margin-top: 26px;
  color: #998b7d;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;

  animation: appear 0.8s 0.6s ease both;
}

/* Animations */

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

@keyframes glow {
  0%, 100% {
    opacity: 0.65;
    transform: scale(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(-35px, 45px);
  }
}

@keyframes appear {
  from {
    opacity: 0;
    translate: 0 16px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* Responsive and accessibility */

@media (hover: hover) {
  .github-button:hover {
    transform: translateY(-3px);
    background: #4a382b;
    box-shadow: 0 12px 25px rgb(53 41 34 / 16%);
  }

  .github-button:hover .button-arrow {
    transform: translate(3px, -3px);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 32px 20px 24px;
  }

  .logo-stage {
    width: 220px;
    margin-top: 28px;
  }

  .description {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.brand-name {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 750;
  letter-spacing: -1.5px;
  line-height: 1.2;
  animation: appear 0.8s 0.2s ease both;
}