/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.625;
  color: #222;
  background-color: #fff;
}

a {
  color: #5d93ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: #f7a046;
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Sidebar */
.sidebar {
  margin-bottom: 2rem;
}

.sidebar-content {
  padding: 1.5rem 0;
}

.profile-photo {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 0.375rem;
  display: block;
  margin-bottom: 1.5rem;
}

.name {
  font-size: 1.5rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 1rem;
}

.bio {
  color: #888;
  font-size: 0.9375rem;
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

/* Social links */
.social-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #ebebeb;
  border-radius: 0.25rem;
  color: #888;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.social-link:hover {
  background-color: #dfdfdf;
  color: #222;
  text-decoration: none;
}

/* Main content */
.main-content {
  border-top: 1px solid #e6e6e6;
  padding-top: 2rem;
}

/* Projects */
.projects {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project {
  padding-bottom: 2rem;
  border-bottom: 1px solid #e6e6e6;
}

.project:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-title {
  font-size: 1.58rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-title a {
  color: #222;
}

.project-title a:hover {
  color: #f7a046;
}

.project-description {
  color: #222;
  font-size: 0.9375rem;
  line-height: 1.625;
}

/* Tablet and up (685px+) */
@media (min-width: 685px) {
  .container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 3rem 2rem;
  }

  .sidebar {
    border-right: 1px solid #e6e6e6;
    padding-right: 2rem;
    margin-bottom: 0;
  }

  .main-content {
    border-top: none;
    padding-top: 0;
  }
}

/* Desktop (960px+) */
@media (min-width: 960px) {
  .container {
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    padding: 3rem;
  }

  .profile-photo {
    max-width: 100%;
  }
}
