body {
  margin: 0 auto;
  padding: 24px 20px 48px;
  max-width: 800px;
  color: #000;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
}

html.font-palatino,
html.font-palatino body {
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", serif;
}

html.font-helvetica,
html.font-helvetica body {
  font-family: Helvetica, Arial, sans-serif;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #f09228;
}

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

h1 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 400;
}

h2 {
  margin: 24px 0 10px;
  font-size: 22px;
  font-weight: 400;
}

h3 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
}

.pub-topic {
  margin: 22px 0 12px;
  font-size: 16px;
  font-weight: 700;
}

h2 + .pub-topic {
  margin-top: 12px;
}

p {
  margin: 0 0 12px;
}

.intro {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
  align-items: center;
}

.intro-photo {
  margin: 0;
}

.intro-photo img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: 50% 18%;
}

.links {
  margin: 8px 0 12px;
}

.edu-inline {
  margin: 0;
  padding-left: 1.2rem;
}

.pub {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  margin: 0 0 18px;
  align-items: start;
}

.pub-thumb {
  width: 160px;
  height: 100px;
  object-fit: cover;
  background: #eee;
}

.pub-authors,
.pub-meta,
.pub-links {
  margin: 0 0 2px;
}

.me {
  font-weight: 700;
}

.also-photos {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.also-photos img {
  width: 140px;
  height: 140px;
  object-fit: cover;
}

.site-header {
  margin-bottom: 18px;
}

.header-inner {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: baseline;
}

.wordmark {
  color: #000;
  font-size: 16px;
}

.site-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hobby-tabs {
  margin: 0 0 16px;
}

.hobby-panel {
  display: none;
}

.hobby-panel:target {
  display: block;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gallery-item {
  margin: 0;
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery-open img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery-natural .gallery-open img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.gallery-item figcaption {
  margin-top: 6px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1000px, 100%);
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.page-header h1 {
  font-size: 22px;
  margin-bottom: 18px;
}

@media (max-width: 700px) {
  .intro,
  .pub,
  .gallery {
    grid-template-columns: 1fr;
  }

  .intro-photo,
  .intro-photo img {
    width: 180px;
    height: 180px;
  }
}
