:root {
  --color-text: #1a1a1a;
  --color-text-secondary: #4a4a4a;
  --color-link: #2563eb;
  --color-bg: #ffffff;
  --color-pill-year-bg: #f3e8ff;
  --color-pill-year-text: #7e22ce;
  --color-pill-tech-bg: #dbeafe;
  --color-pill-tech-text: #1e40af;
  --color-thumbnail-bg: #f3f4f6;
  --color-thumbnail-border: #e5e7eb;
}

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  line-height: 1.5;
}

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  padding: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p.intro {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

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

.projects article {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 640px) {
  .projects article {
    grid-template-columns: 1fr;
    grid-template-areas: "thumbnail" "content";
    margin-bottom: 2rem;
  }

  .projects article .thumbnail {
    grid-area: thumbnail;
  }

  .projects article .content {
    grid-area: content;
  }
}

@media (min-width: 641px) {
  .projects article {
    grid-template-columns: 180px 1fr;
    grid-template-areas: "thumbnail content";
  }

  .projects article .thumbnail {
    grid-area: thumbnail;
  }

  .projects article .content {
    grid-area: content;
  }
}

.projects article .thumbnail {
  width: 180px;
  height: 120px;
  background-color: var(--color-thumbnail-bg);
  border: 1px solid var(--color-thumbnail-border);
  border-radius: 8px;
  overflow: hidden;
}

.projects article .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.projects article .thumbnail img:hover {
  opacity: 0.7;
}

.projects article p {
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

ul.project-info {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

ul.project-info li {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

ul.project-info li.developed {
  background-color: var(--color-pill-year-bg);
  color: var(--color-pill-year-text);
}

ul.project-info li.tech {
  background-color: var(--color-pill-tech-bg);
  color: var(--color-pill-tech-text);
}
