/* style.css */

:root {
  --primary-color: #4c566f;
  --secondary-color: #f5f7fa;
  --accent-color: #2980b9;
  --text-color: #2d3436;
  --nav-height: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: var(--text-color);
  font-size: 16px;
  background: var(--secondary-color);
  line-height: 1.4;
}

header {
  background: var(--primary-color);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  width: 100%;
}

/* Base nav styling (works well on phones) */
nav ul {
  list-style: none;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;  /* space between links */
}

nav li {
  flex: 1 1 auto;
  text-align: center;
}

nav a {
  display: block;
  color: var(--secondary-color);
  text-decoration: none;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  padding: 0.5rem 0;
}

nav a:hover,
nav a.active {
  background: var(--accent-color);
  border-radius: 4px;
}

.container {
  max-width: 1100px;
  width: 100%;
  margin: 0.5rem auto 2rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; }

ul, p, li {
  font-size: 0.95rem;
}

footer {
  text-align: center;
  padding: 1rem;
  background: var(--primary-color);
  color: var(--secondary-color);
  font-size: 0.9rem;
}

/* Desktop: tighten and center nav */
@media (min-width: 601px) {
  nav ul {
    width: auto;
    justify-content: center;
    margin: 0 auto;
    gap: 2rem;       /* slightly larger gap on desktop */
  }

  nav li {
    flex: 0 0 auto;  /* no stretching */
  }
}
