/*
 * Theme: elegant, confident, simple, functional
 * Single stylesheet, no dependencies, system fonts only
 */

/* --- Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1c1c1c;
  background: #fafaf9;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Header --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e7e5e4;
}

.site-header .name {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links a {
  opacity: 0.7;
}

.social-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.social-icon {
  width: 28px;
  height: 28px;
}

/* --- Main content --- */
main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* --- Intro --- */
.intro {
  margin-bottom: 4rem;
}

.intro-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.intro-text h1 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.intro-text p {
  margin: 0 0 1rem;
  color: #404040;
}

.intro-text p:last-of-type {
  margin-bottom: 1rem;
}

.intro-list {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: #404040;
}

.intro-list li {
  margin-bottom: 0.25rem;
}

.intro-text a {
  color: #1c1c1c;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.intro-text a:hover {
  text-decoration: none;
}

.cta {
  display: inline-block;
  font-weight: 500;
  color: #1c1c1c;
  text-decoration: none;
  border: 1px solid #1c1c1c;
  padding: 0.5rem 1rem;
}

.cta:hover {
  background: #1c1c1c;
  color: #fafaf9;
  text-decoration: none;
}

.intro-photo img {
  width: 272px;
  height: 352px;
  object-fit: cover;
}

/* --- Work --- */
.work-title {
  margin: 0 0 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #404040;
}

.project {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #e7e5e4;
}

.project:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.project-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.project-logo {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.project-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-logo:hover {
  text-decoration: none;
}

.project-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.project-body h3 a:hover {
  text-decoration: underline;
}

.project-body p {
  margin: 0 0 1rem;
  color: #404040;
}

.project-body a {
  color: #1c1c1c;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.project-body a:hover {
  text-decoration: none;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1c1c1c;
  background: transparent;
  border: 1px solid #1c1c1c;
  padding: 0.5rem 1rem;
}

.btn:hover {
  background: #1c1c1c;
  color: #fafaf9;
  text-decoration: none;
}

.project-screenshot {
  display: block;
  border: 1px solid #e7e5e4;
}

.project-screenshot img {
  width: 100%;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid #e7e5e4;
  background: #fff;
}

.copyright {
  margin: 0;
  font-size: 0.875rem;
  color: #737373;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .intro-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .intro-photo {
    order: -1;
    justify-self: start;
  }

  .intro-photo img {
    width: 200px;
    height: auto;
    max-height: 260px;
  }

  .project-head {
    grid-template-columns: 1fr;
  }

  .project-logo {
    width: 80px;
    height: 80px;
  }
}
