/* base.css: shared layout rules */
body {
  font-family: system-ui, sans-serif;
  margin: 2rem;
  max-width: 800px;
  line-height: 1.6;
  transition: background-color 1.0s ease, color 1.0s ease; /* ← ADD THIS LINE */
}

header, nav, main, footer {
  margin-bottom: 2rem;
}

h1, h2 {
  font-weight: bold;
}

nav a {
  margin-right: 1rem;
  text-decoration: none;
}

.soft {
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
}

#theme-toggle {
  font-size: 1.2rem;
  padding: 0.5em;
  border: none;
  border-radius: 0.3em;
  cursor: pointer;
  transition: background-color 1.0s ease, color 1.0s ease;
}

/* Light mode button */
body.light #theme-toggle {
  background-color: #1e1e2f;  /* dark background */
  color: #f9f9f9;             /* light icon */
}

/* Dark mode button */
body.dark #theme-toggle {
  background-color: #f9f9f9;  /* light background */
  color: #1e1e2f;             /* dark icon */
}

.dataset-list {
  list-style: none;
  padding-left: 0;
}

.dataset-list li {
  margin: 0.5rem 0;
}

.dataset-list a {
  text-decoration: none;
  font-family: monospace;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  display: inline-block;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0rem;
}

nav a, nav button {
  font-size: 1rem;
  background: none;
  border: none;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

#fontToggle button {
  background: none;
  border: none;
  padding: 0.3rem;
  font-size: 1rem;
  cursor: pointer;
}

#fontToggle {
  margin-right: 1.6rem;
}

header img {
  border: 1px solid;
  border-radius: 0.5rem;
  max-height: 80px;
  border-color: #ccc; /* light mode fallback */
}

body.dark header img {
  border-color: rgba(255, 255, 255, 0.2);
}
