:root {
  --bg: #ffffff;
  --text: #1c1c1c;
  --muted: #5b5b5b;
  --accent: #8a6d00;
  --rule: #e6e3da;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  line-height: 1.65;
  font-size: 18px;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: #d8c98a;
  text-decoration-thickness: 1px;
}

a:hover {
  color: #5e4a00;
}

nav {
  border-bottom: 1px solid var(--rule);
  padding: 0;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-brand {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px 80px;
}

h1 {
  font-size: 32px;
  margin: 0 0 4px;
  font-weight: 600;
}

h1.title {
  margin-bottom: 28px;
}

.subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 24px;
}

h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 44px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text);
}

p {
  margin: 0 0 16px;
}

.contact-line {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
}

.contact-line a {
  margin-right: 4px;
}

.portrait-wrap {
  float: right;
  margin: 0 0 20px 28px;
  max-width: 220px;
}

.portrait-wrap img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.portrait-caption {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

ul.plain {
  list-style: none;
  padding-left: 0;
  margin: 0 0 16px;
}

ul.plain li {
  margin-bottom: 8px;
}

.pub-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 8px;
  counter-reset: pubs;
}

.pub-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 12px;
  margin-bottom: 22px;
}

.pub-num {
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
}

.pub-authors {
  font-size: 15px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.pub-title {
  font-weight: 600;
  font-style: italic;
}

.pub-venue {
  font-size: 15px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.pub-links a {
  font-size: 14px;
  margin-right: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.figure {
  margin: 28px 0;
  text-align: center;
}

.figure img {
  max-width: 100%;
  border-radius: 4px;
}

.figure-caption {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  text-align: left;
}

.year-block {
  margin-bottom: 18px;
}

.year-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
}

.year-block ul {
  margin: 0 0 0 0;
  padding-left: 18px;
  font-size: 16px;
}

.year-block li {
  margin-bottom: 6px;
}

details {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

details > summary {
  cursor: pointer;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
}

details[open] > summary {
  margin-bottom: 10px;
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 60px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 520px) {
  .portrait-wrap {
    float: none;
    margin: 0 auto 20px;
  }
  body {
    font-size: 17px;
  }
  h1 {
    font-size: 27px;
  }
}
