:root {
  --blue: #20c5f5;
  --blue-mid: #79a8ef;
  --blue-pale: #dbeafa;
  --white: #f4fbff;
  --yellow: #ffd040;
  --ink: #ffffff;
  --shadow: rgba(42, 58, 68, 0.16);
  color-scheme: light;
  font-family: "Crunchi Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Crunchi Inter";
  src: url("/assets/fonts/inter-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Recoleta Crunchi";
  src: url("/assets/fonts/recoleta-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(
      180deg,
      var(--blue) 0%,
      #35b3f0 24%,
      var(--blue-mid) 58%,
      var(--blue-pale) 100%
    );
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

main {
  flex: 1;
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  min-height: 66svh;
  place-items: center;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem clamp(3rem, 7vw, 5rem);
}

.wordmark {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.wordmark img {
  width: min(42vw, 18rem);
  filter: drop-shadow(0 1rem 1.7rem var(--shadow));
}

h1,
h2 {
  margin: 0;
  color: var(--white);
  font-family: "Recoleta Crunchi", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 0.18rem 0.4rem var(--shadow);
}

h1 {
  margin-top: 0.35rem;
  font-size: clamp(3.2rem, 9vw, 7.2rem);
  line-height: 0.9;
  text-align: center;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.1rem;
}

.hero-links a {
  color: var(--yellow);
  font-size: clamp(0.9rem, 1.7vw, 1.15rem);
  font-weight: 850;
  letter-spacing: 0.32em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 0.14rem 0.32rem var(--shadow);
}

.hero-links a:hover,
.hero-links a.is-active {
  color: white;
}

h2 {
  max-width: 16em;
  font-size: clamp(1.95rem, 4.2vw, 3.65rem);
  line-height: 1.05;
}

.cloud {
  position: absolute;
  width: min(28vw, 14rem);
  opacity: 0.72;
  pointer-events: none;
  filter: drop-shadow(0 1rem 1.6rem rgba(69, 115, 165, 0.08));
  animation: float-cloud 11s ease-in-out infinite;
}

.cloud-a {
  top: 12%;
  left: 8%;
}

.cloud-b {
  right: 8%;
  bottom: 18%;
  width: min(32vw, 16rem);
  animation-delay: -4s;
}

@keyframes float-cloud {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(1.1rem, -0.7rem, 0);
  }
}

.statement-section,
.portfolio,
.site-footer {
  width: min(100% - 3rem, 68rem);
  margin: 0 auto;
}

.statement-section {
  display: grid;
  justify-items: center;
  gap: clamp(3.5rem, 8vw, 6rem);
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(5rem, 11vw, 9rem);
  text-align: center;
}

.statement-section article {
  display: grid;
  justify-items: center;
  position: relative;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  text-shadow: 0 0.14rem 0.32rem var(--shadow);
}

.statement-section p:not(.eyebrow) {
  margin: 1.25rem 0 0;
  color: var(--white);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.45;
  text-shadow: 0 0.14rem 0.32rem var(--shadow);
}

.statement-section article h2 + h2 {
  margin-top: 0.5rem;
}

.statement-section h2 span {
  color: var(--yellow);
}

.portfolio {
  display: grid;
  justify-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  text-align: center;
}

.app-link {
  display: block;
  margin-top: 0.5rem;
  border-radius: 1.85rem;
  transition: transform 160ms ease, filter 160ms ease;
}

.app-link:hover {
  filter: brightness(1.03);
  transform: translateY(-2px);
}

.app-link img {
  width: clamp(5.8rem, 15vw, 9rem);
  border-radius: 1.85rem;
  box-shadow: 0 1.2rem 2.5rem rgba(42, 58, 68, 0.18);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  padding: 1.25rem 0 1.5rem;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 750;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

nav a:hover {
  color: white;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cloud {
    animation: none;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 58svh;
  }

  .wordmark img {
    width: min(66vw, 15rem);
  }

  .cloud {
    width: 8.5rem;
    opacity: 0.52;
  }

  .cloud-a {
    left: 0.75rem;
  }

  .cloud-b {
    right: 0.75rem;
    bottom: 12%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
