/* ==========================================================================
   CSS Variables for Easy Theming
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&display=swap');

:root {
  /* Core Colors */
  --bg-color: #ffffff;
  --text-color: #1E262A;
  --text-color-secondary: #495256;
  
  /* Accent Color */
  --accent-color: #5E7061;
  
  /* Typography */
  --font-family: 'Inconsolata', monospace;
  
  /* Spacing and Sizing */
  --max-width: 1200px;
  --sidebar-width: 300px;
  --gap: 2rem;
}

/* ==========================================================================
   Base Styles and Reset
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.6;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover,
a:focus {
  text-decoration: underline;
  outline: 2px dashed var(--accent-color);
  outline-offset: 4px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

.site-main ul:not([class]),
.site-main ol:not([class]) {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.site-main ul:not([class]) li,
.site-main ol:not([class]) li {
  margin-bottom: 0.5rem;
}

/* Secondary Text utility */
.text-secondary {
  color: var(--text-color-secondary);
}

/* ==========================================================================
   Layout Structure
   ========================================================================== */
.site-header {
  background-color: var(--accent-color);
  color: var(--bg-color);
  padding: 1rem 0;
}

.site-header a {
  color: var(--bg-color);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.site-banner {
  width: 100%;
  height: 300px;
  background-color: var(--text-color-secondary);
  overflow: hidden;
  position: relative;
}

.site-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.main-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: 3rem 1rem;
  flex: 1; /* Pushes footer down */
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .main-content-wrapper {
    flex-direction: row;
  }
}

/* Sidebar */
.site-sidebar {
  flex: 0 0 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .site-sidebar {
    flex: 0 0 var(--sidebar-width);
    text-align: left;
  }
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem auto;
  background-color: var(--text-color-secondary);
}

@media (min-width: 768px) {
  .profile-pic {
    margin: 0 0 1.5rem 0;
    width: 100%;
    height: auto;
    border-radius: 0;
  }
}

.sidebar-info {
  margin-bottom: 2rem;
}

.sidebar-info p {
  margin-bottom: 0.5rem;
}

.social-links {
  list-style: none;
  padding: 0;
}

.social-links li {
  margin-bottom: 0.5rem;
}

/* Main Content Area */
.site-main {
  flex: 1;
  min-width: 0; /* Prevents overflow in flex children */
}

.site-main section {
  margin-bottom: 3rem;
}

/* Footer */
.site-footer {
  background-color: var(--accent-color);
  color: var(--bg-color);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: auto;
}

.site-footer a {
  color: var(--bg-color);
}

/* ==========================================================================
   Component Styles
   ========================================================================== */
/* Lists for Publications & Projects */
.item-list {
  list-style: none;
  padding: 0;
}

.item-list li {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eaeaea;
}

.item-list li:last-child {
  border-bottom: none;
}

.item-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.item-meta {
  color: var(--text-color-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
