:root {
  --ink: #24232b;
  --hot-pink: #f05d8e;
  --coral: #ff8e7a;
  --lilac: #c7b8ff;
  --butter: #fff0a6;
  --mint: #c8f3df;
  --paper: #fffaf4;
  --line: rgba(36, 35, 43, 0.18);
  --display: "Space Grotesk", sans-serif;
  --mono: "DM Mono", monospace;
  --heart-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23f05d8e' stroke='%2324232b' stroke-width='1.5' d='M12 21S3 15 3 8.5A4.5 4.5 0 0 1 12 6a4.5 4.5 0 0 1 9 2.5C21 15 12 21 12 21Z'/%3E%3C/svg%3E") 12 12, auto;
  --hover-heart-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23c7b8ff' stroke='%2324232b' stroke-width='1.5' d='M12 21S3 15 3 8.5A4.5 4.5 0 0 1 12 6a4.5 4.5 0 0 1 9 2.5C21 15 12 21 12 21Z'/%3E%3C/svg%3E") 12 12, auto;
  --click-heart-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff8e7a' stroke='%2324232b' stroke-width='1.5' d='M12 21S3 15 3 8.5A4.5 4.5 0 0 1 12 6a4.5 4.5 0 0 1 9 2.5C21 15 12 21 12 21Z'/%3E%3C/svg%3E") 12 12, auto;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  cursor: var(--heart-cursor);
}

body.is-clicking {
  cursor: var(--click-heart-cursor);
}

button {
  cursor: var(--heart-cursor);
}

body.is-clicking button {
  cursor: var(--click-heart-cursor);
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: 28px clamp(22px, 5vw, 72px) 30px;
  background:
    radial-gradient(circle at 8% 88%, var(--mint) 0 16%, transparent 35%),
    radial-gradient(circle at 93% 12%, var(--lilac) 0 15%, transparent 36%),
    linear-gradient(124deg, var(--butter) 0%, #ffd6bd 48%, #ffc7d9 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 0;
  content: "";
  border: 2px solid var(--ink);
  border-radius: 50%;
  opacity: 0.13;
}

.hero::before {
  width: min(42vw, 540px);
  height: min(42vw, 540px);
  top: 13%;
  right: -8%;
}

.hero::after {
  width: min(28vw, 340px);
  height: min(28vw, 340px);
  bottom: -8%;
  left: -5%;
}

.hero__topline,
.hero__footer,
.hero__content {
  position: relative;
  z-index: 1;
}

.hero__content,
.hero__topline,
.hero__footer {
  text-align: center;
}

.hero__topline,
.hero__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero__topline {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #4ebf80;
  box-shadow: 0 0 0 5px rgba(78, 191, 128, 0.15);
}

.status-dot-button {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
}

.status-dot-button:hover .status-dot,
.status-dot-button:focus-visible .status-dot,
.status-dot-button.is-connected .status-dot {
  background: var(--hot-pink);
  box-shadow: 0 0 0 5px rgba(240, 93, 142, 0.18);
}

.status-dot-button:focus-visible {
  outline: 2px solid var(--hot-pink);
  outline-offset: 3px;
}

.hero__code {
  color: var(--hot-pink);
  font-weight: 500;
}

.hero__content {
  width: min(100%, 960px);
  margin: auto;
  padding: 3vh 0 11vh;
}

.eyebrow {
  width: fit-content;
  margin: 0 auto 26px;
  padding: 8px 11px;
  background: var(--hot-pink);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

h1 {
  max-width: 920px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(56px, 10vw, 148px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.87;
}

h1 span {
  color: var(--hot-pink);
}

h1 em {
  color: var(--coral);
  font-style: normal;
  text-decoration: underline;
  text-decoration-thickness: 5px;
  text-underline-offset: 8px;
}

.hero__message {
  max-width: 450px;
  margin: 32px auto 24px;
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.5;
}

.love-button {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  border: 2px solid var(--ink);
  padding: 15px 17px 15px 20px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.love-button:hover,
.love-button:focus-visible {
  background: var(--butter);
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.love-button:focus-visible {
  outline: 3px solid var(--hot-pink);
  outline-offset: 4px;
}

.love-button__arrow {
  font-size: 20px;
  line-height: 0.5;
}

.response {
  min-height: 18px;
  margin: 17px auto 0;
  color: var(--hot-pink);
  font-size: 11px;
}

.compliment-box {
  width: min(100%, 430px);
  margin: 30px auto 0;
  border: 2px solid var(--ink);
  background: rgba(200, 243, 223, 0.7);
  box-shadow: 5px 5px 0 var(--ink);
  text-align: center;
}

.compliment-box__bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ink);
  padding: 9px 12px;
  background: var(--butter);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compliment-box__bar span:last-child {
  color: #28754e;
}

.compliment-box__text {
  min-height: 22px;
  margin: 0;
  padding: 14px 16px 16px;
  color: var(--hot-pink);
  font-family: var(--display);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.code-window {
  width: min(100%, 680px);
  margin: 48px auto 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: rgba(255, 250, 244, 0.72);
  box-shadow: 7px 7px 0 var(--ink);
  text-align: center;
}

.code-window__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--ink);
  padding: 11px 14px;
  background: var(--lilac);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.window-dots {
  display: flex;
  gap: 5px;
  justify-self: start;
}

.window-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.code-window__status {
  justify-self: end;
  color: #28754e;
  font-size: 9px;
}

.code-window__body {
  padding: 22px clamp(16px, 5vw, 44px) 25px;
  font-size: clamp(11px, 1.7vw, 14px);
  line-height: 1.75;
  text-align: left;
}

.code-window__body p {
  margin: 0;
}

.code-number {
  display: inline-block;
  width: 25px;
  color: rgba(36, 35, 43, 0.4);
}

.code-keyword {
  color: #9c3d74;
}

.code-name {
  color: #28754e;
}

.code-string {
  color: #bf5b31;
}

.code-window__output {
  margin-top: 18px !important;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  color: var(--hot-pink);
  font-size: 0.9em;
}

.code-window__output span {
  color: var(--ink);
}

.code-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 14px;
  background: rgba(199, 184, 255, 0.2);
}

.command-button {
  border: 1px solid var(--ink);
  padding: 8px 10px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  transition: transform 160ms ease, background 160ms ease;
}

.command-button:hover,
.command-button:focus-visible,
.command-button.is-active {
  background: var(--mint);
  transform: translateY(-2px);
}

.command-button--accent {
  background: var(--butter);
}

.command-button:focus-visible {
  outline: 2px solid var(--hot-pink);
  outline-offset: 3px;
}

.love-button,
.command-button,
.status-dot-button {
  cursor: var(--heart-cursor);
}

body.is-clicking .love-button,
body.is-clicking .command-button,
body.is-clicking .status-dot-button {
  cursor: var(--click-heart-cursor);
}

.love-button:hover,
.love-button:focus-visible,
.command-button:hover,
.command-button:focus-visible,
.status-dot-button:hover,
.status-dot-button:focus-visible {
  cursor: var(--hover-heart-cursor);
}

.command-result {
  min-height: 44px;
  padding: 13px 18px;
  color: var(--hot-pink);
  background: rgba(255, 240, 166, 0.34);
  font-size: 11px;
  line-height: 1.45;
  transition: background 180ms ease, color 180ms ease;
}

.command-result__prompt {
  color: var(--ink);
}

.command-result.is-delivered {
  color: #28754e;
  background: rgba(200, 243, 223, 0.58);
}

.command-result.is-compiling {
  color: var(--ink);
  background: repeating-linear-gradient(
    -45deg,
    rgba(199, 184, 255, 0.34),
    rgba(199, 184, 255, 0.34) 8px,
    rgba(255, 250, 244, 0.55) 8px,
    rgba(255, 250, 244, 0.55) 16px
  );
  animation: compile-shimmer 700ms linear infinite;
}

.firework-spark {
  position: fixed;
  z-index: 20;
  color: var(--hot-pink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: firework-pop 720ms var(--spark-delay) ease-out forwards;
}

@keyframes firework-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(-15deg);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) scale(1.25) rotate(25deg);
  }
}

@keyframes compile-shimmer {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 22px 0;
  }
}

.hero__footer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.sticker {
  position: absolute;
  z-index: 2;
  display: block;
  border: 2px solid var(--ink);
  padding: 8px 12px;
  background: var(--mint);
  font-size: 11px;
  font-weight: 500;
  box-shadow: 4px 4px 0 var(--ink);
  text-transform: uppercase;
  transform: rotate(8deg);
}

.sticker--one {
  top: 28%;
  right: 6%;
}

.heart-cluster {
  position: absolute;
  z-index: 2;
  top: 47%;
  right: 8%;
  width: 118px;
  height: 94px;
  color: var(--hot-pink);
  font-family: var(--display);
  pointer-events: none;
}

.heart-cluster__heart {
  position: absolute;
  display: block;
  text-shadow: 2px 2px 0 rgba(36, 35, 43, 0.12);
  animation: cluster-heart-float 2.8s ease-in-out infinite;
}

.heart-cluster__heart--one {
  top: 28px;
  left: 8px;
  font-size: 34px;
  transform: rotate(-17deg);
}

.heart-cluster__heart--two {
  top: 0;
  left: 46px;
  color: var(--coral);
  font-size: 54px;
  animation-delay: 250ms;
  transform: rotate(8deg);
}

.heart-cluster__heart--three {
  top: 47px;
  left: 78px;
  color: var(--lilac);
  font-size: 27px;
  animation-delay: 500ms;
  transform: rotate(16deg);
}

@keyframes cluster-heart-float {
  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: -7px;
  }
}

.sticker--two {
  color: var(--hot-pink);
}

.sticker--three {
  top: 54%;
  right: 4%;
  background: var(--lilac);
  transform: rotate(-5deg);
}

@media (max-width: 700px) {
  .hero {
    min-height: 100svh;
    padding: 20px 18px 22px;
  }

  .hero__topline,
  .hero__footer {
    font-size: 9px;
  }

  .hero__topline {
    align-items: flex-start;
  }

  .hero__topline > span:nth-child(2) {
    max-width: 125px;
    line-height: 1.35;
  }

  .hero__content {
    padding: 11vh 0 9vh;
  }

  h1 {
    font-size: clamp(54px, 16vw, 100px);
  }

  .hero__message {
    max-width: 300px;
    margin-top: 28px;
  }

  .code-window {
    margin-top: 40px;
  }

  .code-window__bar {
    grid-template-columns: auto 1fr auto;
    font-size: 8px;
  }

  .code-window__body {
    padding-right: 10px;
    padding-left: 10px;
    text-align: left;
  }

  .code-window__output {
    line-height: 1.45;
  }

  .hero__footer {
    align-items: flex-end;
    line-height: 1.4;
    justify-content: center;
  }

  .hero__footer span:last-child {
    max-width: 150px;
    text-align: right;
  }

  .sticker--one {
    position: relative;
    top: auto;
    right: auto;
    margin: 26px auto 0;
    font-size: 9px;
  }

  .heart-cluster {
    position: relative;
    top: auto;
    right: auto;
    margin: 18px auto 0;
    transform: scale(0.78);
    transform-origin: right center;
  }

  .sticker--three {
    position: relative;
    top: auto;
    right: auto;
    margin: -5px auto 20px;
  }
}
