/* ---- Custom styles for Hannah's academic site ---- */

/* Typography refinements */
body {
  font-size: 1rem;
  line-height: 1.75;
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
}

/* About page photo */
.about-photo {
  border-radius: 50%;
  border: 3px solid #dee2e6;
  transition: border-color 0.3s;
}

.about-photo:hover {
  border-color: #3d6b5e;
}

/* Interest and education lists */
.details-section h3 {
  color: #3d6b5e;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.details-section ul {
  padding-left: 0;
  list-style: none;
}

.details-section li {
  margin-bottom: 0.25rem;
}

/* Project / Publication cards */
.card-item {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.card-item:hover {
  border-color: #3d6b5e;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.card-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.card-item .meta {
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0.5rem;
}

.card-item .description {
  font-size: 0.92rem;
  color: var(--bs-secondary-color);
  line-height: 1.65;
}

/* Tag badges */
.tag-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #3d6b5e;
  background: #e8f0ec;
  padding: 2px 10px;
  border-radius: 4px;
  margin-right: 4px;
  margin-bottom: 4px;
}

/* Link buttons */
.link-btn {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3d6b5e;
  border: 1px solid #3d6b5e;
  padding: 3px 12px;
  border-radius: 4px;
  text-decoration: none;
  margin-right: 6px;
  margin-top: 6px;
  transition: all 0.2s;
}

.link-btn:hover {
  background: #3d6b5e;
  color: #fff;
  text-decoration: none;
}

/* Section headings */
.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3d6b5e;
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* Grid layout for projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .tag-badge {
  background: #2a3a32;
  color: #6db89a;
}

[data-bs-theme="dark"] .link-btn {
  color: #6db89a;
  border-color: #6db89a;
}

[data-bs-theme="dark"] .link-btn:hover {
  background: #6db89a;
  color: #1a1a1e;
}

[data-bs-theme="dark"] .details-section h3 {
  color: #6db89a;
}

[data-bs-theme="dark"] .card-item:hover {
  border-color: #6db89a;
}
