/* ============================================================
   CSS 09.10 — ::first-letter, ::placeholder, ::selection, ::marker
   ============================================================
   ::first-letter   the first letter of a block of text
   ::placeholder    the grey hint text inside an empty input
   ::selection      the text the user selects with the mouse
   ::marker         the bullet / number of a list item
   ============================================================ */

.drop-cap::first-letter {
  float: left;                      /* lets the text wrap around the letter */
  font-size: 3.4em;
  line-height: 1;
  font-weight: 800;
  color: #2D62EF;
  margin: 4px 8px 0 0;
}

.drop-cap::selection {
  background-color: #1F9D55;        /* highlight colour when text is selected */
  color: #FFFFFF;
}

.nice-input::placeholder {
  color: #F08A24;                   /* orange hint text */
  font-style: italic;
}

.amber-markers li::marker {
  color: #FFAF04;                   /* only the bullet changes colour */
  font-size: 1.3em;
}
/* Try it: change the ::selection background to #FFAF04 → amber highlight. */


/* ------------------------------------------------------------
   Only to make it look neat — not part of this lesson
   ------------------------------------------------------------ */
.drop-cap {
  line-height: 1.7;
  max-width: 640px;
}

.nice-input {
  font: inherit;
  padding: 8px 12px;
  border: 2px solid #C9C9C9;
  border-radius: 8px;
  width: 260px;
}


/* ============================================================
   Lesson 09 — Quick summary
   ============================================================
   PSEUDO-CLASSES  (one colon : )  — a STATE or POSITION
     :hover        mouse over            :first-child   first in its parent
     :active       being clicked         :last-child    last in its parent
     :focus        selected / typing     :nth-child(n)  by number (odd, even, 3n)
     :visited      link already visited  :not(x)        everything except x
     :checked      ticked checkbox       :disabled      disabled field / button

   PSEUDO-ELEMENTS (two colons :: ) — a PART, or an added part
     ::before / ::after   add content (needs content: "…")
     ::first-letter       the first letter
     ::placeholder        the grey hint text in an input
     ::selection          text the user selects
     ::marker             the bullet / number of a list item

   Link states in LoVe-HAte order:  :link :visited :hover :active

   Practice tasks:
     1. Make a link that turns green and underlined on hover.
     2. In the marks table (06-nth-child-table), make the Total column
        (5th) bold:   .marks-table td:nth-child(5) { … }
     3. Add a "📌 " before every notice in 05-first-last-child using ::before.
   ============================================================ */
