:root {
  --c0: #fff2df;
  --c1: #ef243a;
}

:root:has(button:hover),
:root:has(.color-reverse:hover) {
  --c0: #ef243a;
  --c1: #fff2df;
}

body {
  width: 100vw;
  margin: 0;
  background-color: var(--c0);
  font-family: "Iosevka Charon", monospace;
  font-weight: 500;
  color: var(--c1);
}

p {
  margin-top: 0;
}

h1 {
  margin: 1rem 0 0;
}

a {
  color: var(--c0);
  background: conic-gradient(red 25%, white 0 50%, red 0 75%, white 0);
  background-size: 1px 1px;
}

header {
  display: flex;
  justify-content: space-between;

  & > * {
    padding: 0.5rem;
  }
}

section {
  padding: 0 1rem;
}

.section1 {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.section2 {
  min-height: 20rem;
  background: var(--c1);
  color: var(--c0);
}

.section-divider {
  width: 100%;
  height: 1.5rem;
  overflow: hidden;
  background: conic-gradient(red 25%, white 0 50%, red 0 75%, white 0);
  background-size: 2px 2px;
}

.robot-svg-wrap {
  flex: 0 1 60%;
  min-width: 0;
  overflow: visible;
}

.robot-text {
  flex: 1 1 40%;
  max-width: 40rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ia {
  font-family: "Bytesized", sans-serif;
  font-weight: 400;
  font-style: normal;
}

button {
  font-family: inherit;
  width: fit-content;
  font-size: 20px;
  background: var(--c1);
  color: var(--c0);
  padding: 0.7em 1em;
  padding-left: 0.9em;
  display: flex;
  align-items: center;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}

button span {
  display: block;
  margin-left: 0.3em;
  transition: all 0.3s ease-in-out;
}

button svg {
  display: block;
  transform-origin: center center;
  transition: transform 0.3s ease-in-out;
}

button:hover .svg-wrapper {
  animation: fly-1 0.3s ease-in-out infinite alternate;
}

button:hover svg {
  transform: translateX(1.2em) scale(1.1);
}

button:hover span {
  transform: translateX(5em);
}

button:active {
  transform: scale(0.95);
}

.p {
  background: conic-gradient(red 25%, white 0 50%, red 0 75%, white 0);
  background-size: 2px 2px;
}

svg.i {
  height: 2rem;
  fill: var(--c1);
}

svg.ii {
  height: 2rem;
  fill: var(--c0);
}

footer {
  margin-top: 8rem;
  margin-bottom: 1rem;
}

#robot-full [fill="#FFF2DF" i],
#robot-full [fill="#fff2df" i] {
  fill: var(--c0);
}

#robot-full [fill="#EF243A" i],
#robot-full [fill="#ef243a" i] {
  fill: var(--c1);
}

#robot-full [stroke="#EF243A" i],
#robot-full [stroke="#ef243a" i] {
  stroke: var(--c1);
}

@keyframes fly-1 {
  0%,
  100% {
    transform: translate(0, 0.1em);
  }

  25% {
    transform: translate(0.1em, 0);
  }

  50% {
    transform: translate(0, -0.1em);
  }

  75% {
    transform: translate(-0.1em, 0);
  }
}
