:root {
  --background: #eeeeec;
  --surface: #ffffff;
  --text: #242424;
  --muted: #666666;
  --border: #ddddda;
  --accent: #222222;
  --page-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 18px;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

main {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding: clamp(24px, 5vw, 72px);
  background: var(--surface);
}

.hero {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 3rem;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 720px;
  margin: 2rem auto;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.hero a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.hero a:hover {
  background: #444444;
  transform: translateY(-2px);
}

.hero a:focus-visible {
  outline: 3px solid #88aaff;
  outline-offset: 4px;
}

.portrait {
  width: min(100%, 620px);
  margin: 1rem auto 8rem;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

#projects {
  min-height: 400px;
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}
.header {
  width: min(100%, var(--page-width));
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 72px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.header .logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.header nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 4rem);
}

.header nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.header nav a:hover {
  color: var(--text);
}


/* Phone layout */
@media (max-width: 600px) {
  body {
    padding: 0;
  }

  main {
    padding: 20px;
  }
  .header {
  min-height: 72px;
  padding-inline: 20px;
  } 

  .header .logo {
  gap: 8px;
  font-size: 0.85rem;
  }

  .header .logo img {
  width: 34px;
  height: 34px;
  }
  .header nav {
  gap: 12px;
  font-size: 0.8rem;
  }

  .hero {
    min-height: auto;
    padding: 6rem 0 3rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .portrait {
    margin-bottom: 5rem;
  }

  #projects {
    padding-block: 4rem;
  }
}