/* Home. Shell and type scale come from base.css; this file holds the two-column
 * portrait header and the annotated reference list. */

.container {
  max-width: calc(var(--measure) + (2 * var(--pad)));
  margin: 0 auto;
  padding: 32px var(--pad);
}

/* ---------- Top (2-column) ---------- */
.top {
  display: grid;
  grid-template-columns: 50% 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 28px;
}

.headshot {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  border-radius: 15px;
}

.photo-credit {
  margin: 8px 0 0;
  color: #777;
  font-size: 0.72rem;
  line-height: 1.35;
}

/* His name leads the page, so it sits a step above the 28px the rest of the site
 * gives h1 and h2, including the thesis question below it. */
.name {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.roles {
  margin: 20px 0 20px;
}

.roles p {
  margin: 0 0 6px;
}

.doc-links {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

/* ---------- Main content (single column) ---------- */
/* The header block above already supplies the top spacing. */
main {
  padding-top: 0;
}

main p {
  text-align: left;
  hyphens: none;
  margin-bottom: 1.6em;
}

main li {
  text-align: left;
  hyphens: none;
  margin-bottom: .3em;
}

main a:focus-visible,
.doc-links a:focus-visible {
  outline: 2px solid #002147;
  outline-offset: 3px;
}

main ul {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 20px;
  margin-bottom: 20px;
}

/* The thesis question. Styled to match the h1 on Terra Incognita and the
 * Research Program, where the same question is the page heading. */
.lede {
  margin: 0 0 16px;
}

h2 {
  margin: 44px 0 16px;
}

.overview-link {
  margin-top: 2.2em;
}

/* ---------- Annotated references ---------- */
.research-references {
  margin-top: 3em;
  padding-top: 1.6em;
  border-top: 1px solid #d8dde2;
}

.reference-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin: 0;
  cursor: pointer;
  list-style: none;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.reference-disclosure > summary::-webkit-details-marker {
  display: none;
}

.reference-disclosure > summary::after {
  content: "+";
  color: #7c8a97;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.reference-disclosure[open] > summary {
  margin-bottom: 0.55em;
}

.reference-disclosure[open] > summary::after {
  content: "\2212";
}

.reference-disclosure > summary:focus-visible {
  outline: 2px solid #7c8a97;
  outline-offset: 5px;
}

.reference-list {
  list-style: decimal;
  padding-left: 2.15em;
  margin: 0;
}

.reference-list li {
  margin-bottom: 1.05em;
  padding-left: 0.25em;
}

.reference-list li::marker {
  color: #7c8a97;
  font-variant-numeric: tabular-nums;
}

.reference-title,
.reference-authors,
.reference-publication {
  display: block;
}

.reference-title {
  margin-bottom: 0.16em;
}

.reference-authors {
  color: #303940;
}

.reference-publication {
  color: #56616b;
}

.reference-annotation {
  display: block;
  margin-top: 0.35em;
  color: #404850;
  font-style: italic;
}

.reference-annotation::before {
  content: "—\00a0";
  color: #7c8a97;
}

.citation-ref {
  white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .top {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .name {
    font-size: 34px;
  }
}
