.page {
  overflow-wrap: anywhere;
}

/* The text column's blocks join the hero grid: the name and affiliation span the full
   width, and the photo starts beside the next block (the role notice, else the bio). */
.hero {
  align-items: start;
  column-gap: 2.5rem;
  display: grid;
  grid-auto-flow: row dense;
  grid-template-columns: minmax(0, 1fr) 230px;
  margin-bottom: 1rem;
  row-gap: 0;
}

.hero > div {
  display: contents;
}

.hero > div > * {
  grid-column: 1;
}

.hero > div > h1,
.hero > div > .lede {
  grid-column: 1 / -1;
}

.hero h1 {
  margin-bottom: 0.35rem;
}

.hero .lede {
  margin: 0 0 1.5rem;
}

.hero .profile-image {
  grid-column: 2;
  grid-row: span 3;
}

.hero .action-row {
  margin-top: 1.5rem;
}

.bio-copy p {
  margin: 0 0 1rem;
}

.bio-copy p:last-child {
  margin-bottom: 0;
}

.homepage-availability {
  background: color-mix(in srgb, var(--accent-2) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 25%, transparent);
  border-radius: 10px;
  color: var(--text);
  margin: 0 0 1.5rem;
  padding: 0.95rem 1.15rem 1rem;
}

.homepage-availability h2 {
  border: 0;
  color: var(--accent-2);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0 0 0.3rem;
  padding: 0;
}

.homepage-availability p {
  font-size: 0.96875rem;
  line-height: 1.6;
  margin: 0;
}

.homepage-availability .homepage-availability-contact {
  margin-top: 0.65rem;
}

.homepage-availability strong {
  color: var(--strong);
  font-weight: 600;
}

.homepage-availability a {
  color: var(--accent-2);
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-entry {
  align-items: baseline;
  display: grid;
  gap: 0.25rem 1.5rem;
  grid-template-columns: 6.75rem minmax(0, 1fr);
  padding: 0.5rem 0;
}

.news-entry time {
  color: var(--muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.news-entry p {
  margin: 0;
}

.news-entry .news-body {
  color: var(--muted);
  margin-top: 0.35rem;
}

.news-entry .news-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.85rem;
  margin-left: 0.5rem;
}

.news-entry .news-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.news-entry .news-links a:hover {
  text-decoration: underline;
}

.news-archive {
  margin-top: 0.4rem;
}

.news-archive summary {
  color: var(--accent);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.6rem 0;
  width: fit-content;
}

.news-archive summary:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.news-archive[open] .news-show-older,
.news-archive:not([open]) .news-show-less {
  display: none;
}

.interest-pointers {
  margin-top: 0.6rem;
}

.interest-pointers .meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.interest-pointers ul {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 0.2rem;
  padding-left: 1.2rem;
}

.interest-pointers li + li {
  margin-top: 0.3rem;
}

.homepage-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
}

.homepage-item--illustrated {
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 190px;
}

.homepage-item--reference {
  grid-template-columns: minmax(0, 1fr) 240px;
}

.homepage-item-copy {
  min-width: 0;
}

.homepage-item-copy p {
  margin: 0.15rem 0 0;
}

.homepage-item-copy > p:not(.authors):not(.meta) {
  margin-top: 0.3rem;
}

.homepage-item-copy > :last-child {
  margin-bottom: 0;
}

.homepage-item h3 a {
  color: var(--strong);
  text-decoration: none;
}

.homepage-item h3 a:hover {
  color: var(--accent);
}

.homepage-item .authors a {
  text-decoration: none;
}

.homepage-thumbnail {
  width: 190px;
  max-width: 100%;
  margin: 0;
}

.homepage-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.homepage-image-link {
  display: block;
  cursor: zoom-in;
}

.homepage-thumbnail--reference {
  width: 240px;
  text-align: center;
}

.homepage-thumbnail figcaption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

.homepage-thumbnail figcaption a {
  color: var(--muted);
}

/* Post figures are larger than paper thumbnails: 250 px on the homepage, 280 px on the blog list. */
.recent-post-list .homepage-item--illustrated {
  grid-template-columns: minmax(0, 1fr) 250px;
}

.recent-post-list .homepage-thumbnail {
  width: 250px;
}

.blog-post-list .homepage-item--illustrated {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.blog-post-list .homepage-thumbnail {
  width: 280px;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero > div > h1,
  .hero > div > .lede,
  .hero .profile-image {
    grid-column: 1;
  }

  /* On phones the photo sits above the name. */
  .hero .profile-image {
    grid-row: auto;
    margin: 0 0 1.25rem;
    max-width: 200px;
    order: -1;
  }

  /* Images go below the text. */
  .homepage-item--illustrated,
  .homepage-item--reference,
  .recent-post-list .homepage-item--illustrated,
  .blog-post-list .homepage-item--illustrated {
    gap: 0.9rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .homepage-thumbnail--reference {
    max-width: 420px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .news-entry {
    gap: 0.25rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .news-entry .news-links {
    display: flex;
    margin: 0.3rem 0 0;
  }
}
