@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  line-height: 1.6;
  background: #fff;
  color: #333;
}

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  gap: 20px;
  background: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.2s;
}

nav a:hover {
  color: #0077cc;
}

nav .nav-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

h1, h2, h3 {
  color: #2c3e50;
}

a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.intro {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #555;
}

.contact {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.year-section {
  margin: 30px 0;
}

.pub-item {
  margin: 15px 0;
  padding-left: 20px;
}

.pub-item::before {
  content: "• ";
  color: #0066cc;
  font-weight: bold;
}


/* About page layout tweaks */
.about {
  max-width: 800px; /* keeps symmetry with body but safe if body changes later */
}

/* Headshot styles */
.headshot {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  float: right;
  margin: 0 0 20px 20px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Mobile: center the headshot and drop float */
@media (max-width: 640px) {
  .headshot {
    float: none;
    display: block;
    margin: 0 auto 20px;
    width: 140px;
    height: 140px;
  }
}

.pub-list {
  margin: 20px 0;
  padding-left: 20px;
}

.pub-list li {
  margin-bottom: 12px;
  line-height: 1.5;
}

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

.post-list li {
  list-style: none;
  margin: 10px 0;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.post-list li:hover {
  background: #f2fafa;
}

.post-date {
  color: #777;
  font-size: 0.9em;
  margin-left: 10px;
}

.blog-wrapper {
  display: flex;
  gap: 20px;
}

.blog-posts {
  flex: 1;
}

.blog-categories {
  width: 25%;
  padding-left: 20px;
}

.category-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.category-list li {
  display: block;
  margin: 0 0 10px 0;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #26415a 0%, #1abc9c 100%);
  border-radius: 12px;
  margin-bottom: 40px;
  padding: 72px 24px;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.hero-sub {
  color: #f1f1f1;
  font-weight: 500;
  letter-spacing: .4px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  margin: 0;
}

/* If your nav is sticky, give the next section a bit more top space */
.container:first-of-type { scroll-margin-top: 80px; }

/* Dark mode toggle button */
#dark-toggle {
  background: none;
  border: none;
  color: #333;
  font-size: 1.2em;
  cursor: pointer;
  margin-left: 10px;
  transition: color 0.3s;
}

#dark-toggle:hover {
  color: #1abc9c;
}

/* Dark mode styles */
body.dark-mode {
  background: #121212;
  color: #e0e0e0;
}

body.dark-mode .container {
  background: #1e1e1e;
  color: #e0e0e0;
}

body.dark-mode nav {
  background: #111;
}

body.dark-mode nav a {
  color: #e0e0e0;
}

body.dark-mode #dark-toggle {
  color: #e0e0e0;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  color: #777;
  font-size: 0.9em;
}

.site-footer a {
  color: #3498db;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
