/* Basic type and text */

body {
    font: 1.2em / 1.5 system-ui;
    width: clamp(480px, 70%, 1000px);
    margin: 0 auto;
  }
  
  h1 {
    font-size: 2em;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  a {
    color: red;
  }
  
  a:hover {
    text-decoration: none;
  }
  /*6 y 7*/
  section:not(.highlight) h2 + p::first-line {
    font-weight: bold;
  }
  
  * {
    box-sizing: border-box;
  }
 
  /* Nav menu */
  
  nav ul {
    display: flex;
    padding: 0;
    list-style-type: none;
    justify-content: space-between;
    gap: 10px;
  }
  
  nav li {
    flex: 1;
  }
  /*2*/
  nav a {
    text-decoration: none;
    color: black;
    background-color: rgb(171, 205, 50);
    text-align: center;
    padding: 10px;
    /*3. agregar display: block, para que en el menú las cajas llenen todo el horizontal */
    display: block;
  }

  nav a:hover,
  /*4. para marcar de naranja si pasas sobre el menú*/
  nav a:focus {
    background-color: goldenrod;
  }
  
  /* Intro and summary */
  
  .highlight {
    margin-top: 0;
    background-color: darkslategray;
    color: cornsilk;
    padding: 20px;
  }

  /*8*/
  #introduction a, #summary a {
    color: yellow;
  }

  .highlight a {
    color: purple;
  }
  
  /* Footer */
  
  footer.highlight {
    margin-top: 20px;
    background-color: goldenrod;
    text-shadow: 1px 1px 1px black;
  }
