/* Reset some default styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #111;
  background-color: #fefefe;
  padding: 0 1rem;
}

/* Header & nav */
header {
  background-color: #0087ca; /* university of worcester blue */
  color: #fff;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;   /* makes left and right align vertically */
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Make the name vertically centered with the menu */
header nav > strong {
  font-size: 1.25rem;
  line-height: 1;        /* remove extra height */
  display: flex;
  align-items: center;
}

/* Menu items */
header nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;             /* remove default top/bottom margin */
  padding: 0;
}

header nav li {
  display: flex;
  align-items: center;   /* vertically center each item */
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
/* Main sections */
main {
  max-width: 900px;
  margin: 0 auto 2rem;
}

section {
  margin-bottom: 3rem;
}

h1, h2, h3 {
  color: #0f172a;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Lists */
ul {
  list-style: disc inside;
  margin-bottom: 1rem;
}

/* Projects */
article {
  background-color: #f3f4f6; /* light grey */
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

article:hover {
  background-color: #e2e8f0;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem 0;
  color: #555;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
}

/* Links */
a {
  color: #1d4ed8;
}

a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  header nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}
