/* 1. Ruuduline vihiku taust lehele */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #2b3748;
  background-color: #f7f9fc;
  /* Ruudustiku mustri loomine CSS-i abil (vihikupaber) */
  background-image: 
    linear-gradient(to right, rgba(219, 234, 254, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(219, 234, 254, 0.6) 1px, transparent 1px);
  background-size: 24px 24px;
  line-height: 1.6;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  box-sizing: border-box;
}

/* Kogu lehe sisu konteiner (valge märkmikupaber ruudustiku peal) */
body {
  /* Muudame body konteineriks, või kui soovid, võib body sees olla eraldi wrap. 
     Aga antud lahenduses teeme body-sisesed elemendid üheks harmooniliseks kaardiks: */
}

/* Teeme nii, et kõik sektsioonid on mähitud üheks puhtaks kaardiks */
header, nav, main, footer {
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
}

/* Konteineri üldine stiil (kuna su HTML-is pole ühist wrapper divi, seome stiilid elementide külge) */
body {
  display: block; /* Eemaldame varasema flexi bodylt, et elemendid voolaksid üksteise alla */
}

/* Loome lehele ilusa keskel asuva kaardi stiili */
header, nav, main, footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-left: 1px solid #bfdbfe;
  border-right: 1px solid #bfdbfe;
  max-width: 600px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
}

header {
  padding-top: 40px;
  border-top: 1px solid #bfdbfe;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  text-align: center;
}

nav, main {
  padding-top: 15px;
  padding-bottom: 15px;
  text-align: center;
}

footer {
  padding-bottom: 40px;
  border-bottom: 1px solid #bfdbfe;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

/* 2. H1 stiil - sügav ja soliidne sinine */
h1 {
  font-size: 1.85rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-top: 0;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

/* Pildi (elumoto) stiil - teeme selle kenasti ümaraks ja korrapäraseks */
header img {
  max-width: 120px;
  height: auto;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 3px solid #e0f2fe;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
}

/* Navigeerimise listi stiil (eemaldame vaikimisi listi punktid) */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 3. Lingi (href) stiil - kujundatud ilusa nupuna */
nav a {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

nav a:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

nav a:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

main {
  font-size: 1.05rem;
  color: #334155;
  font-weight: 500;
}