/* --- Fix obvious typos/overrides --- */
article h1 {
  font-size: 2.3em; /* fix comma */
}

/* Fix footer parse error + visibility */
footer {
  text-align: center; /* restore semicolon */
  padding: 50px 0 0 0;
  height: auto;              /* let content define height */
  min-height: 100px;         /* preserve space */
  clip-path: polygon(0% 10%, 100% 0%, 100% 100%, 0% 100%); /* safer shape */
}

/* --- Responsive overrides --- */
@media (max-width: 768px) {

  html, body {
    min-width: 0 !important;         /* undo the 960px constraint */
    font-size: 16px;                 /* normalize base size (optional) */
    padding-top: 100px;              /* keep space for fixed header */
  }

  article {
    max-width: 100% !important;
    padding: 20px 15px 20px 15px !important;
  }

  .avatar {
    float: none;
    width: 100%;
    max-width: 300px;                /* tweak as desired */
    display: block;
    margin: 0 auto 20px auto;
    padding-left: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 8px;
    height: auto;
    padding: 10px 0;
  }

  nav ul li {
    line-height: 1.5em;
    padding: 5px 10px;
    margin: 0;
  }

  /* Tables -> stack or scroll */
  #skills {
    width: 100%;
    display: block;
    overflow-x: auto;
  }
  #skills td {
    width: auto;
    display: block;
    border: none;
    padding: 8px 0;
  }

  /* Reference images responsive */
  #references img {
    max-width: 100%;
    height: auto;
    margin-right: 0;
    margin-bottom: 10px;
  }
}
