/* ============================================================
   CSS 16.02 — Themes: give variables NEW values in one place
   ============================================================
   Variables are INHERITED (like color — lesson 03). If a parent gives
   a variable a new value, everything inside uses the new value.
     :root  { --bg: white; }    → light everywhere
     .dark  { --bg: navy;  }    → dark inside .dark only
   This is how "dark mode" is built on real websites.

   Fallback value:  var(--accent, orange)  → uses orange if --accent
                    does not exist.
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --text: #1A1A1A;
  --brand: #2D62EF;
}

.dark {
  --bg: #0F1B3D;                    /* only these 3 lines make the dark theme */
  --text: #F5F5F5;
  --brand: #FFAF04;
}

.theme {
  background-color: var(--bg);
  color: var(--text);
}

.btn {
  background-color: var(--brand);
  color: var(--bg);
}

.card {
  border-left: 5px solid var(--brand);
  border-radius: var(--radius, 8px);   /* --radius doesn't exist → fallback 8px */
}
/* Try it: in .dark, change --brand to #1F9D55 → green accents in the dark box only. */


/* ------------------------------------------------------------
   Only to make the parts visible — not part of this lesson
   ------------------------------------------------------------ */
body { font-family: Arial, sans-serif; }
.theme { padding: 20px; margin-bottom: 14px; border: 1px solid #E4E4E4; border-radius: 12px; max-width: 460px; }
.card { padding: 12px 14px; margin-bottom: 12px; }
.btn { font: inherit; font-weight: bold; border: none; padding: 10px 18px; border-radius: 8px; }
