:root {
  /* Colors */
  --bg-main: #f8fafc;
  --text-secondary: #6c727f;

  /* Typography */
  --font-family: "Poppins", sans-serif;
  --title-large: clamp(1.75rem, 4vw, 2.25rem);
  --title-small: clamp(1.125rem, 3vw, 1.25rem);
  --text-small: 0.875rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 2rem;
  --space-md: 2.6rem;
  --space-lg: 2.62rem;
  --space-xl: 3.25rem;

  /* Layout */
  --container-max: 800px;
  --title-max: 600px;
  --image-size: clamp(120px, 30vw, 160px);
  --border-radius: 10px;
  --gap: clamp(1rem, 4vw, 2rem);
}

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

/* Base Styles */
body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  line-height: 1.5;
}

ul {
  list-style: none;
}

/* Primary Layout */
.container {
  display: flex;
  flex-direction: column;
  max-width: var(--container-max);
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  flex-wrap: wrap;
}

/* Titles */
h1 {
  max-width: var(--title-max);
  font-size: var(--title-large);
  font-weight: 600;
  word-break: break-word;
  line-height: 1.2;
}

h2 {
  font-size: var(--title-small);
  font-weight: 600;
  margin-block: var(--space-xs);
  line-height: 1.3;
}

/* Separator */
.separator {
  margin-block: var(--space-lg);
}

/* List elements */
li {
  display: flex;
  gap: var(--gap);
  margin-bottom: var(--space-xl);
  text-align: left;
}

li img {
  width: var(--image-size);
  height: var(--image-size);
  border-radius: var(--border-radius);
  object-fit: cover;
}

li div {
  margin: auto;
}

/* Secundary text */
h2 + p {
  color: var(--text-secondary);
  font-size: var(--text-small);
  font-weight: 500;
  text-wrap: pretty;
}

/* Media queries */
@media (max-width: 35em) {
  /* 560px */
  li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-xs);
  }

  li div {
    margin-top: var(--space-xs);
  }
}
