/* Import Fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Georgia&display=swap');

:root {
  --bg: #fbf7f1;
  --text: #000000;
  --accent: #990000;
  --max-width: 38rem;

  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.55;
  font-size: 17px;
}

body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Sidebar Navigation */
nav {
  width: 140px;
  background-color: var(--bg);
  border-right: 1px solid #e0e0e0;
  padding: 2rem 1rem;
  height: 100vh;
  box-shadow: 2px 0 10px rgba(0,0,0,0.05);
  position: fixed;
  top: 0;
  left: 0;

  /* modern spacing */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  text-decoration: underline;
}

/* Main Content */
main {
  margin-left: 160px;
  max-width: var(--max-width);
  padding: 3rem 2rem;
  text-align: left;
  flex-grow: 1;
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--accent);
  border-bottom: none;
  padding-bottom: .25rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

p {
  margin-bottom: 1rem;
}

/* Papers section improvements */
#papers {
  margin-top: 2rem;
}

#papers ul {
  list-style: none;
  padding: 0;
  margin: 0;

  /* modern spacing */
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#papers li {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

#papers li:last-child {
  border-bottom: none;
}

#papers li strong {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.3rem;
}

#papers li em {
  color: #444;
}

#papers a {
  color: var(--accent);
  text-decoration: none;
}

#papers a:hover {
  text-decoration: underline;
}

/* Footer Styling */
footer {
  text-align: center;
  font-size: 0.7rem;
  padding: 1rem;
  color: #aaa;
  margin-top: auto;
  opacity: 0.6;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  nav {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    position: static;
  }

  main {
    padding: 2rem 1rem;
    margin-left: 0;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #eaeaea;
    --accent: #ff6b6b;
  }
}
