@font-face {
  font-family: "Fira Mono";
  src: url("/assets/fira-mono.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  background: #fff;
  color: #000;
  font: 1.125rem / 1.2222 "Fira Mono", monospace;
}

.artwork {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: inline-size;
  pointer-events: none;
}

.artwork-canvas {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 1024px;
  margin-left: -720px;
  transform-origin: top center;
  transform: scale(clamp(.65, calc(100cqw / 1440px), 1.5));
}

@property --cloud-core {
  syntax: "<color>";
  inherits: true;
  initial-value: #00c0e8;
}

@property --cloud-rim {
  syntax: "<color>";
  inherits: true;
  initial-value: #68d8cb;
}

.cloud {
  position: absolute;
  translate: -50% -50%;
  transition: --cloud-core 2s ease, --cloud-rim 2s ease;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.cloud::before {
  inset: 0;
  background: radial-gradient(ellipse closest-side at 48% 48%,
    color-mix(in oklab, var(--cloud-core) 29%, transparent),
    color-mix(in oklab, var(--cloud-core) 19%, transparent) 26%,
    color-mix(in oklab, var(--cloud-rim) 13%, transparent) 54%,
    transparent 85%);
  animation: cloud-drift var(--drift-duration) ease-in-out var(--drift-delay) infinite;
}

.cloud::after {
  inset: 11% 10%;
  background: radial-gradient(ellipse closest-side at center,
    color-mix(in oklab, var(--cloud-rim) 14%, transparent),
    color-mix(in oklab, var(--cloud-rim) 7%, transparent) 42%,
    transparent 76%);
  animation: cloud-morph var(--morph-duration) ease-in-out var(--drift-delay) infinite alternate;
}

.cloud-location {
  --cloud-core: #ff9156;
  --cloud-rim: #efa080;
  --drift-duration: 31s;
  --drift-delay: -4s;
  --morph-duration: 17s;
  --drift-x: -84px;
  --drift-y: -66px;
  left: 1182.96px;
  top: 829.96px;
  width: 1633.4px;
  height: 1172.89px;
  rotate: 135deg;
}

.cloud-device {
  --cloud-core: #00c0e8;
  --cloud-rim: #68d8cb;
  --drift-duration: 27s;
  --drift-delay: -8s;
  --morph-duration: 19s;
  --drift-x: 74px;
  --drift-y: 63px;
  left: 992.24px;
  top: 197.03px;
  width: 1370.52px;
  height: 1202.3px;
  rotate: -60deg;
}

.cloud-time {
  --cloud-core: #da56ff;
  --cloud-rim: #a28bf2;
  --drift-duration: 26s;
  --drift-delay: -12s;
  --morph-duration: 15s;
  --drift-x: -82px;
  --drift-y: 68px;
  left: 43.96px;
  top: 408.96px;
  width: 1037.1px;
  height: 744.702px;
  rotate: -135deg;
}

@keyframes cloud-drift {
  0%, 100% {
    transform: translate(0, 0) rotate(-8deg) scale(1.04, .94);
  }
  33% {
    transform: translate(var(--drift-x), var(--drift-y)) rotate(12deg) scale(.94, 1.12);
  }
  67% {
    transform: translate(calc(var(--drift-x) * -.6), calc(var(--drift-y) * -.65))
      rotate(-17deg) scale(1.1, .92);
  }
}

@keyframes cloud-morph {
  from {
    transform: translate(-13%, 7%) rotate(22deg) scale(.92, 1.08);
  }
  to {
    transform: translate(14%, -9%) rotate(-28deg) scale(1.18, .88);
  }
}

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

  .cloud::before,
  .cloud::after {
    animation: none;
  }
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(4rem, 31.1523svh, 23rem) 1.5rem clamp(1.75rem, 4.5898svh, 4rem) max(1.5rem, calc(50% - 362px));
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.208333;
  font-weight: 400;
}

.intro {
  max-width: 453px;
  margin-top: clamp(2.5rem, 9.375svh, 7rem);
}

p {
  margin: 0;
}

p + p {
  margin-top: 1lh;
}

a {
  color: inherit;
  text-decoration-thickness: from-font;
  text-underline-offset: .14em;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: .25rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem clamp(1.25rem, 2.917vw, 2.625rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  display: inline-block;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .page {
    padding-top: clamp(4rem, 24svh, 13rem);
  }

  .cloud-location {
    left: 1000px;
    top: max(950px, calc(100svh + 200px));
  }

  .cloud-device {
    left: 890px;
  }

  .cloud-time {
    left: 340px;
    top: 525px;
  }
  nav ul {
    column-gap: .75rem;
    font-size: 1rem;
  }
}

@media (max-width: 440px) {
  nav ul {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    column-gap: clamp(.75rem, 4vw, 1.5rem);
  }
}
