/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fafafa;
  color: #222;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #000;
}

h2 {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #999;
  margin-bottom: 1.5rem;
}

/* === Hero === */
.hero {
  padding: 16vh 0 10vh;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-text {
  flex: 1;
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #eee;
}

.hero-greeting {
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.hero-name {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: #111;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: 1rem;
  color: #777;
  margin-top: 1rem;
  font-weight: 300;
}

/* === About === */
.about {
  padding: 5rem 0;
  border-top: 1px solid #eaeaea;
}

.about p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
  font-weight: 300;
}

.about p:last-child {
  margin-bottom: 0;
}

/* === Projects === */
.projects {
  padding: 5rem 0;
  border-top: 1px solid #eaeaea;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: #eaeaea;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  overflow: hidden;
}

.project-card {
  display: block;
  padding: 1.5rem;
  background: #fff;
  transition: background 0.2s;
  color: inherit;
}

a.project-card:hover {
  background: #f5f5f5;
}

.project-card h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 0.25rem;
}

a.project-card:hover h3 {
  color: #000;
}

.project-card p {
  font-size: 0.875rem;
  color: #888;
  font-weight: 300;
}

/* === Links === */
.links {
  padding: 5rem 0;
  border-top: 1px solid #eaeaea;
}

.link-list {
  display: flex;
  gap: 2rem;
}

.link-list a {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #555;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.link-list a:hover {
  color: #000;
  border-bottom-color: #ccc;
}

/* === Footer === */
footer {
  padding: 3rem 0;
  border-top: 1px solid #eaeaea;
}

footer p {
  font-size: 0.75rem;
  color: #bbb;
}

/* === Responsive === */
@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .hero-photo img {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 12vh 0 6vh;
    min-height: auto;
  }

  .about,
  .projects,
  .links {
    padding: 3.5rem 0;
  }

  .link-list {
    flex-direction: column;
    gap: 1rem;
  }
}
