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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.65;
  padding: 3rem 1.5rem 4rem;
  max-width: 38rem;
  margin: 0 auto;
}

/* Navigation */
nav {
  margin-bottom: 3.5rem;
}

nav a {
  color: #111;
  text-decoration: none;
  margin-right: 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

nav a:hover {
  text-decoration: underline;
}

/* Identity header with photo */
.identity-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.portrait {
  width: 160px;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

.identity-text {
  flex: 1;
}

/* Sections */
section {
  margin-bottom: 3.5rem;
}

/* Headings */
h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.35;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Paragraphs and text */
p {
  margin-bottom: 1rem;
}

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

/* Sub-sections within a section */
section section {
  margin-bottom: 2rem;
}

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

/* Lists */
ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.35rem;
}

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

/* Links */
a {
  color: #1a4a8a;
  text-decoration: underline;
}

a:hover {
  color: #111;
}

/* Publication entries */
.publication-entry {
  margin-bottom: 1.5rem;
}

.publication-entry:last-child {
  margin-bottom: 0;
}

.publication-label {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.publication-entry a {
  font-size: 0.9375rem;
  word-break: break-all;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 3.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  body {
    padding: 2rem 1.25rem 3rem;
  }

  h1 {
    font-size: 1.35rem;
  }

  nav a {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.25rem;
  }

  section {
    margin-bottom: 2.75rem;
  }

  hr {
    margin: 2.75rem 0;
  }

  .identity-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .portrait {
    width: 140px;
    margin-bottom: 0.5rem;
  }
}
