html, body {
  height: auto;
  min-height: 100%;
}

body {
  padding: 2em 1em;
  box-sizing: border-box;
}

main {
  max-width: 48em;
  width: 100%;
  box-sizing: border-box;
  padding: 2em;
}

main header h1 {
  font-size: 3em;
}

main header h2 {
  font-size: 1.25em;
  margin-top: 0.25em;
  margin-bottom: 1.5em;
}

main section.project-list {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  padding: 0;
  max-height: none;
  overflow: visible;
  margin-bottom: 2em;
}

.project-card {
  display: flex;
  flex-direction: row;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 1.25em;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: #376ee8;
  box-shadow: 0 4px 14px rgba(55, 110, 232, 0.2);
}

.project-thumbnail {
  width: 14em;
  min-width: 12em;
  max-width: 14em;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.25em 1.5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5em;
}

.project-header h3 {
  margin: 0;
  font-family: Lato, sans-serif;
  font-size: 1.75em;
  font-weight: 700;
  color: #376ee8;
}

.project-badge {
  font-family: Lato, sans-serif;
  font-size: 0.75em;
  background: #fff8e1;
  color: #b78103;
  border: 1px solid #ffe082;
  padding: 0.25em 0.75em;
  border-radius: 1em;
  font-weight: 600;
}

.project-subtitle {
  margin: 0.35em 0 0.75em 0;
  font-family: Lato, sans-serif;
  font-size: 0.95em;
  color: #777;
  font-weight: 400;
}

.project-description {
  margin: 0 0 1em 0;
  font-family: Lato, sans-serif;
  font-size: 0.95em;
  line-height: 1.5;
  color: #444;
}

.project-link-label {
  font-family: Lato, sans-serif;
  font-size: 0.9em;
  font-weight: 600;
  color: #376ee8;
  margin-top: auto;
}

@media (max-width: 600px) {
  .project-card {
    flex-direction: column;
  }
  .project-thumbnail {
    width: 100%;
    max-width: 100%;
    height: 10em;
  }
}
