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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 11pt;
  line-height: 1.65;
  color: #000;
  background: #fff;
  width: 100%;
  margin: 0;
  padding: 0.6in 0.5in;
}

a {
  color: #0000EE;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: #551A8B;
}

h1 {
  font-size: 18pt;
  font-weight: bold;
  letter-spacing: 0.03em;
  text-align: center;
  margin-bottom: 0.05in;
}

h2 {
  font-size: 11pt;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 0.5pt solid #000;
  padding-bottom: 0.03in;
  margin: 0.35in 0.5in 0.12in 0.5in;
}

h3 {
  font-size: 11pt;
  font-weight: bold;
  margin-bottom: 0.04in;
}

.header {
  text-align: center;
  margin: 0 0.5in 0.3in 0.5in;
  padding: 0 0.5in;
}

.header-links {
  margin-top: 0.06in;
  font-size: 10pt;
}

.bio {
  text-align: justify;
  margin: 0.15in 0.5in;
  font-size: 11pt;
  line-height: 1.7;
  padding: 0 0.5in;
}

.thesis-block {
  margin: 0.15in 0.5in;
  padding: 0 0.5in;
}

.thesis-title {
  font-weight: bold;
  font-size: 11pt;
  margin-bottom: 0.06in;
}

.thesis-body {
  border-left: 2pt solid #ccc;
  padding-left: 0.12in;
}

.thesis-body p {
  margin-bottom: 0.08in;
  text-align: justify;
  font-size: 10.5pt;
  line-height: 1.6;
}

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

.thesis-sub {
  font-style: italic;
  margin-bottom: 0.1in;
  font-size: 10.5pt;
}

.project-entry {
  margin: 0.15in 0.5in;
  padding: 0 0.5in;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.05in;
}

.project-title {
  font-weight: bold;
  font-size: 10.5pt;
}

.project-link {
  font-size: 9.5pt;
  white-space: nowrap;
}

.project-desc {
  margin-top: 0.03in;
  font-size: 10.5pt;
  text-align: justify;
  line-height: 1.55;
}

#projects {
  width: 100%;
}

.skills-row {
  text-align: justify;
  margin: 0.1in 0.5in;
  padding: 0 0.5in;
  font-size: 10.5pt;
  width: calc(100% - 1in);
}

.skills-row strong {
  font-weight: bold;
}

.cv-section {
  text-align: center;
  margin: 0.2in 0.5in;
  padding: 0.2in 0.5in;
  border-top: 0.5pt solid #ddd;
  width: calc(100% - 1in);
}

.cv-section p {
  font-size: 10.5pt;
  margin-bottom: 0.1in;
}

.cv-button {
  display: inline-block;
  padding: 0.08in 0.25in;
  border: 0.5pt solid #000;
  font-size: 10pt;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.cv-button:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.contact-section {
  text-align: center;
  margin: 0.2in 0.5in;
  padding: 0.2in 0.5in;
  width: calc(100% - 1in);
  font-size: 10pt;
}

@media print {
  body {
    padding: 0;
  }

  .cv-button {
    display: none;
  }
}

@media (max-width: 600px) {
  body {
    padding: 0.25in 0.12in;
    font-size: 10.5pt;
  }

  h2,
  .bio,
  .thesis-block,
  .project-entry,
  .skills-row,
  .cv-section,
  .contact-section {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }

  h2 {
    margin-top: 0.2in;
  }

  .thesis-body {
    padding-left: 0.06in;
  }

  .thesis-sub {
    font-size: 9.5pt;
  }

  .project-header {
    flex-direction: column;
  }

  .orcid-line {
    font-size: 9.5pt;
    margin-top: 0.1in;
    margin-bottom: 0;
  }
}
