/* ============================================================
   CSS 09.04 — Link states: :link :visited :hover :active
   ============================================================
   Write link states in this order — "LoVe HAte":
     a:link → a:visited → a:hover → a:active
   (Because of the cascade, a different order can stop :hover from working.)

   The link points to  #demo  — a spot on THIS page — so clicking it
   "visits" it without leaving the page.
   ============================================================ */

.link-demo a:link    { color: #2D62EF; }    /* not visited yet          */
.link-demo a:visited { color: #7B3FE4; }    /* visited before (purple)  */
.link-demo a:hover   { color: #C98A00; }    /* mouse over (amber)       */
.link-demo a:active  { color: #E54B4F; }    /* being clicked (red)      */
/* Try it: move the :hover line ABOVE :visited, click the link once,
   then point at it → it no longer turns amber. Order matters! */


/* ------------------------------------------------------------
   Only to make the link big — not part of this lesson
   ------------------------------------------------------------ */
.link-demo a {
  font-weight: 700;
  font-size: 18px;
}
