@import url(https://fonts.googleapis.com/css?family=Lato:300,400,500,700&display=swap);

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 60px 20px;
  font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2d3748;
  font-weight: 400;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* Profile Header */
.profile-header {
  text-align: center;
  margin-bottom: 70px;
  padding-bottom: 50px;
  border-bottom: 1px solid #e2e8f0;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.profile-header h1 {
  margin: 0 0 20px 0;
  font-size: 40px;
  font-weight: 300;
  color: #1a202c;
  letter-spacing: -0.02em;
}

.profile-links {
  font-size: 15px;
  color: #718096;
}

.profile-links a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.profile-links a:hover {
  color: #1e40af;
}

.profile-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2563eb;
  transition: width 0.2s ease;
}

.profile-links a:hover::after {
  width: 100%;
}

.profile-links .separator {
  margin: 0 10px;
  color: #cbd5e0;
}

/* Main Content */
main {
  max-width: 900px;
}

section {
  margin-bottom: 60px;
}

section:last-child {
  margin-bottom: 0;
}

h2 {
  font-size: 27px;
  font-weight: 500;
  color: #1a202c;
  margin: 0 0 24px 0;
  padding-bottom: 14px;
  border-bottom: 2px solid #e2e8f0;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 20px;
  font-weight: 400;
  color: #333;
  margin: 24px 0 12px 0;
}

h3:first-of-type {
  margin-top: 0;
}

p {
  margin: 0 0 16px;
  line-height: 1.7;
}

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

a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: #1e40af;
  border-bottom-color: #2563eb;
}

strong, b {
  color: #1a202c;
  font-weight: 600;
}

ul, ol {
  padding-left: 30px;
  margin: 0 0 20px;
}

li {
  margin-bottom: 12px;
  line-height: 1.8;
}

ol.sparse-list li {
  margin-bottom: 28px;
  line-height: 1.8;
}

code, pre {
  font-family: Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, monospace;
  color: #333;
  font-size: 14px;
}

pre {
  padding: 16px;
  background: #f8f8f8;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  overflow-x: auto;
  margin: 0 0 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e5e5;
}

th {
  color: #333;
  font-weight: 700;
  background: #f8f8f8;
}

blockquote {
  border-left: 3px solid #0066cc;
  margin: 0 0 20px;
  padding: 0 0 0 20px;
  font-style: italic;
  color: #666;
}

hr {
  border: 0;
  background: #e5e5e5;
  height: 1px;
  margin: 50px 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* Responsive design */
@media screen and (max-width: 768px) {
  body {
    padding: 40px 15px;
  }

  .profile-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
  }

  .profile-photo {
    width: 160px;
    height: 160px;
  }

  .profile-header h1 {
    font-size: 30px;
  }

  .profile-links {
    font-size: 14px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }

  section {
    margin-bottom: 40px;
  }
}

@media screen and (max-width: 480px) {
  .profile-links {
    line-height: 2;
  }

  .profile-links .separator {
    display: none;
  }

  .profile-links a {
    display: block;
    margin: 8px 0;
  }
}

@media print {
  body {
    padding: 0.4in;
    font-size: 12pt;
    color: #444;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  section {
    margin-bottom: 30px;
    page-break-inside: avoid;
  }
}
