:root {
  --bg-color: #ffffff;
  --text-primary: #1f2937;
  /* gray-800 */
  --text-secondary: #4b5563;
  /* gray-600 */
  --text-hover: #9ca3af;
  /* gray-400 */
  --border-color: #e5e7eb;
  /* gray-200 */
  --link-color: #ef4444;
  /* red-500 */
  --font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  /* Removed align-items: center to allow left alignment within container */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 42rem;
  /* max-w-2xl */
  padding: 1rem;
  /* Added vertical padding for safety on small screens */
  margin: 0 auto;
  /* Centered horizontally */
}

header {
  padding: 1.5rem 0;
  margin-bottom: 0.5rem;
  margin-top: -1rem;
  /* Reduced margin */
}

h1 {
  font-size: 1.9rem;
  /* text-3xl */
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  margin-bottom: -.5rem;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  /* text-sm */
  font-weight: 400;
  margin: 0 0 1rem 0;
  /* Bottom margin for paragraphs */
}

/* Tighter bio section */
.bio-section {
  margin-bottom: 2rem;
}

.bio-section p {
  margin-bottom: 1.25rem;
  /* Space between bio paragraphs */
}

/* Social Links */
.social-nav {
  display: flex;
  margin-top: .75rem;
  margin-bottom: -.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  padding: .25rem;
  margin-right: 1rem;
  color: var(--text-secondary);
  font-size: 1;
  transition: color 0.2s, border-color 0.2s;
}

.social-link:hover {
  color: var(--text-primary);
  border-color: var(--text-hover);
}

/* Project List */
.project-list {
  display: flex;
  flex-direction: column;
}

.project-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding: .5rem;
  /* Vertical padding for list items */
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}

.project-item:hover .project-title {
  color: var(--text-hover);
}

.project-content {
  display: flex;
  align-items: center;
  width: 100%;
}

.project-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.75rem;
  margin-left: -0.3rem;
  object-fit: contain;
}

.project-title {
  font-size: 0.875rem;
  /* text-sm */
  font-weight: 450;
  transition: color 0.2s;
  margin-left: -0.3rem;
}

/* Project Detail Page Specifics */
.back-button {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
}

.back-button:hover {
  color: var(--text-primary);
}

.back-icon {
  margin-right: 0.5rem;
}

.project-images {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.project-body {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Utility */
.mb-4 {
  margin-bottom: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}