/* Base reset and layout */
* {
  box-sizing: border-box;
}

body {
  background-color: #fff9db; /* Pale yellow */
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 1.8;
  margin: 0;
  padding: 0;
}

/* Header */
header {
  background-color: #1f1f1f;
  color: #fff;
  padding: 1.5em 1em;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header img {
  border-radius: 50%;
  width: 90px;
  height: 90px;
  object-fit: cover;
  margin-bottom: 0.8em;
}

nav ul {
  list-style: none;
  margin: 0.5em 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2em;
}

nav ul li a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 0.4em 0.6em;
  transition: background 0.3s;
}

nav ul li a:hover,
nav ul li a:focus {
  background-color: #444;
  border-radius: 5px;
}

/* Main content */
main {
  max-width: 960px;
  margin: 2em auto;
  padding: 2em;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* Typography */
h1 {
  font-size: 20px;
  margin-bottom: 1em;
  color: #222;
}

h2 {
  font-size: 16px;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  color: #333;
}

h3 {
  font-size: 14px;
  margin-top: 1.2em;
  margin-bottom: 0.4em;
  color: #444;
}

p {
  margin-bottom: 1em;
}

ul {
  padding-left: 1.4em;
  margin-bottom: 1em;
}

li {
  margin-bottom: 0.6em;
}

/* Section images */
section img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
}

/* Links */
a {
  color: #0047ab;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Buttons */
button {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 0.6em 1.2em;
  font-size: 11px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover,
button:focus {
  background-color: #333;
}

/* Footer */
footer {
  background-color: #1f1f1f;
  color: #fff;
  text-align: center;
  padding: 1em;
  margin-top: 3em;
}

footer img {
  margin: 0.2em 0.4em;
  height: 40px;
  max-width: 100px;
}

/* Responsive Layout */
@media (max-width: 1024px) {
  main {
    margin: 1.5em;
    padding: 1.5em;
  }

  nav ul {
    gap: 0.8em;
  }
}

@media (max-width: 768px) {
  header img {
    width: 70px;
    height: 70px;
  }

  main {
    padding: 1.2em;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0.6em;
  }

  h1 {
    font-size: 18px;
  }

  h2 {
    font-size: 15px;
  }

  h3 {
    font-size: 13px;
  }

  button {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 10px;
  }

  main {
    padding: 1em;
    margin: 1em;
  }

  h1 {
    font-size: 16px;
  }

  nav ul li a {
    font-size: 10px;
  }

  footer {
    font-size: 10px;
  }
}
