@font-face {
  font-family: "Albert Sans";
  src: url("./fonts/albert-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("./fonts/fredoka-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color: #262626;
  background: #fafafa;
  font-family: "Albert Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background-image:
    linear-gradient(rgba(217, 217, 217, 0.52) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 217, 217, 0.52) 1px, transparent 1px);
  background-size: 40px 40px;
}

main {
  position: relative;
  display: grid;
  min-height: 100vh;
  align-content: center;
  padding: clamp(28px, 7vw, 96px);
  overflow: hidden;
}

.sample-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.sample-copy > p {
  width: fit-content;
  margin: 0 0 20px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #d6ffc2;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sample-copy h1 {
  margin: 0;
  font:
    650 clamp(44px, 8vw, 102px) / 0.9 "Fredoka",
    sans-serif;
  letter-spacing: -0.06em;
}

.sample-copy > span {
  display: block;
  max-width: 48ch;
  margin-top: 26px;
  color: #595959;
  font-size: clamp(16px, 2vw, 23px);
  line-height: 1.45;
}

.sample-orbit {
  position: absolute;
  top: 7%;
  right: -10%;
  width: min(66vw, 680px);
  aspect-ratio: 1;
  border: 1px dashed #c8c8c3;
  border-radius: 50%;
  background: #efffe7;
  box-shadow: inset 0 0 0 clamp(45px, 8vw, 100px) rgba(255, 255, 255, 0.55);
}

.sample-orbit::before,
.sample-orbit::after {
  position: absolute;
  border: 1px dashed #c8c8c3;
  border-radius: 50%;
  content: "";
}

.sample-orbit::before {
  inset: 15%;
}
.sample-orbit::after {
  inset: 32%;
}

.sample-orbit span {
  position: absolute;
  z-index: 1;
  width: 26px;
  height: 26px;
  background: #f4bc3e;
  clip-path: polygon(
    50% 0,
    62% 35%,
    100% 50%,
    62% 65%,
    50% 100%,
    38% 65%,
    0 50%,
    38% 35%
  );
}

.sample-orbit span:nth-child(1) {
  top: 18%;
  left: 12%;
}
.sample-orbit span:nth-child(2) {
  right: 14%;
  bottom: 24%;
  background: #ff9fbd;
}
.sample-orbit span:nth-child(3) {
  right: 34%;
  bottom: 7%;
  background: #858de8;
}

.sample-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 980px;
  margin-top: clamp(54px, 10vh, 120px);
  background: #d9d9d9;
}

.sample-cards article {
  display: grid;
  min-height: 120px;
  align-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(250, 250, 250, 0.94);
}

.sample-cards strong {
  font-size: 16px;
}

.sample-cards span {
  color: #595959;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 620px) {
  main {
    align-content: start;
    padding-top: 70px;
  }

  .sample-orbit {
    top: 34%;
    right: -55%;
    width: 115vw;
  }

  .sample-cards {
    grid-template-columns: 1fr;
    margin-top: 260px;
  }
}

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