* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --bg-card: #bfbcbc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --yellow: #eeff00;
  @media (prefers-color-scheme: dark) {
    --bg: #0f172a;
    --bg-card: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --link: #818cf8;
    --border: #334155;
  }
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  & h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
  }
  & p {
    color: var(--text-muted);
  }
  & .frame {
    width: 800px;
    margin: 10px auto;
    border: 1px solid var(--border);
  }
}

.frame > header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 15px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

section.cards {
  margin: 15px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  & div.top {
    display: flex;
    gap: 20px;
    & .left,
    .right {
      display: flex;
      flex-direction: column;
      gap: 10px;
      & > header {
        display: flex;
        align-items: center;
        padding-left: 15px;
        gap: 15px;
        & img {
          width: 64px;
          border-radius: 50%;
        }
        & h2 {
          font-size: 1.2rem;
          font-weight: 600;
        }
        & p {
          font-size: 0.9rem;
          font-weight: 400;
        }
      }
      & > p {
        order: -1;
        margin-bottom: 6px;
      }
    }
    & .left {
      & header {
        position: relative;
        &::before {
          content: "";
          position: absolute;
          width: 20px;
          height: 20px;
          rotate: 45deg;
          background-color: var(--bg-card);
          top: -28px;
          left: calc(64px / 2 + 5px);
        }
      }
      & > p {
        background-color: var(--bg-card);
        padding: 15px;
        border-radius: 15px;
      }
    }
    & .right {
      background-color: var(--bg);
      border: 1px solid var(--border);
      padding: 15px;
      border-radius: 15px;
    }
  }
  & article.center {
    display: flex;
    align-items: center;
    gap: 20px;
    & img {
      width: 256px;
      border-radius: 20%;
      flex-shrink: 0;
      aspect-ratio: 1 / 1;
    }
    & div {
      height: 256px;
      background-color: var(--bg-card);
      border-radius: 25px;
      padding: 25px;
    }
    & span {
      color: var(--yellow);
      font-size: 2rem;
      font-weight: 600;
    }
    & h2 {
      padding-top: 7px;
      font-size: 2rem;
      font-weight: 500;
    }
    & .job {
      padding: 8px 0;
    }
    & .comment {
      padding-top: 12px;
    }
  }
  & article.bottom {
    border: 2px solid var(--border);
    border-radius: 25px;
    padding: 40px 70px;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 15px;
    & div {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 20px;
      & img {
        width: 48px;
        height: 48px;
        border-radius: 25px;
        &:nth-of-type(2) {
          width: 54px;
          height: 54px;
        }
        &.disabled {
          opacity: 0.3;
        }
      }
      & span {
        margin: 0 14px;
      }
    }
    & p {
      order: -1;
      margin-bottom: 20px;
    }
    & h2 {
      font-size: 1.2rem;
      font-weight: 500;
    }
  }
}
