* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #000000;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  transition: background 0.3s, color 0.3s;
}

body.dark {
  background: #000000;
  color: #ffffff;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 20px;
}

header {
  margin-bottom: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .header-content {
  flex: 1;
}

header h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

header p {
  font-size: 15px;
  color: #737373;
}

.dark header p {
  color: #a3a3a3;
}

.dark .tag {
  color: #a3a3a3;
  border-color: #262626;
}

.dark .desc {
  color: #a3a3a3;
}

.dark .project a {
  color: #ffffff;
}

.dark .project a:hover {
  opacity: 0.8;
}

.dark h2 {
  color: #a3a3a3;
}

.dark .project {
  border-color: #262626;
}

.dark footer {
  border-color: #262626;
}

.dark footer p {
  color: #a3a3a3;
}

.dark .stack-category {
  color: #ffffff;
}

.dark .stack-list p:not(.stack-category) {
  color: #a3a3a3;
}

.dark .project-border {
  border-color: #262626;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  transition: opacity 0.2s;
}

.theme-toggle:hover {
  opacity: 0.6;
}

.dark .theme-toggle {
  color: #ffffff;
}

main {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #737373;
  margin-bottom: 20px;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.project {
  padding-bottom: 28px;
  border-bottom: 1px solid #e5e5e5;
}

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

.project-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.project h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tag {
  font-size: 11px;
  color: #737373;
  padding: 3px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

.desc {
  font-size: 15px;
  color: #737373;
  margin-bottom: 14px;
  line-height: 1.6;
}

.project a {
  font-size: 15px;
  color: #000000;
  text-decoration: none;
  display: inline-block;
  padding: 8px 0;
  min-height: 44px;
  transition: opacity 0.2s;
}

.project a:hover {
  opacity: 0.6;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 15px;
  color: #737373;
}

.stack-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  color: #000000;
}

footer {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid #e5e5e5;
}

footer p {
  font-size: 14px;
  color: #737373;
}

/* Desktop */
@media (min-width: 641px) {
  .container {
    padding: 80px 20px;
  }

  header {
    margin-bottom: 80px;
  }

  header h1 {
    font-size: 32px;
  }

  header p {
    font-size: 16px;
  }

  main {
    gap: 64px;
  }

  h2 {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .projects {
    gap: 32px;
  }

  .project {
    padding-bottom: 32px;
  }

  .project-header {
    gap: 12px;
    margin-bottom: 8px;
  }

  .project h3 {
    font-size: 18px;
  }

  .tag {
    font-size: 12px;
    padding: 2px 8px;
  }

  .desc {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .project a {
    font-size: 14px;
    padding: 0;
  }

  footer {
    margin-top: 80px;
    padding-top: 32px;
  }

  footer p {
    font-size: 13px;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .container {
    padding: 40px 16px;
  }

  header h1 {
    font-size: 24px;
  }

  header p {
    font-size: 14px;
  }

  .project h3 {
    font-size: 16px;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .tag {
    align-self: flex-start;
  }
}
