:root {
  /* Colors */
  --text-primary: #18181b;
  --text-secondary: #52525a;
  --bg-primary: #fafaf9;
  --bg-white: #ffffff;
  --star-bg: #f5c044;
  --shadow: 0 0.2rem 0.3rem rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-family: "Sora", sans-serif;
  --base-size: 1rem;
  --text-xs: 0.875rem;
  --text-lg: clamp(1.125rem, 2vw, 1.25rem);
  --title: clamp(1.75rem, 4vw, 2.25rem);
  --star-size: 1.5rem;

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.75rem;
  --space-xl: 2rem;
  --space-2xl: 2.5rem;
  --space-3xl: clamp(5rem, 8vw, 7rem);
  --space-4xl: clamp(7rem, 12vw, 10.13rem);

  /* Layout */
  --container-max: 1136px;
  --card-radius: 0.5rem;
  --star-radius: 50%;
  --logo-width: 87px;
  --star-container: 3rem;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: var(--font-family);
  font-size: var(--base-size);
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  line-height: 1.5;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  color: var(--text-primary);
}

p {
  text-wrap: pretty;
  line-height: 1.7;
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
}

h1 {
  font-size: var(--title);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

h3 {
  font-size: var(--base-size);
  margin-bottom: var(--space-xs);
}

/* Layout */
.container {
  margin-block: var(--space-3xl);
  padding: 0 1.3rem;
  margin-inline: auto;
}

/* Components */
.reviewers span {
  font-size: var(--text-xs);
}

.reviewers div:has(img) {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.rounded-star {
  background-color: var(--star-bg);
  border-radius: var(--star-radius);
  width: var(--star-container);
  height: var(--star-container);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-md);
}

.rounded-star span {
  font-size: var(--star-size);
}

/* Cards */
.cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-block: var(--space-xl);
}

.cards span {
  line-height: 1.5;
}

.card {
  max-width: min-content;
  background-color: var(--bg-white);
  border-radius: var(--card-radius);
  padding: var(--space-lg) var(--space-2xl);
  box-shadow: var(--shadow);
}

.google {
  align-self: flex-end;
}

/* Stars and logos */
.google-stars,
.meta-stars {
  display: flex;
  gap: var(--space-2xs);
  margin-bottom: var(--space-md);
}

.all-stars {
  display: flex;
}

.google-testimonial,
.meta-testimonial {
  width: var(--logo-width);
  height: auto;
  margin-right: var(--space-md);
}

.all-stars img {
  width: var(--star-size);
  height: auto;
}

/* Media queries */
@media (min-width: 40em) {
  /* 640px */
  .container {
    display: flex;
    max-width: var(--container-max);
    margin-block: var(--space-4xl);
  }

  section {
    max-width: 50%;
  }

  .cards {
    margin-inline: var(--space-xl);
    margin-top: 0;
  }
}

@media (max-width: 28.75em) {
  /* 460px */
  .google,
  .meta {
    align-self: center;
  }

  .card {
    max-width: 100%;
  }

  .google-stars,
  .meta-stars {
    flex-direction: column;
  }
}
